joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a234
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a3df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a3c0
mov dl, 1
mov eax, dword [0x415fbc]
call fcn.00403370
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404174
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a3af
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004479ec
test al, al
je 0x45a3a2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a3f0
lea eax, [ebp - 0x254]
call fcn.004094a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a3a2
xor eax, eax
push ebp
push 0x45a39b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a428
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a384
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a384
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a3a2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a2a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a5c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a3e6
lea eax, [ebp - 0x260]
call fcn.00404174
ret

Function at 0x45ad14
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x482bc0]
cmp byte [eax + 0xa5], 0
jne 0x45ad85
cmp dword [0x482bd8], 0
jne 0x45ad46
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45acd0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x482bd8], eax
cmp dword [0x482bd4], 0
jne 0x45ad61
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x482bd4], eax
cmp dword [0x482bdc], 0
jne 0x45ad85
push esp
push 0
push 0
push 0x45ac74
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x482bdc], eax
pop edx
ret
Function at 0x45ae7c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ae93
add esp, 0xfffffff0
call fcn.004036c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041eac0
mov eax, dword [0x481948]
cmp word [eax + 2], 0
jne 0x45aebb
mov eax, dword [0x481948]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c5fc
mov eax, dword [0x481a84]
cmp word [eax + 2], 0
jne 0x45aed5
mov eax, dword [0x481a84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c7f4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415958]
call fcn.00403370
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415958]
call fcn.00403370
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420ff4]
call fcn.004288c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b05c
mov eax, dword [0x4817b8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428c98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cda4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4817b8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cd70
test eax, eax
je 0x45afca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e98
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd98
test eax, eax
je 0x45afde
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043e4
mov eax, dword [0x481598]
cmp byte [eax], 0
jne 0x45b012
mov eax, ebx
call fcn.0045b184
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045cf80
mov eax, ebx
call fcn.0045d944
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b052
call fcn.0040371c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b404
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x482bc0]
cmp dword [eax + 0x30], 0
je 0x45b4ae
cmp dword [ebx + 0x94], 0
jne 0x45b4a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b394
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b4a8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b46e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b4a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418034
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b47d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c010
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c045
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404264
jmp 0x45c052
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d15c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d19d
mov eax, esi
call fcn.00443140
test al, al
je 0x45d19d
mov eax, dword [ebx + 0x84]
call fcn.00442e3c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d19d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442e3c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4724c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4724c8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4726ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4726d0
mov eax, esi
call fcn.0046ed80
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004041c8
lea ecx, [ebp - 0x10]
mov edx, 0x4726e4
mov eax, esi
call fcn.0046ed80
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004041c8
lea ecx, [ebp - 0x14]
mov edx, 0x4726fc
mov eax, esi
call fcn.0046ed80
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004041c8
lea ecx, [ebp - 0x18]
mov edx, 0x472718
mov eax, esi
call fcn.0046ed80
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004041c8
lea ecx, [ebp - 0x1c]
mov edx, 0x472734
mov eax, esi
call fcn.0046ed80
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004041c8
lea ecx, [ebp - 0x24]
mov edx, 0x47274c
mov eax, esi
call fcn.0046ed80
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040846c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004088b4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x472764
mov eax, esi
call fcn.0046ed80
mov eax, dword [ebp - 0x28]
call fcn.00463190
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x472774
mov eax, esi
call fcn.0046ed80
mov eax, dword [ebp - 0x2c]
call fcn.00463190
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x47278c
mov eax, esi
call fcn.0046ed80
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004088b4
inc eax
je 0x47265d
lea ecx, [ebp - 0x34]
mov edx, 0x47278c
mov eax, esi
call fcn.0046ed80
mov eax, dword [ebp - 0x34]
call fcn.00408878
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409df4
fstp qword [ebp - 0x3c]
wait
call fcn.0040a158
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x472678
lea ecx, [ebp - 0x40]
mov edx, 0x47278c
mov eax, esi
call fcn.0046ed80
mov eax, dword [ebp - 0x40]
call fcn.00463190
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x47279c
mov eax, esi
call fcn.0046ed80
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004041c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4726c1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404198
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404198
ret
Function at 0x476b98
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414f08]
call fcn.00404b00
xor eax, eax
push ebp
push 0x476cdc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481478], 0
jne 0x476beb
mov ecx, dword [0x4815c8]
mov dl, 1
mov eax, dword [0x407580]
call fcn.0040bfa8
call fcn.00403b2c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d8c
mov eax, ebx
call fcn.004049b0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x476cec
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405b98
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004049c0
test eax, eax
jle 0x476c83
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x476c7c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004043fc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004043e4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004083fc
test eax, eax
jne 0x476c7c
mov ebx, 0x15
jmp 0x476c88
mov ebx, 0x10
jmp 0x476c88
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x481478]
call fcn.00476af0
mov eax, dword [ebp - 8]
call fcn.00476af0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476ce3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404198
lea eax, [ebp - 0x10]
mov edx, dword [0x414f08]
call fcn.00404bd0
ret
Function at 0x1002b66
Capabilities:
Log keystrokes via polling

