joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ecb6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x5aba34]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x46ece9
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00402c25
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0046e4f2
int3

Function at 0x46edbd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x46ede8
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46edee
cmp dword [ebp - 4], esi
jne 0x46ee05
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00402c25
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0046e4f2
lea ecx, [edi + 0xc]
call fcn.00402c25
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0046e148
int3
Function at 0x4724a8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x60b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x635e28]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x472501
push 0x5b0fe0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x472526
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x635e28], eax
jmp 0x47250a
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x472526
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x5aba34]
call esi
jmp 0x472668
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.0047281f
lea eax, [ebp - 0x14]
push eax
call fcn.00571acd
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0057fa7b
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0047281f
lea eax, [ebp - 0x14]
push eax
call fcn.00571acd
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.0057fa7b
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.0047281f
lea eax, [ebp - 0x14]
push eax
call fcn.00571acd
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0057fa7b
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0047281f
lea eax, [ebp - 0x14]
push eax
call fcn.00571acd
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0057fa7b
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.0047281f
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00571acd
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0057fa7b
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005616bd
leave
ret
Function at 0x4775d8
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 0x4775f1
call fcn.0042ae6e
mov esi, dword [eax + 0xc]
push 0x5bbff4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x477633
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477633
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x477633
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047763c
jmp 0x477635
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a250e
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4a2654
mov ecx, 0x60a8a4
call fcn.0046d59a
mov esi, eax
test esi, esi
je 0x4a2649
xor eax, eax
cmp word [esi + 8], ax
jne 0x4a2613
push 0x5bb94c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4a25cf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4a2595
push str.MS_UI_Gothic
call fcn.004a2692
pop ecx
test eax, eax
je 0x4a2595
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 0x4a25b0
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 0x4a25cf
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 0x4a25d5
push ebx
push edi
push eax
call fcn.00472c4b
add esp, 0xc
jmp 0x4a25d5
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0041843d
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 0x4a264e
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0042aa69
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x4a2616
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x4a2624
push edi
call fcn.00571920
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0040610c
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.004170be
call fcn.004170d8
int3
Function at 0x4a9c49
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x60b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4a9c75
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4a9ca0
cmp dword [0x63659c], 0
jne 0x4a9ca0
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4a9c9c
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4a9c9c
push edi
call fcn.00580ffc
pop ecx
jmp 0x4a9d15
mov eax, edi
jmp 0x4a9d15
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4a9d24
push esi
call fcn.00433b56
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push esi
push 1
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005616bd
leave
ret 4
call fcn.004170be
int3
Function at 0x4b4cc3
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 0x4b4e21
push esi
push edi
push 0x5bda74
call fcn.004324f7
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4b4d5c
mov edi, dword [ebx + 0x168]
jmp 0x4b4d48
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 0x4b4d48
push esi
call fcn.0041de30
push eax
push 0x60a8a8
call fcn.00432458
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4b4d48
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5aba34]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4b4d48
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4b4cf7
lea ecx, [ebx + 0x164]
call fcn.004b5802
jmp 0x4b4e1f
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4b4e1f
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.004309ea
mov edi, dword [eax]
test edi, edi
jne 0x4b4d88
xor esi, esi
jmp 0x4b4d8b
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 0x4b4e0f
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b4e0f
cmp dword [ebp - 0x10], 0
jne 0x4b4de4
push edi
push 0x60a8a8
call fcn.00432458
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5aba34]
mov ecx, edi
call esi
push eax
push 0x5c0ff0
call fcn.00432458
pop ecx
pop ecx
test eax, eax
je 0x4b4e0f
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.004b3c0e
test eax, eax
jne 0x4b4e0f
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004b1d76
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4b4d73
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b7d8d
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4b7dda
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00571920
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x4b7dd1
mov edx, ecx
movsx ecx, byte [esi + edi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x4b7dbf
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
call fcn.004170be
int3

Function at 0x4b8451
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
jne 0x4b8462
xor eax, eax
jmp 0x4b84a8
cmp dword [ebp + 8], 0
je 0x4b84ae
push dword [esi + 0x14]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005727c6
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4b848e
push dword [esi + 0x14]
call fcn.0058151c
pop ecx
test eax, eax
je 0x4b84b3
push dword [esi + 0x14]
call fcn.00581548
pop ecx
test eax, eax
je 0x4b84a6
push dword [esi + 0x14]
call fcn.004b8133
pop ecx
jmp 0x4b84b3
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
call fcn.004170be
lea ecx, [esi + 0xc]
call fcn.00402c25
mov esi, eax
call fcn.005717fa
push esi
push dword [eax]
push 1
call fcn.0046e148
int3
Function at 0x4ba256
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x59e724
call fcn.00561730
mov ebx, ecx
mov dword [ebp - 0x224], ebx
and dword [ebp - 0x228], 0
call fcn.0042ae6e
push 0
mov ecx, dword [eax + 4]
call fcn.00434293
mov edi, eax
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov byte [ebp - 4], 1
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call dword [0x5aba34]
mov ecx, ebx
call esi
push 0x2001f
lea ecx, [ebp - 0x234]
push dword [eax]
push edi
call fcn.0040da4e
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00405f71
test esi, esi
jne 0x4ba448
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0056dbc0
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
jmp 0x4ba3e4
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc ebx
mov byte [ebp - 0x218], 0
call fcn.0056dbc0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040db42
test eax, eax
jne 0x4ba3cf
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ecx + 4]
call fcn.004b8dc3
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.00571920
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040610c
mov dword [ebp - 0x228], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4ba33c
test edi, edi
je 0x4ba406
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x234], edi
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x230], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call dword [0x5aba34]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x240]
push dword [eax]
call fcn.004b95dd
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00405f71
jmp 0x4ba44e
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x4ba459
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.0040d543
mov eax, dword [ebp - 0x228]
call fcn.005616df
ret
Function at 0x4ebceb
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 0x4ebd8a
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4ebd86
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4ebd86
cmp dword [ebx], eax
jne 0x4ebd86
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4ebd60
sub eax, 1
je 0x4ebd30
sub eax, 1
jne 0x4ebd86
mov edi, 0x428e
jmp 0x4ebd65
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4ebd65
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5aba34]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4ebd65
add edi, 3
jmp 0x4ebd65
mov edi, 0x3ea0
push edi
mov ecx, 0x637320
call fcn.00403db3
test eax, eax
je 0x4ebd8a
mov eax, dword [0x637320]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4ebd7f
call fcn.004170be
int3
Function at 0x51a679
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x5a3cf5
call fcn.00561730
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x51a80a
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x51a7dc
sub eax, 1
je 0x51a6f8
sub eax, 1
je 0x51a6d0
sub eax, 1
je 0x51a6f8
push 0x5abdb0
mov ecx, edi
call fcn.00402140
mov eax, edi
call fcn.005616df
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x51a6ba
lea eax, [ebp - 0x28c]
push eax
jmp 0x51a6bf
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x51a6ba
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.00418fd8
test eax, eax
je 0x51a6ba
lea ecx, [ebp - 0x3a0]
call fcn.00402201
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x51a792
test byte [ebp - 0x21c], 0x18
jne 0x51a7b4
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x5aba34]
mov ecx, ebx
call esi
jmp 0x51a7b4
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5aba34]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.004034df
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00405f71
jmp 0x51a6c6
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x51a6ba
lea eax, [ebp - 0x390]
jmp 0x51a6f5
call fcn.004170be
int3

Function at 0x51a9c1
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005520d6
call fcn.0042aec2
cmp dword [eax + 0x14], 0
jne 0x51a9dc
mov ecx, esi
pop esi
jmp fcn.00519c81
pop esi
ret

Function at 0x51b4ae
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x60b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x51b518
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x51b4fd
lea eax, [ebp - 0x158]
push eax
jmp 0x51b502
push 0x5cd568
call fcn.00402140
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005616bd
leave
ret 8
call fcn.004170be
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.004201a4
call fcn.0042aec2
cmp dword [eax + 0x14], 0
jne 0x51ba18
mov ecx, esi
pop esi
jmp fcn.0051b1fc
pop esi
ret
Function at 0x52c72e
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 0x52c75b
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x52c770
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x52c770
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.0041de30
jmp 0x52c841
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0041de30
cmp eax, edi
jne 0x52c84b
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x52c7dd
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x52c821
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x52c84b
cmp eax, 0x205
je 0x52c84b
cmp eax, 0x201
je 0x52c84b
cmp eax, 0x204
je 0x52c84b
cmp eax, 0x100
jne 0x52c809
cmp dword [ebp - 0x18], 0x1b
je 0x52c84b
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 0x52c841
ja 0x52c83a
cmp eax, dword [0x6373b0]
jbe 0x52c841
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x52c792
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x52cc23
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x52cc59
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0041c68e
test eax, eax
je 0x52cc41
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x530a43
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x60a7d0], 0
push esi
push edi
je 0x530acb
cmp dword [0x60ad5c], 0xfffffffe
jne 0x530ab7
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x530acb
mov edi, 0x6373cc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x6373e4], 0
jne 0x530acf
push 0
push 0
push 0x530ad5
call fcn.0057f2bf
add esp, 0xc
mov dword [0x6373e4], eax
test eax, eax
je 0x530aa7
cmp eax, 0xffffffff
je 0x530aa7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x60ad5c], esi
jmp 0x530aae
and dword [0x6373e4], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x530acb
mov eax, dword [ebp + 8]
mov dword [0x60ad5c], eax
cmp eax, 0xffffffff
jne 0x530acb
and dword [0x6373e4], 0
pop edi
pop esi
pop ebp
ret
call fcn.004170be
int3
Function at 0x5366d9
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.0058259a
pop ecx
test eax, eax
jne 0x53671b
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.0042b409
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5366e1
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

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

Disassembly:
push 8
mov eax, 0x5a67e7
call fcn.005616fd
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x546bb2
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x546bb2
cmp esi, 0x43
je 0x546b0e
cmp esi, 0x2d
jne 0x546bb2
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x546bb2
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402201
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 str.RGB__d___d___d_
push eax
call fcn.004039eb
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x546ba0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x546ba0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
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.00405f71
push ebx
mov ecx, edi
call fcn.00428039
call fcn.005616cb
ret 4

Function at 0x562026
Capabilities:
Parse pe header

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