joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be368
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4be457
mov eax, dword [ebp - 4]
push eax
call fcn.0047e068
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4be443
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp - 4]
je 0x4be443
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004bdf80
test eax, eax
je 0x4be443
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x4be409
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x4be409
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
jmp 0x4be443
cmp dword [ebp + 8], 0
je 0x4be443
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
test eax, eax
jne 0x4be443
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 2
test edx, edx
je 0x4be443
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0xfffffffd
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x4be383
mov esp, ebp
pop ebp
ret 4
Function at 0x4c22be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x4c22e2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x4c231c
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c2336
push 0xc9
push str.dlgprop.cpp
call fcn.004d5310
test eax, eax
je 0x4c2336
int3
xor eax, eax
test eax, eax
jne 0x4c231c
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x4c2411
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x4c23e1
push 0x5d973c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c238e
push 0xe1
push str.dlgprop.cpp
call fcn.004d5310
test eax, eax
je 0x4c238e
int3
xor ecx, ecx
test ecx, ecx
jne 0x4c2374
cmp dword [ebp - 0x18], 0
je 0x4c23df
push 0x5d974c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4c23d5
mov eax, 1
test eax, eax
je 0x4c23cf
push 0xe6
push str.dlgprop.cpp
call fcn.004d5310
test eax, eax
je 0x4c23cf
int3
xor ecx, ecx
test ecx, ecx
jne 0x4c23b2
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4c2411
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x4c2411
mov ecx, 1
test ecx, ecx
je 0x4c240b
push 0xed
push str.dlgprop.cpp
call fcn.004d5310
test eax, eax
je 0x4c240b
int3
xor edx, edx
test edx, edx
jne 0x4c23ee
call fcn.004ec1c3
cmp dword [eax + 0x1038], 0
je 0x4c242e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004c2273
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c2135
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x4c245e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x4c2473
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4eb48c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x4eb4b2
push 0x146
push str.afxtls.cpp
call fcn.004d5310
test eax, eax
je 0x4eb4b2
int3
xor eax, eax
test eax, eax
jne 0x4eb498
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x4eb4d1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x4eb554
cmp dword [ebp + 0xc], 0
je 0x4eb4f4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4eb539
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4eb520
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4eb527
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x4eb54f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x4eb54f
mov dword [ebp - 4], 0
jmp 0x4eb4c8
cmp dword [ebp - 4], 0
je 0x4eb5c8
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004ebb50
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4eb5b3
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x4eb5ba
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4eb5d1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4eb614
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4eb612
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004eb48c
jmp 0x4eb649
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004ebb70
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4eb649
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004eb48c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4eb622
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x4f8eb8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f8f5b
cmp dword [ebp + 8], 0
je 0x4f8f5b
lea edx, [ebp - 0xc]
push edx
push 0x5de974
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f1afe
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51d31f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.00486b00
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x51d383
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x51d3b0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x51d3b0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.004d90d4
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x51d48a
call fcn.004d90c3
cmp eax, dword [ebp + 8]
je 0x51d3dd
jmp 0x51d48a
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x51d415
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x51d46a
cmp dword [ebp - 0x1c], 0x202
je 0x51d439
cmp dword [ebp - 0x1c], 0x205
je 0x51d439
cmp dword [ebp - 0x1c], 0x201
je 0x51d439
cmp dword [ebp - 0x1c], 0x204
jne 0x51d43b
jmp 0x51d48a
cmp dword [ebp - 0x1c], 0x100
jne 0x51d44c
cmp dword [ebp - 0x18], 0x1b
jne 0x51d44c
jmp 0x51d48a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.004defc6
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x5ea714]
jbe 0x51d485
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x51d3c1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Suspend thread

Disassembly:
enter 0x54, 0
mov eax, 0x4c110c
add byte [eax + 0x4c110c], bh
cmp eax, 0xa3a5
jb 0x401003
push eax
push ebx
push dword [eax + 0x1d4]
push dword [eax + 0xd4]
push edi
call fcn.004019bc
pop eax
push eax
call sub.KERNEL32.dll_GetTickCount
pop eax
push eax
push 0
call sub.KERNEL32.dll_SuspendThread
pop eax
add esp, 0x54
pop ebp
ret 0xc

Function at 0x40103c
Capabilities:
Suspend thread

Disassembly:
enter 0x34, 0
mov ecx, 0x4c1014
mov dword [ecx + 0x18c], 0xfffffff4
push ecx
push dword [ecx + 0xe8]
push dword [ecx + 0x128]
push edx
call fcn.004014f0
pop ecx
push ecx
push 0
call sub.KERNEL32.dll_SuspendThread
pop ecx
push ecx
mov esi, 0
push esi
call sub.KERNEL32.dll_GlobalUnlock
pop ecx
add esp, 0x34
pop ebp
ret 0xc

Function at 0x401080
Capabilities:
Log keystrokes via polling

Disassembly:
pushal
lea esi, str.msdxm.ocx
inc ebx
push 2
push 0
push esi
call sub.KERNEL32.dll_LoadLibraryExA
cmp eax, 3
jg 0x401404
popal
ret 0
enter 0x5c, 0
mov edx, 0x4c10e4
sub edi, ecx
push edx
push 0
call sub.USER32.dll_GetKeyState
pop edx
push edx
push dword [edx + 0x1b8]
push esi
call fcn.0040180c
pop edx
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push dword [edx + 0x94]
pop ebx
call ebx
add esp, 0x5c
pop ebp
ret

Function at 0x401200
Capabilities:
Accept command line arguments

Disassembly:
enter 0x50, 0
mov ebx, 0x4c1134
sbb dword [ebp - 0x44], ebx
push ebx
push edx
push dword [ebx + 0xec]
push esi
push dword [ebx + 0x20]
call fcn.004012a4
pop ebx
mov edi, 0
push edi
call sub.USER32.dll_DestroyMenu
call sub.KERNEL32.dll_GetCommandLineA
add esp, 0x50
pop ebp
ret 0x10

Function at 0x4012a4
Capabilities:
Suspend thread

Disassembly:
enter 0x60, 0
lea esi, [ebx + 0xb0]
sub dword [ebp - 8], 0xa11f43f
lea edi, [esi - 0x1e4]
mov esi, 0xfffffe1c
push edi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x4012b6
push esi
push ecx
push dword [esi + 0x188]
push dword [esi + 0x30]
push eax
call fcn.004012e8
pop esi
push 0
call sub.KERNEL32.dll_SuspendThread
add esp, 0x60
pop ebp
ret 0x10

Function at 0x401324
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x40, 0
mov esi, 0x4c10d0
or eax, dword [esi + 0xb8]
push esi
push ebx
push dword [esi + 0xd8]
call fcn.00401844
pop esi
push 0
call sub.KERNEL32.dll_GlobalUnlock
push 0
call sub.USER32.dll_GetKeyState
add esp, 0x40
pop ebp
ret 8

Function at 0x401378
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x60, 0
lea eax, [ebx - 0x14]
xor dword [ebp - 0x20], 0x67e98687
push eax
push ebx
push dword [eax + 0x1c8]
push dword [eax + 0x50]
push esi
call fcn.004010e0
pop eax
push eax
call sub.KERNEL32.dll_GetConsoleCP
pop eax
push eax
push 0
call sub.USER32.dll_GetKeyState
pop eax
add esp, 0x60
pop ebp
ret 0x10

Function at 0x4013c0
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x54, 0
lea ecx, [0x4c1164]
adc dword [ecx - 0xbc], ecx
push ecx
push dword [ecx + 0x140]
push esi
push dword [ecx + 0x180]
push dword [ecx + 0x18c]
call fcn.00401964
pop ecx
push ecx
push 0
call sub.USER32.dll_GetKeyState
pop ecx
push ecx
call sub.KERNEL32.dll_GetSystemDefaultLangID
pop ecx
add esp, 0x54
pop ebp
ret 8
Function at 0x4014f0
Capabilities:
Get keyboard layout

Disassembly:
enter 0x40, 0
mov eax, 0x4c1100
add ecx, dword [eax + 0x48]
push eax
mov edx, 0
push edx
call sub.USER32.dll_GetKeyboardLayout
pop eax
push eax
push dword [eax + 0x70]
push dword [eax + 0x94]
push dword [eax + 0x1b4]
push dword [eax + 0x130]
call fcn.00401760
pop eax
push eax
push 0
call sub.USER32.dll_GetKeyboardLayout
pop eax
add esp, 0x40
pop ebp
ret 0xc

Function at 0x401548
Capabilities:
Get keyboard layout

Disassembly:
enter 0x54, 0
lea ecx, [edi + 0xf8]
sbb esi, dword [ecx - 0xdc]
push ecx
push 0
call sub.USER32.dll_DestroyMenu
pop ecx
push ecx
push edx
push edi
call fcn.0040187c
pop ecx
push ecx
mov eax, 0
push eax
call sub.USER32.dll_GetKeyboardLayout
pop ecx
add esp, 0x54
pop ebp
ret 8

Function at 0x401598
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x2c, 0
lea esi, [0x4c1010]
cmp esi, 0x63e0
je 0x40159b
add byte [ebp + 0x4c101035], cl
add byte [ecx + 0x63e0fe], al
add byte [ecx + esi*8 + 0x6a], dh
add al, ch
and eax, dword [eax]
add byte [eax], al
push 0
call sub.USER32.dll_GetKeyState
push esi
push dword [esi + 0x24]
push dword [esi + 0x120]
call fcn.00401b10
pop esi
mov edi, 0
push edi
call sub.KERNEL32.dll_GlobalUnlock
add esp, 0x2c
pop ebp
ret 0xc

