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

Disassembly:
push 0xffffffffffffffff
push 0x458293
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.00426320
mov byte [esp + 0x30], 1
mov dword [edi], 0x467a08
mov dword [edi + 0x410], 1
mov dword [edi + 0x414], 8
call fcn.0044922a
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.00414f70
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 0x4229e6
cmp eax, dword [ebp]
jne 0x4229e6
mov eax, ebp
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x422a1c
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x422b02
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.00413a50
test al, al
je 0x422a83
push 0x40
call fcn.00449098
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov byte [esp + 0x30], 3
je 0x422a6d
push ecx
mov dword [esp + 0x28], esp
mov edi, esp
push ebp
call fcn.00406ba0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004244a0
mov edi, dword [esp + 0x18]
jmp 0x422a6f
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push 0
mov ecx, eax
mov byte [esp + 0x34], 2
call fcn.004236f0
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 0x422993
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 0x422ac5
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 0x422aeb
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 0x42c630
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 0x42c6c1
cmp eax, 0x100
jge 0x42c6c1
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 0x42c683
test byte [esi + 0x3d], al
je 0x42c688
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.0043c4b6
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.0043c4b6
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43d948
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46d3a8
call fcn.004410dc
mov edi, 0x94
mov eax, edi
call fcn.0043d7d0
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 0x43d9a8
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 0x43d9e3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d9e3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43d9fb
cmp eax, 0x20b
je 0x43d9e8
mov dword [ebp - 0x1c], esi
jmp 0x43da0f
cmp dword [ecx + 0x84], 0xe
jbe 0x43d9e3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43da09
cmp dword [ecx + 0x74], 0xe
jbe 0x43d9e3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00443826
pop ecx
test eax, eax
jne 0x43da23
push 0x1c
call fcn.0043d924
pop ecx
call fcn.00440115
test eax, eax
jne 0x43da34
push 0x10
call fcn.0043d924
pop ecx
call fcn.00444d27
mov dword [ebp - 4], esi
call fcn.00444b29
test eax, eax
jge 0x43da4d
push 0x1b
call fcn.0043d8ff
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47b150], eax
call fcn.00444a07
mov dword [0x4798f0], eax
call fcn.00444965
test eax, eax
jge 0x43da73
push 8
call fcn.0043d8ff
pop ecx
call fcn.00444732
test eax, eax
jge 0x43da84
push 9
call fcn.0043d8ff
pop ecx
call fcn.0043f25a
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x43da97
push eax
call fcn.0043d8ff
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004446c9
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x43dab8
movzx eax, word [ebp - 0x34]
jmp 0x43dabb
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00448948
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43dad9
push edi
call fcn.0043f392
call fcn.0043f3b4
jmp 0x43db0b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00441117
ret
Function at 0x43f18d
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 0x43f1aa
call fcn.0043e597
mov dword [eax], 0x16
xor eax, eax
jmp 0x43f214
push esi
push 0x88
push 1
call fcn.0043fe4d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x43f1ff
push esi
call fcn.0043ff26
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 0x43f1dd
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x43f0e9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x43f213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043d752
test ebx, ebx
pop ecx
je 0x43f211
push ebx
call fcn.0043e5a9
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43f2bf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00441c26
xor esi, esi
inc esi
cmp dword [0x479940], esi
pop ecx
jne 0x43f2e7
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 0x43f34d
mov ecx, dword [0x47b148]
test ecx, ecx
je 0x43f32e
mov eax, dword [0x47b144]
sub eax, 4
cmp eax, ecx
jmp 0x43f327
mov eax, dword [eax]
test eax, eax
je 0x43f319
call eax
mov eax, dword [0x47b144]
sub eax, 4
cmp eax, dword [0x47b148]
mov dword [0x47b144], eax
jae 0x43f311
mov eax, 0x476074
mov esi, 0x47607c
cmp eax, esi
mov edi, eax
jae 0x43f34d
mov eax, dword [edi]
test eax, eax
je 0x43f346
call eax
add edi, 4
cmp edi, esi
jb 0x43f33e
mov eax, 0x476080
mov esi, 0x476088
cmp eax, esi
mov edi, eax
jae 0x43f36c
mov eax, dword [edi]
test eax, eax
je 0x43f365
call eax
add edi, 4
cmp edi, esi
jb 0x43f35d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x43f37d
push 8
call fcn.00441b92
jmp 0x43f38f
push dword [ebp + 8]
mov dword [0x479940], 1
call fcn.0043f218
pop ecx
pop ebp
ret
Function at 0x44241e
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.0043d7d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4424b3
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 0x4424b3
cmp eax, 1
je 0x4424cb
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 0x4424b3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x442488
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4424af
xor eax, eax
inc eax
jmp 0x4424e7
cmp esi, ebx
jae 0x4424b7
xor eax, eax
jmp 0x4424e7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x479900]
jmp 0x4424cd
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 0x4443b5
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 0x4443e2
inc eax
cmp eax, 0x12
jb 0x4443d3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x477188]
jne 0x444516
mov eax, dword [0x4798f8]
cmp eax, 1
je 0x4444f1
cmp eax, edx
jne 0x444412
cmp dword [0x476b44], 1
je 0x4444f1
cmp ecx, 0xfc
je 0x444516
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 0x44444b
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00441cd0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0043de60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44448d
lea eax, [ebp - 0x10c]
push eax
call fcn.0043de60
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d60c
push edi
call fcn.00446890
add esp, 0x10
push edi
call fcn.0043de60
push dword [esi + 0x47718c]
mov ebx, eax
call fcn.0043de60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043d7d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00441cd0
push edi
push ebx
call fcn.00441ce0
push 0x46d608
push ebx
call fcn.00441ce0
push dword [esi + 0x47718c]
push ebx
call fcn.00441ce0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00446790
add esp, 0x2c
jmp 0x444516
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x47718c]
push dword [esi]
call fcn.0043de60
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.0043c4b6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x445436
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 0x4455fc
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 0x4455fc
test cl, 0x48
je 0x44549c
mov al, byte [eax + 5]
cmp al, 0xa
je 0x44549c
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 0x4454ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4454d6
call fcn.0043e597
mov dword [eax], 9
call fcn.0043e5a0
mov dword [eax], esi
jmp 0x4454e6
cmp eax, 0x6d
je 0x4455fc
push eax
call fcn.0043e5a9
pop ecx
or eax, 0xffffffff
jmp 0x4455fe
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 0x4455f7
test edx, edx
je 0x445511
cmp byte [ebx], 0xa
jne 0x445511
or al, 4
jmp 0x445513
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 0x4455f1
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4455e1
cmp al, 0xd
je 0x445547
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4455d3
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x445561
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44555c
add dword [ebp + 0x10], 2
jmp 0x4455b5
mov dword [ebp + 0x10], eax
jmp 0x4455cf
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 0x445589
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4455cf
cmp dword [ebp - 0xc], 0
je 0x4455cf
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4455aa
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4455b5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4455d2
cmp ebx, dword [ebp + 0xc]
jne 0x4455ba
cmp byte [ebp - 1], 0xa
jne 0x4455ba
mov byte [ebx], 0xa
jmp 0x4455d2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004459b0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4455d3
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44552b
jmp 0x4455f1
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4455f1
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4455fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4456ae
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 0x4456d7
xor eax, eax
jmp 0x445845
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 0x44570a
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00447315
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4457dc
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x445817
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 0x445765
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x445756
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 0x445739
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 0x4457a5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4457ae
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x44572a
jmp 0x4457b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x445840
cmp dword [ebp - 8], edi
je 0x445817
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x445809
call fcn.0043e597
mov dword [eax], 9
call fcn.0043e5a0
mov dword [eax], esi
jmp 0x445812
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 0x4457fe
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4457b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4457b0
push dword [ebp - 8]
call fcn.0043e5a9
pop ecx
or eax, 0xffffffff
jmp 0x445843
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44582c
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x44582c
xor eax, eax
jmp 0x445843
call fcn.0043e597
mov dword [eax], 0x1c
call fcn.0043e5a0
mov dword [eax], edi
jmp 0x445812
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0043c4b6
leave
ret
Function at 0x446790
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 0x446810
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44684b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46e29c
push edi
call esi
test eax, eax
mov dword [0x479ce0], eax
je 0x44684b
push 0x46e28c
push edi
call esi
push 0x46e278
push edi
mov dword [0x479ce4], eax
call esi
cmp dword [0x479900], 2
mov dword [0x479ce8], eax
jne 0x446810
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x479cf0], eax
je 0x446810
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x479cec], eax
mov eax, dword [0x479cec]
test eax, eax
je 0x446855
call eax
test eax, eax
je 0x44683c
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 0x44683c
test byte [ebp - 8], 1
jne 0x446855
cmp dword [0x47990c], 4
jb 0x44684f
or byte [ebp + 0x12], 0x20
jmp 0x446874
xor eax, eax
jmp 0x446884
or byte [ebp + 0x12], 4
jmp 0x446874
mov eax, dword [0x479ce4]
test eax, eax
je 0x446874
call eax
mov ebx, eax
test ebx, ebx
je 0x446874
mov eax, dword [0x479ce8]
test eax, eax
je 0x446874
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 0x44859c
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 0x448607
push 0x3d
push dword [ebp + 8]
call fcn.0043df45
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x448607
cmp dword [ebp + 8], esi
je 0x448607
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x479920]
cmp eax, dword [0x479924]
jne 0x4485ed
mov edi, eax
call fcn.0044853b
mov dword [0x479920], eax
cmp eax, ebx
jne 0x448646
cmp dword [ebp + 0xc], ebx
je 0x44860f
cmp dword [0x479928], ebx
je 0x44860f
call fcn.00447e19
test eax, eax
je 0x448646
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x44874a
push 4
call fcn.0043d740
cmp eax, ebx
pop ecx
mov dword [0x479920], eax
je 0x448607
mov dword [eax], ebx
cmp dword [0x479928], ebx
jne 0x448646
push 4
call fcn.0043d740
cmp eax, ebx
pop ecx
mov dword [0x479928], eax
je 0x448607
mov dword [eax], ebx
mov ebx, dword [0x479920]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004484ee
mov edi, eax
test edi, edi
pop ecx
jl 0x44869f
cmp dword [ebx], 0
je 0x44869f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0043d752
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x448687
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4486d5
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x44867e
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0043dfc0
test eax, eax
pop ecx
pop ecx
je 0x4486d5
jmp 0x4486d0
cmp dword [ebp - 4], 0
jne 0x448743
test edi, edi
jge 0x4486af
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0043dfc0
test eax, eax
pop ecx
pop ecx
je 0x448607
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x479920], eax
cmp dword [ebp + 0xc], 0
je 0x44872c
push dword [ebp + 8]
call fcn.0043de60
inc eax
inc eax
push eax
call fcn.0043d740
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44872c
push dword [ebp + 8]
push esi
call fcn.00441cd0
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 0x448725
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0043d752
pop ecx
cmp dword [ebp - 4], 0
je 0x44873b
push dword [ebp + 8]
call fcn.0043d752
pop ecx
mov eax, dword [ebp - 8]
jmp 0x44860a
push esi
call fcn.0043d752
pop ecx
xor eax, eax
jmp 0x44860a
Function at 0x449791
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4595b7
call fcn.0043deec
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 0x4497db
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x449870
push ebx
call fcn.0044922a
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.0044974f
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x449862
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 0x449865
test byte [ebp + 8], 2
jne 0x449830
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x449862
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x449862
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.0043c4b6
leave
ret 8