joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402148
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4775c0], 0
jne 0x402165
call fcn.00401a5c
test al, al
je 0x40216d
cmp ebx, 0x7ffffff8
jle 0x402177
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4022cb
xor ecx, ecx
push ebp
push 0x4022c4
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x477049], 0
je 0x402198
push 0x4775c8
call sub.KERNEL32.DLL_WaitForSingleObject
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x4021a8
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x402247
mov eax, ebx
test eax, eax
jns 0x4021bd
add eax, 3
sar eax, 2
mov edx, dword [0x477620]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x402247
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x4021f8
mov eax, ebx
test eax, eax
jns 0x4021e7
add eax, 3
sar eax, 2
mov ecx, dword [0x477620]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x40221e
mov ecx, ebx
test ecx, ecx
jns 0x402201
add ecx, 3
sar ecx, 2
mov edi, dword [0x477620]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4775b0]
sub ebx, 4
add dword [0x4775b4], ebx
call fcn.004043e4
jmp 0x4022cb
cmp ebx, dword [0x477618]
jg 0x402299
sub dword [0x477618], ebx
cmp dword [0x477618], 0xc
jge 0x40226b
add ebx, dword [0x477618]
xor eax, eax
mov dword [0x477618], eax
mov eax, dword [0x47761c]
add dword [0x47761c], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4775b0]
sub ebx, 4
add dword [0x4775b4], ebx
call fcn.004043e4
jmp 0x4022cb
mov eax, ebx
call fcn.00402054
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4022cb
cmp byte [0x477049], 0
je 0x4022c3
push 0x4775c8
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4022d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4775c4], eax
cmp byte [0x4775c0], 0
jne 0x402310
call fcn.00401a5c
test al, al
jne 0x402310
mov dword [0x4775c4], 8
mov dword [ebp - 4], 8
jmp 0x402471
xor ecx, ecx
push ebp
push 0x40246a
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x477049], 0
je 0x402331
push 0x4775c8
call sub.KERNEL32.DLL_WaitForSingleObject
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x40234c
mov dword [0x4775c4], 9
jmp 0x402441
dec dword [0x4775b0]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4775b4], eax
test bl, 1
je 0x4023ac
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x40237c
test edx, 0x80000003
je 0x40238b
mov dword [0x4775c4], 0xa
jmp 0x402441
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x4023a3
mov dword [0x4775c4], 0xa
jmp 0x402441
add ebx, edx
mov esi, eax
call fcn.00401c00
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x47761c]
jne 0x4023ec
sub dword [0x47761c], ebx
add dword [0x477618], ebx
cmp dword [0x477618], 0x3c00
jle 0x4023dd
call fcn.00401ef0
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004043e4
jmp 0x402471
mov edx, dword [eax]
test dl, 2
je 0x40240f
and edx, 0x7ffffffc
cmp edx, 4
jge 0x40240a
mov dword [0x4775c4], 0xb
jmp 0x402441
or dword [eax], 1
jmp 0x402438
mov eax, edi
cmp dword [eax + 4], 0
je 0x402422
cmp dword [eax], 0
je 0x402422
cmp dword [eax + 8], 0xc
jge 0x40242e
mov dword [0x4775c4], 0xb
jmp 0x402441
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401c00
mov edx, ebx
mov eax, esi
call fcn.00401e68
mov eax, dword [0x4775c4]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402471
cmp byte [0x477049], 0
je 0x402469
push 0x4775c8
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x404780
Capabilities:
Get common file path

Disassembly:
push ecx
cmp byte [0x477048], 0
je 0x4047e1
cmp word [0x47721c], 0xd7b2
jne 0x4047a9
cmp dword [0x477224], 0
jbe 0x4047a9
mov eax, 0x477218
call dword [0x477234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47509c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetTempPathA
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404808
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetTempPathA
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
pop edx
ret
cmp byte [0x475030], 0
jne 0x4047fd
push 0
push 0x475094
push 0x47509c
push 0
call sub.user32.dll_WinHelpA
pop edx
ret

Function at 0x404ac0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
push 0
mov eax, dword [0x4775bc]
push eax
call sub.KERNEL32.DLL_ResumeThread
pop ebp
ret 4

Function at 0x405060
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x405074
push eax
push 0
call sub.user32.dll_ShowWindow
test eax, eax
je 0x405058
ret
Function at 0x405b84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x405d18
call sub.KERNEL32.DLL_LeaveCriticalSection
mov esi, eax
test esi, esi
je 0x405bec
push 0x405d28
push esi
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x405bec
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405bec
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
jmp 0x405d0e
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x405c2c
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405d0e
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00405b70
mov esi, eax
cmp byte [esi], 0
je 0x405d0e
lea eax, [esi + 1]
call fcn.00405b70
mov esi, eax
cmp byte [esi], 0
je 0x405d0e
jmp 0x405c32
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_ReadFile
jmp 0x405cf1
lea eax, [esi + 1]
call fcn.00405b70
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405d0e
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_ReadFile
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GlobalFree
mov esi, eax
cmp esi, 0xffffffff
je 0x405d0e
push esi
call sub.KERNEL32.DLL_GlobalFindAtomA
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ResetEvent
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405d0e
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_ReadFile
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_ResetEvent
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x405c50
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d3c
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_InitializeCriticalSection
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f6c
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x405dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f6c
push 0x80000002
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x405dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f88
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
jne 0x405e48
xor eax, eax
push ebp
push 0x405e41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b84
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x405e26
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fa8
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x405e26
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e48
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_TranslateMessage
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ReadFile
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_LockResource
push eax
call sub.KERNEL32.DLL_GlobalUnlock
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405f62
cmp byte [ebp - 0xd], 0
jne 0x405e8f
cmp byte [ebp - 0x12], 0
je 0x405f62
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ea8
dec ebx
cmp byte [ebx], 0x2e
je 0x405eb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ea7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f62
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ef4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
test esi, esi
jne 0x405f62
cmp byte [ebp - 0xd], 0
je 0x405f62
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
test esi, esi
jne 0x405f62
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
or eax, 0xffffffff
mov esi, ebx
and esi, 3
cmp esi, 2
ja 0x408e97
mov edx, ebx
and edx, 0xf0
cmp edx, 0x40
ja 0x408e97
push 0
push 0x80
push 3
push 0
mov eax, ebx
and eax, 0xf0
shr eax, 4
mov eax, dword [eax*4 + 0x47517c]
push eax
mov eax, dword [esi*4 + 0x475170]
push eax
mov eax, edi
call fcn.00404e40
push eax
call sub.user32.dll_GetKeyNameTextA
pop edi
pop esi
pop ebx
ret

Function at 0x408e9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, ebx
call fcn.00404e40
push eax
call sub.user32.dll_GetKeyNameTextA
pop ebx
ret

Function at 0x4091c4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
push esp
lea eax, [esp + 8]
push eax
push 0x104
mov eax, ebx
call fcn.00404e40
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [esp + 4]
mov eax, esi
call fcn.00404a70
add esp, 0x108
pop esi
pop ebx
ret

Function at 0x40caf4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cbca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a18
lea eax, [ebp - 8]
call fcn.00404e90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e40
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cbb4
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cbad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e40
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cb97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cbdc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cb97
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbb4
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbd1
lea eax, [ebp - 8]
call fcn.00404980
ret
Function at 0x4112c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp dword [0x477820], 0
je 0x4112e2
cmp bx, 0x100
jb 0x4112e2
cmp bx, 0x7ff
jbe 0x4112e6
xor eax, eax
jmp 0x4112e8
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x41136f
push 0x477824
call sub.user32.dll_GetKeyboardState
xor eax, eax
push ebp
push 0x411368
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x477820]
call fcn.00405898
movzx edi, bx
mov edx, edi
sub edx, 0x100
cmp eax, edx
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x411350
mov eax, dword [0x477820]
mov eax, dword [eax + edi*4 - 0x400]
mov dword [esi], eax
cmp dword [esi], 0
je 0x411347
mov eax, dword [esi]
cmp eax, dword [0x475358]
jne 0x41134b
xor eax, eax
jmp 0x41134d
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41136f
push 0x477824
call sub.user32.dll_PostQuitMessage
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x411378
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41144e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x477824
call sub.user32.dll_GetKeyboardState
xor eax, eax
push ebp
push 0x411431
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x477820]
call fcn.004058a0
mov esi, eax
test esi, esi
jl 0x411419
inc esi
xor edi, edi
mov eax, dword [0x477820]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x411415
cmp ebx, dword [0x475358]
je 0x411415
lea edx, [ebp - 0x110]
mov eax, dword [ebx]
call fcn.00403b14
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10]
call fcn.00404be4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00408778
test al, al
je 0x411415
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov byte [ebp - 9], 1
jmp 0x411419
inc edi
dec esi
jne 0x4113cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411438
push 0x477824
call sub.user32.dll_PostQuitMessage
ret

Function at 0x414060
Capabilities:
Log keystrokes via polling

Disassembly:
add eax, 8
push eax
call sub.user32.dll_GetKeyboardState
ret
Function at 0x41b17c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, eax
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x476ca8]
cmp eax, dword [edx]
je 0x41b1bf
call sub.user32.dll_GetSystemMetrics
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x476a50]
mov dl, 1
mov eax, dword [0x4133ec]
call fcn.0040c39c
call fcn.00404338
test ebx, ebx
jle 0x41b1cc
mov eax, ebx
call fcn.0041b13c
jmp 0x41b1d1
call fcn.0041b130
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x477868
call sub.user32.dll_GetKeyboardState
xor eax, eax
push ebp
push 0x41b30a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x475418
call sub.user32.dll_GetScrollInfo
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41b2eb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x41b21c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x41b220
xor eax, eax
jmp 0x41b222
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x41b2d5
jmp 0x41b2c8
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00414cc4
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00414bb4
push 0x477868
call sub.user32.dll_PostQuitMessage
xor eax, eax
push ebp
push 0x41b2b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41b286
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b29d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b2bc
push 0x477868
call sub.user32.dll_GetKeyboardState
ret
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x41b234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b2f2
mov eax, dword [ebp - 0xc]
call fcn.00403bc4
ret
Function at 0x41b5c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x476ca8]
cmp eax, dword [edx]
jne 0x41b5eb
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x41b6fe
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.user32.dll_GetIconInfo
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41b6e6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x477868
call sub.user32.dll_GetKeyboardState
xor eax, eax
push ebp
push 0x41b6c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x475418], 0
jne 0x41b63b
mov dl, 1
mov eax, dword [0x41260c]
call fcn.00403b94
mov dword [0x475418], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov eax, dword [0x475418]
call fcn.00414b68
call fcn.0041b158
cmp word [0x475406], 0
je 0x41b66e
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [0x475408]
call dword [0x475404]
push 0x477868
call sub.user32.dll_PostQuitMessage
xor eax, eax
push ebp
push 0x41b6a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetMenu
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b6b0
push 0x477868
call sub.user32.dll_GetKeyboardState
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41dba4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41dbaa
ret

Function at 0x41dc18
Capabilities:
Log keystrokes via polling

Disassembly:
add eax, 8
push eax
call sub.user32.dll_GetKeyboardState
ret

Function at 0x421434
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
test esi, esi
je 0x4214ea
cmp word [ecx + 0x26], 8
ja 0x4214ea
lea edx, [ebp - 0x410]
mov ecx, 0xff
mov eax, dword [ebp - 4]
call fcn.00420298
mov ebx, eax
test ebx, ebx
je 0x4214ea
push 0
call fcn.0040705c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_EnableMenuItem
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4214e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x410]
push eax
push ebx
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4214ea
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_EnableMenuItem
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_AdjustWindowRectEx
mov eax, dword [ebp - 8]
push eax
push 0
call fcn.0040729c
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4227f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x41d8b4]
call fcn.00403b94
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42287f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov esi, eax
lea edi, [edx + 0x18]
mov ecx, 0x15
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x70], dl
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x422861
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x412f84]
call fcn.00403d74
mov edx, dword [ebp - 8]
mov dword [edx + 0x6c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x422896
push 0x4778ac
call sub.user32.dll_GetKeyboardState
xor edx, edx
push ebp
push 0x4228df
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.0042136c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x28], eax
call fcn.00421368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4228e6
push 0x4778ac
call sub.user32.dll_PostQuitMessage
ret

Function at 0x423cb8
Capabilities:
Log keystrokes via polling

Disassembly:
add eax, 8
push eax
call sub.user32.dll_GetKeyboardState
ret

Function at 0x45d6a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
test dl, dl
je 0x45d6b2
add esp, 0xfffffff0
call fcn.00403ed0
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [ebp + 8]
call fcn.00404e30
xor eax, eax
push ebp
push 0x45d762
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [esi + 0x2e0]
xor edx, edx
mov eax, edi
call fcn.00415618
mov dword [edi + 0xc], esi
lea eax, [edi + 0x10]
mov edx, dword [ebp + 8]
call fcn.004049d4
lea eax, [edi + 0x14]
call fcn.00404980
mov al, byte [0x45d788]
mov byte [edi + 0x18], al
xor eax, eax
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x20]
call fcn.00404980
mov dl, 1
mov eax, dword [0x412c70]
call fcn.00403b94
mov dword [edi + 0x24], eax
mov dl, 1
mov eax, dword [0x412c70]
call fcn.00403b94
mov dword [edi + 0x28], eax
mov byte [edi + 0x34], 0
mov byte [edi + 0x2c], 0
mov byte [edi + 0x41], 0
xor eax, eax
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0xc]
mov edx, dword [eax + 0x2b8]
mov dword [edi + 0x48], edx
mov edx, dword [eax + 0x2bc]
mov dword [edi + 0x4c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d769
lea eax, [ebp + 8]
call fcn.00404980
ret