joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441cbb
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 0x441d11
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x441cea
call fcn.00434805
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x441cff
call fcn.00434805
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x441d11
call fcn.00434805
call fcn.004304ba
cmp dword [eax + 0x3c], 0
je 0x441d26
push esi
mov ecx, ebx
call fcn.004413e1
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.00441f0c
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x441d4f
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x441d5b
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 0x445941
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x445a87
mov ecx, 0x5f26d8
call fcn.0042fe48
mov esi, eax
test esi, esi
je 0x445a7c
xor eax, eax
cmp word [esi + 8], ax
jne 0x445a46
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x445a02
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4459c8
push 0x5a3ef0
call fcn.00445ac5
pop ecx
test eax, eax
je 0x4459c8
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 0x4459e3
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 0x445a02
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 0x445a08
push ebx
push edi
push eax
call fcn.004454ea
add esp, 0xc
jmp 0x445a08
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.0042b38b
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 0x445a81
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0042c332
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x445a49
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x445a57
push edi
call fcn.00566ae0
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00409f30
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.0042a442
call fcn.0042a45c
int3
Function at 0x454ead
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x58eb18
call fcn.0055e6b2
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 0x45503e
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x455010
sub eax, 1
je 0x454f2c
sub eax, 1
je 0x454f04
sub eax, 1
je 0x454f2c
push 0x59bfec
mov ecx, edi
call fcn.004021a0
mov eax, edi
call fcn.0055e661
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 0x454eee
lea eax, [ebp - 0x4e8]
push eax
jmp 0x454ef3
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x454eee
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.0043180b
test eax, eax
je 0x454eee
lea ecx, [ebp - 0x700]
call fcn.00402250
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x454fc6
test byte [ebp - 0x428], 0x18
jne 0x454fe8
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 [0x59ba48]
mov ecx, ebx
call esi
jmp 0x454fe8
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 [0x59ba48]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00403fb0
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.0042ac58
jmp 0x454efa
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 0x454eee
lea eax, [ebp - 0x6f0]
jmp 0x454f29
call fcn.0042a442
int3

Function at 0x4551b6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004a533f
call fcn.00430508
cmp dword [eax + 0x14], 0
jne 0x4551d1
mov ecx, esi
pop esi
jmp fcn.004544ba
pop esi
ret

