joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484347
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x1b8]
test al, al
jns 0x484366
or ecx, 0xffffffff
jmp 0x48436c
mov ecx, dword [0x5b060c]
mov eax, dword [esi]
lea edx, [ebp - 4]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x2b4]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x5b0784
call fcn.0041ff9f
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x484410
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x484410
test edi, edi
je 0x4843c1
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x228]
push eax
push 0x5b08e8
call fcn.0041ff9f
pop ecx
pop ecx
mov ebx, eax
jmp 0x4843c3
xor ebx, ebx
mov eax, dword [ebp - 8]
cmp eax, 2
jne 0x48441b
test ebx, ebx
je 0x4843fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c0]
test al, 0x40
je 0x484410
cmp dword [ebp - 4], 0
je 0x4843fc
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x24c]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x484412
mov eax, dword [esi]
mov ecx, esi
push 5
push 0
push edi
call dword [eax + 0x1f8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x484410
test edi, edi
je 0x484410
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x184]
test eax, eax
je 0x484410
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18c]
test eax, eax
je 0x484410
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x240]
mov eax, dword [esi]
mov ecx, esi
push 0
push 1
push 5
push edi
call dword [eax + 0x34c]
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], edx
jmp 0x484412
Function at 0x486209
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
mov edx, dword [0x5bb1f8]
push ebx
push esi
push edi
mov edx, dword [eax + edx*4]
mov ebx, ecx
mov eax, dword [0x5b94f4]
cmp eax, dword [edx + 4]
jle 0x486264
mov esi, 0x5b94f4
push esi
call fcn.00530ae2
cmp dword [0x5b94f4], 0xffffffff
pop ecx
jne 0x486264
call fcn.0040589d
push eax
mov ecx, 0x5b94f0
call fcn.00402860
push 0x55da66
call fcn.00530e3c
push esi
call fcn.00530aa3
pop ecx
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x486306
mov eax, dword [ebx + 0x34c]
test eax, eax
je 0x4862fd
cmp dword [eax + 0x20], 0
je 0x4862fd
test eax, eax
je 0x48628a
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4862fd
mov eax, dword [edi + 4]
sub eax, 1
je 0x4862d1
sub eax, 1
je 0x4862a7
sub eax, 1
jne 0x4862fd
mov esi, 0x428e
jmp 0x4862d6
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4862d6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x340]
test eax, eax
je 0x4862d6
add esi, 3
jmp 0x4862d6
mov esi, 0x3ea0
push esi
call fcn.004054f3
test eax, eax
je 0x486306
push esi
push eax
mov ecx, 0x5b94f0
call fcn.004029c0
test eax, eax
je 0x486306
mov eax, dword [0x5b94f0]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4862ff
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
call fcn.004052cd
int3
Function at 0x48e286
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5b0ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x8000
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x48e2b8
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
je 0x48e2e3
cmp dword [0x5b7cec], 0
jne 0x48e2e3
lea ecx, [esi - 0x41]
cmp ecx, 0x19
jbe 0x48e2d6
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
je 0x48e2da
mov eax, esi
jmp 0x48e356
push esi
call fcn.0053caa5
pop ecx
jmp 0x48e356
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005334e0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x48e368
call fcn.004175da
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push esi
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]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005309b6
mov esp, ebp
pop ebp
ret 4
call fcn.004052cd
int3
Function at 0x48e944
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x554eea
call fcn.00530f24
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
call fcn.0043914c
test eax, eax
je 0x48eae5
lea ecx, [ebp - 0x1c]
xor edi, edi
push ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], edi
push ecx
lea ecx, [ebx + 4]
call fcn.0048e7eb
test eax, eax
je 0x48e987
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040589d
push eax
lea ecx, [ebp - 0x18]
call fcn.00402860
mov esi, 0x104
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00402cc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00405588
call fcn.0040589d
push eax
lea ecx, [ebp - 0x14]
call fcn.00402860
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402cc0
mov esi, dword [ebp - 0x18]
push eax
push edi
push 0x56b88c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00405588
push edi
push 0x4000100
push 2
push edi
push edi
mov edi, dword [ebp - 0x14]
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x48ea1f
lea ecx, [edi - 0x10]
call fcn.00402b60
lea ecx, [esi - 0x10]
jmp 0x48eae0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004aa370
push 0
push 0x1000
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.00424974
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
mov dword [ebx + 0x20], 1
push edx
mov byte [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x88]
call fcn.00424f31
and dword [ebx + 0x20], 0
lea ecx, [ebp - 0x88]
call fcn.00424a84
lea ecx, [ebp - 0x40]
call fcn.004aa425
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebx + 4]
call fcn.0043638f
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
lea ecx, [edi - 0x10]
call fcn.00402b60
lea ecx, [esi - 0x10]
call fcn.00402b60
xor eax, eax
inc eax
jmp 0x48eae7
call fcn.00402b60
xor eax, eax
call fcn.00530e82
ret 8
Function at 0x4aacec
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x55759f
call fcn.00530eed
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x264], esi
test eax, eax
jne 0x4aad1a
call fcn.004052cd
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x4aad15
lea eax, [ebp - 0x268]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4aad62
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.00539c27
push eax
call fcn.00402930
add esp, 0x14
push ebx
push edi
call fcn.004aacbf
xor eax, eax
jmp 0x4aae85
cmp eax, 0x104
jb 0x4aad7f
test edi, edi
je 0x4aad5b
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00402f30
jmp 0x4aad5b
call fcn.0040589d
push eax
lea ecx, [ebp - 0x26c]
call fcn.00402860
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push esi
call fcn.004aa68e
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4aae7a
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4aadea
push ebx
push edi
call fcn.004aacbf
lea ecx, [esi - 0x10]
call fcn.00402b60
jmp 0x4aad5b
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x4aae06
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x4aae7a
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4aae7a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x4aadd6
cmp eax, dword [ebp - 0x264]
jbe 0x4aadd6
lea eax, [ebp - 0x234]
push eax
call fcn.005396c1
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x4aae8d
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.00539af6
push eax
call fcn.00402930
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00402b60
xor eax, eax
inc eax
call fcn.00530e97
ret 0xc
test edi, edi
je 0x4aaddd
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00402f30
jmp 0x4aaddd
Function at 0x4ada94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4adaae
mov edi, dword [esi + 0xc]
jmp 0x4adaee
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4adac7
call fcn.00415abb
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4adadc
call fcn.00415abb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4adaee
call fcn.00415abb
call fcn.00405d08
cmp dword [eax + 0x3c], 0
je 0x4adb03
push edi
mov ecx, ebx
call fcn.004ad289
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004adcd7
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4adb2c
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4adb38
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b3bdc
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.0041ef39
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 0x4b3c18
call fcn.004b3dfb
mov dword [esi + 0xc], 1
jmp 0x4b3c1d
call fcn.004b3dfb
cmp dword [esi], 0
je 0x4b3c66
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4b3c40
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00405565
jmp 0x4b3c51
push 0xff
mov ecx, esi
call fcn.00402cc0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00405588
jmp 0x4b3c8a
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 0x4b3c8a
push dword [esi]
push dword [ebp - 4]
call fcn.004219e7
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b3d50
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.004b3dfb
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4b3d98
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00405565
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405588
jmp 0x4b3da3
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004219e7
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c06ff
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x55839f
call fcn.00530eed
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403eca
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x560944
call fcn.00404060
cmp eax, 0xffffffff
jne 0x4c07b3
push 0
push 0x5626e4
lea ecx, [ebp - 0x4d0]
call fcn.00404060
cmp eax, 0xffffffff
jne 0x4c07b3
push 0
push 0x55f21c
lea ecx, [ebp - 0x4d0]
call fcn.00404060
cmp eax, 0xffffffff
jne 0x4c07b3
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403eca
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4c078f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00402b60
jmp 0x4c07e2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00402f30
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402b60
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 0x4c07d9
mov ebx, dword [ebp - 0x4cc]
jmp 0x4c07e2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00402b60
mov eax, ebx
call fcn.00530e97
ret

