joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f73e
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 0x42f769
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 0x42f76f
cmp dword [ebp - 4], esi
jne 0x42f786
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00403060
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0043f734
lea ecx, [edi + 0xc]
call fcn.00403060
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0043f38a
int3

Function at 0x4399c1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00417135
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4399fd
call fcn.00439bde
mov dword [esi + 0xc], 1
jmp 0x439a02
call fcn.00439bde
cmp dword [esi], 0
je 0x439a4d
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x439a28
push edi
call fcn.0040f459
lea ecx, [edi + 1]
push ecx
jmp 0x439a37
push 0xff
call fcn.00403610
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040b160
pop edi
jmp 0x439a71
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x439a71
push dword [esi]
push dword [ebp - 4]
call fcn.00428cad
pop esi
leave
ret 0xc

Function at 0x439b35
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00439bde
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x439b7d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040f459
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b160
jmp 0x439b88
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00428cad
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43b635
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x43b77b
mov ecx, 0x5d84e4
call fcn.00425f00
mov esi, eax
test esi, esi
je 0x43b770
xor eax, eax
cmp word [esi + 8], ax
jne 0x43b73a
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x43b6f6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x43b6bc
push 0x58c0e8
call fcn.0043b7b9
pop ecx
test eax, eax
je 0x43b6bc
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 0x43b6d7
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 0x43b6f6
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 0x43b6fc
push ebx
push edi
push eax
call fcn.0042e80e
add esp, 0xc
jmp 0x43b6fc
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.0040f09a
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 0x43b775
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00422a13
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x43b73d
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x43b74b
push edi
call fcn.0055c0db
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00403350
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.0040ed35
call fcn.0040ed4f
int3
Function at 0x43fd8a
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5d9000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00556550
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0055dcdb
push eax
call fcn.00403720
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x58ae7c]
je 0x43feeb
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x43feff
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43feff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x43fe46
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x43fe3a
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0043fb3b
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x43fe41
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43fe48
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00440041
test eax, eax
je 0x43fe74
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043f9c2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x43fe79
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.00440041
test eax, eax
je 0x43fea1
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043f9c2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x43fea7
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.00440041
test eax, eax
je 0x43fec9
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043f9c2
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x43fecb
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x43fedd
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x43feeb
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00554267
leave
ret 4
xor eax, eax
jmp 0x43feee
Function at 0x452421
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5d9000]
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 0x45248b
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 0x452470
lea eax, [ebp - 0x2ac]
push eax
jmp 0x452475
push 0x58f670
call fcn.0040b250
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00554267
leave
ret 8
call fcn.0040ed35
int3
Function at 0x45b17d
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 0x45b196
call fcn.0041a828
mov esi, dword [eax + 0xc]
push 0x590a70
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45b1d8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45b1d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45b1d8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0045b1e1
jmp 0x45b1da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x482e61
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 0x482fe8
je 0x48300f
sub eax, 0xa1
je 0x48300f
sub eax, 1
je 0x48300f
dec eax
sub eax, 1
je 0x48300f
sub eax, 1
je 0x48300f
dec eax
sub eax, 1
je 0x48300f
sub eax, 1
je 0x48300f
sub eax, 0x58
jne 0x48304d
cmp dword [edi + 0xc0], 0xffffffff
je 0x48300f
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x48300f
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x482f3d
sub eax, 1
jne 0x48300f
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x482f2c
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 [0x5849c0]
mov ecx, edi
call esi
test eax, eax
jne 0x482f89
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x482f02
jmp 0x483067
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x483067
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 [0x5849c0]
mov ecx, edi
call esi
test eax, eax
jne 0x482f89
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x482f54
jmp 0x483067
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5849c0]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5849c0]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00417a31
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5849c0]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x483067
sub eax, 0x200
je 0x48300f
sub eax, 1
je 0x48300f
sub eax, 1
je 0x48300f
dec eax
sub eax, 1
je 0x48300f
sub eax, 1
je 0x48300f
dec eax
sub eax, 1
je 0x48300f
sub eax, 1
jne 0x48304d
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x48302e
cmp dword [eax + 0x20], ebx
je 0x48302e
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 0x48304d
cmp dword [eax + 0x20], ebx
je 0x48304d
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x48306c
lea eax, [edi + 0x2250]
test eax, eax
je 0x483063
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x48306c
xor eax, eax
inc eax
jmp 0x483074
push esi
mov ecx, edi
call fcn.0047aecb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49fa9c
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5d9000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x49fac8
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x49faf3
cmp dword [0x5e017c], 0
jne 0x49faf3
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x49faef
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x49faef
push edi
call fcn.00566030
pop ecx
jmp 0x49fb6a
mov eax, edi
jmp 0x49fb6a
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00556550
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x49fb79
push esi
call fcn.0041cec5
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.00554267
leave
ret 4
call fcn.0040ed35
int3
Function at 0x4bc521
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 0x4bc67f
push esi
push edi
push 0x59c698
call fcn.00424448
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4bc5ba
mov edi, dword [ebx + 0x168]
jmp 0x4bc5a6
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 0x4bc5a6
push esi
call fcn.00411c08
push eax
push 0x5d88a8
call fcn.004243a9
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4bc5a6
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5849c0]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4bc5a6
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4bc555
lea ecx, [ebx + 0x164]
call fcn.00420a0a
jmp 0x4bc67d
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4bc67d
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00411e70
mov edi, dword [eax]
test edi, edi
jne 0x4bc5e6
xor esi, esi
jmp 0x4bc5e9
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 0x4bc66d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4bc66d
cmp dword [ebp - 0x10], 0
jne 0x4bc642
push edi
push 0x5d88a8
call fcn.004243a9
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5849c0]
mov ecx, edi
call esi
push eax
push 0x591a18
call fcn.004243a9
pop ecx
pop ecx
test eax, eax
je 0x4bc66d
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.004bb692
test eax, eax
jne 0x4bc66d
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004b97c8
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4bc5d1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4f4d45
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 0x4f4d72
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4f4d87
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f4d87
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.00411c08
jmp 0x4f4e58
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00411c08
cmp eax, edi
jne 0x4f4e62
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 0x4f4df4
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 0x4f4e38
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4f4e62
cmp eax, 0x205
je 0x4f4e62
cmp eax, 0x201
je 0x4f4e62
cmp eax, 0x204
je 0x4f4e62
cmp eax, 0x100
jne 0x4f4e20
cmp dword [ebp - 0x18], 0x1b
je 0x4f4e62
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 0x4f4e58
ja 0x4f4e51
cmp eax, dword [0x5e15d0]
jbe 0x4f4e58
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4f4da9
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4f5405
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x57eee2
call fcn.00554811
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040afb0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x585b8c
call fcn.00409c60
cmp eax, 0xffffffff
jne 0x4f54e0
push 0
push 0x590a2c
lea ecx, [ebp - 0x4d0]
call fcn.00409c60
cmp eax, 0xffffffff
jne 0x4f54e0
push 0
push 0x58713c
lea ecx, [ebp - 0x4d0]
call fcn.00409c60
cmp eax, 0xffffffff
jne 0x4f54e0
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040afb0
add eax, 0x10
pop ecx
mov dword [ebp - 0x4d8], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x4d4], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4f54af
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5849c0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.004036d0
jmp 0x4f5519
lea eax, [ebp - 0x218]
push eax
call fcn.0055c0db
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00403350
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004036d0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4f5506
mov edi, dword [ebp - 0x4cc]
jmp 0x4f5519
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5849c0]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004036d0
mov eax, edi
call fcn.005547c0
ret

Function at 0x4fbaf9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5d87ac], 0
push esi
push edi
je 0x4fbb81
cmp dword [0x5d8ad8], 0xfffffffe
jne 0x4fbb6d
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4fbb81
mov edi, 0x5e15fc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5e1614], 0
jne 0x4fbb85
push 0
push 0
push 0x4fbb8b
call fcn.0055e058
add esp, 0xc
mov dword [0x5e1614], eax
test eax, eax
je 0x4fbb5d
cmp eax, 0xffffffff
je 0x4fbb5d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5d8ad8], esi
jmp 0x4fbb64
and dword [0x5e1614], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4fbb81
mov eax, dword [ebp + 8]
mov dword [0x5d8ad8], eax
cmp eax, 0xffffffff
jne 0x4fbb81
and dword [0x5e1614], 0
pop edi
pop esi
pop ebp
ret
call fcn.0040ed35
int3
Function at 0x505163
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 0x505202
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x5051fe
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5051fe
cmp dword [ebx], eax
jne 0x5051fe
mov eax, dword [ebx + 4]
sub eax, 1
je 0x5051d8
sub eax, 1
je 0x5051a8
sub eax, 1
jne 0x5051fe
mov edi, 0x428e
jmp 0x5051dd
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x5051dd
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5849c0]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x5051dd
add edi, 3
jmp 0x5051dd
mov edi, 0x3ea0
push edi
mov ecx, 0x5e1658
call fcn.00403100
test eax, eax
je 0x505202
mov eax, dword [0x5e1658]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x5051f7
call fcn.0040ed35
int3

Function at 0x50f0cb
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.00566060
pop ecx
test eax, eax
jne 0x50f10d
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.0041de20
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50f0d3
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 0x5550a2
Capabilities:
Parse pe header

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

Function at 0x5696d0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b4ef0
push 0x5b4ee8
push str.FlsAlloc
push 0x1f
call fcn.0056954f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x569704
push dword [ebp + 8]
mov ecx, esi
call dword [0x5849c0]
call esi
jmp 0x56970a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x56974e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b4f00
push 0x5b4ef8
push str.FlsGetValue
push 0x21
call fcn.0056954f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x569785
push dword [ebp + 8]
mov ecx, esi
call dword [0x5849c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x56978d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b4f08
push 0x5b4f00
push str.FlsSetValue
push 0x22
call fcn.0056954f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5697c7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5849c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]