Disassembly:
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esp + 4]
jne 0x1002b83
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x1002c24
push esi
xor esi, esi
cmp dword [0x1014e4c], esi
push edi
jle 0x1002ba4
mov ecx, dword [esi*4 + 0x1014e50]
mov eax, dword [ecx]
call dword [eax + 0x18]
inc esi
cmp esi, dword [0x1014e4c]
jl 0x1002b8f
movzx eax, byte [0x101552c]
mov ecx, dword [0x1014020]
imul eax, ecx
push ebx
push 0x64
xor edx, edx
pop esi
div esi
mov ebx, eax
cmp ebx, ecx
jb 0x1002bc5
lea ebx, [ecx - 1]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x80
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1002bfa
movzx eax, byte [0x101552c]
push eax
push 0x1014ab8
push 0x40
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push esi
push ebx
push 0x402
push dword [0x1014e18]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
pop ebx
jne 0x1002c1d
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.01002a68
pop edi
pop esi
ret 8
Function at 0x1003663
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x1003628
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1003691
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10036b4
push 0x1001760
lea ecx, [ebp - 0x1c]
call fcn.01011176
push esi
push 3
push 2
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtInitiatePowerAction]
lea ecx, [ebp - 0x1c]
call fcn.010111dd
pop esi
leave
ret 4

Function at 0x1003705
Capabilities:
Create thread
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x10036d5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1003733
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003752
push 0x1001760
lea ecx, [ebp - 0x1c]
call fcn.01011176
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [ebp - 0x1c]
call fcn.010111dd
pop esi
leave
ret 4

Function at 0x1003757
Capabilities:
Lock the desktop
Log keystrokes via polling
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov eax, dword [ebp + 0xc]
add eax, 0xfffff05e
cmp eax, 8
ja case.default.0x1003779
jmp dword [eax*4 + 0x1003826]
push 2
jmp 0x1003786
push 3
call fcn.01003663
jmp case.default.0x1003779
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x10037ae
push 0x1001760
lea ecx, [ebp - 0x18]
call fcn.01011176
push 2
jmp 0x10037e5
lea eax, [ebp + 0xc]
push eax
push 0
push 0
call fcn.01002fa3
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 7
inc eax
push eax
jmp 0x10037f7
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x10037f5
push 0x1001760
lea ecx, [ebp - 0x18]
call fcn.01011176
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea ecx, [ebp - 0x18]
call fcn.010111dd
jmp case.default.0x1003779
push 2
call fcn.01003705
jmp case.default.0x1003779
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp case.default.0x1003779
push 0
call dword [sym.imp.MSGINA.dll_Ordinal_4]
jmp case.default.0x1003779
call dword [0x1014e64]
jmp case.default.0x1003779
call dword [sym.imp.USER32.dll_LockWorkStation]
leave
ret 8

Function at 0x10038c2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
push 0x20
push 0x10145b8
push 0x1e
mov edi, 0x400
push edi
call esi
push 0x20
push 0x1014578
push 0xf
push edi
call esi
push 0x20
push 0x1014538
push 0xe
push edi
call esi
push 8
lea eax, [ebp - 0x10]
push eax
push 0x10
push edi
call esi
push 0xa
lea eax, [ebp - 0x10]
push 0
push eax
call dword [sym.imp.ntdll.dll_wcstol]
add esp, 0xc
pop edi
mov dword [0x1014530], eax
pop esi
leave
ret
Function at 0x10039a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [esi], eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0x47
pop ecx
lea edi, [ebp - 0x124]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003a84
test word [ebp - 0xc], 0x110
je 0x1003a84
push ebx
xor ebx, ebx
inc ebx
cmp byte [ebp - 0xa], 3
mov dword [esi], ebx
je 0x1003a7e
cmp byte [ebp - 0xa], 2
je 0x1003a7e
cmp byte [ebp - 0xa], bl
jne 0x1003a83
cmp word [ebp - 0xc], 0x100
jne 0x1003a83
push 4
pop esi
lea eax, [ebp + 0x10]
push eax
push ebx
xor edi, edi
push edi
push 0x10019d0
push 0x80000002
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003a60
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x100199c
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a60
cmp dword [ebp - 8], esi
jne 0x1003a60
cmp dword [ebp - 4], edi
jne 0x1003a62
xor ebx, ebx
cmp dword [ebp + 0x10], edi
je 0x1003a70
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ebx, edi
sete al
mov dword [ecx], eax
jmp 0x1003a83
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x1003a8a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
push 0x2c
lea eax, [ebp - 0x30]
push eax
push 0
mov byte [ebp - 1], 1
call esi
test eax, eax
jl 0x1003aeb
xor edx, edx
mov eax, 0x100000
div dword [ebp - 0x28]
push edi
push 0
push 0x138
mov edi, eax
lea eax, [ebp - 0x168]
push eax
push 2
call esi
test eax, eax
jl 0x1003aea
mov eax, dword [ebp - 0x134]
sub eax, dword [ebp - 0x138]
xor edx, edx
div edi
cmp eax, 8
jbe 0x1003aea
and byte [ebp - 1], 0
pop edi
mov al, byte [ebp - 1]
pop esi
leave
ret

Function at 0x1003d83
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0x1001a3c
push 0
push 0x10014e0
push 0x80000001
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1003ddb
push 0x29c
push edi
push 3
push eax
push 0x1001554
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push dword [ebp - 4]
je 0x1003de2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.010030d8
jmp 0x1003dea
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
leave
ret
Function at 0x1003ded
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov esi, ecx
call edi
test ax, ax
jge 0x1003e21
push 0x12
call edi
test ax, ax
jge 0x1003e21
push 0x11
call edi
test ax, ax
jge 0x1003e21
mov ecx, esi
call fcn.01002592
jmp 0x1003e40
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x10014e0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003e45
xor eax, eax
inc eax
jmp 0x1003ea8
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1001554
push dword [ebp - 8]
mov edi, 0x29c
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003e93
cmp dword [ebp - 0xc], 3
jne 0x1003e93
cmp dword [ebp - 4], edi
jne 0x1003e93
push eax
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
test eax, eax
je 0x1003e93
mov eax, dword [0x1014e4c]
dec eax
cmp dword [esi + 0x24], eax
jg 0x1003e93
xor esi, esi
jmp 0x1003e9d
mov ecx, esi
call fcn.01002592
xor esi, esi
inc esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x1005f19
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x768
push ebx
xor ebx, ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1005f4b
mov eax, dword [ebp - 0x28]
mov dword [0x1015124], eax
mov al, byte [ebp - 8]
cmp al, 0x20
mov byte [0x1014e08], al
jbe 0x1005f52
xor al, al
jmp 0x100606f
test al, al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov edi, 0x1f40
jbe 0x1005f97
push edi
push 0x40
call esi
test eax, eax
mov dword [ebx*4 + 0x1015428], eax
je 0x1006072
push edi
push 0x40
call esi
test eax, eax
mov dword [ebx*4 + 0x10154a8], eax
je 0x1006072
movzx eax, byte [0x1014e08]
inc ebx
cmp ebx, eax
jl 0x1005f63
push edi
push 0x40
call esi
test eax, eax
mov dword [0x1015528], eax
je 0x1006072
push 0
push 0x600
lea eax, [ebp - 0x768]
push eax
push 8
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1006072
movzx eax, byte [0x1014e08]
and dword [ebp - 4], 0
test eax, eax
jle 0x1006033
lea eax, [ebp - 0x760]
mov ecx, dword [ebp - 4]
mov edx, dword [eax - 8]
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
mov ebx, dword [eax + 0xc]
shl ecx, 3
mov dword [ecx + 0x1015128], edx
mov edx, dword [eax - 4]
mov dword [ecx + 0x101512c], edx
mov edx, dword [eax]
add edi, edx
adc ebx, esi
add edx, dword [eax - 8]
mov dword [ecx + 0x1015228], edi
adc esi, dword [eax - 4]
mov dword [ecx + 0x101522c], ebx
mov dword [ecx + 0x1015328], edx
mov dword [ecx + 0x101532c], esi
movzx ecx, byte [0x1014e08]
add eax, 0x30
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x1005fdc
push 0
push 0x138
lea eax, [ebp - 0x168]
push eax
push 2
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1006072
mov eax, dword [0x1015124]
shr eax, 0xa
imul eax, dword [ebp - 0x134]
and dword [0x101553c], 0
mov dword [0x1015538], eax
mov al, byte [0x1014e08]
pop edi
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x100606d
Function at 0x1009ad2
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1009b13
push ebx
push dword [esi + 0x14]
push eax
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, ebx
jge 0x1009b33
cmp eax, 0xc0000004
jne 0x1009b39
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1009b13
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x10], ebx
add dword [esi + 0x14], 0x1000
push dword [esi + 0x14]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x1009adf
mov ebx, 0x8007000e
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov ebx, 0x80004005
jmp 0x1009b33