joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aebce
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4aebfa
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4aec25
cmp dword [0x5f585c], 0
jne 0x4aec25
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4aec21
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4aec21
push edi
call fcn.0056f630
pop ecx
jmp 0x4aec9c
mov eax, edi
jmp 0x4aec9c
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0055ed00
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4aecab
push esi
call fcn.0040f0eb
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0055ab65
leave
ret 4
call fcn.00419557
int3
Function at 0x4cb39a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x4cb4f8
push esi
push edi
push 0x5b06d8
call fcn.00427875
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4cb433
mov edi, dword [ebx + 0x168]
jmp 0x4cb41f
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4cb41f
push esi
call fcn.00411b4a
push eax
push 0x5ed8cc
call fcn.004277d6
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4cb41f
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x595a54]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4cb41f
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4cb3ce
lea ecx, [ebx + 0x164]
call fcn.0040b452
jmp 0x4cb4f6
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4cb4f6
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.0040b201
mov edi, dword [eax]
test edi, edi
jne 0x4cb45f
xor esi, esi
jmp 0x4cb462
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4cb4e6
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4cb4e6
cmp dword [ebp - 0x10], 0
jne 0x4cb4bb
push edi
push 0x5ed8cc
call fcn.004277d6
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
push eax
push 0x5a6d70
call fcn.004277d6
pop ecx
pop ecx
test eax, eax
je 0x4cb4e6
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.004ca513
test eax, eax
jne 0x4cb4e6
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004c863b
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4cb44a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5036e9
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x50371f
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00408210
test eax, eax
je 0x503707
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x509eb2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5ed7b4], 0
push esi
push edi
je 0x509f3a
cmp dword [0x5edafc], 0xfffffffe
jne 0x509f26
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x509f3a
mov edi, 0x5f6cd8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5f6cf0], 0
jne 0x509f3e
push 0
push 0
push 0x509f44
call fcn.005670ad
add esp, 0xc
mov dword [0x5f6cf0], eax
test eax, eax
je 0x509f16
cmp eax, 0xffffffff
je 0x509f16
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5edafc], esi
jmp 0x509f1d
and dword [0x5f6cf0], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x509f3a
mov eax, dword [ebp + 8]
mov dword [0x5edafc], eax
cmp eax, 0xffffffff
jne 0x509f3a
and dword [0x5f6cf0], 0
pop edi
pop esi
pop ebp
ret
call fcn.00419557
int3
Function at 0x510c18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x1b8]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
mov ecx, dword [0x5ed938]
test al, 0x80
push 0xffffffffffffffff
pop eax
cmovne ecx, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x2b4]
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
push dword [ebp - 4]
mov esi, eax
push 0x5edbb8
mov dword [ebp - 0xc], esi
call fcn.004277d6
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x510d2d
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x510d2d
test ebx, ebx
je 0x510cbd
mov eax, dword [ebx]
push 0
mov esi, dword [eax + 0x228]
mov ecx, esi
call dword [0x595a54]
mov ecx, ebx
call esi
push eax
push 0x5ed984
call fcn.004277d6
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
jmp 0x510cbf
xor eax, eax
mov dword [ebp - 8], eax
cmp esi, 2
jne 0x510d36
test eax, eax
je 0x510d0f
mov eax, dword [edi]
mov esi, dword [eax + 0x1c0]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
test al, 0x40
je 0x510d2d
cmp dword [ebp - 4], 0
je 0x510d0f
mov ebx, dword [ebp - 8]
push edi
mov eax, dword [ebx]
mov esi, dword [eax + 0x24c]
mov ecx, esi
call dword [0x595a54]
mov ecx, ebx
call esi
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, edi
jmp 0x510d2f
mov eax, dword [edi]
push 5
push 0
push ebx
mov esi, dword [eax + 0x1f8]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp esi, 3
jne 0x510d2d
test ebx, ebx
je 0x510d2d
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 0x184]
mov ecx, esi
call dword [0x595a54]
mov ecx, ebx
call esi
test eax, eax
je 0x510d2d
mov eax, dword [edi]
mov esi, dword [eax + 0x18c]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
test eax, eax
je 0x510d2d
mov eax, dword [edi]
push 0
mov esi, dword [eax + 0x240]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
mov eax, dword [edi]
push 0
push 1
push 5
mov esi, dword [eax + 0x34c]
mov ecx, esi
push ebx
call dword [0x595a54]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], edx
jmp 0x510d2f
Function at 0x513060
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x5130ff
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x5130fb
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5130fb
cmp dword [ebx], eax
jne 0x5130fb
mov eax, dword [ebx + 4]
sub eax, 1
je 0x5130d5
sub eax, 1
je 0x5130a5
sub eax, 1
jne 0x5130fb
mov edi, 0x428e
jmp 0x5130da
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x5130da
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x595a54]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x5130da
add edi, 3
jmp 0x5130da
mov edi, 0x3ea0
push edi
mov ecx, 0x5f6d34
call fcn.00408f48
test eax, eax
je 0x5130ff
mov eax, dword [0x5f6d34]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x5130f4
call fcn.00419557
int3

Function at 0x521939
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x5850e9
call fcn.0055ae26
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x521a20
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x521a20
cmp esi, 0x43
je 0x52197b
cmp esi, 0x2d
jne 0x521a20
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x521a20
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00407af5
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5b9ee0
push eax
call fcn.00408996
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x521a0e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x521a0e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00407117
push ebx
mov ecx, edi
call fcn.0051fcc2
call fcn.0055adf4
ret 4
Function at 0x535c5b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x18], eax
cmp edi, 0x20
jne 0x535cc7
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
mov ecx, esi
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add eax, 0x17
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00536af6
mov ecx, esi
call fcn.00535fc5
push 0xec1a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x535d13
push ebx
xor ebx, ebx
cmp dword [esi + 0x318], ebx
jne 0x535ce3
cmp edi, 0x79
je 0x535cdc
cmp edi, 0x12
jne 0x535cdf
xor ebx, ebx
inc ebx
mov eax, ebx
jmp 0x535d12
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
push 0x10
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
cmp edi, 0x12
je 0x535d23
cmp edi, 0x79
je 0x535d23
push 0xec1a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055ab65
leave
ret 0xc
cmp dword [0x5f6aa0], ebx
jne 0x535d10
test byte [esi + 0x330], 2
jne 0x535d10
cmp edi, 0x12
je 0x535d4c
cmp edi, 0x79
jne 0x535d10
mov ecx, 0x8000
test dword [ebp - 0x20], ecx
jne 0x535d10
test ecx, eax
jne 0x535d10
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00411b4a
cmp eax, esi
jne 0x535d6f
test dword [ebp + 0x10], 0x40000000
jne 0x535d6f
cmp edi, 0x79
jne 0x535d7d
mov ecx, dword [ebp - 0x18]
jmp 0x535d76
cmp edi, 0x79
jne 0x535d7d
mov ecx, esi
call fcn.0040d8cf
jmp 0x535d99
cmp dword [esi + 0x2d4], ebx
jge 0x535d99
push ebx
push 0xc8
push 0xec1a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x535d12

Function at 0x55ab73
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x55aba8
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x55aba5
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x55abb1
add edx, 0x28
cmp edx, esi
jne 0x55ab93
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x55abae

Function at 0x55b90a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x55b949
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55b949
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55b949
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x55b949
cmp dword [ecx + 0x74], 0xe
jbe 0x55b949
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x55d700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x55d725
jl 0x55d71c
test ebx, ebx
jne 0x55d725
xor eax, eax
xor edx, edx
jmp 0x55d7e2
cmp dword [esi + 0x38], 0
je 0x55d73a
push eax
push ebx
push dword [ebp + 8]
call fcn.0055d7e8
jmp 0x55d7e2
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x55d77d
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x55d77d
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0055e780
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x55d783
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x55d7d7
mov ecx, esi
call fcn.0055cf5a
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x55d7c2
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0056fd12
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x55d7d7
jmp 0x55d795
test edx, edx
je 0x55d7d7
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0056fd12
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x56916a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.0055afa0
mov ebx, esp
lea eax, [ebp - 0x30]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x569223
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
call fcn.0057782b
test eax, eax
je 0x5691cd
cmp dword [ebp - 8], esi
cmova esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea edi, [edx - 1]
not edi
lea eax, [edx - 1]
add eax, esi
lea esi, [edx + edx]
and eax, edi
lea ecx, [eax + edx]
cmove ecx, eax
mov eax, dword [ebp - 0x10]
cmp ecx, esi
cmovae esi, ecx
and edi, ebx
sub edi, esi
add eax, edx
cmp edi, eax
jb 0x569223
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x569223
lea eax, [ebp - 0x14]
push eax
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
neg eax
sbb eax, eax
neg eax
jmp 0x569225
xor eax, eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055ab65
leave
ret
Function at 0x56a1f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xc], edi
mov ebx, esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
movzx eax, word [eax]
cmp ax, word [ebx + 0x5c7a50]
je 0x56a22d
cmp ax, word [ebx + 0x5c7a58]
jne 0x56a2a3
mov ecx, edi
call fcn.0056dca7
mov cx, ax
add ebx, 2
mov eax, dword [ebp + 8]
mov word [eax], cx
cmp ebx, 6
jne 0x56a218
push ecx
mov ecx, edi
call fcn.0056e82e
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov dword [ebp + 0x14], ecx
mov ecx, edi
mov dword [ebp + 0x10], eax
call fcn.0056dca7
mov ebx, dword [ebp + 8]
movzx ecx, ax
mov word [ebx], ax
cmp cx, word [esi + str.INITY]
je 0x56a27b
cmp cx, word [esi + str.inity]
jne 0x56a2af
mov ecx, edi
call fcn.0056dca7
add esi, 2
mov word [ebx], ax
movzx ecx, ax
cmp esi, 0xa
jne 0x56a269
movzx eax, ax
mov ecx, edi
push eax
call fcn.0056e82e
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp - 0xc]
call fcn.0056b2ae
push 7
jmp 0x56a29d
lea ecx, [ebp - 0xc]
call fcn.0056b2ae
movzx eax, al
xor eax, 1
lea eax, [eax*4 + 3]
jmp 0x56a29e
Function at 0x5704f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0055afa0
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0056fb17
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x570538
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5706af
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0055b4b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5f7a08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0057b795
mov ecx, dword [esi*4 + 0x5f7a08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x5706a8
cmp eax, dword [edi + ecx + 0x24]
jne 0x5706a8
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5706a8
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057b795
add esp, 0x14
cmp edx, esi
jl 0x5706a8
jg 0x570603
cmp eax, esi
jb 0x5706a8
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x5706a8
jl 0x570625
cmp dword [ebp - 0x1008], eax
ja 0x5706a8
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x57064a
cmp ebx, esi
je 0x57068f
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x57068f
mov al, byte [ecx]
cmp al, 0xd
jne 0x570670
lea eax, [edi - 1]
cmp ecx, eax
jae 0x57067c
cmp byte [ecx + 1], 0xa
jne 0x57067c
inc ecx
jmp 0x57067c
movzx eax, al
movsx eax, byte [eax + 0x5ee490]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x570656
cmp edx, ebx
jne 0x570656
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x5706ad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055ab65
leave
ret
Function at 0x57aa8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5f7a08]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57aacd
cmp byte [ebx], 0xa
jne 0x57aacd
or byte [edi + eax + 0x28], 4
jmp 0x57aad2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x57abd5
mov cl, byte [eax]
cmp cl, 0x1a
je 0x57abb0
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x57ab01
mov eax, dword [ebp - 8]
jmp 0x57ab21
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x57ab3d
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x57ab1b
add eax, 2
mov cl, 0xa
jmp 0x57ab1e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x57aae3
jmp 0x57abd5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57abab
cmp dword [ebp - 0x10], 0
je 0x57abab
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x5f7a08]
test byte [eax + edi + 0x28], 0x48
je 0x57ab8a
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x57ab7a
mov byte [esi], 0xa
jmp 0x57abd4
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x5f7a08]
mov byte [eax + edi + 0x2a], cl
jmp 0x57abd4
cmp byte [ebp - 1], 0xa
jne 0x57ab94
cmp esi, ebx
je 0x57ab75
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057b7b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57abd5
mov byte [esi], 0xd
jmp 0x57abd4
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x5f7a08]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x57abd2
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x57abd5
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57abde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x5f7a08]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x57ac22
push 0xa
pop esi
cmp word [ebx], si
jne 0x57ac22
or byte [eax + edi + 0x28], 4
jmp 0x57ac27
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x57ad92
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x57ad6a
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x57ac74
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x57ac9e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x57acbd
push 0xa
pop ebx
cmp word [edx], bx
jne 0x57ac8b
push ebx
add eax, 4
pop edx
jmp 0x57ac93
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x57ac39
jmp 0x57ad92
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57ad65
cmp dword [ebp - 0x14], 0
je 0x57ad65
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x5f7a08]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x57ad41
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x57ad09
mov word [esi], ax
jmp 0x57ad8f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x5f7a08]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5f7a08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5f7a08]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x57ad8f
cmp word [ebp - 4], ax
jne 0x57ad4b
cmp esi, ebx
je 0x57ad01
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0057b7b3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57ad92
push 0xd
pop eax
jmp 0x57ad01
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x5f7a08]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x57ad8c
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x57ad92
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret