joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007cac
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.10016afa
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x10007e1f
jg 0x10007cdb
test esi, esi
jb 0x10007e1f
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.10017328
add esp, 0xc
test eax, eax
js 0x10007e1f
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x10007d3d
push edi
call fcn.1000822e
pop ecx
test eax, eax
je 0x10007d34
push ebx
push esi
push edi
push ebp
call fcn.10016afa
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x10007e24
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.10016afa
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x10007e1f
jg 0x10007d66
cmp ebp, ebx
jb 0x10007e1f
mov ecx, 0x10015
cmp eax, ebx
jg 0x10007d7b
jl 0x10007d75
cmp ebp, ecx
jae 0x10007d7b
mov esi, ebp
mov ecx, eax
jmp 0x10007d7f
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.10016afa
add esp, 0x10
cmp edx, ebx
jl 0x10007e1f
jg 0x10007da5
cmp eax, ebx
jb 0x10007e1f
push 0x10015
call fcn.10016afa
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10007e1f
push esi
push ebx
push dword [esp + 0x24]
call fcn.10017328
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x10007e18
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x10007e14
cmp byte [esi], 0x50
jne 0x10007e13
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x10007e13
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x10007e2b
dec esi
cmp esi, ebx
jae 0x10007dd4
push ebx
call fcn.10016afa
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.1000a190
push ebx
call fcn.10016afa
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.1000822e
add esp, 0x14
test eax, eax
je 0x10007e6b
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.10016afa
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x10007e24
Function at 0x10016afa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10016b09
pop dword [ebp - 0x24]
mov eax, 0x30a490df
add eax, 0xdf5cda2a
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x23526ca6
sub dword [ebp - 0x34], 0xd500275b
mov dword [ebp - 0x30], 0xba9fc1b1
sub dword [ebp - 0x30], 0x886c756c
mov dword [ebp - 0x2c], 0xa182d567
sub dword [ebp - 0x2c], 0x55369139
mov dword [ebp - 0x28], 0x8fa1ccc5
add dword [ebp - 0x28], 0x705e333b
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x799447e1
sub dword [ebp - 0x34], 0x521de8b
mov dword [ebp - 0x30], 0xbb12ab96
sub dword [ebp - 0x30], 0x79a64a21
mov dword [ebp - 0x2c], 0x88aa9d4d
add dword [ebp - 0x2c], 0xdac4cf1f
mov dword [ebp - 0x28], 0xa099dd80
sub dword [ebp - 0x28], 0xa099dd80
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x82947486
add eax, 0x8d6ddbce
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3d359
push 0
call eax
mov ecx, 0x459c
xor edi, edi
add edi, eax
mov ebx, 0x78d699eb
sub ebx, 0x68d33feb
add ebx, dword [ebp - 0x24]
mov edx, 0x3dba91c1
sub edx, 0x30447538
xor dword [ebp - 4], edi
mov esi, dword [ebx]
xor esi, edx
xor dword [ebp - 0x1c], ebx
mov dword [edi], esi
add dword [ebp - 0x1c], 0x3713057a
add edi, 0xd75fc94a
add edi, 0x28a036ba
add ebx, 0x70ea5129
add ebx, 0x8f15aedb
loop 0x10016c22
add eax, 0x10943
mov ebx, eax
add eax, 0x7cd7a5f
add eax, 0xf83285a6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x6d2aa534
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6d2b1d84], 0
push esi
push edi
jne 0x6d2aa4aa
call fcn.6d2aa416
test eax, eax
je 0x6d2aa4ef
mov eax, dword [0x6d2b1d84]
cmp eax, 1
jne 0x6d2aa4cb
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6d2aa4ef
jmp 0x6d2aa531
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x6d2aa531
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x6d2aa4f3
xor eax, eax
jmp 0x6d2aa531
mov eax, dword [esi]
push dword [0x6d2b1d84]
call edi
mov edi, eax
test edi, edi
je 0x6d2aa515
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x6d2aa531
lea edi, [esi + 0xff0]
push esi
push dword [0x6d2b1d84]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x6d2aa51b
mov eax, esi
pop edi
pop esi
ret
jmp 0x6d2aa496

Function at 0x6d2aa73d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d2b1c4c]
jne 0x6d2aa747
repz ret
jmp fcn.6d2aaee9

Function at 0x6d2aab3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x6d2aab4b
pop dword [ebp - 0x4c]
mov eax, 0x595c1c5
add eax, 0x6794e986
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x34c47
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x69091795
sub ecx, 0x6908d952
xor edx, edx
add edx, eax
mov esi, 0x411c689b
add esi, 0x2c0f5d65
add esi, dword [ebp - 0x4c]
mov ebx, 0x6d7901b1
mov edi, dword [esi]
xor edi, ebx
xor dword [ebp - 0x40], edx
mov dword [edx], edi
xor dword [ebp - 0x28], 0x2676b78d
add edx, 0xd093b11b
add edx, 0x2f6c4ee9
add esi, 0x8986c51b
add esi, 0x76793ae9
loop 0x6d2aaba1
add eax, 0xebdf
mov ebx, eax
add eax, 0x675565ec
add eax, 0x98aa9a19
mov ecx, 0x6d2a0000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1003b014
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1003b023
pop dword [ebp - 0x38]
mov eax, 0x861b9b1f
sub eax, 0x7617eafc
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xa5b7dd41
sub dword [ebp - 0x48], 0x576597f6
mov dword [ebp - 0x44], 0x68f2fa70
add dword [ebp - 0x44], 0xc94051d5
mov dword [ebp - 0x40], 0xee557381
sub dword [ebp - 0x40], 0xa2092f53
mov dword [ebp - 0x3c], 0xc56bb90d
add dword [ebp - 0x3c], 0x3a9446f3
lea eax, [ebp - 0x48]
push eax
mov eax, 0x9a155a10
add eax, 0x75ee866c
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x88bb57e9
add dword [ebp - 0x48], 0xebb7116d
mov dword [ebp - 0x44], 0xff914c3c
sub dword [ebp - 0x44], 0xbe24eac7
mov dword [ebp - 0x40], 0x972894c7
sub dword [ebp - 0x40], 0x33b9285b
mov dword [ebp - 0x3c], 0xb68d42e7
add dword [ebp - 0x3c], 0x4972bd19
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x605bc756
add eax, 0xafa8192e
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3e844
push 0
call eax
mov ecx, 0xd5847c26
add ecx, 0x2a7bcf3c
mov esi, eax
mov edx, 0xab215b7a
add edx, 0x64e5b686
add edx, dword [ebp - 0x38]
mov ebx, 0x46a8d14a
add ebx, 0xbdb5ed62
xor dword [ebp - 0x20], 0x245ee094
mov edi, dword [edx]
mov dword [ebp - 0x30], 0xcadbd948
sub edi, ebx
xor dword [ebp - 0x14], 0x2ebe916
mov dword [esi], edi
sub dword [ebp - 0xc], 0x13c0015
add esi, 4
add edx, 0xbc7e380c
sub edx, 0xbc7e3808
loop 0x1003b145
add eax, 0xe01a809
sub eax, 0xe0087ae
mov ebx, eax
add eax, 0xc7a70fc9
add eax, 0x3858f03c
mov ecx, 0x5515d784
add ecx, 0xbaea287c
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4029cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a44
xor eax, eax
push ebp
push 0x402a3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402a80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4042ec
Capabilities:
Get geographical location
Query or enumerate registry value

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_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404488
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40439c
xor eax, eax
push ebp
push 0x404395
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40437e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044a8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40439c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40447d
cmp byte [ebp - 0xd], 0
jne 0x4043de
cmp byte [ebp - 0x12], 0
je 0x40447d
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4043f7
dec ebx
cmp byte [ebx], 0x2e
je 0x404406
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4043f6
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40447d
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404433
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40447d
cmp byte [ebp - 0xd], 0
je 0x40447d
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40447d
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4085e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40861d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403694
jmp 0x408626
mov eax, ebx
mov edx, esi
call fcn.00403648
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408630
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408651
mov al, byte [esp]
jmp 0x408653
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4120ac
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 0x4120b2
ret

Function at 0x414508
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 0x414559
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x414540
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x414530
jmp 0x414559
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
jne 0x414541
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ee98
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x41eeb4
cmp dword [esi + 4], 0
je 0x41eedb
mov eax, ebx
call fcn.0041e0cc
test eax, eax
jne 0x41eecd
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41efeb
mov edx, esi
mov eax, ebx
call fcn.0041eb3c
jmp 0x41efeb
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41efe4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00420498
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0041cfd4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041ee98
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00420498
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41efeb
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421fc4
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.004035b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x422025
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x422025
cmp byte [ebp - 0x102], 0
je 0x422025
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004037dc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4233b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x423435
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4233e6
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4233f8
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x423404
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00423240
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x423429
push ebp
mov eax, dword [ebp - 4]
call fcn.00423324
pop ecx
mov ebx, eax
cmp bl, 2
je 0x423404
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425308
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4466d8
cmp dword [edi], 0
jne 0x425384
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4466d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x445744
mov ecx, 2
call fcn.004026a4
mov edx, 0x4252e0
lea eax, [esi + 5]
call fcn.00425300
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425300
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 0x425359
mov dword [0x4466d4], 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 0x4254a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4254f8]
test si, 4
je 0x4254bc
or bl, 1
test si, 8
je 0x4254c6
or bl, 4
test si, 1
je 0x4254d0
or bl, 8
test si, 2
je 0x4254da
or bl, 0x10
test si, 0x10
je 0x4254e4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4254f3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4254fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x425534]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x425515
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x425524
or bl, 4
test esi, 0x20000000
je 0x42552f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x429930
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 0x429ad5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b7f8]
call fcn.00402b24
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004035b0
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x429aab
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.00421764
test al, al
je 0x429a9e
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x429ae4
lea eax, [ebp - 0x254]
call fcn.004074f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x429a9e
xor eax, eax
push ebp
push 0x429a97
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 0x429b1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x429a80
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037dc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x429a80
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429a9e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4299a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429adc
lea eax, [ebp - 0x260]
call fcn.004035b0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4466ac]
cmp byte [eax + 0x85], 0
jne 0x429dc1
cmp dword [0x4466e4], 0
jne 0x429d82
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x429d0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4466e4], eax
cmp dword [0x4466e0], 0
jne 0x429d9d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4466e0], eax
cmp dword [0x4466e8], 0
jne 0x429dc1
push esp
push 0
push 0
push 0x429cb0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4466e8], eax
pop edx
ret