joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428240
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x458223
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], 0
call fcn.0042bc50
mov byte [esp + 0x30], 1
mov dword [edi], 0x467ef8
mov dword [edi + 0x410], 1
mov dword [edi + 0x414], 8
call fcn.00448d4a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
lea ecx, [edi + 0x10]
mov byte [esp + 0x30], 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push str._s__d.bmp
push ecx
mov dword [edx], 0
call fcn.0041ac70
mov ebp, dword [esp + 0x24]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
add ebp, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x24], esp
mov ebx, esp
call dword [edx + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
lea edx, [ebp + 0xc]
jl 0x428306
cmp eax, dword [ebp]
jne 0x428306
mov eax, ebp
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x42833c
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x428422
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x477970]
mov ecx, dword [eax + 0x18]
call fcn.00413990
test al, al
je 0x4283a3
push 0x40
call fcn.00448bb8
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov byte [esp + 0x30], 3
je 0x42838d
push ecx
mov dword [esp + 0x28], esp
mov edi, esp
push ebp
call fcn.00406b60
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00429dc0
mov edi, dword [esp + 0x18]
jmp 0x42838f
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push 0
mov ecx, eax
mov byte [esp + 0x34], 2
call fcn.00429010
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 0x100
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jl 0x4282b3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4283e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42840b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4
call fcn.00401f10
int3
Function at 0x431f60
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x476a54]
xor eax, dword [ebp + 4]
push esi
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 8]
test eax, eax
push edi
mov esi, ecx
je 0x431ff1
cmp eax, 0x100
jge 0x431ff1
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov cl, byte [esi + 0x31]
mov al, 0x80
test al, cl
jne 0x431fb3
test byte [esi + 0x3d], al
je 0x431fb8
mov byte [esp + 0x20], 0xff
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_ToAscii]
mov ecx, dword [esp + 0xc]
test eax, eax
setle al
dec al
and eax, ecx
mov ecx, dword [esp + 0x114]
xor ecx, dword [ebp + 4]
call fcn.0043bfd6
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x114]
xor ecx, dword [ebp + 4]
xor al, al
call fcn.0043bfd6
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43d468
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46d3a0
call fcn.00440bfc
mov edi, 0x94
mov eax, edi
call fcn.0043d2f0
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 [0x479900], ecx
mov eax, dword [esi + 4]
mov dword [0x47990c], eax
mov edx, dword [esi + 8]
mov dword [0x479910], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x479904], esi
cmp ecx, 2
je 0x43d4c8
or esi, 0x8000
mov dword [0x479904], esi
shl eax, 8
add eax, edx
mov dword [0x479908], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43d503
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d503
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43d51b
cmp eax, 0x20b
je 0x43d508
mov dword [ebp - 0x1c], esi
jmp 0x43d52f
cmp dword [ecx + 0x84], 0xe
jbe 0x43d503
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43d529
cmp dword [ecx + 0x74], 0xe
jbe 0x43d503
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00443346
pop ecx
test eax, eax
jne 0x43d543
push 0x1c
call fcn.0043d444
pop ecx
call fcn.0043fc35
test eax, eax
jne 0x43d554
push 0x10
call fcn.0043d444
pop ecx
call fcn.00444847
mov dword [ebp - 4], esi
call fcn.00444649
test eax, eax
jge 0x43d56d
push 0x1b
call fcn.0043d41f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47b150], eax
call fcn.00444527
mov dword [0x4798f0], eax
call fcn.00444485
test eax, eax
jge 0x43d593
push 8
call fcn.0043d41f
pop ecx
call fcn.00444252
test eax, eax
jge 0x43d5a4
push 9
call fcn.0043d41f
pop ecx
call fcn.0043ed7a
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x43d5b7
push eax
call fcn.0043d41f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004441e9
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x43d5d8
movzx eax, word [ebp - 0x34]
jmp 0x43d5db
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00448468
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43d5f9
push edi
call fcn.0043eeb2
call fcn.0043eed4
jmp 0x43d62b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00440c37
ret
Function at 0x43ecad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x43ecca
call fcn.0043e0b7
mov dword [eax], 0x16
xor eax, eax
jmp 0x43ed34
push esi
push 0x88
push 1
call fcn.0043f96d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x43ed1f
push esi
call fcn.0043fa46
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x43ecfd
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x43ec09
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x43ed33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043d272
test ebx, ebx
pop ecx
je 0x43ed31
push ebx
call fcn.0043e0c9
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43eddf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00441746
xor esi, esi
inc esi
cmp dword [0x479940], esi
pop ecx
jne 0x43ee07
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 [0x47993c], esi
mov byte [0x479938], al
jne 0x43ee6d
mov ecx, dword [0x47b148]
test ecx, ecx
je 0x43ee4e
mov eax, dword [0x47b144]
sub eax, 4
cmp eax, ecx
jmp 0x43ee47
mov eax, dword [eax]
test eax, eax
je 0x43ee39
call eax
mov eax, dword [0x47b144]
sub eax, 4
cmp eax, dword [0x47b148]
mov dword [0x47b144], eax
jae 0x43ee31
mov eax, 0x476074
mov esi, 0x47607c
cmp eax, esi
mov edi, eax
jae 0x43ee6d
mov eax, dword [edi]
test eax, eax
je 0x43ee66
call eax
add edi, 4
cmp edi, esi
jb 0x43ee5e
mov eax, 0x476080
mov esi, 0x476088
cmp eax, esi
mov edi, eax
jae 0x43ee8c
mov eax, dword [edi]
test eax, eax
je 0x43ee85
call eax
add edi, 4
cmp edi, esi
jb 0x43ee7d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x43ee9d
push 8
call fcn.004416b2
jmp 0x43eeaf
push dword [ebp + 8]
mov dword [0x479940], 1
call fcn.0043ed38
pop ecx
pop ebp
ret
Function at 0x441f3e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0043d2f0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x441fd3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x479900]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x441fd3
cmp eax, 1
je 0x441feb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x441fd3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x441fa8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x441fcf
xor eax, eax
inc eax
jmp 0x442007
cmp esi, ebx
jae 0x441fd7
xor eax, eax
jmp 0x442007
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x479900]
jmp 0x441fed
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443ed5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x476a54]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x477188]
je 0x443f02
inc eax
cmp eax, 0x12
jb 0x443ef3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x477188]
jne 0x444036
mov eax, dword [0x4798f8]
cmp eax, 1
je 0x444011
cmp eax, edx
jne 0x443f32
cmp dword [0x476b44], 1
je 0x444011
cmp ecx, 0xfc
je 0x444036
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x443f6b
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004417f0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0043d980
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x443fad
lea eax, [ebp - 0x10c]
push eax
call fcn.0043d980
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d604
push edi
call fcn.004463b0
add esp, 0x10
push edi
call fcn.0043d980
push dword [esi + 0x47718c]
mov ebx, eax
call fcn.0043d980
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043d2f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004417f0
push edi
push ebx
call fcn.00441800
push 0x46d600
push ebx
call fcn.00441800
push dword [esi + 0x47718c]
push ebx
call fcn.00441800
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004462b0
add esp, 0x2c
jmp 0x444036
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x47718c]
push dword [esi]
call fcn.0043d980
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0043bfd6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444f56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44511c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47ade0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44511c
test cl, 0x48
je 0x444fbc
mov al, byte [eax + 5]
cmp al, 0xa
je 0x444fbc
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44500e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x444ff6
call fcn.0043e0b7
mov dword [eax], 9
call fcn.0043e0c0
mov dword [eax], esi
jmp 0x445006
cmp eax, 0x6d
je 0x44511c
push eax
call fcn.0043e0c9
pop ecx
or eax, 0xffffffff
jmp 0x44511e
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x445117
test edx, edx
je 0x445031
cmp byte [ebx], 0xa
jne 0x445031
or al, 4
jmp 0x445033
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x445111
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x445101
cmp al, 0xd
je 0x445067
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4450f3
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x445081
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44507c
add dword [ebp + 0x10], 2
jmp 0x4450d5
mov dword [ebp + 0x10], eax
jmp 0x4450ef
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x4450a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4450ef
cmp dword [ebp - 0xc], 0
je 0x4450ef
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4450ca
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4450d5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4450f2
cmp ebx, dword [ebp + 0xc]
jne 0x4450da
cmp byte [ebp - 1], 0xa
jne 0x4450da
mov byte [ebx], 0xa
jmp 0x4450f2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004454d0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4450f3
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44504b
jmp 0x445111
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x445111
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x44511e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4451ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x476a54]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4451f7
xor eax, eax
jmp 0x445365
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x47ade0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44522a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00446e35
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4452fc
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x445337
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x445285
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x445276
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x445259
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4452c5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4452ce
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x44524a
jmp 0x4452d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x445360
cmp dword [ebp - 8], edi
je 0x445337
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x445329
call fcn.0043e0b7
mov dword [eax], 9
call fcn.0043e0c0
mov dword [eax], esi
jmp 0x445332
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44531e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4452d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4452d0
push dword [ebp - 8]
call fcn.0043e0c9
pop ecx
or eax, 0xffffffff
jmp 0x445363
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44534c
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x44534c
xor eax, eax
jmp 0x445363
call fcn.0043e0b7
mov dword [eax], 0x1c
call fcn.0043e0c0
mov dword [eax], edi
jmp 0x445332
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0043bfd6
leave
ret
Function at 0x4462b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x479ce0], ebx
push esi
push edi
jne 0x446330
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44636b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46e294
push edi
call esi
test eax, eax
mov dword [0x479ce0], eax
je 0x44636b
push 0x46e284
push edi
call esi
push 0x46e270
push edi
mov dword [0x479ce4], eax
call esi
cmp dword [0x479900], 2
mov dword [0x479ce8], eax
jne 0x446330
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x479cf0], eax
je 0x446330
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x479cec], eax
mov eax, dword [0x479cec]
test eax, eax
je 0x446375
call eax
test eax, eax
je 0x44635c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x479cf0]
test eax, eax
je 0x44635c
test byte [ebp - 8], 1
jne 0x446375
cmp dword [0x47990c], 4
jb 0x44636f
or byte [ebp + 0x12], 0x20
jmp 0x446394
xor eax, eax
jmp 0x4463a4
or byte [ebp + 0x12], 4
jmp 0x446394
mov eax, dword [0x479ce4]
test eax, eax
je 0x446394
call eax
mov ebx, eax
test ebx, ebx
je 0x446394
mov eax, dword [0x479ce8]
test eax, eax
je 0x446394
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x479ce0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4480bc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x448127
push 0x3d
push dword [ebp + 8]
call fcn.0043da65
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x448127
cmp dword [ebp + 8], esi
je 0x448127
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x479920]
cmp eax, dword [0x479924]
jne 0x44810d
mov edi, eax
call fcn.0044805b
mov dword [0x479920], eax
cmp eax, ebx
jne 0x448166
cmp dword [ebp + 0xc], ebx
je 0x44812f
cmp dword [0x479928], ebx
je 0x44812f
call fcn.00447939
test eax, eax
je 0x448166
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x44826a
push 4
call fcn.0043d260
cmp eax, ebx
pop ecx
mov dword [0x479920], eax
je 0x448127
mov dword [eax], ebx
cmp dword [0x479928], ebx
jne 0x448166
push 4
call fcn.0043d260
cmp eax, ebx
pop ecx
mov dword [0x479928], eax
je 0x448127
mov dword [eax], ebx
mov ebx, dword [0x479920]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0044800e
mov edi, eax
test edi, edi
pop ecx
jl 0x4481bf
cmp dword [ebx], 0
je 0x4481bf
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0043d272
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4481a7
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4481f5
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x44819e
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0043dae0
test eax, eax
pop ecx
pop ecx
je 0x4481f5
jmp 0x4481f0
cmp dword [ebp - 4], 0
jne 0x448263
test edi, edi
jge 0x4481cf
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0043dae0
test eax, eax
pop ecx
pop ecx
je 0x448127
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x479920], eax
cmp dword [ebp + 0xc], 0
je 0x44824c
push dword [ebp + 8]
call fcn.0043d980
inc eax
inc eax
push eax
call fcn.0043d260
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44824c
push dword [ebp + 8]
push esi
call fcn.004417f0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x448245
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0043d272
pop ecx
cmp dword [ebp - 4], 0
je 0x44825b
push dword [ebp + 8]
call fcn.0043d272
pop ecx
mov eax, dword [ebp - 8]
jmp 0x44812a
push esi
call fcn.0043d272
pop ecx
xor eax, eax
jmp 0x44812a
Function at 0x4492b1
Capabilities:
Get disk information

Disassembly:
mov eax, 0x458fb9
call fcn.0043da0c
sub esp, 0x14c
mov eax, dword [0x476a54]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4492fb
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x449390
push ebx
call fcn.00448d4a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0044926f
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x449382
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x449385
test byte [ebp + 8], 2
jne 0x449350
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x449382
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x449382
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401ef0
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0043bfd6
leave
ret 8