Function at 0x4015dc
Capabilities:
Log keystrokes via polling
Suspend thread

Disassembly:
enter 0x30, 0
mov esi, 0x4c1070
add byte [esi + 0x4c1070], bh
cmp esi, 0xaf71
jbe 0x4015df
push 0
call sub.KERNEL32.dll_SuspendThread
push esi
push dword [esi + 0xdc]
push dword [esi + 0x7c]
call fcn.004018d4
pop esi
mov eax, 0
push eax
call sub.USER32.dll_GetKeyState
add esp, 0x30
pop ebp
ret 0x10

Function at 0x401664
Capabilities:
Suspend thread

Disassembly:
enter 0x54, 0
mov edi, 0x4c1020
xor eax, dword [edi + 0x1d0]
push edi
push ebx
push edx
push dword [edi + 0x104]
push dword [edi + 0xf4]
call fcn.00401200
pop edi
mov ecx, 0
push ecx
call sub.KERNEL32.dll_SuspendThread
push 0
call sub.KERNEL32.dll_GlobalUnlock
add esp, 0x54
pop ebp
ret 0xc

Function at 0x40180c
Capabilities:
Accept command line arguments

Disassembly:
enter 0x28, 0
lea ebx, [edx + 0x20]
cmp ebx, 0x9a3b
jbe 0x40180f
add byte [ebp - 0x47edfa6], cl
cmp ebx, dword [edx - 0xb8a0000]
push ebx
push esi
push esi
push dword [ebx + 0x138]
call fcn.00401158
pop ebx
call sub.KERNEL32.dll_GetCommandLineA
call sub.KERNEL32.dll_GetVersion
add esp, 0x28
pop ebp
ret 8

Function at 0x401844
Capabilities:
Get keyboard layout

Disassembly:
enter 0x24, 0
lea ecx, [esi - 0xb8]
adc dword [ebp - 0x10], edi
push ecx
mov eax, 0
push eax
call sub.USER32.dll_GetKeyboardLayout
pop ecx
push ecx
push esi
push edi
push dword [ecx + 0xc]
push esi
call fcn.00401238
pop ecx
push ecx
call sub.KERNEL32.dll_GetConsoleCP
pop ecx
add esp, 0x24
pop ebp
ret 8

Function at 0x4018d4
Capabilities:
Accept command line arguments

Disassembly:
enter 0x38, 0
lea edx, [esi + 0xb4]
sbb ecx, dword [ebp - 0x28]
push edx
push 0
call sub.KERNEL32.dll_SetConsoleCP
pop edx
push edx
push eax
push dword [edx + 0x11c]
call fcn.00401638
pop edx
push edx
call sub.KERNEL32.dll_GetCommandLineA
pop edx
add esp, 0x38
pop ebp
ret 8
Function at 0x401928
Capabilities:
Get keyboard layout

Disassembly:
enter 0x1c, 0
mov edx, 0x4c10dc
mov esi, eax
push edx
call sub.KERNEL32.dll_GetVersion
pop edx
push edx
push dword [edx + 0xb4]
push dword [edx + 0x15c]
push dword [edx + 0x68]
call fcn.00401598
pop edx
push edx
mov eax, 0
push eax
call sub.USER32.dll_GetKeyboardLayout
pop edx
add esp, 0x1c
pop ebp
ret 0x10

Function at 0x401964
Capabilities:
Suspend thread

Disassembly:
enter 0x60, 0
lea edx, [0x4c1108]
xor dword [ebp - 0x1c], 0xffffffb5
push edx
push dword [edx + 0x150]
push dword [edx + 0xa4]
push dword [edx + 0xcc]
call fcn.00401ac8
pop edx
push edx
mov esi, 0
push esi
call sub.KERNEL32.dll_SuspendThread
pop edx
push edx
mov edi, 0xfffffff5
push edi
call sub.KERNEL32.dll_GetStdHandle
pop edx
add esp, 0x60
pop ebp
ret 0x10

Function at 0x401b10
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x48, 0
mov edi, 0x4c1164
or ebx, dword [edi + 0x98]
push edi
push dword [edi + 0x190]
push dword [edi + 0x1ec]
call fcn.004016ec
pop edi
mov edx, 0
push edx
call sub.USER32.dll_GetKeyState
mov ecx, 0
push ecx
call sub.USER32.dll_DestroyMenu
add esp, 0x48
pop ebp
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10003f00
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x1000fec8], eax
jne 0x10003f1b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str.Fnjldj_Gqtpom_Gvmtof_O_jw
push str.Nglnas_Lpqdwqgn_lp
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x1000fec4], eax
jne 0x10003f54
pop ecx
ret
mov edx, dword [0x1000fec8]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x1000fec4]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str._j_mvwgtNpqkeswnm_Keznhi_Tf__cr_b_Dl
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10003f90
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push str.Nglnas_Lpqdwqgn_lp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret