joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e77
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
sub eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x4268c0
mov dword [ebx + 0x60], 0x42683c
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], 0x42687c
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.0040a1a0
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.0040e8b0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x40cf0b
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
push esi
pop ecx
call fcn.0040a060
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], 0x4268bc
call fcn.0040e530
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], 0x426880
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x461854]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40dfa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421b28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40e131
cmp byte [ebx + 0x49], 0
je 0x40e131
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x40e125
lea esi, [ebp - 0x2c]
call fcn.0040db80
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40e013
lea edx, [ebp - 0x2c]
push edx
pop eax
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40e04c
dec eax
je 0x40e050
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40e12c
call fcn.0040c740
xor al, al
jmp 0x40e133
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40e060
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40e08d
cmp edi, 0x10
jae 0x40e06f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004116c2
add esp, 0x10
cmp esi, eax
jne 0x40e11d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40e129
or esi, esi
jne 0x40e007
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40e14e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40e14e
cmp edi, esi
jae 0x40e106
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040e740
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
or esi, esi
je 0x40e007
push eax
pop ecx
cmp edi, 0x10
jae 0x40e0e2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
sub eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40e0fd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x40e001
test esi, esi
jne 0x40e0d8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40e115
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x40e001
lea ecx, [ebp - 0x2c]
call fcn.0040c740
xor al, al
jmp 0x40e133
lea ecx, [ebp - 0x2c]
call fcn.0040c740
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004106c7
push ebp
pop esp
pop ebp
ret
push str.string_too_long
call fcn.0040f915
int3
Function at 0x40e530
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x421afb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x426840
call fcn.00410365
push 4
mov dword [ebp - 4], 0
call fcn.00410ba6
mov edi, eax
add esp, 4
test edi, edi
je 0x40e5ac
call fcn.0040fd36
mov dword [edi], eax
call fcn.0040faf5
push 0
lea ecx, [ebp - 0x10]
push eax
pop ebx
call fcn.0040fa2a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40e5a2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040fa52
jmp 0x40e5ae
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
push esi
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 4
Function at 0x40f0b0
Capabilities:
Set registry value

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x421e28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42b428
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42b474
push ecx
mov byte [ebp - 4], 1
call fcn.004097b0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406ea0
add esp, 4
cmp eax, ebx
je 0x40f141
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.004069d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40f1cd
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40f1cd
cmp dword [esi - 0xc], ebx
je 0x40f1cd
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40f1cd
sub ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040f030
test eax, eax
jne 0x40f1b1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40f1b1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40f1b4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40f1c2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40f160
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f1ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f210
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or eax, eax
jne 0x40f5be
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40f58d
cmp eax, 2
jne 0x40f5a8
mov eax, dword [ebp - 4]
test esi, esi
je 0x40f5b8
test eax, eax
je 0x40f5b3
test al, 1
jne 0x40f5a8
push eax
pop ecx
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40f5b8
push 0xd
nop
pop eax
nop
push ebp
pop esp
pop ebp
ret 8
sub edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
sub eax, eax
push ebp
pop esp
pop ebp
ret 8

Function at 0x4106c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a520]
jne 0x4106d1
repz ret
jmp fcn.004166aa

Function at 0x415646
Capabilities:
Write file on windows

Disassembly:
pushfd
popfd
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00415620
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x4157e6
push 3
call fcn.0041ef55
pop ecx
cmp eax, 1
je 0x415792
push 3
call fcn.0041ef55
pop ecx
or eax, eax
jne 0x4156a4
cmp dword [0x42a1f4], 1
je 0x415792
cmp esi, 0xfc
je 0x4157e6
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x460a78
push edi
call fcn.0041a459
add esp, 0xc
or eax, eax
jne 0x415788
push 0x104
mov esi, 0x460aaa
push esi
push ebx
mov word [0x460cb2], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x415710
push str._program_name_unknown_
push ebx
push esi
call fcn.0041a459
add esp, 0xc
test eax, eax
je 0x415710
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00416ac4
push esi
call fcn.0041ef3a
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415747
push esi
call fcn.0041ef3a
lea eax, [eax*2 + 0x460a34]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x42482c
sub ebx, ecx
push ebx
push eax
call fcn.0041ee6d
add esp, 0x14
test eax, eax
jne 0x415704
push 0x424824
mov esi, 0x314
push esi
push edi
call fcn.0041edf8
add esp, 0xc
test eax, eax
jne 0x415704
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.0041edf8
add esp, 0xc
test eax, eax
jne 0x415704
push 0x12010
push 0x4247d8
push edi
call fcn.0041ec8c
add esp, 0xc
jmp 0x4157e6
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x41570b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x4157e6
cmp esi, 0xffffffff
je 0x4157e6
sub eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x4157bf
inc eax
cmp eax, 0x1f4
jb 0x4157a7
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00414380
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret
Function at 0x415c9e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
pop esi
sub ecx, ecx
cmp esi, ecx
jne 0x415cb3
xor eax, eax
pop esi
ret
cmp word [esi], cx
je 0x415cc8
add eax, 2
cmp word [eax], cx
jne 0x415cb8
add eax, 2
cmp word [eax], cx
jne 0x415cb8
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.00414268
push eax
pop edi
pop ecx
test edi, edi
jne 0x415ce9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.004137c0
add esp, 0xc
jmp 0x415cdc

Function at 0x4187e7
Capabilities:
Read file on windows

Disassembly:
pushfd
popfd
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or esi, esi
jne 0x418809
call fcn.00416b68
mov dword [eax], 0x16
call fcn.00416b16
jmp 0x418903
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x418903
test al, 0x40
jne 0x418903
test al, 2
je 0x41882b
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x418903
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x418841
push esi
call fcn.0041892f
pop ecx
jmp 0x418846
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.00418909
pop ecx
push eax
call fcn.0041fb9a
add esp, 0xc
mov dword [esi + 4], eax
or eax, eax
je 0x4188f2
cmp eax, 0xffffffff
je 0x4188f2
test byte [esi + 0xc], 0x82
jne 0x4188c7
push esi
call fcn.00418909
pop ecx
cmp eax, 0xffffffff
je 0x4188b2
push esi
call fcn.00418909
pop ecx
cmp eax, 0xfffffffe
je 0x4188b2
push edi
push esi
call fcn.00418909
sar eax, 5
push esi
lea edi, [eax*4 + 0x461880]
call fcn.00418909
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
pop edi
jmp 0x4188b7
mov eax, 0x42a4d8
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4188c7
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4188e5
mov eax, dword [esi + 0xc]
test al, 8
je 0x4188e5
test eax, 0x400
jne 0x4188e5
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x418906
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
and dword [esi + 4], 0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x41c4ed
Capabilities:
Get geographical location

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
push ecx
test esi, esi
je 0x41c547
cmp byte [esi], 0
je 0x41c547
push 0x4254f0
push esi
call fcn.00416c30
pop ecx
pop ecx
or eax, eax
je 0x41c547
push 0x4254ec
push esi
call fcn.00416c30
pop ecx
pop ecx
or eax, eax
jne 0x41c53b
push 2
lea eax, [ebp - 4]
push eax
push 0x2000000b
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c55f
mov eax, dword [ebp - 4]
leave
ret
push esi
call fcn.00420d2a
pop ecx
mov dword [ebp - 4], eax
jmp 0x41c536
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x41c563
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0
jne 0x41c536
call dword [sym.imp.KERNEL32.dll_GetACP]
leave
ret

Function at 0x41c689
Capabilities:
Get geographical location

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, esi
and eax, 0x3ff
push 0x20000001
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x41c6b8
xor eax, eax
jmp 0x41c6e1
cmp esi, dword [ebp - 4]
je 0x41c6de
cmp dword [ebp + 8], 0
je 0x41c6de
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
push edi
push esi
pop edx
call fcn.0041c5c7
push esi
push eax
pop edi
call fcn.00414380
pop ecx
cmp edi, eax
pop edi
je 0x41c6b4
sub eax, eax
inc eax
pop esi
leave
ret
Function at 0x41e448
Capabilities:
Get geographical location

Disassembly:
push esi
pop esi
push ebp
push esp
pop ebp
sub esp, 0x90
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
jne 0x41e565
and dword [ebp - 0x8c], 0
push 0x80
lea ebx, [ebp - 0x84]
mov ecx, ebx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00421033
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41e502
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41e523
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00421033
add esp, 0x14
mov dword [ebp - 0x90], eax
or eax, eax
je 0x41e523
inc esi
push esi
push eax
call fcn.004142ad
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41e523
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00421033
push eax
pop esi
add esp, 0x14
or esi, esi
je 0x41e51c
push 1
push esi
call fcn.004142ad
mov dword [edi], eax
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
jne 0x41e535
cmp dword [ebp - 0x8c], edi
je 0x41e523
push ebx
call fcn.00410b6c
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret
lea ecx, [esi - 1]
push ecx
push ebx
push esi
push eax
call fcn.0041c3d6
add esp, 0x10
or eax, eax
jne 0x41e55b
cmp dword [ebp - 0x8c], edi
je 0x41e557
push ebx
call fcn.00410b6c
pop ecx
sub eax, eax
jmp 0x41e526
push edi
push edi
push edi
push edi
push edi
call fcn.00416ac4
cmp dword [ebp + 0xc], 2
jne 0x41e5b3
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [edi], eax
push dword [ebp + 0x10]
call esi
push eax
pop ebx
or ebx, ebx
je 0x41e5a3
push 2
push ebx
call fcn.004142ad
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
je 0x41e5a3
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
or eax, eax
jne 0x41e557
push dword [edi]
call fcn.00410b6c
and dword [edi], 0
pop ecx
jmp 0x41e523
cmp dword [ebp + 0xc], 0
jne 0x41e523
and dword [ebp - 0x88], 0
push 2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e523
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x41e557

Function at 0x41eb40
Capabilities:
Parse pe header

Disassembly:
pushal
popal
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41eb56
sub eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41eb52
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
push edx
pop eax
pop ebp
ret
Function at 0x41eb80
Capabilities:
Enumerate pe sections

Disassembly:
push edx
pop edx
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x41ebbd
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x41ebb5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x41ebbf
inc edx
add eax, 0x28
cmp edx, esi
jb 0x41eba5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41ec8c
Capabilities:
Link many functions at runtime

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415f87
and dword [ebp - 0x14], 0
cmp dword [0x461790], 0
mov dword [ebp - 0x18], eax
jne 0x41ed3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
pop ebx
or ebx, ebx
je 0x41ede7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ede7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x461790], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x461794], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x461798], eax
call edi
push eax
call esi
mov dword [0x4617a0], eax
or eax, eax
je 0x41ed3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46179c], eax
mov eax, dword [0x46179c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed98
cmp dword [0x4617a0], ecx
je 0x41ed98
push eax
call esi
push dword [0x4617a0]
push eax
pop edi
call esi
push eax
pop ebx
or edi, edi
je 0x41ed98
or ebx, ebx
je 0x41ed98
call edi
or eax, eax
je 0x41ed8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed8f
test byte [ebp - 8], 1
jne 0x41ed98
or dword [ebp + 0x10], 0x200000
jmp 0x41edcb
mov eax, dword [0x461794]
cmp eax, dword [ebp - 0x18]
je 0x41edcb
push eax
call esi
test eax, eax
je 0x41edcb
call eax
mov dword [ebp - 0x14], eax
or eax, eax
je 0x41edcb
mov eax, dword [0x461798]
cmp eax, dword [ebp - 0x18]
je 0x41edcb
push eax
call esi
test eax, eax
je 0x41edcb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x461790]
call esi
test eax, eax
je 0x41ede7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ede9
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret
Function at 0x4215b2
Capabilities:
Clear file content

Disassembly:
pushfd
popfd
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041a765
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x42163a
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0041a765
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x42163a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4216cf
jg 0x421613
cmp esi, ebx
jbe 0x4216cf
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
or eax, eax
jne 0x421646
call fcn.00416b68
mov dword [eax], 0xc
call fcn.00416b68
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.00421768
pop ecx
pop ecx
mov dword [ebp - 8], eax
or edi, edi
jl 0x421666
jg 0x421662
cmp esi, ebx
jb 0x421666
push ebx
pop eax
jmp 0x421668
push esi
pop eax
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00418ec2
add esp, 0xc
cmp eax, 0xffffffff
je 0x4216b2
cdq
sub esi, eax
sbb edi, edx
js 0x421689
jg 0x421658
or esi, esi
jne 0x421658
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00421768
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x421738
call fcn.00416b7b
cmp dword [eax], 5
jne 0x4216c7
call fcn.00416b68
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x42168c
cmp edi, ebx
jg 0x421744
jl 0x4216d9
cmp esi, ebx
jae 0x421744
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a765
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42163a
push dword [ebp + 8]
call fcn.00420922
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x421744
call fcn.00416b68
mov dword [eax], 0xd
call fcn.00416b7b
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x42163a
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0041a765
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42163a
sub eax, eax
jmp 0x421641