joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484fa8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call fcn.00406e50
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push 0x100
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call fcn.00406e50
push eax
call fcn.004070a0
push 0xa
call fcn.0040e100
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call fcn.0040e100
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call fcn.00406e50
push eax
call fcn.004070a0
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x485048]
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48504c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4850af
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00409030
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x4850c4
call fcn.00404c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4850b6
lea eax, [ebp - 0x24]
call fcn.0040493c
ret

Function at 0x485bdc
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x485c26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x485c44
mov eax, dword [ebp - 8]
call fcn.00485b20
mov eax, dword [ebp - 8]
push eax
call fcn.00406d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x485c30
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x486af8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor ecx, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dec
mov eax, dword [ebp - 8]
call fcn.00404dec
xor eax, eax
push ebp
push 0x486d57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
call fcn.004099dc
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.00404bd8
mov eax, dword [ebp - 4]
call fcn.00402908
call fcn.004028cc
lea eax, [ebp - 0x250]
push eax
push 0x486d68
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x486ce4
mov eax, dword [ebp - 8]
call fcn.004094b0
test al, al
jne 0x486bb0
mov eax, dword [ebp - 8]
call fcn.004094d4
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x224]
mov ecx, 0x104
call fcn.00404bac
mov eax, dword [ebp - 0x10]
mov edx, 0x486d74
call fcn.00404d48
je 0x486cc7
mov eax, dword [ebp - 0x10]
mov edx, 0x486d80
call fcn.00404d48
je 0x486cc7
cmp dword [ebp - 0x250], 0x10
jne 0x486c96
push dword [ebp - 8]
push 0x486d8c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cbc
mov eax, dword [ebp - 0xc]
call fcn.004094b0
test al, al
jne 0x486c22
mov eax, dword [ebp - 0xc]
call fcn.004094d4
mov eax, dword [ebp - 4]
call fcn.00404bfc
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x486c5f
push dword [ebp - 4]
push 0x486d8c
push dword [ebp - 0x10]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.00404cbc
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0xc]
call fcn.00486af8
jmp 0x486cc7
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404c48
mov eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404c48
mov eax, dword [ebp - 0x260]
pop edx
call fcn.00486af8
jmp 0x486cc7
push dword [ebp - 8]
push 0x486d8c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cbc
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
call fcn.00404dfc
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404dfc
push eax
call fcn.00406d30
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x486bb0
jmp 0x486d09
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x110]
call fcn.00404ba0
mov eax, dword [ebp - 0x264]
call fcn.00402908
call fcn.004028cc
xor ebx, ebx
jmp 0x486d2c
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x110]
call fcn.00404ba0
mov eax, dword [ebp - 0x268]
call fcn.00402908
call fcn.004028cc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486d5e
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404960
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404960
ret
Function at 0x10001b50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10001b8f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10001cab
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10001c1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10001c17
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001bf0
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10001930
add esp, 0xc
jmp 0x10001b7d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001b30
add esp, 8
test eax, eax
jne 0x10001c3d
xor eax, eax
jmp 0x10001cb0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001c74
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10001980
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10001b7d
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100027b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x1d200
mov ecx, dword [ebp - 4]
push ecx
push 0x10004070
call fcn.10001000
add esp, 8
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x4bb7ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33c8
cmp edx, dword [eax]
je 0x4bb7cf
add eax, 8
inc ecx
cmp eax, 0x4c3458
jl 0x4bb7c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33c8]
jne 0x4bb8fd
mov eax, dword [0x4c8df0]
cmp eax, 1
je 0x4bb8d7
test eax, eax
jne 0x4bb800
cmp dword [0x4c32f0], 1
je 0x4bb8d7
cmp edx, 0xfc
je 0x4bb8fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb837
lea eax, [ebp - 0x1a4]
push 0x4c09d8
push eax
call fcn.004bc190
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc620
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb87a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc620
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09d4
push edi
call fcn.004be4f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c09b8
push eax
call fcn.004bc190
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc1a0
lea eax, [ebp - 0xa0]
push 0x4c09b4
push eax
call fcn.004bc1a0
push dword [esi + 0x4c33cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc1a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c098c
push eax
call fcn.004be464
add esp, 0x2c
pop edi
jmp 0x4bb8fd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33cc]
push 0
push eax
push dword [esi]
call fcn.004bc620
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]
pop esi
leave
ret
Function at 0x10585058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105851a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1058507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1058506a
add dl, dl
jne 0x10585089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105850dc
xor eax, eax
add dl, dl
jne 0x10585096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1058517d
add dl, dl
jne 0x105850a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105850b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105850bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105850c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105850d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10585075
mov eax, 1
add dl, dl
jne 0x105850ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105850f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105850e1
sub eax, ebx
mov ebx, 1
jne 0x10585128
mov ecx, 1
add dl, dl
jne 0x1058510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10585119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10585105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10585075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1058513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1058514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10585136
cmp eax, 0x7d00
jae 0x1058516d
cmp eax, 0x500
jb 0x10585168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10585075
cmp eax, 0x7f
ja 0x10585170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10585075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1058519e
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 0x10585075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401440
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xorps xmm0, xmm0
mov ebx, edx
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [0x49b5b4]
test eax, eax
je 0x401472
cmp dword [eax + 0x1fc], 0
jne 0x401556
push 0
push 0
push 0
push 0
push esi
mov dword [0x49b410], 0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x401538
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop word [eax + eax]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4014f2
mov ecx, dword [0x49b534]
test ecx, ecx
je 0x4014e4
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
test eax, eax
je 0x4014e4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x4014f2
cmp dword [ebp - 4], eax
je 0x4014e4
mov ecx, dword [0x49b534]
jmp 0x4014c5
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
test ebx, ebx
je 0x401520
test bl, 1
je 0x401504
cmp dword [esi + 4], 0x111
je 0x401537
test bl, 2
je 0x401512
cmp dword [esi + 4], 0x201
je 0x401537
test bl, 4
je 0x401520
cmp dword [esi + 4], 0x202
je 0x401537
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4014a0
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x49b418
push 0
push 0xb
push 0
call dword [sym.imp.MMFS2.dll_Ordinal_31]
mov dword [0x49b410], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0045f3d4
mov edi, eax
add esp, 8
test edi, edi
je 0x4093c6
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.0045f3ea
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40a860
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov edx, ebx
push esi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a870
sub edx, ecx
sar edx, 1
push 2
lea eax, [edx + 4]
push eax
call fcn.0045f3d4
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
jne 0x40a89f
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0x104
call fcn.0045f3d4
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a8c8
push esi
call fcn.0045f3ea
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor esi, esi
sub ecx, ebx
nop
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [ecx + ebx - 2], ax
test ax, ax
jne 0x40a8d0
mov ebx, dword [ebp - 4]
push 0x5c
push ebx
call fcn.0045ce35
add esp, 8
test eax, eax
je 0x40a8f8
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40a920
cmp word [ebx + 2], 0x5c
jne 0x40a920
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.0045ced7
add esp, 8
test eax, eax
je 0x40a9c3
lea ebx, [eax + 2]
jmp 0x40a931
cmp word [ebx + 2], 0x3a
jne 0x40a931
cmp word [ebx + 4], 0x5c
jne 0x40a931
add ebx, 6
push 0x5c
push ebx
call fcn.0045ced7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40a9c0
mov ecx, dword [ebp - 4]
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push edi
call fcn.0046095e
push edi
call fcn.00460b2c
add esp, 0x10
test eax, eax
je 0x40a987
push edi
call fcn.00460b37
add esp, 4
test eax, eax
je 0x40a974
mov esi, 1
jmp 0x40a987
push edi
call fcn.00460b2c
add esp, 4
test eax, eax
mov eax, 1
cmovne esi, eax
lea eax, [ebx + 2]
mov dword [ebp - 8], ebx
push 0x5c
push eax
call fcn.0045ced7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40a9a5
mov ecx, dword [ebp - 8]
test esi, esi
je 0x40a945
mov ebx, dword [ebp - 4]
push edi
call fcn.0045f3ea
push ebx
call fcn.0045f3ea
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40a9d0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a9e5
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40aa08
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x40aa08
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push edi
call fcn.00460b2c
add esp, 4
test eax, eax
je 0x40a9a8
push edi
call fcn.00460b37
add esp, 4
test eax, eax
je 0x40aa2c
mov esi, 1
jmp 0x40a9a8
push edi
call fcn.00460b2c
add esp, 4
mov ecx, 1
test eax, eax
cmovne esi, ecx
jmp 0x40a9a8
Function at 0x40ac10
Capabilities:
Enumerate pe sections
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x499014]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, ecx
push edi
push 0
push 0
push 0
push ebx
call esi
push 0
lea eax, [esp + 0x24]
push eax
push 0x40
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ac75
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0045b910
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40ac5d
cmp eax, 0x40
jne 0x40ac5d
mov eax, 0x5a4d
cmp ax, word [esp + 0x30]
jne 0x40ac5d
push 0
push 0
push dword [esp + 0x74]
push ebx
call esi
push 1
xorps xmm0, xmm0
lea eax, [esp + 0x14]
push eax
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40accc
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cdq
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
cmp esi, eax
jne 0x40ac5d
cmp ecx, edx
jne 0x40ac5d
push 0xf8
call fcn.0045b921
add esp, 4
mov esi, eax
mov edx, esi
mov dword [esp + 0x20], esi
mov ecx, ebx
push 0xf8
call fcn.0040aa70
add esp, 4
test eax, eax
je 0x40ad3f
push 0xf8
push esi
call fcn.0045b951
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0045b910
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 6]
mov ecx, ebx
mov edi, dword [esi + 0x54]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 0x14]
cdq
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x1c]
add eax, 0x18
adc edx, 0
push edx
push eax
call fcn.0040ab10
add esp, 8
mov ecx, ebx
call fcn.0040aad0
mov ecx, eax
mov dword [esp + 0x10], edx
movzx eax, word [esi + 0x14]
cdq
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x1c]
add eax, 0x18
adc edx, 0
cmp ecx, eax
jne 0x40adea
cmp dword [esp + 0x10], edx
jne 0x40adea
xor esi, esi
cmp dword [esp + 0x2c], esi
jbe 0x40adc2
nop dword [eax + eax]
push 0x28
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.0040aa70
add esp, 4
test eax, eax
jne 0x40adc2
add edi, dword [esp + 0x84]
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x40ada0
push 0xf8
push dword [esp + 0x24]
call fcn.0045b951
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0045b910
mov esp, ebp
pop ebp
ret
push 0xf8
push esi
call fcn.0045b951
mov ecx, dword [esp + 0xa4]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045b910
mov esp, ebp
pop ebp
ret
Function at 0x40d100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [ecx + 0x14]
add esi, edi
mov edx, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x18]
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x40d146
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
lea eax, [edx + 0x3a]
mov ebx, dword [edi + 0x78]
test bl, 4
je 0x40d15d
test byte [eax], 1
je 0x40d187
and ebx, 0xfffffffb
mov dword [edi + 0x78], ebx
mov ebx, eax
mov ecx, dword [esi + 0x10]
or ecx, 0x200
mov dword [esi + 0x10], ecx
test byte [ebx], 2
je 0x40d187
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, ebx
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x40d199
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x40d1a7
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
mov ebx, 1
test byte [eax + 6], 2
je 0x40d1d4
or ecx, 0x80
mov word [esi + 0x20], bx
mov dword [esi + 0x10], ecx
cmp word [edi + 0x18], 3
jne 0x40d1d9
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40d1d9
or word [esi + 0x20], 0x20
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x40]
mov dword [esi + 0x1c], eax
cmp cx, 0xd
jne 0x40d238
mov ecx, dword [0x49b5b4]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x40d22b
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
lea edx, [eax + eax*2]
shl edx, 4
add edx, dword [ecx + 0x400]
je 0x40d22b
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x40d22b
mov edx, dword [edx + 0xc]
call fcn.00449fa0
jmp 0x40d22d
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x40d238
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x40d25d
or word [esi + 0x20], 2
mov eax, ebx
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
pop edi
mov word [esi + 0x22], ax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret