joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4612ae
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x59c32b
call fcn.0056aa42
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x46143f
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x461411
sub eax, 1
je 0x46132d
sub eax, 1
je 0x461305
sub eax, 1
je 0x46132d
push 0x5aae4c
mov ecx, edi
call fcn.004020c0
mov eax, edi
call fcn.0056a9f1
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4612ef
lea eax, [ebp - 0x4e8]
push eax
jmp 0x4612f4
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4612ef
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.0043e005
test eax, eax
je 0x4612ef
lea ecx, [ebp - 0x700]
call fcn.00402220
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x4613c7
test byte [ebp - 0x428], 0x18
jne 0x4613e9
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x5a9a3c]
mov ecx, ebx
call esi
jmp 0x4613e9
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5a9a3c]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00404860
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004094a0
jmp 0x4612fb
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4612ef
lea eax, [ebp - 0x6f0]
jmp 0x46132a
call fcn.00437407
int3

Function at 0x4615b7
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004b16df
call fcn.0043cfef
cmp dword [eax + 0x14], 0
jne 0x4615d2
mov ecx, esi
pop esi
jmp fcn.004608bb
pop esi
ret

Function at 0x461f4d
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x6031c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x461fb7
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x461f9c
lea eax, [ebp - 0x2ac]
push eax
jmp 0x461fa1
push 0x5b75c0
call fcn.004020c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056a45e
leave
ret 8
call fcn.00437407
int3

Function at 0x46249c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0043c58d
call fcn.0043cfef
cmp dword [eax + 0x14], 0
jne 0x4624b7
mov ecx, esi
pop esi
jmp fcn.00461cf7
pop esi
ret
Function at 0x46b382
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 0x46b39b
call fcn.0043cfa1
mov esi, dword [eax + 0xc]
push 0x5b8cac
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x46b3dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46b3dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46b3dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046b3e6
jmp 0x46b3df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x49340e
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 0x493595
je 0x4935bc
sub eax, 0xa1
je 0x4935bc
sub eax, 1
je 0x4935bc
dec eax
sub eax, 1
je 0x4935bc
sub eax, 1
je 0x4935bc
dec eax
sub eax, 1
je 0x4935bc
sub eax, 1
je 0x4935bc
sub eax, 0x58
jne 0x4935fa
cmp dword [edi + 0xc0], 0xffffffff
je 0x4935bc
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4935bc
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4934ea
sub eax, 1
jne 0x4935bc
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4934d9
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 [0x5a9a3c]
mov ecx, edi
call esi
test eax, eax
jne 0x493536
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4934af
jmp 0x493614
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x493614
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 [0x5a9a3c]
mov ecx, edi
call esi
test eax, eax
jne 0x493536
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x493501
jmp 0x493614
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5a9a3c]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5a9a3c]
mov ecx, edi
call esi
mov ecx, eax
call fcn.004401c6
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5a9a3c]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x493614
sub eax, 0x200
je 0x4935bc
sub eax, 1
je 0x4935bc
sub eax, 1
je 0x4935bc
dec eax
sub eax, 1
je 0x4935bc
sub eax, 1
je 0x4935bc
dec eax
sub eax, 1
je 0x4935bc
sub eax, 1
jne 0x4935fa
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4935db
cmp dword [eax + 0x20], ebx
je 0x4935db
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 0x4935fa
cmp dword [eax + 0x20], ebx
je 0x4935fa
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x493619
lea eax, [edi + 0x2250]
test eax, eax
je 0x493610
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x493619
xor eax, eax
inc eax
jmp 0x493621
push esi
mov ecx, edi
call fcn.0048b3d5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b1d83
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6031c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4b1daf
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4b1dda
cmp dword [0x609f5c], 0
jne 0x4b1dda
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4b1dd6
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4b1dd6
push edi
call fcn.00581625
pop ecx
jmp 0x4b1e51
mov eax, edi
jmp 0x4b1e51
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0056f490
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4b1e60
push esi
call fcn.0043e538
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.0056a45e
leave
ret 4
call fcn.00437407
int3
Function at 0x4ce8d0
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 0x4cea2e
push esi
push edi
push 0x5c4b58
call fcn.0043802b
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4ce969
mov edi, dword [ebx + 0x168]
jmp 0x4ce955
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 0x4ce955
push esi
call fcn.0044446c
push eax
push 0x602a80
call fcn.00437f8c
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4ce955
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5a9a3c]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4ce955
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4ce904
lea ecx, [ebx + 0x164]
call fcn.0043abe5
jmp 0x4cea2c
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4cea2c
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00405ff0
mov edi, dword [eax]
test edi, edi
jne 0x4ce995
xor esi, esi
jmp 0x4ce998
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 0x4cea1c
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4cea1c
cmp dword [ebp - 0x10], 0
jne 0x4ce9f1
push edi
push 0x602a80
call fcn.00437f8c
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5a9a3c]
mov ecx, edi
call esi
push eax
push 0x5b9c50
call fcn.00437f8c
pop ecx
pop ecx
test eax, eax
je 0x4cea1c
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.004cda41
test eax, eax
jne 0x4cea1c
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004cbb77
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4ce980
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x507ea8
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 0x507ed5
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x507eea
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x507eea
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.0044446c
jmp 0x507fbb
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0044446c
cmp eax, edi
jne 0x507fc5
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 0x507f57
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 0x507f9b
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x507fc5
cmp eax, 0x205
je 0x507fc5
cmp eax, 0x201
je 0x507fc5
cmp eax, 0x204
je 0x507fc5
cmp eax, 0x100
jne 0x507f83
cmp dword [ebp - 0x18], 0x1b
je 0x507fc5
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 0x507fbb
ja 0x507fb4
cmp eax, dword [0x60b3b8]
jbe 0x507fbb
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x507f0c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x50839d
Capabilities:
Create process on windows

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x602974], 0
push esi
push edi
je 0x50ef17
cmp dword [0x602cb0], 0xfffffffe
jne 0x50ef03
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x50ef17
mov edi, 0x60b3e4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x60b3fc], 0
jne 0x50ef1b
push 0
push 0
push 0x50ef21
call fcn.0057fb92
add esp, 0xc
mov dword [0x60b3fc], eax
test eax, eax
je 0x50eef3
cmp eax, 0xffffffff
je 0x50eef3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x602cb0], esi
jmp 0x50eefa
and dword [0x60b3fc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x50ef17
mov eax, dword [ebp + 8]
mov dword [0x602cb0], eax
cmp eax, 0xffffffff
jne 0x50ef17
and dword [0x60b3fc], 0
pop edi
pop esi
pop ebp
ret
call fcn.00437407
int3
Function at 0x5184f1
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 0x518590
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x51858c
mov eax, dword [eax + 0x20]
test eax, eax
je 0x51858c
cmp dword [ebx], eax
jne 0x51858c
mov eax, dword [ebx + 4]
sub eax, 1
je 0x518566
sub eax, 1
je 0x518536
sub eax, 1
jne 0x51858c
mov edi, 0x428e
jmp 0x51856b
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x51856b
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5a9a3c]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x51856b
add edi, 3
jmp 0x51856b
mov edi, 0x3ea0
push edi
mov ecx, 0x60b440
call fcn.00407d30
test eax, eax
je 0x518590
mov eax, dword [0x60b440]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x518585
call fcn.00437407
int3

Function at 0x522488
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.00581655
pop ecx
test eax, eax
jne 0x5224ca
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.00439681
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x522490
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 0x52944a
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x59759d
call fcn.0056aa0f
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x529536
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x529536
cmp esi, 0x43
je 0x52948c
cmp esi, 0x2d
jne 0x529536
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x529536
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 0x5cec70
push eax
call fcn.004056d0
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 0x529524
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x529524
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.004094a0
push ebx
mov ecx, edi
call fcn.005268cd
call fcn.0056a9dd
ret 4
Function at 0x56b526
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x56b565
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56b565
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56b565
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x56b565
cmp dword [ecx + 0x74], 0xe
jbe 0x56b565
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x56bd68
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 0x56be39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x56bd98
xor esi, esi
jmp 0x56be39
cmp eax, 3
je 0x56bda9
push 0
push edi
call fcn.0056be41
test eax, eax
jne 0x56bd91
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x56be26
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x56bdc2
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x56bdbb
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x56be26
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0056bd68
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x56be38
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x56be22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x56be13
xor esi, esi
inc esi
jmp 0x56be38
test esi, esi
jle 0x56be38
movzx esi, si
or esi, 0x80070000
jmp 0x56be38
xor esi, esi
jmp 0x56be38
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.0044fb5d
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x56be41
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 0x56be65
test al, 0x10
je 0x56be65
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x56be62
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x56deaf
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 0x56ded0
jl 0x56dec7
test edi, edi
jne 0x56ded0
xor eax, eax
xor edx, edx
jmp 0x56df91
cmp dword [ebx + 0x38], 0
je 0x56dee5
push eax
push edi
push dword [ebp + 8]
call fcn.0056df97
jmp 0x56df91
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x56df2c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x56df2c
cmp eax, edi
jb 0x56df06
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0056ef10
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 0x56df32
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x56df86
mov ecx, ebx
call fcn.0056d75d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x56df71
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00581f71
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 0x56df86
jmp 0x56df44
test edx, edx
je 0x56df86
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00581f71
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 0x56e086
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 0x56e0a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0056e16b
jmp 0x56e166
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 0x56e0ce
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x56e0d3
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 0x56e133
jg 0x56e0e8
test esi, esi
je 0x56e133
test ecx, ecx
jl 0x56e12e
jg 0x56e0f2
test eax, eax
je 0x56e12e
cmp edi, ecx
jg 0x56e104
jl 0x56e0fc
cmp esi, eax
jae 0x56e104
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.0056ef10
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 0x56e136
mov ecx, dword [ebp + 8]
jmp 0x56e140
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x56e15a
jg 0x56e140
test esi, esi
je 0x56e15a
cmp dword [ebx + 0x4c], 0
je 0x56e15a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0057cdd2
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 0x58a878
Capabilities:
Print debug messages

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

Function at 0x58d593
Capabilities:
Read file on windows

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

Function at 0x596cd0
Capabilities:
Parse pe header

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