joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c0a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x46c0bc
call fcn.0043dcc1
mov esi, dword [eax + 0xc]
push 0x5b9c04
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x46c0fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c0fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46c0fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046c107
jmp 0x46c100
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x49413a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4942c1
je 0x4942e8
sub eax, 0xa1
je 0x4942e8
sub eax, 1
je 0x4942e8
dec eax
sub eax, 1
je 0x4942e8
sub eax, 1
je 0x4942e8
dec eax
sub eax, 1
je 0x4942e8
sub eax, 1
je 0x4942e8
sub eax, 0x58
jne 0x494326
cmp dword [edi + 0xc0], 0xffffffff
je 0x4942e8
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4942e8
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x494216
sub eax, 1
jne 0x4942e8
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x494205
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, edi
call esi
test eax, eax
jne 0x494262
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4941db
jmp 0x494340
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x494340
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, edi
call esi
test eax, eax
jne 0x494262
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x49422d
jmp 0x494340
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00440ee7
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x494340
sub eax, 0x200
je 0x4942e8
sub eax, 1
je 0x4942e8
sub eax, 1
je 0x4942e8
dec eax
sub eax, 1
je 0x4942e8
sub eax, 1
je 0x4942e8
dec eax
sub eax, 1
je 0x4942e8
sub eax, 1
jne 0x494326
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x494307
cmp dword [eax + 0x20], ebx
je 0x494307
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x494326
cmp dword [eax + 0x20], ebx
je 0x494326
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x494345
lea eax, [edi + 0x2250]
test eax, eax
je 0x49433c
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x494345
xor eax, eax
inc eax
jmp 0x49434d
push esi
mov ecx, edi
call fcn.0048c101
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b2ab1
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6041c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4b2add
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4b2b08
cmp dword [0x60af5c], 0
jne 0x4b2b08
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4b2b04
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4b2b04
push edi
call fcn.00582345
pop ecx
jmp 0x4b2b7f
mov eax, edi
jmp 0x4b2b7f
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005701c0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4b2b8e
push esi
call fcn.0043f258
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.0056b18c
leave
ret 4
call fcn.00438127
int3
Function at 0x4cf5fc
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 0x4cf75a
push esi
push edi
push 0x5c5ab0
call fcn.00438d4b
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4cf695
mov edi, dword [ebx + 0x168]
jmp 0x4cf681
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 0x4cf681
push esi
call fcn.0044518e
push eax
push 0x603a80
call fcn.00438cac
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4cf681
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4cf681
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4cf630
lea ecx, [ebx + 0x164]
call fcn.0043b905
jmp 0x4cf758
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4cf758
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00405c40
mov edi, dword [eax]
test edi, edi
jne 0x4cf6c1
xor esi, esi
jmp 0x4cf6c4
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 0x4cf748
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4cf748
cmp dword [ebp - 0x10], 0
jne 0x4cf71d
push edi
push 0x603a80
call fcn.00438cac
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, edi
call esi
push eax
push 0x5baba8
call fcn.00438cac
pop ecx
pop ecx
test eax, eax
je 0x4cf748
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.004ce76d
test eax, eax
jne 0x4cf748
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004cc8a3
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4cf6ac
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x508bd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x508c01
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x508c16
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x508c16
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0044518e
jmp 0x508ce7
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0044518e
cmp eax, edi
jne 0x508cf1
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x508c83
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x508cc7
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x508cf1
cmp eax, 0x205
je 0x508cf1
cmp eax, 0x201
je 0x508cf1
cmp eax, 0x204
je 0x508cf1
cmp eax, 0x100
jne 0x508caf
cmp dword [ebp - 0x18], 0x1b
je 0x508cf1
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x508ce7
ja 0x508ce0
cmp eax, dword [0x60c3b8]
jbe 0x508ce7
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x508c38
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5090c9
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x5090ff
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0043cd5e
test eax, eax
je 0x5090e7
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 0x50fbbb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x603974], 0
push esi
push edi
je 0x50fc43
cmp dword [0x603cb0], 0xfffffffe
jne 0x50fc2f
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x50fc43
mov edi, 0x60c3e4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x60c3fc], 0
jne 0x50fc47
push 0
push 0
push 0x50fc4d
call fcn.005808b2
add esp, 0xc
mov dword [0x60c3fc], eax
test eax, eax
je 0x50fc1f
cmp eax, 0xffffffff
je 0x50fc1f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x603cb0], esi
jmp 0x50fc26
and dword [0x60c3fc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x50fc43
mov eax, dword [ebp + 8]
mov dword [0x603cb0], eax
cmp eax, 0xffffffff
jne 0x50fc43
and dword [0x60c3fc], 0
pop edi
pop esi
pop ebp
ret
call fcn.00438127
int3
Function at 0x51921f
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 0x5192be
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x5192ba
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5192ba
cmp dword [ebx], eax
jne 0x5192ba
mov eax, dword [ebx + 4]
sub eax, 1
je 0x519294
sub eax, 1
je 0x519264
sub eax, 1
jne 0x5192ba
mov edi, 0x428e
jmp 0x519299
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x519299
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5aaa48]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x519299
add edi, 3
jmp 0x519299
mov edi, 0x3ea0
push edi
mov ecx, 0x60c440
call fcn.00407710
test eax, eax
je 0x5192be
mov eax, dword [0x60c440]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x5192b3
call fcn.00438127
int3

Function at 0x5231b7
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00582375
pop ecx
test eax, eax
jne 0x5231f9
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043a3a1
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5231bf
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

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

Disassembly:
push 8
mov eax, 0x5982ad
call fcn.0056b73f
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x52a263
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x52a263
cmp esi, 0x43
je 0x52a1b9
cmp esi, 0x2d
jne 0x52a263
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x52a263
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402220
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 0x5cfbc8
push eax
call fcn.00405320
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
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 0x52a251
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x52a251
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00408e80
push ebx
mov ecx, edi
call fcn.005275fd
call fcn.0056b70d
ret 4
Function at 0x56c256
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x56cb69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x56cac8
xor esi, esi
jmp 0x56cb69
cmp eax, 3
je 0x56cad9
push 0
push edi
call fcn.0056cb71
test eax, eax
jne 0x56cac1
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x56cb56
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x56caf2
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x56caeb
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x56cb56
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0056ca98
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x56cb68
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x56cb52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x56cb43
xor esi, esi
inc esi
jmp 0x56cb68
test esi, esi
jle 0x56cb68
movzx esi, si
or esi, 0x80070000
jmp 0x56cb68
xor esi, esi
jmp 0x56cb68
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.00450880
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x56cb95
test al, 0x10
je 0x56cb95
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x56cb92
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x56ebdf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x56ec00
jl 0x56ebf7
test edi, edi
jne 0x56ec00
xor eax, eax
xor edx, edx
jmp 0x56ecc1
cmp dword [ebx + 0x38], 0
je 0x56ec15
push eax
push edi
push dword [ebp + 8]
call fcn.0056ecc7
jmp 0x56ecc1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x56ec5c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x56ec5c
cmp eax, edi
jb 0x56ec36
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0056fc40
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x56ec62
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x56ecb6
mov ecx, ebx
call fcn.0056e48d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x56eca1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00582c91
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x56ecb6
jmp 0x56ec74
test edx, edx
je 0x56ecb6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00582c91
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x56edb6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x56edd8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0056ee9b
jmp 0x56ee96
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x56edfe
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x56ee03
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x56ee63
jg 0x56ee18
test esi, esi
je 0x56ee63
test ecx, ecx
jl 0x56ee5e
jg 0x56ee22
test eax, eax
je 0x56ee5e
cmp edi, ecx
jg 0x56ee34
jl 0x56ee2c
cmp esi, eax
jae 0x56ee34
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0056fc40
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x56ee66
mov ecx, dword [ebp + 8]
jmp 0x56ee70
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x56ee8a
jg 0x56ee70
test esi, esi
je 0x56ee8a
cmp dword [ebx + 0x4c], 0
je 0x56ee8a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0057daf2
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x58b598
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058b51a

Function at 0x58e2a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058e119

Function at 0x5979e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x597a0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x597a0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408c93
Capabilities:
Terminate process

Disassembly:
inc eax
inc ecx
lea ecx, [eax + 2]
call fcn.004091a4
mov ecx, 3
call fcn.00409918
int3
Function at 0x41c1f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fee0
push 0x41c1ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x42a730], 0xffffffff
or dword [0x42a734], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x428708]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x428704]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42a72c], eax
call fcn.0041c335
cmp dword [0x4263a0], 0
jne 0x41c275
push 0x41c332
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041c320
push 0x425050
push 0x42504c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x428700]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4286fc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x425048
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00404431
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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