Function at 0x4c74e6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5b0800], 0
push esi
je 0x4c75c7
cmp dword [0x5b0980], 0xfffffffe
jne 0x4c75b4
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4c75c7
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5bb1f8]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5b9e84]
cmp eax, dword [ecx + 4]
jle 0x4c755e
mov ebx, 0x5b9e84
push ebx
call fcn.00530ae2
cmp dword [0x5b9e84], 0xffffffff
pop ecx
jne 0x4c755e
mov ecx, 0x5b9e64
call fcn.0042fed6
push 0x55db10
call fcn.00530e3c
push ebx
call fcn.00530aa3
pop ecx
pop ecx
mov ebx, 0x5b9e6c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5b9e50], 0
jne 0x4c75ca
push 0
push 0
push 0x4c75d0
call fcn.0053a848
add esp, 0xc
mov dword [0x5b9e50], eax
test eax, eax
je 0x4c75a3
cmp eax, 0xffffffff
je 0x4c75a3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5b0980], esi
jmp 0x4c75aa
and dword [0x5b9e50], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
jmp 0x4c75c7
mov eax, dword [ebp + 8]
mov dword [0x5b0980], eax
inc eax
neg eax
sbb eax, eax
and dword [0x5b9e50], eax
pop esi
pop ebp
ret
call fcn.004052cd
int3
Function at 0x4ca822
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5b0ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0041f2bd
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x21
call esi
push 0x20
mov ebx, eax
call esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.0041a247
mov edi, dword [ebp - 0x18]
mov esi, eax
test edi, 0x1000
je 0x4ca89a
cmp esi, 3
jne 0x4ca889
push 2
pop esi
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4ca89a
xor eax, eax
jmp 0x4ca8ef
cmp esi, 0xa
jl 0x4ca8a4
cmp esi, 0x11
jle 0x4ca8a9
cmp esi, 4
jne 0x4ca8ed
test edi, 0x800
je 0x4ca8b6
push 2
pop eax
jmp 0x4ca8ef
mov eax, dword [ebp - 0x1c]
neg ebx
push ebx
neg eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test edi, 0x200
je 0x4ca8ed
mov eax, esi
sub eax, 4
je 0x4ca93a
sub eax, 9
je 0x4ca926
sub eax, 1
je 0x4ca916
dec eax
sub eax, 1
je 0x4ca902
sub eax, 1
je 0x4ca93a
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005309b6
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setle al
dec eax
and eax, 5
add eax, 0xa
jmp 0x4ca8ef
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
add eax, 0xb
jmp 0x4ca8ef
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
lea eax, [eax*2 + 0xa]
jmp 0x4ca8ef
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setg al
lea eax, [eax*4 + 0xb]
jmp 0x4ca8ef
Function at 0x4ce806
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov edx, 0x104
xor ecx, ecx
mov eax, dword [edi + 4]
cmp eax, edx
ja 0x4ce9af
je 0x4ce9d9
cmp eax, 0xa1
jb 0x4cea1c
cmp eax, 0xa2
jbe 0x4ce9d9
cmp eax, 0xa3
jbe 0x4cea1c
cmp eax, 0xa5
jbe 0x4ce9d9
cmp eax, 0xa6
jbe 0x4cea1c
cmp eax, 0xa8
jbe 0x4ce9d9
cmp eax, 0x100
jne 0x4cea1c
cmp dword [esi + 0xc0], 0xffffffff
je 0x4ce9d9
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4ce9d7
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x4ce937
sub eax, 1
jne 0x4ce9d7
mov ecx, dword [esi + 0xc0]
mov eax, dword [esi + 0xbc]
add eax, ecx
lea edi, [ecx + 1]
jmp 0x4ce8ea
mov eax, edi
cdq
idiv dword [esi + 0xbc]
mov eax, dword [esi]
mov ecx, edx
mov dword [ebp + 8], ecx
push ecx
mov ecx, esi
call dword [eax + 0x27c]
test eax, eax
jne 0x4ce8f0
mov eax, dword [esi + 0xbc]
inc edi
add eax, dword [esi + 0xc0]
cmp edi, eax
jl 0x4ce8c0
jmp 0x4ce92f
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x24c], 1
call dword [eax + 0x214]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x210]
mov ecx, eax
call fcn.0041f6f6
mov edx, dword [esi]
mov ecx, esi
push dword [esi + 0xc0]
call dword [edx + 0x270]
and dword [esi + 0x24c], 0
xor eax, eax
inc eax
jmp 0x4cea42
mov ecx, dword [esi + 0xc0]
lea edi, [ecx - 1]
add edi, dword [esi + 0xbc]
cmp edi, ecx
jle 0x4ce92f
mov eax, edi
cdq
idiv dword [esi + 0xbc]
mov eax, dword [esi]
mov ecx, edx
mov dword [ebp + 8], ecx
push ecx
mov ecx, esi
call dword [eax + 0x27c]
test eax, eax
jne 0x4ce972
dec edi
cmp edi, dword [esi + 0xc0]
jg 0x4ce94a
jmp 0x4ce92f
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x24c], 1
call dword [eax + 0x214]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x210]
mov ecx, eax
call fcn.0041f6f6
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0xc0]
call dword [eax + 0x270]
jmp 0x4ce928
cmp eax, 0x200
jb 0x4cea1c
cmp eax, 0x202
jbe 0x4ce9d9
cmp eax, 0x203
jbe 0x4cea1c
cmp eax, 0x205
jbe 0x4ce9d9
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4cea1c
jmp 0x4ce9d9
xor ecx, ecx
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x4ce9f9
cmp dword [eax + 0x20], 0
je 0x4ce9f9
push edi
push ecx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4cea1a
cmp dword [eax + 0x20], 0
je 0x4cea1a
push edi
push 0
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp dword [edi + 4], 0x203
jne 0x4cea3a
lea eax, [esi + 0x2250]
test eax, eax
je 0x4cea32
mov ecx, dword [eax + 0x20]
cmp dword [edi], ecx
je 0x4ce92f
push edi
mov ecx, esi
call fcn.00467f93
pop edi
pop esi
pop ebp
ret 4
Function at 0x4f8c45
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xddc
mov eax, dword [0x5b0ff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test edx, edx
je 0x4f8e6a
test esi, esi
je 0x4f8e6a
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x874], ebx
mov dword [ebp - 0x870], ebx
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x868], ebx
mov dword [ebp - 0x864], ebx
mov dword [ebp - 0x860], ebx
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], ebx
sub eax, ebx
je 0x4f8e3b
sub eax, 1
je 0x4f8cdd
sub eax, 1
je 0x4f8da3
sub eax, 1
jne 0x4f8e55
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x20c]
push eax
push dword [edx + 4]
call edi
test eax, eax
je 0x4f8e36
push ebx
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004b21ff
test eax, eax
je 0x4f8e36
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x4f8d9b
push ebx
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004b21ff
test eax, eax
je 0x4f8d9b
cmp dword [ebp + 0x10], 1
jne 0x4f8dfb
test byte [ebp - 0x854], 0x10
jne 0x4f8e36
test byte [ebp - 0x624], 0x10
jne 0x4f8d9b
mov ecx, dword [ebp - 0x628]
mov eax, dword [ebp - 0x62c]
cmp dword [ebp - 0x858], ecx
ja 0x4f8d9b
jb 0x4f8e36
cmp dword [ebp - 0x85c], eax
jb 0x4f8e36
cmp dword [ebp - 0x858], ecx
jb 0x4f8e55
ja 0x4f8d9b
cmp dword [ebp - 0x85c], eax
jbe 0x4f8e55
xor ebx, ebx
inc ebx
jmp 0x4f8e55
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0xddc]
push 0x408
push 0x2b4
push eax
push ebx
push dword [edx + 4]
call edi
test eax, eax
je 0x4f8e55
push 0x408
push 0x2b4
lea eax, [ebp - 0xb28]
push eax
push ebx
push dword [esi + 4]
call edi
test eax, eax
je 0x4f8e55
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0xbc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
jmp 0x4f8e55
push dword [ebp - 0x638]
lea ecx, [ebp - 0x86c]
push dword [ebp - 0x63c]
call fcn.004f837d
test al, al
jne 0x4f8e36
push dword [ebp - 0x638]
lea ecx, [ebp - 0x86c]
push dword [ebp - 0x63c]
call fcn.004f839c
xor ebx, ebx
test al, al
setne bl
jmp 0x4f8e55
or ebx, 0xffffffff
jmp 0x4f8e55
push dword [esi + 8]
mov eax, dword [edx]
push dword [edx + 8]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x4f8e52
xor eax, eax
jmp 0x4f8e57
movsx ebx, ax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005309b6
mov esp, ebp
pop ebp
ret 0xc
call fcn.004052cd
int3

Function at 0x4f9723
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0052c307
call fcn.00405d5c
cmp dword [eax + 0x14], 0
jne 0x4f973e
mov ecx, esi
pop esi
jmp fcn.004f8b1a
pop esi
ret
Function at 0x500744
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5b0ff4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
jne 0x500767
xor eax, eax
jmp 0x50083d
cmp dword [ebp + 0xc], 0
je 0x500760
xor ebx, ebx
call fcn.00405d08
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x500760
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x500760
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x500853
push eax
call fcn.00539c40
inc eax
pop ecx
mov dword [ebp - 8], eax
lea edx, [eax + eax]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x50080b
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
and eax, ecx
lea ecx, [edx + 8]
cmp eax, 0x400
ja 0x5007ed
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.00531550
mov esi, esp
test esi, esi
je 0x500853
mov dword [esi], 0xcccc
jmp 0x500806
cmp edx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.005395e0
mov esi, eax
pop ecx
test esi, esi
je 0x500853
mov dword [esi], 0xdddd
add esi, 8
jmp 0x50080d
mov esi, ebx
test esi, esi
je 0x500853
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call fcn.00405886
test eax, eax
je 0x50082d
mov ecx, dword [ebp - 0x10]
push eax
call fcn.005020e8
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call fcn.00502104
pop ecx
mov eax, ebx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005309b6
mov esp, ebp
pop ebp
ret 8
call fcn.004052cd
int3