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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x44dd91
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x44dd6a
call fcn.0044090e
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x44dd7f
call fcn.0044090e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x44dd91
call fcn.0044090e
call fcn.0043c9c1
cmp dword [eax + 0x3c], 0
je 0x44dda6
push esi
mov ecx, ebx
call fcn.0044d461
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.0044df8c
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x44ddcf
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x44dddb
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4519ac
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x451af2
mov ecx, 0x5ff6e8
call fcn.0043c34f
mov esi, eax
test esi, esi
je 0x451ae7
xor eax, eax
cmp word [esi + 8], ax
jne 0x451ab1
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x451a6d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x451a33
push 0x5b1780
call fcn.00451b30
pop ecx
test eax, eax
je 0x451a33
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x451a4e
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x451a6d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x451a73
push ebx
push edi
push eax
call fcn.00451555
add esp, 0xc
jmp 0x451a73
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0040c070
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x451aec
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00438a27
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x451ab4
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x451ac2
push edi
call fcn.00572530
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00409c80
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00436e27
call fcn.00436e41
int3
Function at 0x460cd3
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x59a75b
call fcn.0056a472
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 0x460e64
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x460e36
sub eax, 1
je 0x460d52
sub eax, 1
je 0x460d2a
sub eax, 1
je 0x460d52
push 0x5a8d64
mov ecx, edi
call fcn.004020c0
mov eax, edi
call fcn.0056a421
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 0x460d14
lea eax, [ebp - 0x4e8]
push eax
jmp 0x460d19
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x460d14
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.0043da25
test eax, eax
je 0x460d14
lea ecx, [ebp - 0x700]
call fcn.00402220
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x460dec
test byte [ebp - 0x428], 0x18
jne 0x460e0e
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 [0x5a7a48]
mov ecx, ebx
call esi
jmp 0x460e0e
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 [0x5a7a48]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.004044b0
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00408e80
jmp 0x460d20
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 0x460d14
lea eax, [ebp - 0x6f0]
jmp 0x460d4f
call fcn.00436e27
int3

Function at 0x460fdc
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004b1105
call fcn.0043ca0f
cmp dword [eax + 0x14], 0
jne 0x460ff7
mov ecx, esi
pop esi
jmp fcn.004602e0
pop esi
ret

Function at 0x461972
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x6001c0]
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 0x4619dc
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 0x4619c1
lea eax, [ebp - 0x2ac]
push eax
jmp 0x4619c6
push 0x5b4860
call fcn.004020c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00569e84
leave
ret 8
call fcn.00436e27
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.0043bfad
call fcn.0043ca0f
cmp dword [eax + 0x14], 0
jne 0x461edc
mov ecx, esi
pop esi
jmp fcn.0046171c
pop esi
ret
Function at 0x46ada6
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 0x46adbf
call fcn.0043c9c1
mov esi, dword [eax + 0xc]
push 0x5b5f4c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x46ae01
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46ae01
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46ae01
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046ae0a
jmp 0x46ae03
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x492e2f
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 0x492fb6
je 0x492fdd
sub eax, 0xa1
je 0x492fdd
sub eax, 1
je 0x492fdd
dec eax
sub eax, 1
je 0x492fdd
sub eax, 1
je 0x492fdd
dec eax
sub eax, 1
je 0x492fdd
sub eax, 1
je 0x492fdd
sub eax, 0x58
jne 0x49301b
cmp dword [edi + 0xc0], 0xffffffff
je 0x492fdd
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x492fdd
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x492f0b
sub eax, 1
jne 0x492fdd
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x492efa
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 [0x5a7a48]
mov ecx, edi
call esi
test eax, eax
jne 0x492f57
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x492ed0
jmp 0x493035
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x493035
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 [0x5a7a48]
mov ecx, edi
call esi
test eax, eax
jne 0x492f57
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x492f22
jmp 0x493035
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5a7a48]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5a7a48]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0043fbe6
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5a7a48]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x493035
sub eax, 0x200
je 0x492fdd
sub eax, 1
je 0x492fdd
sub eax, 1
je 0x492fdd
dec eax
sub eax, 1
je 0x492fdd
sub eax, 1
je 0x492fdd
dec eax
sub eax, 1
je 0x492fdd
sub eax, 1
jne 0x49301b
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x492ffc
cmp dword [eax + 0x20], ebx
je 0x492ffc
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 0x49301b
cmp dword [eax + 0x20], ebx
je 0x49301b
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x49303a
lea eax, [edi + 0x2250]
test eax, eax
je 0x493031
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x49303a
xor eax, eax
inc eax
jmp 0x493042
push esi
mov ecx, edi
call fcn.0048adf6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b17a9
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6001c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4b17d5
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4b1800
cmp dword [0x606f5c], 0
jne 0x4b1800
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4b17fc
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4b17fc
push edi
call fcn.00580025
pop ecx
jmp 0x4b1877
mov eax, edi
jmp 0x4b1877
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0056eec0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4b1886
push esi
call fcn.0043df58
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.00569e84
leave
ret 4
call fcn.00436e27
int3
Function at 0x4ce2f9
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 0x4ce457
push esi
push edi
push 0x5c1df8
call fcn.00437a4b
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4ce392
mov edi, dword [ebx + 0x168]
jmp 0x4ce37e
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 0x4ce37e
push esi
call fcn.00443e8e
push eax
push 0x5ffa80
call fcn.004379ac
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4ce37e
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5a7a48]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4ce37e
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4ce32d
lea ecx, [ebx + 0x164]
call fcn.0043a605
jmp 0x4ce455
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4ce455
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00405c40
mov edi, dword [eax]
test edi, edi
jne 0x4ce3be
xor esi, esi
jmp 0x4ce3c1
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 0x4ce445
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ce445
cmp dword [ebp - 0x10], 0
jne 0x4ce41a
push edi
push 0x5ffa80
call fcn.004379ac
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5a7a48]
mov ecx, edi
call esi
push eax
push 0x5b6ef0
call fcn.004379ac
pop ecx
pop ecx
test eax, eax
je 0x4ce445
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.004cd46a
test eax, eax
jne 0x4ce445
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004cb5a0
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4ce3a9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5078d1
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 0x5078fe
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x507913
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x507913
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.00443e8e
jmp 0x5079e4
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00443e8e
cmp eax, edi
jne 0x5079ee
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 0x507980
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 0x5079c4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x5079ee
cmp eax, 0x205
je 0x5079ee
cmp eax, 0x201
je 0x5079ee
cmp eax, 0x204
je 0x5079ee
cmp eax, 0x100
jne 0x5079ac
cmp dword [ebp - 0x18], 0x1b
je 0x5079ee
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 0x5079e4
ja 0x5079dd
cmp eax, dword [0x6083b8]
jbe 0x5079e4
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x507935
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x507dc6
Capabilities:
Create process on windows

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5ff974], 0
push esi
push edi
je 0x50e940
cmp dword [0x5ffcb0], 0xfffffffe
jne 0x50e92c
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x50e940
mov edi, 0x6083e4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x6083fc], 0
jne 0x50e944
push 0
push 0
push 0x50e94a
call fcn.0057e591
add esp, 0xc
mov dword [0x6083fc], eax
test eax, eax
je 0x50e91c
cmp eax, 0xffffffff
je 0x50e91c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5ffcb0], esi
jmp 0x50e923
and dword [0x6083fc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x50e940
mov eax, dword [ebp + 8]
mov dword [0x5ffcb0], eax
cmp eax, 0xffffffff
jne 0x50e940
and dword [0x6083fc], 0
pop edi
pop esi
pop ebp
ret
call fcn.00436e27
int3
Function at 0x517f1d
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 0x517fbc
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x517fb8
mov eax, dword [eax + 0x20]
test eax, eax
je 0x517fb8
cmp dword [ebx], eax
jne 0x517fb8
mov eax, dword [ebx + 4]
sub eax, 1
je 0x517f92
sub eax, 1
je 0x517f62
sub eax, 1
jne 0x517fb8
mov edi, 0x428e
jmp 0x517f97
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x517f97
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5a7a48]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x517f97
add edi, 3
jmp 0x517f97
mov edi, 0x3ea0
push edi
mov ecx, 0x608440
call fcn.00407710
test eax, eax
je 0x517fbc
mov eax, dword [0x608440]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x517fb1
call fcn.00436e27
int3

Function at 0x521eb4
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.00580055
pop ecx
test eax, eax
jne 0x521ef6
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.004390a1
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x521ebc
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 0x528e75
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5958bd
call fcn.0056a43f
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x528f61
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x528f61
cmp esi, 0x43
je 0x528eb7
cmp esi, 0x2d
jne 0x528f61
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x528f61
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 0x5cbf10
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 0x528f4f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x528f4f
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.005262f9
call fcn.0056a40d
ret 4
Function at 0x56af56
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x56af95
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56af95
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56af95
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x56af95
cmp dword [ecx + 0x74], 0xe
jbe 0x56af95
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x56b798
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 0x56b869
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x56b7c8
xor esi, esi
jmp 0x56b869
cmp eax, 3
je 0x56b7d9
push 0
push edi
call fcn.0056b871
test eax, eax
jne 0x56b7c1
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x56b856
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x56b7f2
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x56b7eb
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x56b856
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0056b798
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x56b868
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x56b852
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x56b843
xor esi, esi
inc esi
jmp 0x56b868
test esi, esi
jle 0x56b868
movzx esi, si
or esi, 0x80070000
jmp 0x56b868
xor esi, esi
jmp 0x56b868
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.0044f581
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x56b871
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 0x56b895
test al, 0x10
je 0x56b895
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x56b892
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x56d8df
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 0x56d900
jl 0x56d8f7
test edi, edi
jne 0x56d900
xor eax, eax
xor edx, edx
jmp 0x56d9c1
cmp dword [ebx + 0x38], 0
je 0x56d915
push eax
push edi
push dword [ebp + 8]
call fcn.0056d9c7
jmp 0x56d9c1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x56d95c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x56d95c
cmp eax, edi
jb 0x56d936
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0056e940
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 0x56d962
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x56d9b6
mov ecx, ebx
call fcn.0056d18d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x56d9a1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00580971
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 0x56d9b6
jmp 0x56d974
test edx, edx
je 0x56d9b6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00580971
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