joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b380
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x51b399
mov edi, ebx
mov ebx, eax
jmp 0x51b39b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x51b3b1
push eax
push esi
call fcn.004c7d50
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x51b3cd
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x51b3b8
cmp eax, dword [edi + 4]
jge 0x51b3e2
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x51b3d2
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x51b406
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x51b406
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x51b3f5
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x523c2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b0630]
jne 0x523c36
repz ret
jmp fcn.005313ec

Function at 0x52a0c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x52a0fa
call fcn.00525485
mov dword [eax], esi
call fcn.00525472
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0052414c
add esp, 0x14
push 0x16
pop eax
jmp 0x52a14f
test dword [ebp + 0xc], 0xfffffff9
jne 0x52a0d6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x52a127
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00525498
pop ecx
call fcn.00525472
mov eax, dword [eax]
jmp 0x52a14f
test al, 0x10
jne 0x52a14d
test al, 1
je 0x52a14d
test byte [ebp + 0xc], 2
je 0x52a14d
call fcn.00525485
mov dword [eax], 5
call fcn.00525472
mov dword [eax], 0xd
jmp 0x52a11e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x52ab68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x52ab99
call fcn.00525485
mov dword [eax], esi
call fcn.00525472
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0052414c
add esp, 0x14
push 0x16
pop eax
jmp 0x52abee
test dword [ebp + 0xc], 0xfffffff9
jne 0x52ab75
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52abc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00525498
pop ecx
call fcn.00525472
mov eax, dword [eax]
jmp 0x52abee
test al, 0x10
jne 0x52abec
test al, 1
je 0x52abec
test byte [ebp + 0xc], 2
je 0x52abec
call fcn.00525485
mov dword [eax], 5
call fcn.00525472
mov dword [eax], 0xd
jmp 0x52abbd
xor eax, eax
pop esi
pop ebp
ret
Function at 0x540c7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00530ba7
and dword [ebp - 4], 0
cmp dword [0x5b845c], 0
mov ebx, eax
jne 0x540d30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x540de1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x588928
push edi
call esi
test eax, eax
je 0x540de1
push eax
call fcn.00530b35
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5b845c], eax
call esi
push eax
call fcn.00530b35
mov dword [esp], 0x588904
push edi
mov dword [0x5b8460], eax
call esi
push eax
call fcn.00530b35
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5b8464], eax
call esi
push eax
call fcn.00530b35
pop ecx
mov dword [0x5b846c], eax
test eax, eax
je 0x540d30
push 0x5888d0
push edi
call esi
push eax
call fcn.00530b35
pop ecx
mov dword [0x5b8468], eax
mov eax, dword [0x5b8468]
cmp eax, ebx
je 0x540d88
cmp dword [0x5b846c], ebx
je 0x540d88
push eax
call fcn.00530bb0
push dword [0x5b846c]
mov esi, eax
call fcn.00530bb0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x540d88
test edi, edi
je 0x540d88
call esi
test eax, eax
je 0x540d7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x540d7f
test byte [ebp - 0xc], 1
jne 0x540d88
or dword [ebp + 0x10], 0x200000
jmp 0x540dc1
mov eax, dword [0x5b8460]
cmp eax, ebx
je 0x540dc1
push eax
call fcn.00530bb0
pop ecx
test eax, eax
je 0x540dc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x540dc1
mov eax, dword [0x5b8464]
cmp eax, ebx
je 0x540dc1
push eax
call fcn.00530bb0
pop ecx
test eax, eax
je 0x540dc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5b845c]
call fcn.00530bb0
pop ecx
test eax, eax
je 0x540de1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x540de3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5467c9
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x54955d
call fcn.00523ca4
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x5468db
cmp byte [esi + 0x42], bl
je 0x5468db
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x546805
xor al, al
jmp 0x5468dd
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00414e80
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x546875
dec eax
je 0x546879
dec eax
dec eax
je 0x5468d7
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040a6c0
mov al, bl
jmp 0x5468dd
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x5468b9
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052a334
add esp, 0x10
cmp edi, eax
jne 0x546863
cmp byte [esi + 0x42], 0
je 0x5468d7
test edi, edi
jne 0x546813
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040e3c0
jmp 0x546813
mov bl, 1
jmp 0x546865
mov al, 1
call fcn.00523d27
ret
Function at 0x546984
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x5495cb
call fcn.00523ca4
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x5469ae
lea eax, [ebp + 8]
push eax
call fcn.00401060
pop ecx
jmp 0x546b29
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x5469dc
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x5469dc
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x546b29
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x546b24
cmp dword [esi + 0x3c], ebx
jne 0x546a05
push eax
push edi
call fcn.00546148
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x546b29
jmp 0x546b24
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00414e80
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x546af6
cmp eax, 1
jg 0x546b31
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x546a9b
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052a334
add esp, 0x10
cmp edi, eax
jne 0x546b18
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x546b61
test edi, edi
ja 0x546ac1
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x546b1d
push 8
call fcn.0040e3c0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov ecx, eax
call fcn.00415980
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x546a52
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.0040a6c0
mov eax, 0xffff
call fcn.00523d27
ret 4
cmp eax, 3
jne 0x546b18
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.00546148
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x546b50
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040a6c0
mov ax, si
jmp 0x546b29
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040a6c0
mov ax, word [ebp + 8]
jmp 0x546b29
Function at 0x42cc40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41d015
lea edi, [esi - 0x1c015]
push edi
or ebp, 0xffffffff
jmp 0x42cc62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42cc69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42cc58
mov eax, 1
add ebx, ebx
jne 0x42cc7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42cc70
jne 0x42cc8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42cc70
xor ecx, ecx
sub eax, 3
jb 0x42cca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42cd12
mov ebp, eax
add ebx, ebx
jne 0x42ccab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ccb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ccdc
inc ecx
add ebx, ebx
jne 0x42ccc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ccbd
jne 0x42ccd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ccbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ccfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42cced
jmp 0x42cc5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ccfc
add edi, ecx
jmp 0x42cc5e
pop esi
mov edi, esi
mov ecx, 0xdeb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42cd1a
cmp byte [edi], 7
jne 0x42cd1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42cd1f
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42cd8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2cc38]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2cd28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42cd4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2cd2c]
or eax, eax
je 0x42cd88
mov dword [ebx], eax
add ebx, 4
jmp 0x42cd69
call dword [esi + 0x2cd30]
popal
jmp section.UPX0
Function at 0x10005470
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
pop ebp
ret
Function at 0x4014a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [0x4a35d4]
test eax, eax
je 0x4014d4
cmp dword [eax + 0x1fc], 0
jne 0x401671
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0
push 0
push 0
push esi
mov dword [0x4a3430], 0
call ebx
test eax, eax
je 0x401652
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40160a
mov ecx, dword [0x4a354c]
xor ebx, ebx
test ecx, ecx
je 0x401553
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
test eax, eax
je 0x401553
nop dword [eax + eax]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x401604
cmp dword [ebp - 4], ebx
je 0x401553
mov ecx, dword [0x4a354c]
jmp 0x401530
mov eax, dword [0x4a35d4]
test eax, eax
je 0x4015f6
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x4015f6
push dword [0x4a35a8]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x401591
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
test eax, eax
mov eax, 1
cmovne ebx, eax
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x4015a2
cmp eax, 0x104
jne 0x4015f2
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x4015f2
cmp edi, 0x11
je 0x4015f2
mov ecx, dword [0x4a35d4]
test ecx, ecx
je 0x4015f2
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x4015f2
cmp eax, 0x104
je 0x4015d9
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x4015d9
xor edx, edx
jmp 0x4015de
mov edx, 1
push ecx
mov ecx, dword [0x4a35b0]
push edi
call fcn.0045a240
add esp, 8
test eax, eax
jne 0x401604
test ebx, ebx
jne 0x401604
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x401638
test al, 1
je 0x40161e
cmp dword [esi + 4], 0x111
je 0x401651
test al, 2
je 0x40162b
cmp dword [esi + 4], 0x201
je 0x401651
test al, 4
je 0x401638
cmp dword [esi + 4], 0x202
je 0x401651
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x401500
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4a3438
push 0
push 0xb
push 0
call dword [sym.imp.MMFS2.dll_Ordinal_31]
mov dword [0x4a3430], eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.004673e4
mov edi, eax
add esp, 8
test edi, edi
je 0x40a2b6
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.004673fa
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 0x40b750
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 0x40b760
sub edx, ecx
sar edx, 1
push 2
lea eax, [edx + 4]
push eax
call fcn.004673e4
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
jne 0x40b78f
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0x104
call fcn.004673e4
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b7b8
push esi
call fcn.004673fa
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 0x40b7c0
mov ebx, dword [ebp - 4]
push 0x5c
push ebx
call fcn.00464e35
add esp, 8
test eax, eax
je 0x40b7e8
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40b810
cmp word [ebx + 2], 0x5c
jne 0x40b810
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00464ed7
add esp, 8
test eax, eax
je 0x40b8b3
lea ebx, [eax + 2]
jmp 0x40b821
cmp word [ebx + 2], 0x3a
jne 0x40b821
cmp word [ebx + 4], 0x5c
jne 0x40b821
add ebx, 6
push 0x5c
push ebx
call fcn.00464ed7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b8b0
mov ecx, dword [ebp - 4]
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push edi
call fcn.0046896e
push edi
call fcn.00468b3c
add esp, 0x10
test eax, eax
je 0x40b877
push edi
call fcn.00468b47
add esp, 4
test eax, eax
je 0x40b864
mov esi, 1
jmp 0x40b877
push edi
call fcn.00468b3c
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.00464ed7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b895
mov ecx, dword [ebp - 8]
test esi, esi
je 0x40b835
mov ebx, dword [ebp - 4]
push edi
call fcn.004673fa
push ebx
call fcn.004673fa
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 0x40b8c0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8d5
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40b8f8
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x40b8f8
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push edi
call fcn.00468b3c
add esp, 4
test eax, eax
je 0x40b898
push edi
call fcn.00468b47
add esp, 4
test eax, eax
je 0x40b91c
mov esi, 1
jmp 0x40b898
push edi
call fcn.00468b3c
add esp, 4
mov ecx, 1
test eax, eax
cmovne esi, ecx
jmp 0x40b898
Function at 0x40ba40
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 [0x4a1014]
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 0x40baa5
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.00463907
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40ba8d
cmp eax, 0x40
jne 0x40ba8d
mov eax, 0x5a4d
cmp ax, word [esp + 0x30]
jne 0x40ba8d
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 0x40bafc
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 0x40ba8d
cmp ecx, edx
jne 0x40ba8d
push 0xf8
call fcn.00463918
add esp, 4
mov esi, eax
mov edx, esi
mov dword [esp + 0x20], esi
mov ecx, ebx
push 0xf8
call fcn.0040b960
add esp, 4
test eax, eax
je 0x40bb6f
push 0xf8
push esi
call fcn.00463948
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00463907
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.0040ba00
add esp, 8
mov ecx, ebx
call fcn.0040b9c0
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 0x40bc1a
cmp dword [esp + 0x10], edx
jne 0x40bc1a
xor esi, esi
cmp dword [esp + 0x2c], esi
jbe 0x40bbf2
nop dword [eax + eax]
push 0x28
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.0040b960
add esp, 4
test eax, eax
jne 0x40bbf2
add edi, dword [esp + 0x84]
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x40bbd0
push 0xf8
push dword [esp + 0x24]
call fcn.00463948
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00463907
mov esp, ebp
pop ebp
ret
push 0xf8
push esi
call fcn.00463948
mov ecx, dword [esp + 0xa4]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00463907
mov esp, ebp
pop ebp
ret
Function at 0x40e110
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, pe_nt_image_headers32
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x40e156
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 0x40e16d
test byte [eax], 1
je 0x40e197
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 0x40e197
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 0x40e1a9
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x40e1b7
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
mov ebx, 1
test byte [eax + 6], 2
je 0x40e1e4
or ecx, 0x80
mov word [esi + 0x20], bx
mov dword [esi + 0x10], ecx
cmp word [edi + 0x18], 3
jne 0x40e1e9
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40e1e9
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 0x40e248
mov ecx, dword [0x4a35d4]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x40e23b
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 0x40e23b
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x40e23b
mov edx, dword [edx + 0xc]
call fcn.0044d940
jmp 0x40e23d
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x40e248
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x40e26d
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