Function at 0x455b4c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5f31c0]
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 0x455bb6
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 0x455b9b
lea eax, [ebp - 0x2ac]
push eax
jmp 0x455ba0
push 0x5a6fd0
call fcn.004021a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055e0c1
leave
ret 8
call fcn.0042a442
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.0040a510
call fcn.00430508
cmp dword [eax + 0x14], 0
jne 0x4560b6
mov ecx, esi
pop esi
jmp fcn.004558f6
pop esi
ret
Function at 0x45effe
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 0x45f017
call fcn.004304ba
mov esi, dword [eax + 0xc]
push 0x5a86bc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45f059
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f059
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45f059
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0045f062
jmp 0x45f05b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x48706a
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 0x4871f1
je 0x487218
sub eax, 0xa1
je 0x487218
sub eax, 1
je 0x487218
dec eax
sub eax, 1
je 0x487218
sub eax, 1
je 0x487218
dec eax
sub eax, 1
je 0x487218
sub eax, 1
je 0x487218
sub eax, 0x58
jne 0x487256
cmp dword [edi + 0xc0], 0xffffffff
je 0x487218
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x487218
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x487146
sub eax, 1
jne 0x487218
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x487135
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 [0x59ba48]
mov ecx, edi
call esi
test eax, eax
jne 0x487192
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x48710b
jmp 0x487270
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x487270
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 [0x59ba48]
mov ecx, edi
call esi
test eax, eax
jne 0x487192
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x48715d
jmp 0x487270
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x59ba48]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x59ba48]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00433add
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x59ba48]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x487270
sub eax, 0x200
je 0x487218
sub eax, 1
je 0x487218
sub eax, 1
je 0x487218
dec eax
sub eax, 1
je 0x487218
sub eax, 1
je 0x487218
dec eax
sub eax, 1
je 0x487218
sub eax, 1
jne 0x487256
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x487237
cmp dword [eax + 0x20], ebx
je 0x487237
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 0x487256
cmp dword [eax + 0x20], ebx
je 0x487256
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x487275
lea eax, [edi + 0x2250]
test eax, eax
je 0x48726c
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x487275
xor eax, eax
inc eax
jmp 0x48727d
push esi
mov ecx, edi
call fcn.0047f02d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a59e3
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5f31c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4a5a0f
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4a5a3a
cmp dword [0x5f9f5c], 0
jne 0x4a5a3a
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4a5a36
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4a5a36
push edi
call fcn.005745d5
pop ecx
jmp 0x4a5ab1
mov eax, edi
jmp 0x4a5ab1
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00563630
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4a5ac0
push esi
call fcn.00431d3e
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.0055e0c1
leave
ret 4
call fcn.0042a442
int3
Function at 0x4c2531
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 0x4c268f
push esi
push edi
push 0x5b4568
call fcn.0042b264
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4c25ca
mov edi, dword [ebx + 0x168]
jmp 0x4c25b6
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 0x4c25b6
push esi
call fcn.00437d7b
push eax
push 0x5f2a70
call fcn.0042b1c5
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4c25b6
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x59ba48]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4c25b6
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4c2565
lea ecx, [ebx + 0x164]
call fcn.0042e015
jmp 0x4c268d
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c268d
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.0042df04
mov edi, dword [eax]
test edi, edi
jne 0x4c25f6
xor esi, esi
jmp 0x4c25f9
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 0x4c267d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c267d
cmp dword [ebp - 0x10], 0
jne 0x4c2652
push edi
push 0x5f2a70
call fcn.0042b1c5
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x59ba48]
mov ecx, edi
call esi
push eax
push 0x5a9660
call fcn.0042b1c5
pop ecx
pop ecx
test eax, eax
je 0x4c267d
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.004c16a2
test eax, eax
jne 0x4c267d
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004bf7d8
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4c25e1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4fbb09
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 0x4fbb36
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4fbb4b
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4fbb4b
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.00437d7b
jmp 0x4fbc1c
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00437d7b
cmp eax, edi
jne 0x4fbc26
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 0x4fbbb8
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 0x4fbbfc
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4fbc26
cmp eax, 0x205
je 0x4fbc26
cmp eax, 0x201
je 0x4fbc26
cmp eax, 0x204
je 0x4fbc26
cmp eax, 0x100
jne 0x4fbbe4
cmp dword [ebp - 0x18], 0x1b
je 0x4fbc26
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 0x4fbc1c
ja 0x4fbc15
cmp eax, dword [0x5fb3b8]
jbe 0x4fbc1c
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4fbb6d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4fbffe
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4fc034
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0042f4e9
test eax, eax
je 0x4fc01c
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 0x502af1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5f2964], 0
push esi
push edi
je 0x502b79
cmp dword [0x5f2ca0], 0xfffffffe
jne 0x502b65
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x502b79
mov edi, 0x5fb3e4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5fb3fc], 0
jne 0x502b7d
push 0
push 0
push 0x502b83
call fcn.00572b41
add esp, 0xc
mov dword [0x5fb3fc], eax
test eax, eax
je 0x502b55
cmp eax, 0xffffffff
je 0x502b55
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5f2ca0], esi
jmp 0x502b5c
and dword [0x5fb3fc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x502b79
mov eax, dword [ebp + 8]
mov dword [0x5f2ca0], eax
cmp eax, 0xffffffff
jne 0x502b79
and dword [0x5fb3fc], 0
pop edi
pop esi
pop ebp
ret
call fcn.0042a442
int3
Function at 0x50c156
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 0x50c1f5
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x50c1f1
mov eax, dword [eax + 0x20]
test eax, eax
je 0x50c1f1
cmp dword [ebx], eax
jne 0x50c1f1
mov eax, dword [ebx + 4]
sub eax, 1
je 0x50c1cb
sub eax, 1
je 0x50c19b
sub eax, 1
jne 0x50c1f1
mov edi, 0x428e
jmp 0x50c1d0
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x50c1d0
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x59ba48]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x50c1d0
add edi, 3
jmp 0x50c1d0
mov edi, 0x3ea0
push edi
mov ecx, 0x5fb440
call fcn.00427690
test eax, eax
je 0x50c1f5
mov eax, dword [0x5fb440]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x50c1ea
call fcn.0042a442
int3

Function at 0x5160ed
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.00574605
pop ecx
test eax, eax
jne 0x51612f
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.0042c9d9
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5160f5
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 0x51d0ae
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x58e39b
call fcn.0055e67f
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x51d19a
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x51d19a
cmp esi, 0x43
je 0x51d0f0
cmp esi, 0x2d
jne 0x51d19a
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51d19a
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402250
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 0x5be680
push eax
call fcn.00404820
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 0x51d188
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x51d188
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.0042ac58
push ebx
mov ecx, edi
call fcn.0051a532
call fcn.0055e64d
ret 4
Function at 0x55f196
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x55f1d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55f1d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55f1d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x55f1d5
cmp dword [ecx + 0x74], 0xe
jbe 0x55f1d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x55f9d8
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 0x55faa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x55fa08
xor esi, esi
jmp 0x55faa9
cmp eax, 3
je 0x55fa19
push 0
push edi
call fcn.0055fab1
test eax, eax
jne 0x55fa01
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x55fa96
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x55fa32
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x55fa2b
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x55fa96
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0055f9d8
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x55faa8
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x55fa92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x55fa83
xor esi, esi
inc esi
jmp 0x55faa8
test esi, esi
jle 0x55faa8
movzx esi, si
or esi, 0x80070000
jmp 0x55faa8
xor esi, esi
jmp 0x55faa8
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.00443595
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x55fab1
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 0x55fad5
test al, 0x10
je 0x55fad5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x55fad2
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x561e87
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 0x561ea8
jl 0x561e9f
test edi, edi
jne 0x561ea8
xor eax, eax
xor edx, edx
jmp 0x561f69
cmp dword [ebx + 0x38], 0
je 0x561ebd
push eax
push edi
push dword [ebp + 8]
call fcn.00561f6f
jmp 0x561f69
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x561f04
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x561f04
cmp eax, edi
jb 0x561ede
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.005630b0
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 0x561f0a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x561f5e
mov ecx, ebx
call fcn.00561651
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x561f49
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00574f21
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 0x561f5e
jmp 0x561f1c
test edx, edx
je 0x561f5e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00574f21
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