joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4510
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64cd40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6f36d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
test dword [ebp + 0xc], eax
jne 0x4c4556
xor al, al
jmp 0x4c4698
push 0
push 0
push eax
push ecx
call sub.IMM32.dll_ImmGetCompositionStringW
mov ebx, eax
test ebx, ebx
jle 0x4c454f
mov eax, 0
mov dword [ebp - 0x38], eax
mov esi, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
add ebx, 2
jne 0x4c4580
xor edi, edi
jmp 0x4c45b4
cmp ebx, 0x7fffffff
ja 0x4c46bb
push ebx
lea ecx, [ebp - 0x38]
call fcn.00483c90
lea ecx, [ebx + ebx]
mov dword [ebp - 0x38], eax
push ecx
push 0
lea esi, [ecx + eax]
mov edi, eax
push eax
mov dword [ebp - 0x30], esi
call fcn.005d9d70
add esp, 0xc
mov dword [ebp - 0x34], esi
mov eax, edi
push ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp - 0x3c]
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c45e1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00484230
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test edx, edx
jne 0x4c461a
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
test eax, eax
je 0x4c4661
push eax
call sub.libcef.dll_cef_string_utf16_clear
add esp, 4
jmp 0x4c4661
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4c4649
push 0xc
call fcn.0055d275
mov dword [ebx + 4], eax
xorps xmm0, xmm0
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x18]
mov byte [ebx + 8], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push ecx
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.0047d710
test edi, edi
je 0x4c4696
sub esi, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x4c468c
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4c46b6
mov edi, ecx
push esi
push edi
call fcn.0055d2a5
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 0x10
call fcn.005e3e64
call fcn.004c49f0
int3
Function at 0x4cd1c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64df47
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x6f36d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov al, byte [ebp + 8]
lea esi, [edi + 8]
mov dword [edi], vtable.client::RootWindowManager.0
mov byte [edi + 4], al
mov dword [ebp + 8], esi
push 0x14
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0055d275
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x10], 0
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ecx
call fcn.0057ec40
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
lea esi, [edi + 0x38]
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0055d275
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0xc
mov byte [ebp - 4], 7
call fcn.0055d275
add esp, 8
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4cd2a7
mov ecx, eax
call fcn.004b5a90
jmp 0x4cd2a9
xor eax, eax
mov byte [ebp - 4], 7
mov dword [edi + 0x40], eax
test eax, eax
je 0x4cd2bb
mov ecx, eax
call fcn.00579940
lea eax, [ebp + 8]
mov byte [ebp - 4], 9
push eax
call fcn.0057f110
add esp, 4
push str.request_context_per_browser
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xa
call fcn.004a3000
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
mov byte [edi + 5], al
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x20], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
test eax, eax
je 0x4cd31f
cmp byte [ebp - 0x18], 0
je 0x4cd31f
push eax
call sub.libcef.dll_cef_string_utf16_clear
push 0xc
push dword [ebp - 0x1c]
call fcn.0055d2a5
add esp, 0xc
push str.request_context_shared_cache
lea ecx, [ebp - 0x20]
call fcn.004a3000
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 0xd
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
mov byte [edi + 6], al
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
test eax, eax
je 0x4cd368
cmp byte [ebp - 0x18], 0
je 0x4cd368
push eax
call sub.libcef.dll_cef_string_utf16_clear
push 0xc
push dword [ebp - 0x1c]
call fcn.0055d2a5
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4cd383
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4d1530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x108]
mov byte [ecx + 0x114], 1
test eax, eax
je 0x4d1565
cmp byte [ebp + 8], 0
je 0x4d1554
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop ebp
ret 4
push str.parent_pro_non
call fcn.004d63e0
call fcn.004b8ae0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
je 0x4d1588
mov ecx, eax
call fcn.004d0d80
jmp 0x4d158d
mov eax, 0xfffff
push eax
push str.root_wnd_count:__d
call fcn.004885d0
push str.Close_StatisticException_so_suicide
call fcn.004885d0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebp
ret 4
Function at 0x4d2490
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x108]
test eax, eax
je 0x4d24a3
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4d2d00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6f36d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi], 0
je 0x4d2d36
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4d2d4e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 4
push ebx
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.005d9d70
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005d9d70
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x4d2e55
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005d9d70
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x4d2e55
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.005d9d70
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x67a4fc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
lea eax, [ebp - 0x210]
pop ebx
push eax
je 0x4d2e98
push str.VolumeCtrl:_s
call fcn.00488bb0
lea eax, [ebp - 0x210]
push eax
call fcn.00524810
add esp, 0xc
test eax, eax
je 0x4d2ea5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
jmp 0x4d2ea5
push str.VolumeCtrl_not_exist:_s
call fcn.00488bb0
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi], eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 4
Function at 0x4d37f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64eda0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x6f36d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xfc], 0
mov dword [ebp - 4], 0
jne 0x4d385e
push 0xf
call fcn.00488570
add esp, 4
test eax, eax
je 0x4d38ac
push 0x24
push 0x67ae3c
push 0x67ae44
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4d38ac
push 0
push str.taskkill.exe__f__im_CefView.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4d38ac
cmp byte [esi + 0x108], 0
jne 0x4d38ac
mov eax, dword [esi + 0x144]
test eax, eax
je 0x4d3879
mov eax, dword [eax + 0x9c]
jmp 0x4d387b
xor eax, eax
push 2
or eax, 3
lea ecx, [ebp - 0x20]
push eax
push 2
call fcn.0056cbd0
mov ecx, dword [esi + 0x16c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4d38a4
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004f8720
lea ecx, [ebp - 0x20]
call fcn.0056ccd0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 3
test eax, eax
je 0x4d38ca
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e9391
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4e9391
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4e9391
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4e9391
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4e938b
push esi
push ebx
push edi
call fcn.005d9270
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4e938b
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f4a50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x653893
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6f36d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], vtable.IpcChannel.0
push 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0055d275
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.00488db0
mov dword [edi + 0x14], 0
xor eax, eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov dword [edi + 0x30], eax
mov eax, dword [ebp + 8]
push 0x6fb0b8
push 0x78
mov dword [edi + 0x34], eax
call fcn.0055def8
mov edx, eax
add esp, 8
mov dword [ebp + 8], edx
test edx, edx
je 0x4f4b94
mov dword [edx + 4], 0x67932c
mov dword [edx + 0xc], 0x679334
mov dword [edx + 0x74], vtable.CefBaseRefCounted.0
mov eax, dword [edx + 4]
mov dword [edx], vtable.CefTask.0
mov eax, dword [eax + 4]
mov dword [eax + edx + 4], vtable.CefTask.1.0
mov eax, dword [edx + 0xc]
mov dword [edx + 8], vtable.CefCookieVisitor.0
mov eax, dword [eax + 4]
mov dword [eax + edx + 0xc], vtable.CefCookieVisitor.1.0
mov eax, dword [edx + 4]
mov dword [edx], vtable.client::VisitCookieTask.0
mov dword [edx + 8], vtable.client::VisitCookieTask.1.0
mov eax, dword [eax + 4]
mov dword [eax + edx + 4], vtable.client::VisitCookieTask.2.0
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edx], eax
xor eax, eax
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 7
mov word [edx + 0x10], ax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], 7
mov word [edx + 0x28], ax
mov dword [edx + 0x64], eax
mov dword [edx + 0x6c], eax
mov dword [edi + 0x14], edx
jmp 0x4f4b9b
mov dword [edi + 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x500120
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654d4f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6f36d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x500278
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x500278
cmp dword [ebp - 0x20], 0
ja 0x500278
push 0xc
call fcn.0055d275
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x5001ba
push edi
mov ecx, eax
call fcn.004fbe80
jmp 0x5001bc
xor eax, eax
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.004fa230
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5001f4
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push edi
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x500216
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004fb9e0
mov ecx, eax
mov ebx, 3
mov eax, dword [ecx]
jmp 0x500227
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x2c]
mov ebx, 5
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ecx], 0
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], 0
test bl, 4
je 0x50024f
lea ecx, [ebp - 0x2c]
and ebx, 0xfffffffb
call fcn.004a6750
test bl, 2
je 0x50025c
lea ecx, [ebp - 0x34]
call fcn.004a6750
lea ecx, [ebp - 0x1c]
call fcn.004a6750
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
shr esi, 0xf
and esi, 1
push 0x11
add esi, esi
call ebx
shr eax, 0xf
mov edi, esi
or edi, 4
and al, 1
push 0x12
cmove edi, esi
call ebx
shr eax, 0xf
mov esi, edi
or esi, 8
and al, 1
push 0x90
cmove esi, edi
call ebx
mov edi, esi
or edi, 0x100
and al, 1
push 0x14
cmove edi, esi
call ebx
mov ebx, edi
or ebx, 1
and al, 1
mov eax, dword [ebp + 8]
cmove ebx, edi
add eax, 0xfffffff4
mov esi, ebx
cmp eax, 0x84
ja case.0x505d65.14
movzx eax, byte [eax + 0x505e40]
jmp dword [eax*4 + 0x505e1c]
mov eax, dword [ebp + 0xc]
or esi, 0x200
and eax, 0x1000000
pop edi
cmove esi, ebx
mov eax, esi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
or esi, 0x200
and eax, 0x1000000
pop edi
cmovne esi, ebx
mov eax, esi
pop esi
pop ebx
pop ebp
ret
or esi, 0x200
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne case.0x505d65.91
push 0xa1
call edi
shr eax, 0xf
test al, 1
je case.0x505d65.14
or esi, 0x800
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
shr eax, 0xf
test al, 1
jne case.0x505d65.91
push 0xa3
jmp 0x505dc2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
shr eax, 0xf
test al, 1
jne case.0x505d65.91
push 0xa5
jmp 0x505dc2
or esi, 0x400
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x505ed0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
shr ecx, 1
mov eax, ebx
and ecx, 4
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
or esi, 2
and al, 4
push 0x12
cmove esi, ecx
call edi
shr eax, 0xf
mov ecx, esi
or ecx, 8
and al, 1
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 0x10
and al, 1
mov eax, ebx
cmove edx, ecx
mov ecx, edx
or ecx, 0x20
and al, 0x10
push 0x90
cmove ecx, edx
mov esi, ecx
or esi, 0x40
and bl, 2
cmove esi, ecx
call edi
mov edi, esi
or edi, 0x100
and al, 1
push 0x14
cmove edi, esi
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, edi
or ecx, 1
and al, 1
cmove ecx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x5276e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658921
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6f36d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00480300
mov ecx, eax
test ecx, ecx
je 0x527874
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x527835
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x527827
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x527835
add eax, 0x10
push 0x6fb0b8
push eax
mov dword [ebp - 0x20], eax
call fcn.0055e5d4
mov esi, eax
add esp, 8
test esi, esi
je 0x527835
push dword [ebp - 0x20]
push 0
push esi
call fcn.005d9d70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5277ea
push esi
call fcn.0055d745
add esp, 4
jmp 0x527835
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5277f0
sub ecx, edx
sar ecx, 1
je 0x52781e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x527806
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00482800
push esi
call fcn.0055d745
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x527835
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x527854
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0047dc90
int3
Function at 0x527880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6f36d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5278a4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x527906
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x527906
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x527921
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5290b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x6f36d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x529101
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x5291df
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 8], 0
push eax
push esi
call ebx
test eax, eax
je 0x5291df
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x5291df
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push esi
call edi
cmp eax, 0xffffffff
je 0x5291df
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
test eax, eax
je 0x5291df
mov eax, 0x8664
cmp word [ebp - 0x14c], ax
jne 0x5291f9
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x1c]
push esi
call edi
cmp eax, 0xffffffff
je 0x5291df
push 0
lea eax, [ebp - 8]
push eax
push 0x108
lea eax, [ebp - 0x258]
push eax
push esi
call ebx
test eax, eax
je 0x5291df
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x5291df
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x52920d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x5291df
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x5291df
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x14]
ja 0x5291df
cmp ecx, eax
jb 0x5291df
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5291df
lea eax, [ebp - 0x259]
mov byte [ebp - 0x259], 0
push eax
mov eax, dword [ebp - 0x260]
mov ecx, eax
push eax
push edi
call fcn.00527d80
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 8]
push 0
push eax
push edi
push dword [ecx]
push esi
call ebx
test eax, eax
je 0x5291df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret