joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e82f
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, 0x104
je 0x43e862
lea eax, [ebp - 0x104]
push eax
push esi
call edi
test eax, eax
je 0x43e85e
cmp eax, esi
jb 0x43e862
and dword [ebp + 0x10], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4c
je 0x43e87b
cmp byte [ebx], 0
je 0x43e87b
mov ecx, ebx
jmp 0x43e87d
xor ecx, ecx
cmp dword [ebp + 0x14], 0
mov dword [eax + 0x2c], ecx
push eax
je 0x43e88f
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
jmp 0x43e895
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x43e8ab
push ebx
push esi
call edi
test eax, eax
je 0x43e8a8
cmp eax, esi
jb 0x43e8ab
mov byte [ebx], 0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x43e8c1
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
leave
ret

Function at 0x4423c7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x46625c], esi
push edi
jne 0x4423e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x466258], esi
mov byte [0x466254], al
jne 0x44244d
mov ecx, dword [0x468c0c]
test ecx, ecx
je 0x44242e
mov eax, dword [0x468c08]
sub eax, 4
cmp eax, ecx
jmp 0x442427
mov eax, dword [eax]
test eax, eax
je 0x442419
call eax
mov eax, dword [0x468c08]
sub eax, 4
cmp eax, dword [0x468c0c]
mov dword [0x468c08], eax
jae 0x442411
mov eax, 0x463020
mov esi, 0x463028
cmp eax, esi
mov edi, eax
jae 0x44244d
mov eax, dword [edi]
test eax, eax
je 0x442446
call eax
add edi, 4
cmp edi, esi
jb 0x44243e
mov eax, 0x46302c
mov esi, 0x463030
cmp eax, esi
mov edi, eax
jae 0x44246c
mov eax, dword [edi]
test eax, eax
je 0x442465
call eax
add edi, 4
cmp edi, esi
jb 0x44245d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x442486
push dword [ebp + 8]
mov dword [0x46625c], 1
call fcn.0044232d
pop ebp
ret
Function at 0x44265f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4605c8
call fcn.00444594
mov edi, 0x94
mov eax, edi
call fcn.0043ff70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x46621c], ecx
mov eax, dword [esi + 4]
mov dword [0x466228], eax
mov edx, dword [esi + 8]
mov dword [0x46622c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x466220], esi
cmp ecx, 2
je 0x4426bf
or esi, 0x8000
mov dword [0x466220], esi
shl eax, 8
add eax, edx
mov dword [0x466224], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4426fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4426fa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x442712
cmp eax, 0x20b
je 0x4426ff
mov dword [ebp - 0x1c], esi
jmp 0x442726
cmp dword [ecx + 0x84], 0xe
jbe 0x4426fa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x442720
cmp dword [ecx + 0x74], 0xe
jbe 0x4426fa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00444edf
pop ecx
test eax, eax
jne 0x442752
cmp dword [0x466268], 1
jne 0x44273f
call fcn.00446a94
push 0x1c
call fcn.0044691d
push 0xff
call fcn.0044232d
pop ecx
pop ecx
call fcn.00446dbb
mov dword [ebp - 4], esi
call fcn.0044488b
test eax, eax
jge 0x44276b
push 0x1b
call fcn.0044263a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x468c00], eax
call fcn.0044748b
mov dword [0x466260], eax
call fcn.004473e9
test eax, eax
jge 0x442791
push 8
call fcn.0044263a
pop ecx
call fcn.004471b6
test eax, eax
jge 0x4427a2
push 9
call fcn.0044263a
pop ecx
push 1
call fcn.0044235d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4427b8
push eax
call fcn.0044263a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00447159
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4427d9
movzx eax, word [ebp - 0x40]
jmp 0x4427dc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043a87d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4427fa
push edi
call fcn.00442488
call fcn.004424aa
jmp 0x44282c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004445cf
ret
Function at 0x442a3e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x466280], ebx
push esi
push edi
jne 0x442abe
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x442af9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46062c
push edi
call esi
test eax, eax
mov dword [0x466280], eax
je 0x442af9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x466284], eax
call esi
cmp dword [0x46621c], 2
mov dword [0x466288], eax
jne 0x442abe
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x466290], eax
je 0x442abe
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46628c], eax
mov eax, dword [0x46628c]
test eax, eax
je 0x442b03
call eax
test eax, eax
je 0x442aea
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x466290]
test eax, eax
je 0x442aea
test byte [ebp - 8], 1
jne 0x442b03
cmp dword [0x466228], 4
jb 0x442afd
or byte [ebp + 0x12], 0x20
jmp 0x442b22
xor eax, eax
jmp 0x442b32
or byte [ebp + 0x12], 4
jmp 0x442b22
mov eax, dword [0x466284]
test eax, eax
je 0x442b22
call eax
mov ebx, eax
test ebx, ebx
je 0x442b22
mov eax, dword [0x466288]
test eax, eax
je 0x442b22
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x466280]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443fa7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x468ae4]
mov eax, dword [0x4635d8]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x44416d
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x468b00]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x44416d
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x444011
xor eax, eax
jmp 0x444181
test al, 0x20
je 0x444022
push 2
push edi
push edi
push ecx
call fcn.00448d0b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4440f7
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x44413e
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x444084
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x444075
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x444057
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4440c4
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4440d0
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x44404b
jmp 0x4440d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x444168
cmp dword [ebp + 0x3a4], edi
je 0x44413e
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x444130
mov dword [0x466214], eax
jmp 0x444174
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x444122
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4440d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4440d2
push dword [ebp + 0x3a4]
call fcn.00446f12
pop ecx
jmp 0x44417e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x444156
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x44400a
mov dword [0x466210], 0x1c
mov dword [0x466214], edi
jmp 0x44417e
sub eax, dword [ebp - 0x7c]
jmp 0x444181
and dword [0x466214], 0
mov dword [0x466210], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00442bd0
add ebp, 0x39c
leave
ret
Function at 0x4444ae
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0043ff70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x444549
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46621c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x444549
cmp eax, 1
je 0x44456a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x444549
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x444516
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x444545
xor eax, eax
inc eax
jmp 0x444589
cmp edi, eax
jae 0x44454d
xor eax, eax
jmp 0x444589
cmp eax, esi
jae 0x444554
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46621c]
jmp 0x44456d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44691d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4635d8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4636d0]
je 0x446952
inc eax
cmp eax, 0x13
jb 0x446943
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4636d0]
jne 0x446a78
mov eax, dword [0x466268]
cmp eax, 1
je 0x446a50
cmp eax, edx
jne 0x446982
cmp dword [0x4635d4], 1
je 0x446a50
cmp ecx, 0xfc
je 0x446a78
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4469b8
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0043fe70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0043fd50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4469ec
mov eax, edi
push eax
call fcn.0043fd50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x45fe28
push edi
call fcn.0043f6d0
add esp, 0x10
push edi
call fcn.0043fd50
push dword [esi + 0x4636d4]
mov ebx, eax
call fcn.0043fd50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043ff70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0043fe70
push edi
push ebx
call fcn.0043fe80
push 0x45fe24
push ebx
call fcn.0043fe80
push dword [esi + 0x4636d4]
push ebx
call fcn.0043fe80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00442a3e
add esp, 0x2c
jmp 0x446a78
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4636d4]
push dword [esi]
call fcn.0043fd50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00442bd0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x446acd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x468ae4]
push edi
jae 0x446ca2
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x468b00]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x446ca2
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x446b78
test dl, 2
jne 0x446b78
test dl, 0x48
je 0x446b42
cmp byte [eax + 5], 0xa
je 0x446b42
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x446b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x446b73
mov dword [0x466214], ecx
jmp 0x446ca9
cmp eax, 0x6d
jne 0x446b7f
xor eax, eax
jmp 0x446cb6
push eax
call fcn.00446f12
pop ecx
jmp 0x446cb3
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x446c9d
test eax, eax
je 0x446bb2
cmp byte [ebx], 0xa
jne 0x446bb2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x446bbb
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x446c97
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x446c87
cmp al, 0xd
je 0x446bed
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x446c79
dec ecx
cmp dword [ebp - 8], ecx
jae 0x446c07
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x446c02
add dword [ebp - 8], 2
jmp 0x446c5b
mov dword [ebp - 8], eax
jmp 0x446c75
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x446c2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x446c75
cmp dword [ebp - 0x10], 0
je 0x446c75
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x446c50
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x446c5b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x446c78
cmp ebx, dword [ebp + 0xc]
jne 0x446c60
cmp byte [ebp - 1], 0xa
jne 0x446c60
mov byte [ebx], 0xa
jmp 0x446c78
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00447eab
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x446c79
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x446bd1
jmp 0x446c97
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x446c97
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x446cb6
and dword [0x466214], 0
mov dword [0x466210], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449062
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x449090
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x449097
cmp ebx, dword [eax + 4]
jae 0x449097
xor eax, eax
jmp 0x449287
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4490a8
xor eax, eax
inc eax
jmp 0x449286
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4490be
cmp ecx, edx
jae 0x449203
cmp dword [eax + 4], 0
je 0x4490c7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4490af
cmp dword [ebp + 8], 0
je 0x4490e9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x449203
cmp eax, esi
jae 0x449203
mov eax, dword [0x466508]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44910e
cmp dword [esi*4 + 0x466510], edi
je 0x449207
inc esi
cmp esi, eax
jl 0x4490fc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x449283
cmp dword [ebp - 8], 0x1000000
jne 0x449283
test byte [ebp - 0xc], 0xcc
je 0x44918c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x449283
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x449283
cmp word [eax + 0x18], 0x10b
jne 0x449283
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x449283
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x44918c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x44918c
test byte [ecx + 0x27], 0x80
jne 0x449203
push 1
push 0x466550
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4490a0
mov ecx, dword [0x466508]
test ecx, ecx
mov edx, ecx
jle 0x4491c0
lea eax, [ecx*4 + 0x46650c]
cmp dword [eax], edi
je 0x4491c0
dec edx
sub eax, 4
test edx, edx
jg 0x4491b4
test edx, edx
jne 0x4491f1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4491cd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4491e5
lea eax, [edx*4 + 0x466510]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4491d3
cmp ecx, 0x10
jge 0x4491f1
inc ecx
mov dword [0x466508], ecx
push 0
push 0x466550
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4490a0
xor eax, eax
jmp 0x449286
test esi, esi
jle 0x4490a0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x466550
call ebx
test eax, eax
jne 0x4490a0
cmp dword [esi*4 + 0x466510], edi
je 0x44925d
mov eax, dword [0x466508]
lea esi, [eax - 1]
test esi, esi
jl 0x44924b
cmp dword [esi*4 + 0x466510], edi
je 0x449247
dec esi
jns 0x44923b
test esi, esi
jge 0x44925b
cmp eax, 0x10
jge 0x449256
inc eax
mov dword [0x466508], eax
lea esi, [eax - 1]
jmp 0x44925d
je 0x449275
xor ecx, ecx
test esi, esi
jl 0x449275
lea eax, [ecx*4 + 0x466510]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x449263
push 0
push 0x466550
call ebx
jmp 0x4490a0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449802
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x44981b
or eax, 0xffffffff
jmp 0x44987c
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x449878
push 0x3d
push esi
call fcn.0044a2a0
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x449878
cmp esi, eax
je 0x449878
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x46623c]
sete cl
cmp eax, dword [0x466240]
mov dword [ebp - 8], ecx
jne 0x44985e
mov edi, eax
call fcn.004497a1
mov dword [0x46623c], eax
cmp eax, ebx
jne 0x4498b7
cmp dword [ebp + 0xc], ebx
je 0x449880
cmp dword [0x466244], ebx
je 0x449880
call fcn.00446e82
test eax, eax
je 0x4498b7
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x449889
xor eax, eax
jmp 0x44987b
push 4
call fcn.0044174b
cmp eax, ebx
pop ecx
mov dword [0x46623c], eax
je 0x449878
mov dword [eax], ebx
cmp dword [0x466244], ebx
jne 0x4498b7
push 4
call fcn.0044174b
cmp eax, ebx
pop ecx
mov dword [0x466244], eax
je 0x449878
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x46623c]
call fcn.00449754
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x449918
cmp dword [esi], ebx
je 0x449918
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004418bf
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4498fb
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x449959
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4498f2
mov eax, edi
shl eax, 2
push eax
push dword [0x46623c]
call fcn.0044175d
cmp eax, ebx
pop ecx
pop ecx
je 0x449959
jmp 0x449954
cmp dword [ebp - 8], ebx
jne 0x4499c4
cmp edi, ebx
jge 0x449927
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46623c]
call fcn.0044175d
cmp eax, ebx
pop ecx
pop ecx
je 0x449878
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x46623c], eax
cmp dword [ebp + 0xc], ebx
je 0x4499ae
push dword [ebp - 4]
call fcn.0043fd50
inc eax
inc eax
push eax
call fcn.0044174b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4499ae
push dword [ebp - 4]
push esi
call fcn.0043fe70
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4499a7
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004418bf
pop ecx
cmp dword [ebp - 8], ebx
je 0x4499bc
push dword [ebp - 4]
call fcn.004418bf
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x44987b
push dword [ebp - 4]
call fcn.004418bf
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x449885
Function at 0x449a1b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0043ff70
mov eax, dword [0x4635d8]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x468ae4]
mov dword [ebp - 4], eax
jae 0x449b5e
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x468b00]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x449b5e
push 1
push esi
push ebx
call fcn.00447eab
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x449b68
push 2
push esi
push ebx
call fcn.00447eab
add esp, 0xc
cmp eax, 0xffffffff
je 0x449b68
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x449b08
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00440010
push 0x8000
push ebx
call fcn.0044a307
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x449ac7
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00443fa7
add esp, 0xc
cmp eax, 0xffffffff
je 0x449ae5
sub edi, eax
test edi, edi
jg 0x449abc
jmp 0x449afb
cmp dword [0x466214], 5
jne 0x449af8
mov dword [0x466210], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0044a307
pop ecx
pop ecx
jmp 0x449b48
jge 0x449b48
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00447eab
push ebx
call fcn.00448f38
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x449b48
mov dword [0x466210], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x466214], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00447eab
add esp, 0xc
mov eax, esi
pop edi
jmp 0x449b6b
mov dword [0x466210], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00442bd0
leave
ret