joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x437388]
push ebx
mov ebx, dword [0x431e64]
push esi
mov esi, dword [0x431e68]
push edi
mov edi, dword [0x431e60]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
mov dword [esp + 0x148], eax
mov eax, dword [0x431e5c]
push 0x42e8ac
push SysReAllocStringLen
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424a5c
mov byte [esp + 0x30], al
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424a3d
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.004247a0
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
jmp 0x424a6a
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x13c]
call fcn.0041e6b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x424a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x437388]
push esi
push edi
mov dword [esp + 0x11c], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movzx ecx, ah
push ecx
movzx edx, al
mov eax, dword [ebp + 0x14]
push edx
movzx ecx, ah
push ecx
mov ecx, dword [ebp + 0x10]
movzx edx, al
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shr eax, 0x18
push eax
movzx eax, byte [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
shr edx, 8
movzx edx, dl
push edx
movzx edx, word [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
shr ecx, 0x10
push ecx
push edx
push eax
push 0x431910
lea ecx, [esp + 0x40]
push 0x104
push ecx
call fcn.0042a725
add esp, 0x38
lea edx, [esp + 0xc]
push edx
push 0x42e8ac
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x424b69
lea eax, [esp + 0xc]
push eax
push 0x42e8ac
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x424b69
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.0041e6b7
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
mov edi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424b75
sub eax, edx
mov edx, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x424b9e
xor edi, edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
mov eax, edi
call fcn.0041e6b7
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x424e90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x437388]
mov dword [esp + 0x10c], eax
push esi
push edi
xor eax, eax
test edx, edx
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x424ed8
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00424c40
add esp, 0xc
jmp 0x424ee8
push edx
push 0x104
lea ecx, [esp + 0x10]
push ecx
call fcn.00401bc7
push 0x431950
push 0x104
lea edx, [esp + 0x10]
push edx
call fcn.0040244a
mov ecx, dword [ebp + 8]
lea eax, [esp + 8]
push eax
push ecx
push ebx
push 0x42e710
push 0x43194c
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jne 0x424f33
mov ecx, dword [esp + 0x114]
call fcn.0041e6b7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x2e
push ebx
call fcn.004181b0
add esp, 8
test eax, eax
je 0x424f45
mov byte [eax], 0
mov ecx, dword [esp + 0x114]
mov eax, esi
call fcn.0041e6b7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x428940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x437388]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x431c34
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x4289f8
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4289f8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x4289f8
push edi
call fcn.00417ee5
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x24]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4289ef
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x42e6dc
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x428a0d
push esi
call fcn.00407bd8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
call fcn.0041e6b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov ecx, dword [ebp + 8]
push edx
push eax
push 0x431c28
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.00407bd8
mov ecx, dword [esp + 0x138]
add esp, 0x14
mov eax, 1
call fcn.0041e6b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428a50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x437388]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x428aba
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
jne 0x428aba
mov edx, dword [ebp + 8]
mov byte [edx], al
mov ecx, dword [esp + 0xac]
call fcn.0041e6b7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x428b5c
dec eax
je 0x428b04
dec eax
jne 0x428b6e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push 0x431c6c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0xac]
call fcn.0041e6b7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x428b6e
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x428b30
push 0x431c60
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x428b6e
cmp dword [esp + 0x10], 0xa
jne 0x428b4b
push 0x431c54
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x428b6e
cmp dword [esp + 0x10], 0x5a
jne 0x428b6e
push 0x431c48
push esi
call edi
jmp 0x428b6b
mov eax, dword [ebp + 8]
push 0x431c40
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [esp + 0xac]
mov eax, 1
call fcn.0041e6b7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429410
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d7de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x437388]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x220], eax
mov dword [esi], 0x431c98
mov eax, dword [0x5394ec]
push edi
mov ecx, 0x5394ec
mov dword [esp + 0xc], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x5394ec]
xor ebx, ebx
mov ecx, 0x5394ec
mov dword [esp + 0x234], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x5394ec]
mov ecx, 0x5394ec
mov byte [esp + 0x234], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov edx, dword [0x5394ec]
mov ecx, 0x5394ec
mov byte [esp + 0x234], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x5394ec]
mov ecx, 0x5394ec
mov byte [esp + 0x234], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov edx, dword [0x5394ec]
mov ecx, 0x5394ec
mov byte [esp + 0x234], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x5394ec]
mov ecx, 0x5394ec
mov byte [esp + 0x234], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x3c], eax
mov edx, dword [0x5394ec]
mov ecx, 0x5394ec
mov byte [esp + 0x234], 6
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [0x5394ec]
mov ecx, 0x5394ec
mov byte [esp + 0x234], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [esp + 0x234], 8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x44], ebx
mov word [esi + 0x18], 0x50
mov byte [esp + 0x118], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x118]
push 0x104
push ecx
mov word [esi + 0x30], bx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
stosb byte es:[edi], al
call fcn.00428940
mov byte [esp + 0x18], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push 0x104
push edx
stosb byte es:[edi], al
call fcn.00428a50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea eax, [esi + 0x10]
push 0x431c9c
push eax
call fcn.00403df1
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
add esp, 0x20
mov eax, esi
call fcn.0041e6b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47b008], 0x8088405
inc edx
mov dword [ebx + 0x47b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f31c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x45e80a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f36b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e811
ret
Function at 0x420568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x45fb83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4205a3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4205bc
lea eax, [ebp - 0x10]
mov edx, dword [0x47d5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4205cf
lea eax, [ebp - 0x10]
mov edx, dword [0x47d5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4205db
adc edx, 0
mov edx, dword [edx*4 + 0x47c3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420755
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420748
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420748
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4206e6
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4206e6
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4206e6
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4206e6
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420748
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420748
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x42076d
inc ebx
cmp ebx, 0x19
jne 0x420595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fb8a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40229b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
xor esi, esi
mov dword [ebp - 8], ecx
push eax
inc esi
mov dword [ebx], eax
push eax
mov dword [ebp - 4], esi
call fcn.00439702
pop ecx
pop ecx
push 0
push 0x80000080
push 2
push 0
push esi
push 0xc0000000
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0xc], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push edi
push 0xfffffffffffffff5
mov dword [ebp - 0x10], eax
call esi
push edi
push 0xfffffffffffffff4
call esi
call fcn.00401e5a
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402328
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.00402095
pop ecx
pop ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40233d
push str._Could_not_load_Python_
push 2
call fcn.00410048
pop ecx
push eax
call fcn.004015ea
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x10]
push 0xfffffffffffffff4
call esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x1000
cmp eax, esi
jae 0x402368
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.004350fa
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x4023a0
xor eax, eax
push eax
push eax
push eax
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x402449
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402449
cmp dword [ebp - 8], 0
je 0x402449
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x402449
test ebx, ebx
je 0x402449
push 0x46e6c0
call eax
call dword [ebp - 4]
mov ecx, edi
call fcn.00401f7b
push dword [ebp - 0x14]
call esi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x402442
call ebx
call dword [ebp - 8]
mov eax, esi
jmp 0x40244c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret