joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e050
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x48e083
push esi
call fcn.004911c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x48e07c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x48e109
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x48e0f2
mov eax, dword [esi + 8]
test eax, eax
je 0x48e0a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x48e0ee
cmp eax, 2
je 0x48e0f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48e09a
cmp eax, 3
je 0x48e0cd
cmp eax, 1
jne 0x48e09a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x48e09a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x48e09a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0048e130
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x48e118
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0048e130
add esp, 4
pop esi
ret

Function at 0x49a260
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x49a303
test eax, eax
jbe 0x49a303
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x49a303
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x49a2ae
xor esi, esi
jmp 0x49a2b4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x49a2df
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0049e620
add esi, eax
push esi
mov ebx, esi
call fcn.0049e620
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x49a2c0
pop ebp
test edi, edi
pop edi
jne 0x49a303
test ebx, ebx
je 0x49a303
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004b0690
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x49a445
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49a55d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49a55d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c28fa
mov esi, eax
test esi, esi
je 0x49a55d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49a55d
mov ecx, esi
call fcn.0049a3b0
cmp edi, eax
jge 0x49a55d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x49a4e3
mov dword [esp + 0x34], 1
jmp 0x49a53e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49a55d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00499960
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4a0d60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a0dc6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a0dc6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a0da7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a1150
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a1188
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a1e10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a1e59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a22d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d0f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a1e80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a1f00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a1f00
lea ecx, [esi + 0xc]
call fcn.004c0e5a
lea ecx, [esi + 0x10]
call fcn.004c0e5a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a3460
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a3460
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a3460
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c0ecf
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c0ecf
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a5fb0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x6adaec]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a5fc3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a6004
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x6adb94]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a6036
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a603a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a602b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a6058
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a605c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a604d
xor ecx, ecx
mov eax, 0x6adafc
xor ebx, ebx
mov bl, byte [ecx + 0x6adba4]
cmp byte [esp + ebx + 0x14], 0
je 0x4a6087
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x6adbbc]
cmp byte [esp + ebx + 0x14], 0
je 0x4a609e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a606e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a5ff7
lea edx, [esp + 0x84]
push edx
call fcn.004a60e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4acc40
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x693048
push 0x4b16d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004afc50
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4acdf0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x4ace31
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4ace9e
cmp dword [esp + 0x1c], 2
jne 0x4ace9e
cmp dword [esp + 0x10], 5
jne 0x4ace9e
cmp dword [esp + 0x14], 1
jne 0x4ace9e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ace88
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4ace79
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4ace81
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4ace9e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x4c329d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c32d5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c132a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c1302
jmp 0x4c32e1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c4990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c49d2
call fcn.004ca84b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c49d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c49c9
xor eax, eax
jmp 0x4c49da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c49e0
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cad7b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cada9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cadc7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cace1
jmp 0x4cadc7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cadc7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cace1
test edi, edi
mov eax, edi
jne 0x4cadb1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x52b05a
Capabilities:
Execute syscall

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
add edx, 4
int 0x2e
pop ebp
ret 0x1c

Function at 0x52b074
Capabilities:
Execute syscall

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
add edx, 4
int 0x2e
pop ebp
ret 0x18

Function at 0x52b600
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x52b724
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x52b724
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
mov dword [ebp - 8], ebx
jne 0x52b724
cmp byte [ebp + 0x10], 0
mov eax, dword [ebx + 0x78]
jne 0x52b648
push eax
push ebx
call fcn.0052b598
cmp byte [ebp + 0x10], 0
lea esi, [eax + edi]
je 0x52b656
mov eax, dword [esi + 0x1c]
jmp 0x52b65f
push dword [esi + 0x1c]
push ebx
call fcn.0052b598
add eax, edi
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x10], eax
je 0x52b66f
mov eax, dword [esi + 0x24]
jmp 0x52b678
push dword [esi + 0x24]
push ebx
call fcn.0052b598
add eax, edi
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0xc], eax
je 0x52b688
mov eax, dword [esi + 0x20]
jmp 0x52b691
push dword [esi + 0x20]
push ebx
call fcn.0052b598
mov esi, dword [esi + 0x18]
lea ebx, [eax + edi]
xor edi, edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 1], 1
mov dword [ebp - 0x18], esi
test esi, esi
jbe 0x52b724
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x78]
cmp eax, ecx
jb 0x52b6ca
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x7c]
add ecx, edx
cmp eax, ecx
jb 0x52b71e
cmp byte [ebp - 1], 0
je 0x52b6eb
cmp byte [ebp + 0x10], 0
jne 0x52b6e7
mov esi, dword [ebx + edi*4]
push esi
push dword [ebp - 8]
call fcn.0052b598
sub eax, esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], 0
mov ecx, dword [ebx + edi*4]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add ecx, dword [ebp + 8]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x52b715
test al, al
je 0x52b711
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x52b715
inc edx
inc edx
inc ecx
inc ecx
test al, al
jne 0x52b6f7
xor eax, eax
jmp 0x52b71a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x52b72d
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x52b6a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + edi*2]
je 0x52b742
mov eax, dword [ecx + eax*4]
jmp 0x52b74d
push dword [ecx + eax*4]
push dword [ebp - 8]
call fcn.0052b598
mov ecx, dword [ebp + 8]
add eax, ecx
jmp 0x52b726

Function at 0x52b75a
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x52b782
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x52b782
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x52b782
add eax, 0x28
jmp 0x52b784
xor eax, eax
pop ebp
ret 4
Function at 0x52f5ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call 0x52f5dc
pop edx
sub edx, 0x4010e0
mov dword [ebp - 0x20], edx
push dword [ebp - 0x18]
call fcn.0052f879
test eax, eax
je 0x52f779
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov ax, word [ebx]
cmp ax, 0x5a4d
jne 0x52f779
add ebx, dword [ebx + 0x3c]
mov eax, dword [ebx]
cmp eax, 0x4550
jne 0x52f779
mov dword [ebp - 0xc], ebx
push 4
push 0x2000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
jne 0x52f659
mov ebx, dword [ebp - 0xc]
push 4
push 0x2000
push dword [ebx + 0x50]
push 0
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x52f779
mov dword [ebp - 4], eax
push 0x14
push 8
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020b0]
call dword [eax]
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020b4]
call dword [eax]
test eax, eax
je 0x52f779
mov edx, eax
mov dword [ebp - 8], edx
lea eax, [edx + 4]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
push 4
push 0x1000
push dword [ebx + 0x50]
push ecx
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x52f779
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx + 0x54]
push ecx
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x52f779
mov edi, eax
mov ebx, dword [ebp - 0xc]
push dword [ebx + 0x54]
push dword [ebp - 0x1c]
push edi
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x40210b]
call dword [eax]
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
add eax, edi
lea esi, [edx]
mov dword [esi], eax
mov esi, dword [edx]
lea esi, [esi + 0x34]
mov dword [esi], ecx
push edx
push ebx
push dword [ebp - 0x1c]
call fcn.0052fd43
test eax, eax
je 0x52f779
mov eax, dword [ebx + 0x34]
mov esi, dword [ebp - 4]
sub esi, eax
test esi, esi
je 0x52f72e
push esi
push dword [ebp - 8]
call fcn.0052ffc2
test eax, eax
je 0x52f779
push dword [ebp - 8]
call fcn.00530038
test eax, eax
je 0x52f779
push dword [ebp - 8]
call fcn.0052fe96
test eax, eax
je 0x52f779
mov eax, dword [edx]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x52f76c
add eax, ecx
test eax, eax
je 0x52f779
push 0
push 1
push ecx
call eax
test eax, eax
je 0x52f779
mov edx, dword [ebp - 8]
lea eax, [edx + 0x10]
mov dword [eax], 1
push dword [ebp - 0x18]
call fcn.0052f8d0
mov eax, dword [ebp - 8]
jmp 0x52f790
mov edx, dword [ebp - 8]
test edx, edx
je 0x52f786
push edx
call fcn.0053028c
push dword [ebp - 0x18]
call fcn.0052f8d0
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x52fc54
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, 0x5a4d
jne 0x52fd38
mov eax, dword [ebx + 0x3c]
add ebx, eax
mov eax, dword [ebx]
cmp eax, 0x4550
jne 0x52fd38
lea eax, [ebx + 0x78]
lea ecx, [eax]
mov eax, dword [ecx + 4]
test eax, eax
je 0x52fd38
mov edx, dword [ecx]
add edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
test eax, eax
je 0x52fd38
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
jne 0x52fcc5
mov ecx, dword [edx + 0x10]
sub eax, ecx
jmp 0x52fd23
mov eax, dword [edx + 0x18]
test eax, eax
je 0x52fd38
mov ecx, dword [edx + 0x18]
mov dword [ebp - 8], ecx
mov esi, dword [edx + 0x20]
add esi, dword [ebp + 8]
mov ebx, dword [edx + 0x24]
add ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 0xffffffff
xor al, al
cld
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 0xc]
push ecx
jmp 0x52fd03
add ebx, 2
add esi, 4
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x52fd1a
pop ecx
push ecx
push esi
mov esi, dword [esi]
add esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
repe cmpsb byte [esi], byte es:[edi]
pop esi
jne 0x52fcf3
movzx eax, word [ebx]
mov dword [ebp - 4], eax
pop ecx
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x52fd38
mov ecx, dword [edx + 0x14]
cmp eax, ecx
ja 0x52fd38
mov ecx, dword [edx + 0x1c]
add ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
jmp 0x52fd3a
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x52fd43
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push esi
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
call 0x52fd5f
pop eax
sub eax, 0x401863
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0x10]
mov ebx, dword [esi]
mov edi, ebx
add edi, 0x18
mov ax, word [ebx + 0x14]
movzx eax, ax
add edi, eax
mov cx, word [ebx + 6]
movzx ecx, cx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x52fe64
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x52fe0e
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
mov eax, ebx
add eax, dword [edi + 8]
dec eax
xor edx, edx
div ebx
test eax, eax
jne 0x52fdb6
dec dword [ebp - 4]
mov ecx, dword [ebp - 4]
add edi, 0x28
jmp 0x52fd85
mul ebx
mov ebx, eax
push 4
push 0x1000
push ebx
mov eax, dword [edi + 0xc]
add eax, dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x52fe6b
push ebx
push 0
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x402107]
call dword [eax]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea eax, [edi + 8]
mov dword [eax], ebx
dec dword [ebp - 4]
mov ecx, dword [ebp - 4]
add dword [ebp - 0xc], 0x28
mov edi, dword [ebp - 0xc]
jmp 0x52fd85
push 4
push 0x1000
push eax
mov eax, dword [edi + 0xc]
add eax, dword [esi + 4]
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x4020a0]
call dword [eax]
test eax, eax
je 0x52fe6b
mov ebx, eax
mov edi, dword [ebp - 0xc]
push dword [edi + 0x10]
mov eax, dword [edi + 0x14]
add eax, dword [ebp + 8]
push eax
push ebx
mov eax, dword [ebp - 0x20]
lea eax, [eax + 0x40210b]
call dword [eax]
add esp, 0xc
mov edi, dword [ebp - 0xc]
lea eax, [edi + 8]
mov dword [eax], ebx
dec dword [ebp - 4]
mov ecx, dword [ebp - 4]
add dword [ebp - 0xc], 0x28
mov edi, dword [ebp - 0xc]
jmp 0x52fd85
mov eax, 1
jmp 0x52fe6d
xor eax, eax
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 0xc