joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e90
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e340
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x530], ecx
mov dword [ebp - 0x52c], ecx
mov dword [ebp - 0x528], ecx
mov dword [ebp - 0x524], ecx
push 0x44
push 0
lea edx, [ebp - 0x250]
push edx
call fcn.0040e340
add esp, 0xc
mov dword [ebp - 0x250], 0x44
mov dword [ebp - 0x224], 1
xor eax, eax
mov word [ebp - 0x220], ax
push 0x2cc
push 0
lea ecx, [ebp - 0x51c]
push ecx
call fcn.0040e340
add esp, 0xc
mov ecx, 0x82
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x530]
push edx
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x4000
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x40
push 0x3000
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x520], eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x530]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x51c], 0x10007
lea edx, [ebp - 0x51c]
push edx
mov eax, dword [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, dword [ebp - 0x478]
push ecx
mov edx, dword [ebp - 0x530]
push edx
call fcn.00407e30
add esp, 8
mov dword [ebp - 0x534], eax
push 0
push 4
lea eax, [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x534]
add ecx, 0xb8
push ecx
mov edx, dword [ebp - 0x530]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c56e
mov esp, ebp
pop ebp
ret
Function at 0x4085f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x40861a
jl 0x408611
cmp dword [ebp + 0xc], 0
ja 0x40861a
xor eax, eax
xor edx, edx
jmp 0x408751
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x40863c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00406320
jmp 0x408751
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.00406830
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4086ab
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004048e0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00406990
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00403330
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00406910
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x408742
mov ecx, dword [ebp - 0x10]
call fcn.00409540
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x40871b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041bc0d
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x408719
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x408751
jmp 0x4086c7
cmp dword [ebp - 8], 0
jbe 0x408742
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0041bc0d
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c56e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40cf18
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40cf57
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cf57
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cf57
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40cf57
cmp dword [ecx + 0x74], 0xe
jbe 0x40cf57
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42109c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436240
push 0x436238
push str.FlsAlloc
push 0x1f
call fcn.00420f07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4210d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321ac]
call esi
jmp 0x4210d6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42111a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436250
push 0x436248
push str.FlsGetValue
push 0x21
call fcn.00420f07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421151
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421159
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436258
push 0x436250
push str.FlsSetValue
push 0x22
call fcn.00420f07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421193
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4321ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4245ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d2b0
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00422609
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42462e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42478a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00430b30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43fde8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004253ed
mov ecx, dword [esi*4 + 0x43fde8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x424783
cmp eax, dword [ecx + edi + 0x24]
jne 0x424783
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424783
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004253ed
add esp, 0x14
test edx, edx
jl 0x424783
jg 0x4246f9
test eax, eax
jb 0x424783
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x424783
jl 0x424713
cmp dword [ebp - 0x1008], eax
ja 0x424783
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x424731
test ebx, ebx
je 0x42476a
cmp ecx, edi
jae 0x42476a
mov al, byte [ecx]
cmp al, 0xd
jne 0x42474b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x424757
cmp byte [ecx + 1], 0xa
jne 0x424757
inc ecx
jmp 0x424757
movzx eax, al
movsx eax, byte [eax + 0x43e4e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x424731
cmp edx, ebx
jne 0x424731
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x424788
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c56e
leave
ret
Function at 0x424885
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43fde8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4248c5
cmp byte [ebx], 0xa
jne 0x4248c5
or byte [edi + eax + 0x28], 4
jmp 0x4248ca
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4249c9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4249ac
inc eax
cmp dl, 0xd
je 0x4248f6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42491c
cmp eax, ecx
jae 0x42492a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4248de
jmp 0x4249c9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4249a7
cmp dword [ebp - 0x10], 0
je 0x4249a7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43fde8]
test byte [eax + edi + 0x28], 0x48
je 0x424981
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42496c
mov byte [esi], dl
jmp 0x42497d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43fde8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4249c9
cmp byte [ebp - 1], 0xa
jne 0x424990
cmp esi, ebx
jne 0x424990
mov byte [esi], 0xa
jmp 0x4249c8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042540b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4249c9
mov byte [esi], 0xd
jmp 0x4249c8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43fde8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4249c6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4249c9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4249d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x43fde8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x424a18
cmp word [ebx], dx
jne 0x424a18
or byte [eax + edi + 0x28], 4
jmp 0x424a1d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x424b80
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x424b60
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x424a5e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x424a94
cmp eax, edx
jae 0x424aa2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x424a39
jmp 0x424b80
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424b5b
cmp dword [ebp - 0x18], 0
je 0x424b5b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43fde8]
test byte [eax + edi + 0x28], 0x48
je 0x424b31
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x424af5
mov word [esi], cx
jmp 0x424b2c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43fde8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43fde8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43fde8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424b80
pop eax
cmp word [ebp - 4], ax
jne 0x424b41
cmp esi, ebx
jne 0x424b41
mov word [esi], ax
jmp 0x424b7d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042540b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424b80
push 0xd
pop eax
jmp 0x424b3c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43fde8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424b7a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424b80
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428527
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4285c4
push ebx
push esi
call fcn.004284f0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00422a2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x428571
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4285c3
push edi
push eax
call fcn.004216cf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x428591
call fcn.004205a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4285c2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422a2a
add esp, 0x20
test eax, eax
jne 0x4285b0
push edi
call fcn.004205a2
jmp 0x4285b8
push ebx
call fcn.004205a2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42ad6f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042091a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42adde
cmp esi, dword [ebp - 4]
je 0x42add9
cmp dword [ebp + 0xc], 0
je 0x42add9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42adb6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042a8c1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42ade0
xor eax, eax
inc eax
jmp 0x42ade0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42ae45
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042091a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042091a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42aebc
cmp word [ecx], dx
je 0x42aebc
mov eax, dword [0x43695c]
push edi
dec eax
push eax
push 0x436848
call fcn.0042ade4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42af2f
cmp word [eax], dx
je 0x42af2f
mov eax, dword [edi]
test eax, eax
je 0x42aee0
cmp word [eax], dx
je 0x42aee0
lea eax, [ebp - 0x10]
push eax
call fcn.0042a7c7
jmp 0x42aee9
lea eax, [ebp - 0x10]
push eax
call fcn.0042a862
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42af59
mov eax, dword [0x436844]
push dword [ebp - 0x14]
dec eax
push eax
push 0x436538
call fcn.0042ade4
add esp, 0xc
test al, al
je 0x42af59
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42af24
cmp word [eax], di
je 0x42af24
lea eax, [ebp - 0x10]
push eax
call fcn.0042a7c7
pop ecx
jmp 0x42af5b
lea eax, [ebp - 0x10]
push eax
call fcn.0042a862
jmp 0x42af21
mov eax, dword [edi]
test eax, eax
je 0x42af46
cmp word [eax], dx
je 0x42af46
lea eax, [ebp - 0x10]
push eax
call fcn.0042a77c
pop ecx
jmp 0x42af59
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42b024
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042ac69
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42b024
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42b024
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42b024
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42afb1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00421299
test ebx, ebx
je 0x42b01f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00421299
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b024
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b024
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042ee97
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42b026
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c56e
leave
ret
Function at 0x42f615
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042f591
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42f784
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42f784
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42f739
jg 0x42f671
test eax, eax
je 0x42f72f
push 1
push 0x1000
call fcn.00420c05
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42f694
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42f726
push 0x8000
push ebx
call fcn.0041d9b8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42f6bd
jg 0x42f6b8
cmp ecx, 0x1000
jb 0x42f6bd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00423944
add esp, 0x10
cmp eax, 0xffffffff
je 0x42f702
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42f6b8
jl 0x42f6e9
test ecx, ecx
jne 0x42f6aa
push dword [ebp - 0xc]
push ebx
call fcn.0041d9b8
push esi
call fcn.004205a2
add esp, 0xc
xor ebx, ebx
jmp 0x42f792
cmp byte [edi + 0x24], 0
je 0x42f719
cmp dword [edi + 0x20], 5
jne 0x42f719
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42f724
mov ebx, dword [edi + 0x18]
jmp 0x42f726
xor ebx, ebx
push esi
call fcn.004205a2
pop ecx
jmp 0x42f792
test ecx, ecx
jg 0x42f6fb
jl 0x42f739
test eax, eax
jae 0x42f6fb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042540b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42f759
cmp byte [edi + 0x1c], 0
je 0x42f6fb
jmp 0x42f78a
push ebx
call fcn.00428d40
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42f6fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42f792
cmp byte [edi + 0x1c], 0
je 0x42f78f
mov ebx, dword [edi + 0x18]
jmp 0x42f792
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042540b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430af0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x430b1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430b1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403880
Capabilities:
Terminate process

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
call fcn.0041f610
cmp dword [esp + 0x424], 1
jl 0x4038a5
mov esi, dword [eax + 0xc]
add esi, 0xc
mov dword [esp + 0x14], esi
jmp 0x4038b1
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x14]
mov ebp, dword [0x4820cc]
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [0x4821a8]
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x220]
push edx
push 0
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00457f3f
add esp, 0x14
test esi, esi
je 0x403918
cmp byte [esi], 0
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x220]
push edx
je 0x403928
push esi
lea eax, [esp + 0x24]
push str.a:_s_bin_s_s
push eax
call fcn.00457790
add esp, 0x14
jmp 0x40393a
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x20]
push str.a:_bin_s_s
push eax
call fcn.00457790
add esp, 0x10
mov dword [esp + 0x10], 0
mov ecx, dword [0x4881f8]
mov bl, byte [esp + 0x10]
lea edx, [esp + 0x31c]
mov dword [esp + 0x31c], ecx
add bl, 0x61
push edx
mov byte [esp + 0x320], bl
call dword [0x4821b0]
cmp eax, 5
jne 0x4039a6
push 1
call ebp
mov edi, eax
lea eax, [esp + 0x18]
push 0x4881f4
push eax
mov byte [esp + 0x20], bl
call fcn.00457a19
mov esi, eax
add esp, 8
test esi, esi
je 0x40399b
push esi
call fcn.00457832
add esp, 4
push edi
call ebp
test esi, esi
jne 0x403a19
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x1a
mov dword [esp + 0x10], eax
jl 0x403942
call fcn.00441830
call fcn.00445070
call fcn.00444e40
push eax
call dword [0x482264]
push 5
call fcn.00444e50
push eax
push 0x4881c8
call fcn.00444e40
push eax
call dword [0x482268]
cmp eax, 2
jne 0x4038b7
push 0
call fcn.0041f630
add esp, 4
call fcn.0041fdb0
call fcn.0040afb0
call fcn.004260d0
call fcn.004264a0
push 0
call dword [0x482260]
push 0
call fcn.00458675
push 0
call fcn.0041f630
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret