joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f74
Capabilities:
Terminate process

Disassembly:
cmp dword [0x44b01c], 0
je 0x40297f
call dword [0x44b01c]
mov eax, 0xd2
jmp fcn.00403a14
push eax
push ecx
mov eax, dword [eax]
call fcn.00402f44
pop ecx
pop eax
je 0x402f83
jmp ebx
pop ecx
jmp 0x402970

Function at 0x402f8c
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402f44
mov eax, ebx
pop ebx
jne 0x402fa1
pop ecx
jmp 0x402970
ret

Function at 0x403a08
Capabilities:
Terminate process

Disassembly:
mov dword [0x44b038], eax
jmp fcn.004038e8

Function at 0x40408c
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00404050
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00404050
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x404038
ret

Function at 0x404134
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.0040275c
test ecx, ecx
je fcn.00404050
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x404038
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret

Function at 0x404174
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x404188
push eax
push 0
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x404038
ret

Function at 0x4041fc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x40423b
cmp al, 0xb
je 0x40423b
cmp al, 0xc
je 0x404245
cmp al, 0xd
je 0x404258
cmp al, 0xe
je 0x404276
cmp al, 0xf
je 0x40423b
cmp al, 0x11
je 0x40423b
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040275c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x40423b
jmp 0x40428a
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x404245
jmp 0x40428a
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x4041fc
dec edi
jg 0x40425b
pop ebp
jmp 0x40428a
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.004041d0
dec edi
jg 0x404279
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x4041fc
Function at 0x404290
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x40423b
cmp al, 0xb
je 0x40423b
cmp al, 0xc
je 0x404245
cmp al, 0xd
je 0x404258
cmp al, 0xe
je 0x404276
cmp al, 0xf
je 0x40423b
cmp al, 0x11
je 0x40423b
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040275c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x40423b
jmp 0x40428a
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x404245
jmp 0x40428a
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x4041fc
dec edi
jg 0x40425b
pop ebp
jmp 0x40428a
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.004041d0
dec edi
jg 0x404279
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x4041fc

Function at 0x4042c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, 0
je 0x4043ae
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x404318
cmp al, 0xb
je 0x404332
cmp al, 0xc
je 0x404349
cmp al, 0xd
je 0x404358
cmp al, 0xe
je 0x404376
cmp al, 0xf
je 0x40438c
cmp al, 0x11
je 0x40439b
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.0040275c
cmp ecx, 1
mov eax, ebx
jg 0x404329
call fcn.00403a20
jmp 0x4043aa
mov edx, ecx
call fcn.00403a44
jmp 0x4043aa
cmp ecx, 1
mov eax, ebx
jg 0x404340
call fcn.00404050
jmp 0x4043aa
mov edx, ecx
call fcn.00404068
jmp 0x4043aa
mov eax, ebx
add ebx, 0x10
call fcn.00404b38
dec edi
jg 0x404349
jmp 0x4043aa
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.004042c8
dec edi
jg 0x40435b
pop ebp
jmp 0x4043aa
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.0040429c
dec edi
jg 0x404379
pop ebp
jmp 0x4043aa
mov eax, ebx
add ebx, 4
call fcn.00405360
dec edi
jg 0x40438c
jmp 0x4043aa
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.00404d2c
dec edi
jg 0x40439b
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x4043b0
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.004042c8
Function at 0x4043bc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
xor eax, eax
mov al, byte [ecx + 1]
lea edi, [ecx + eax + 0xa]
mov ebp, dword [edi - 4]
xor eax, eax
mov ecx, dword [edi - 8]
push ecx
mov ecx, dword [edi + 4]
sub ecx, eax
jle 0x4043e8
mov edx, eax
add eax, esi
add edx, ebx
call fcn.004027f4
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x404427
cmp cl, 0xb
je 0x404438
cmp cl, 0xc
je 0x404449
cmp cl, 0xd
je 0x40445a
cmp cl, 0xe
je 0x40447a
cmp cl, 0xf
je 0x404493
cmp cl, 0x11
je 0x4044a4
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.0040275c
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00403a74
mov eax, 4
jmp 0x4044b5
mov edx, dword [esi + eax]
add eax, ebx
call fcn.0040408c
mov eax, 4
jmp 0x4044b5
lea edx, [esi + eax]
add eax, ebx
call fcn.00404780
mov eax, 0x10
jmp 0x4044b5
xor ecx, ecx
mov cl, byte [edx + 1]
push dword [edx + ecx + 2]
push dword [edx + ecx + 6]
mov ecx, dword [edx + ecx + 0xa]
mov ecx, dword [ecx]
lea edx, [esi + eax]
add eax, ebx
call fcn.004044d8
pop eax
jmp 0x4044b5
xor ecx, ecx
mov cl, byte [edx + 1]
mov ecx, dword [edx + ecx + 2]
push ecx
mov ecx, edx
lea edx, [esi + eax]
add eax, ebx
call fcn.004043bc
pop eax
jmp 0x4044b5
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00405378
mov eax, 4
jmp 0x4044b5
mov ecx, edx
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404d68
mov eax, 4
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x4043d6
pop ecx
sub ecx, eax
jle 0x4044d1
lea edx, [ebx + eax]
add eax, esi
call fcn.004027f4
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4044d8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x14]
mov cl, byte [edi]
cmp cl, 0xa
je 0x40451e
cmp cl, 0xb
je 0x404535
cmp cl, 0xc
je 0x404549
cmp cl, 0xd
je 0x40455d
cmp cl, 0xe
je 0x40457e
cmp cl, 0xf
je 0x40459b
cmp cl, 0x11
je 0x4045af
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.0040275c
mov eax, ebx
mov edx, dword [esi]
call fcn.00403a74
add ebx, 4
add esi, 4
dec ebp
jne 0x40451e
jmp 0x4045c3
mov eax, ebx
mov edx, dword [esi]
call fcn.0040408c
add ebx, 4
add esi, 4
dec ebp
jne 0x404535
jmp 0x4045c3
mov eax, ebx
mov edx, esi
call fcn.00404780
add ebx, 0x10
add esi, 0x10
dec ebp
jne 0x404549
jmp 0x4045c3
xor ecx, ecx
mov cl, byte [edi + 1]
lea edi, [edi + ecx + 2]
mov eax, ebx
mov edx, esi
mov ecx, dword [edi + 8]
push dword [edi + 4]
call fcn.004044d8
add ebx, dword [edi]
add esi, dword [edi]
dec ebp
jne 0x404566
jmp 0x4045c3
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.004043bc
xor eax, eax
mov al, byte [edi + 1]
add ebx, dword [edi + eax + 2]
add esi, dword [edi + eax + 2]
dec ebp
jne 0x40457e
jmp 0x4045c3
mov eax, ebx
mov edx, dword [esi]
call fcn.00405378
add ebx, 4
add esi, 4
dec ebp
jne 0x40459b
jmp 0x4045c3
mov eax, ebx
mov edx, dword [esi]
mov ecx, edi
call fcn.00404d68
add ebx, 4
add esi, 4
dec ebp
jne 0x4045af
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x404780
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.0040275c
cmp eax, edx
je 0x404818
cmp word [eax], 8
jb 0x4047b8
push eax
push edx
cmp word [eax], 0x100
je 0x4047ae
cmp word [eax], 0x101
je 0x4047a6
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4047b6
call dword [0x44b3e8]
jmp 0x4047b6
add eax, 8
call fcn.00403a20
pop edx
pop eax
cmp word [edx], 8
jae 0x4047cf
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
je 0x4047ea
cmp word [edx], 0x101
jne 0x404804
push eax
call 0x4047be
pop eax
jmp dword [0x44b3f0]
mov edx, dword [edx + 8]
or edx, edx
je 0x4047fb
mov ecx, dword [edx - 8]
inc ecx
jle 0x4047fb
lock inc dword [edx - 8]
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x404734
ret

Function at 0x404b04
Capabilities:
Terminate process

Disassembly:
push eax
cmp word [eax], 8
jb 0x404b12
push edx
call fcn.0040473c
pop edx
xor eax, eax
test edx, edx
je 0x404b2e
mov eax, dword [edx - 4]
shr eax, 1
je 0x404b2e
push eax
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x404038
pop edx
mov word [edx], 8
mov dword [edx + 8], eax
ret
Function at 0x404fa0
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 0x40515c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405001
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405178
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405073
xor eax, eax
push ebp
push 0x40506c
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]
call fcn.00404df8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405055
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405198
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 0x405073
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 0x405154
cmp byte [ebp - 0xd], 0
jne 0x4050b5
cmp byte [ebp - 0x12], 0
je 0x405154
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4050ce
dec ebx
cmp byte [ebx], 0x2e
je 0x4050dd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4050cd
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405154
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40510a
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 0x405154
cmp byte [ebp - 0xd], 0
je 0x405154
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 0x405154
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 0x405394
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00405360
push eax
push ecx
push edx
mov ecx, dword [eax]
test ecx, ecx
je 0x4053ae
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp]
mov eax, dword [edx]
call dword [eax]
test eax, eax
je 0x4053bd
mov al, 0x17
jmp fcn.0040275c
ret
Function at 0x405708
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405764
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x405756
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40574b
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405746
mov eax, 0x64
jmp 0x40575b
call sub.kernel32.dll_GetLastError
call fcn.004027c0
xor eax, eax
jmp 0x405746
mov eax, 0x67
jmp 0x40575b

Function at 0x40576c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4057c7
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x4057b9
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4057ae
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4057a9
mov eax, 0x65
jmp 0x4057be
call sub.kernel32.dll_GetLastError
call fcn.004027c0
xor eax, eax
jmp 0x4057a9
mov eax, 0x67
jmp 0x4057be

Function at 0x40580c
Capabilities:
Delete file

Disassembly:
mov edx, dword [eax + 4]
sub edx, 0xd7b0
cmp edx, 3
ja 0x405833
lea eax, [eax + 0x48]
push eax
call sub.kernel32.dll_DeleteFileA
dec eax
jne 0x405827
ret
call sub.kernel32.dll_GetLastError
call fcn.004027c0
jmp 0x405826
mov eax, 0x66
jmp 0x40582c

Function at 0x408bb4
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 0x408bed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b08
jmp 0x408bf6
mov eax, ebx
mov edx, esi
call fcn.00403a74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408c00
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 0x408c21
mov al, byte [esp]
jmp 0x408c23
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414168
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 0x41416e
ret
Function at 0x4164d8
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 0x416529
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x416510
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x416500
jmp 0x416529
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 0x416511
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fe5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44b758
cmp dword [edi], 0
jne 0x41fed8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44b754]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x448600
mov ecx, 2
call fcn.004027f4
mov edx, 0x41fe34
lea eax, [esi + 5]
call fcn.0041fe54
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fe54
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 0x41fead
mov dword [0x44b754], 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 0x41fff4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x420044]
test si, 4
je 0x420008
or bl, 1
test si, 8
je 0x420012
or bl, 4
test si, 1
je 0x42001c
or bl, 8
test si, 2
je 0x420026
or bl, 0x10
test si, 0x10
je 0x420030
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42003f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x420048
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x420080]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x420061
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x420070
or bl, 4
test esi, 0x20000000
je 0x42007b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x426228
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x42623a
add esp, 0xfffffff0
call fcn.00403098
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00412240
mov eax, ebx
call fcn.00426574
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40c350]
call fcn.00402d68
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40c350]
call fcn.00402d68
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40c350]
call fcn.00402d68
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40c350]
call fcn.00402d68
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40c350]
call fcn.00402d68
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, 0x4261f8
push eax
push 0
push 0
mov eax, dword [0x44a418]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x413708]
call fcn.00414bc8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x413708]
call fcn.00414bc8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x413708]
call fcn.00414bc8
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00426954
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x426870
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x426870
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x426870
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x426349
call fcn.004030f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x426654
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 0x4267ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4267e0
mov dl, 1
mov eax, dword [0x40c650]
call fcn.00402d68
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403a20
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4267cf
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.0043f8dc
test al, al
je 0x4267c2
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, 0x426810
lea eax, [ebp - 0x254]
call fcn.00408a24
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4267c2
xor eax, eax
push ebp
push 0x4267bb
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 0x426848
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4267a4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c50
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 0x4267a4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4267c2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4266c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040f2d4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426806
lea eax, [ebp - 0x260]
call fcn.00403a20
ret

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

Disassembly:
push ecx
mov eax, dword [0x44b748]
cmp byte [eax + 0x95], 0
jne 0x4270bd
cmp dword [0x44b764], 0
jne 0x42707e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x427008
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44b764], eax
cmp dword [0x44b760], 0
jne 0x427099
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44b760], eax
cmp dword [0x44b768], 0
jne 0x4270bd
push esp
push 0
push 0
push 0x426fac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44b768], eax
pop edx
ret