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

Disassembly:
mov eax, 0x5f4937f2
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x4c]
mov edi, dword [esi + 0x48]
mov dword [ebp - 0x18], eax
call sym.MFC42.DLL_Ordinal_1168
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x5f414ede
push 5
push eax
call sym.MFC42.DLL_Ordinal_1146
push 5
mov ebx, eax
push dword [esi + 0x44]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5f414eec
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5f45d79e
mov ecx, esi
call sym.MFC42.DLL_Ordinal_5268
mov dword [ebp - 0x14], eax
call sym.MFC42.DLL_Ordinal_1568
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
jne 0x5f45d7a6
push esi
mov dword [ebp - 4], edi
call sym.MFC42.DLL_Ordinal_1180
push dword [ebp - 0x14]
call sym.MFC42.DLL_Ordinal_2864
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call sym.MFC42.DLL_Ordinal_2147
cmp eax, edi
je 0x5f414f6b
test byte [esi + 0x28], 0x10
je 0x5f414f55
push 4
mov ecx, esi
pop ebx
call sym.MFC42.DLL_Ordinal_3797
test ah, 1
jne 0x5f45d7cd
push ebx
mov ecx, esi
call sym.MFC42.DLL_Ordinal_5718
cmp dword [esi + 0x20], edi
je 0x5f414f6b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call sym.MFC42.DLL_Ordinal_6197
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
jne 0x5f45d7f4
cmp dword [ebp - 0x14], edi
jne 0x5f45d804
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call sym.MFC42.DLL_Ordinal_5232
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
or eax, 0xffffffff
jmp 0x5f414f92
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x5f414f13
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
jmp 0x5f414f13
push 5
pop ebx
jmp 0x5f414f4d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x5f414f78
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x5f414f81
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
jmp 0x5f414f81
Function at 0x5f419c78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call sym.MFC42.DLL_Ordinal_5290
test eax, eax
jne 0x5f46383e
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call sym.MFC42.DLL_Ordinal_6721
test byte [esi + 0x68], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x5f419d0a
cmp edi, ebx
je 0x5f419d0a
cmp edi, 0x202
je 0x5f419d0a
mov ecx, esi
call sym.MFC42.DLL_Ordinal_3813
test eax, eax
pop ebx
je 0x5f419cce
cmp dword [eax + 0x54], 0
jne 0x5f463837
cmp dword [ebp - 0x10], 0
je 0x5f419cfa
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x5f46383e
mov ecx, edi
call sym.MFC42.DLL_Ordinal_3495
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x5f419cd4
push dword [ebp + 8]
mov ecx, esi
call sym.MFC42.DLL_Ordinal_5278
pop edi
pop esi
leave
ret 4
cmp edi, 0x200
jae 0x5f4636c6
cmp edi, 0xa0
jb 0x5f419cb8
jmp 0x5f46378e
cmp edi, 0x209
ja 0x5f419d16
call sym.MFC42.DLL_Ordinal_1176
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push dword [eax + 0x18]
push dword [eax + 0x14]
call sym.MFC42.DLL_Ordinal_478
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x28
push ecx
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [eax + 0x6c]
cmp dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], eax
je 0x5f463733
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
cmp edi, ebx
jne 0x5f46379f
test byte [ebp - 0x3d], 0x80
je 0x5f46379f
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
jl 0x5f463801
cmp dword [ebp - 8], 0
jne 0x5f463801
cmp edi, 0x202
jne 0x5f4637c2
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xc8
push 0xe001
mov ecx, esi
call sym.MFC42.DLL_Ordinal_5670
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x104], eax
jmp 0x5f419cb8
cmp edi, 0xa9
ja 0x5f419cb8
jmp 0x5f4636d2
and dword [ebp - 8], 0
cmp edi, ebx
je 0x5f463744
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5f463744
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x104]
mov dword [ebp - 4], eax
jmp 0x5f463744
test byte [esi + 0x64], 8
jne 0x5f4637ef
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5f4637ef
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x104]
je 0x5f46377d
push 0x12c
push 0xe000
jmp 0x5f463776
mov eax, dword [esi]
push dword [ebp - 4]
mov ecx, esi
call dword [eax + 0xe4]
jmp 0x5f46377d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5f463818
cmp dword [ebp - 8], 0
je 0x5f46377d
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xe001
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x5f46377d
xor eax, eax
jmp 0x5f419d04
push 1
pop eax
jmp 0x5f419d04
Function at 0x5f44793c
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x5f4990d2
call sub.MSVCRT.dll__EH_prolog
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call sym.MFC42.DLL_Ordinal_5272
xor ebx, ebx
mov edi, eax
cmp dword [esi], ebx
je 0x5f4479b0
lea eax, [ebp + 0xe]
push 2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp + 0xe], bl
jne 0x5f447991
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
call sym.MFC42.DLL_Ordinal_4067
test eax, eax
je 0x5f44799d
mov ecx, dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
call sym.MFC42.DLL_Ordinal_5970
push 1
pop eax
jmp 0x5f44799f
mov ecx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
call sym.MFC42.DLL_Ordinal_5970
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sym.MFC42.DLL_Ordinal_4099
test eax, eax
je 0x5f4479fb
push dword [ebp + 0x10]
mov ecx, esi
call sym.MFC42.DLL_Ordinal_4065
test eax, eax
jne 0x5f4479fb
cmp dword [esi + 0xe4], ebx
je 0x5f44799d
push 0xf29d
lea ecx, [ebp + 0x14]
call sym.MFC42.DLL_Ordinal_537
push dword [ebp + 0x14]
mov dword [ebp - 4], ebx
push edi
call sym.MFC42.DLL_Ordinal_1246
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sym.MFC42.DLL_Ordinal_800
jmp 0x5f44798c
lea eax, [ebp + 0xe]
mov byte [ebp + 0xe], bl
push eax
push edi
call sym.MFC42.DLL_Ordinal_1246
jmp 0x5f44798c

Function at 0x5f448d0e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f49925d
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CObject.0
xor edi, edi
push 0xa
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
call sym.MFC42.DLL_Ordinal_394
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CDaoWorkspace.0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x5f44d054
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5f499c64
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CObject.0
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
call sym.MFC42.DLL_Ordinal_540
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call sym.MFC42.DLL_Ordinal_540
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call sym.MFC42.DLL_Ordinal_540
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 3
call sym.MFC42.DLL_Ordinal_540
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 4
call sym.MFC42.DLL_Ordinal_540
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 5
call sym.MFC42.DLL_Ordinal_540
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 8], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 4], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi], vtable.CDaoRecordset.0
mov dword [esi + 0x1c], 1
mov dword [esi + 0x84], 2
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x5f451e9d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call sym.MFC42.DLL_Ordinal_5272
xor ebx, ebx
mov edi, eax
cmp dword [esi], ebx
je 0x5f451f23
lea eax, [ebp + 0xe]
push 2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp + 0xe], bl
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
jne 0x5f451ef8
call sym.MFC42.DLL_Ordinal_4064
test eax, eax
jne 0x5f451ee6
mov ecx, dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
call sym.MFC42.DLL_Ordinal_5967
mov ecx, dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
call sym.MFC42.DLL_Ordinal_5969
push 1
pop eax
jmp 0x5f451f1c
call sym.MFC42.DLL_Ordinal_4064
test eax, eax
je 0x5f451f0e
mov ecx, dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
call sym.MFC42.DLL_Ordinal_5967
mov ecx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
call sym.MFC42.DLL_Ordinal_5969
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x6c], ebx
je 0x5f451f37
push dword [ebp + 0x10]
call sym.MFC42.DLL_Ordinal_4064
test eax, eax
je 0x5f451f1a
lea eax, [ebp + 0xe]
mov byte [ebp + 0xe], bl
push eax
push edi
call sym.MFC42.DLL_Ordinal_1246
jmp 0x5f451ef3

Function at 0x5f45aa16
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
pop esi
jne 0x5f45aa3f
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MFC42.DLL_Ordinal_6264
ret 4
Function at 0x5f45b08e
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x5f45b099
xor eax, eax
pop esi
ret 8
push ebx
push edi
push dword [esi + 0x10]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, dword [sym.imp.MSVCRT.dll___doserrno]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x5f45b0d4
mov eax, dword [esi + 0x10]
test byte [eax + 0xc], 0x10
jne 0x5f45b0d4
push dword [esi + 0xc]
call edi
push dword [eax]
push 1
call sym.MFC42.DLL_Ordinal_1262
mov eax, dword [esi + 0x10]
test byte [eax + 0xc], 0x20
je 0x5f45b0f3
push eax
call dword [sym.imp.MSVCRT.dll_clearerr]
pop ecx
push dword [esi + 0xc]
call edi
push dword [eax]
push 1
call sym.MFC42.DLL_Ordinal_1262
mov eax, ebx
pop edi
pop ebx
jmp 0x5f45b095

Function at 0x5f45b0f9
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x5f45b12a
push dword [esi + 0xc]
call dword [sym.imp.MSVCRT.dll___doserrno]
push dword [eax]
push 1
call sym.MFC42.DLL_Ordinal_1262
pop esi
ret 8
Function at 0x5f45ba3a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x5f45ba6a
push edi
call ebx
push eax
call sym.MFC42.DLL_Ordinal_6264
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x5f45ba94
test byte [ebp - 4], 1
je 0x5f45ba94
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5f45ba94
push edi
call ebx
push eax
call sym.MFC42.DLL_Ordinal_6264
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x5f45bb3a
lea ecx, [ebp - 0x24]
push ecx
push eax
call sym.MFC42.DLL_Ordinal_1564
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x5f45bac6
lea ecx, [ebp - 0x14]
push ecx
push eax
call sym.MFC42.DLL_Ordinal_1564
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x5f45badc
lea eax, [ebp - 0x1c]
push eax
push esi
call sym.MFC42.DLL_Ordinal_1564
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5f45bb06
push 0
call ebx
push eax
call sym.MFC42.DLL_Ordinal_6264
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x5f45bb24
push eax
call ebx
push eax
call sym.MFC42.DLL_Ordinal_6264
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x5f45bb38
push eax
call ebx
push eax
call sym.MFC42.DLL_Ordinal_6264
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x5f45bb61
test byte [ebp - 4], 1
jne 0x5f45bb61
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5f45bb61
push edi
call ebx
push eax
call sym.MFC42.DLL_Ordinal_6264
pop edi
pop ebx
leave
ret 8

Function at 0x5f45e843
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call sym.MFC42.DLL_Ordinal_2233
mov esi, eax
test esi, esi
jne 0x5f45e85a
call sym.MFC42.DLL_Ordinal_1265
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
and dword [esi + 0x50], 0
or al, 4
push dword [ebp + 0x10]
mov ecx, esi
push eax
call sym.MFC42.DLL_Ordinal_2256
test eax, eax
jne 0x5f45e886
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
xor eax, eax
pop esi
pop ebp
ret 0x14
push dword [ebp + 0xc]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x5f45e8a1
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
jmp 0x5f45e881
Function at 0x5f45ea33
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x5f45ea7a
cmp dword [eax + 8], 0x70
jne 0x5f45ea7a
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x5f45ea7a
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jl 0x5f45ea7a
push 0x11
call esi
test ax, ax
jl 0x5f45ea7a
push 0x12
call esi
test ax, ax
jl 0x5f45ea7a
push 1
pop eax
pop esi
ret 4
xor eax, eax
jmp 0x5f45ea76

Function at 0x5f460a8d
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x5f460ab1
mov eax, dword [esi]
push 1
push 0
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x5f460ac3
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
call dword [edx + 0xa0]
jmp 0x5f460aab
push 1
pop eax
pop esi
ret

Function at 0x5f460e1b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x5f493fb1
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x110
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call sym.MFC42.DLL_Ordinal_540
push 1
lea eax, [ebp - 0x14]
pop esi
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x104
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x14]
push 0x105
lea ecx, [ebp - 0x10]
mov byte [eax], bl
call sym.MFC42.DLL_Ordinal_2915
push eax
push ebx
lea eax, [ebp - 0x11c]
push 0x5f4a70fc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sym.MFC42.DLL_Ordinal_5572
cmp dword [ebp + 0x10], ebx
jne 0x5f460e96
push dword [ebp - 0x10]
call sym.MFC42.DLL_Ordinal_5583
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sym.MFC42.DLL_Ordinal_535
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sym.MFC42.DLL_Ordinal_800
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x5f46773e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
push dword [ebp + 0xc]
call sym.MFC42.DLL_Ordinal_5272
cmp dword [esi], 0
mov edi, eax
je 0x5f4677aa
lea eax, [ebp - 0x20]
push 0x20
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.5f4676dc
test eax, eax
jne 0x5f46778c
push 0xffffffffffffffff
push eax
push 0xf111
call sym.MFC42.DLL_Ordinal_1199
mov ecx, esi
call sym.MFC42.DLL_Ordinal_2737
cmp dword [ebp + 0x1c], 6
jne 0x5f4677a0
fld qword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
fstp dword [eax]
pop edi
pop esi
leave
ret 0x18
fld qword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
fstp qword [eax]
jmp 0x5f46779a
fld qword [ebp + 0x14]
push ecx
push ecx
lea eax, [ebp - 0x20]
fstp qword [esp]
push dword [ebp + 0x1c]
push str._.g
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
push edi
call sym.MFC42.DLL_Ordinal_1246
jmp 0x5f46779a

Function at 0x5f469ada
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push edi
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
mov edx, dword [ebp + 8]
test ax, ax
setge cl
dec ecx
xor eax, eax
and ecx, 0xfffffff1
add ecx, 0x10
mov edi, ecx
xor ecx, ecx
sub edx, 0xd
je 0x5f469c09
sub edx, 0xe
je 0x5f469bf8
sub edx, 0xa
je 0x5f469bf0
dec edx
je 0x5f469be8
dec edx
je 0x5f469be0
dec edx
je 0x5f469b46
mov ecx, esi
call sym.MFC42.DLL_Ordinal_2379
pop edi
pop esi
leave
ret 0xc
push 1
pop eax
mov edx, dword [esi + 0xc4]
cmp edx, 1
je 0x5f469b5e
cmp edx, 0x65
jl 0x5f469b60
cmp edx, 0x73
jg 0x5f469b60
xor ecx, ecx
cmp edx, 2
je 0x5f469b75
cmp edx, 0xc9
jl 0x5f469b77
cmp edx, 0xd7
jg 0x5f469b77
xor eax, eax
imul eax, edi
imul ecx, edi
add dword [ebp - 4], eax
add dword [ebp - 8], ecx
lea eax, [ebp - 8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x98]
cmp dword [ebp - 4], eax
jl 0x5f469ba6
mov eax, dword [esi + 0xa0]
cmp dword [ebp - 4], eax
jle 0x5f469ba9
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x94]
cmp dword [ebp - 8], eax
jl 0x5f469bbf
mov eax, dword [esi + 0x9c]
cmp dword [ebp - 8], eax
jle 0x5f469bc2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
jmp 0x5f469b40
push 1
pop ecx
jmp 0x5f469b49
or eax, 0xffffffff
jmp 0x5f469b49
or ecx, 0xffffffff
jmp 0x5f469b49
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x124]
jmp 0x5f469b40
mov eax, dword [esi]
push 1
jmp 0x5f469bfc
Function at 0x5f46a90d
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebp
push esi
mov dword [esp + 8], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x5f46a987
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push esi
call sym.MFC42.DLL_Ordinal_2867
mov edi, eax
test edi, edi
je 0x5f46a97a
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
cmp eax, esi
je 0x5f46a97a
push esi
push eax
call sym.MFC42.DLL_Ordinal_1186
test eax, eax
je 0x5f46a97a
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [esp + 0x18], 0
jne 0x5f46a98d
and eax, 0x18000000
cmp eax, 0x10000000
jne 0x5f46a97a
push 0
push esi
call ebx
or dword [edi + 0x28], 2
push 2
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x5f46a933
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 4
test eax, 0x18000000
jne 0x5f46a97a
test byte [edi + 0x28], 2
je 0x5f46a97a
push 4
push esi
call ebx
and dword [edi + 0x28], 0xfffffffd
jmp 0x5f46a97a
Function at 0x5f46f602
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test byte [esi + 4], 1
je 0x5f46f666
mov ebx, dword [esi + 0xc]
call sym.MFC42.DLL_Ordinal_1168
cmp dword [eax + 0x1054], 0
je 0x5f46f62e
push ebx
mov ecx, edi
call sym.MFC42.DLL_Ordinal_3926
mov ebx, eax
push dword [ebp + 0xc]
push ebx
call fcn.5f46f4ec
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x5f46f64c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [edi + 0x48], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5f46f658
mov ebx, eax
mov dword [edi + 0x48], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
jmp 0x5f46f616

Function at 0x5f46ffdf
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
dec eax
push edi
dec eax
je 0x5f46fff3
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
call sym.MFC42.DLL_Ordinal_1176
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [edi]
cmp eax, dword [esi + 0x1c]
jne 0x5f47000c
mov eax, dword [edi + 4]
cmp eax, dword [esi + 0x20]
je 0x5f46ffeb
lea eax, [ebp + 0xc]
push eax
push 4
push 0x12
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test byte [edi], 0x40
mov eax, dword [esi + 0x1c]
je 0x5f470032
or al, 0x40
mov dword [edi], eax
mov eax, dword [esi + 0x20]
push 1
mov dword [edi + 4], eax
pop eax
jmp 0x5f46ffed
and al, 0xbf
jmp 0x5f470025

Function at 0x5f47481d
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x5f474835
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret 4
push edi
mov edi, dword [eax]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi + 4]
push eax
push dword [esp + 0x10]
call dword [edi + 0x40]
pop edi
jmp 0x5f474831