joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4410e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466943
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x478044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.CExtractDialog.0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
call fcn.0040e9b0
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040e9b0
mov word [esi + 0x24], 0
mov eax, esi
mov word [esi + 0x30], 0
mov byte [esi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x441550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x478044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x44168f
nop word [eax + eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x44168a
inc eax
cmp eax, 0x40
jb 0x441666
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004555b0
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x441660
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004555b0
mov esp, ebp
pop ebp
ret 4
Function at 0x4548b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x478044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00457040
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x454946
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x454958
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, edi
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.004557bd
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004555b0
mov esp, ebp
pop ebp
ret 8
Function at 0x403328
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004056ec
test esi, esi
jne 0x403360
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405828
jmp 0x40337e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040326c
mov edi, eax
test esi, esi
je 0x40337e
cmp dword [ebx], 0
je 0x40337e
dec esi
jmp 0x403367
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4039e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403a60
xor eax, eax
push ebp
push 0x403a59
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 0x403ab8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x469020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b050], 0
je 0x404bcd
cmp word [0x46b32c], 0xd7b2
jne 0x404b95
cmp dword [0x46b334], 0
jbe 0x404b95
mov eax, 0x46b328
call dword [0x46b344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404bf8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46902c], 0
jne 0x404be9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x469030], 0
je 0x404d9e
mov edx, esi
mov eax, ebx
call dword [0x469030]
jmp 0x404dad
mov eax, 8
call fcn.00402fb4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x46b051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d40
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4077f0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40904c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x46db5c
push 0xa
push 0x4090e0
mov eax, dword [0x46db4c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409070
call fcn.0041123c
push ebx
mov eax, dword [0x46db4c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409087
call fcn.0041123c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409099
call fcn.0041123c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x46db60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x46db64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x46db68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x46db6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x46db70], ecx
add edx, dword [eax + 0x14]
mov dword [0x46db74], edx
pop esi
pop ebx
ret

Function at 0x40a748
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a7f1
test eax, edx
je 0x40a7f4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a771
push edx
mov edx, eax
mov eax, esp
call fcn.004058c0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a787
push eax
lea eax, [esp + 8]
call fcn.004058c0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a796
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a7bd
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a7d7
add ecx, 4
js 0x40a7ae
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a7d4
push eax
mov eax, ecx
mov edx, 2
call fcn.00404e18
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a7bb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a7bd
xor eax, eax
ret
test eax, eax
je 0x40a804
test edx, edx
jne 0x40a758
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b5ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405778
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40b60a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40b62b
cmp ebx, 3
je 0x40b62b
cmp ebx, 0x7b
je 0x40b62b
mov eax, esi
call fcn.0040b5ac
test al, al
jne 0x40b62f
xor eax, eax
jmp 0x40b631
mov al, 1
pop esi
pop ebx
ret

Function at 0x40b634
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405778
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40b64d
test al, 0x10
jne 0x40b651
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40ebbc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40ebf5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405828
jmp 0x40ebfe
mov eax, ebx
mov edx, esi
call fcn.004056ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ec08
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40ec2a
movzx eax, word [esp]
jmp 0x40ec2c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f3b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40f4d9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040f1c8
mov esi, eax
mov eax, dword [0x46ad50]
cmp byte [eax], 0
je 0x40f481
mov eax, dword [0x46ab30]
call fcn.00403434
call fcn.0040311c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40f390]
call fcn.00406a44
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40f4f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f4bd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x46aad0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46db4c]
call fcn.00406b38
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f4e0
lea eax, [ebp - 4]
mov edx, dword [0x40f390]
call fcn.00406a50
ret
Function at 0x4100bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x410192
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405740
lea eax, [ebp - 4]
call fcn.00406114
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405778
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41017c
mov eax, ebx
call fcn.00402fb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x410175
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405778
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41015f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4101a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41015f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41017c
mov eax, dword [ebp - 0x10]
call fcn.00402fd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410199
lea eax, [ebp - 4]
call fcn.004056dc
ret

Function at 0x4110e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040514c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41108e
mov eax, edi
add eax, eax
call fcn.00402fb4
mov esi, eax
jmp 0x411090
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4110c9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4110b3
mov eax, esp
cmp esi, eax
je 0x4110d6
mov eax, esi
call fcn.00402fd0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x411110
cmp bl, 0
je 0x41110c
cmp bl, 0x41
jl 0x411107
cmp bl, 0x5a
jg 0x411107
or bl, 0x20
xor al, bl
inc esi
jmp 0x4110eb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x411050

Function at 0x420ab4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004207b8
dec esi
jne 0x420ad6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46fe90
cmp dword [edi], 0
jne 0x421cfc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46fe8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x469c38
mov ecx, 2
call fcn.0040316c
mov edx, 0x421c58
lea eax, [esi + 5]
call fcn.00421c78
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421c78
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 0x421cd1
mov dword [0x46fe8c], 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 0x424aac
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.00405778
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x424b04
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46ae78]
mov dl, 1
mov eax, dword [0x42452c]
call fcn.0040f5f0
call fcn.004045ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004246b4
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 0x425a44
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 0x425a4a
ret
Function at 0x435920
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004056ec
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x435967
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004058a4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x43ad80
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43aeb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4245a0]
call fcn.004246dc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43ae8f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042477c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004058a4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x43aed4
call fcn.00405b78
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004247e0
test al, al
je 0x43ae79
lea ecx, [ebp - 4]
mov edx, 0x43af48
mov eax, dword [ebp - 0xc]
call fcn.00424a2c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004118b8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43ae72
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43af60
mov eax, dword [ebp - 8]
push eax
call fcn.00407f18
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x46a688]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ae79
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ae96
mov eax, dword [ebp - 0xc]
call fcn.00403c10
ret

Function at 0x43afc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43b00b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43afee
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43afff
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43b00b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x440ce4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x470110], 0
je 0x440e25
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46ace8]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x440e25
mov eax, dword [0x470114]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x470110]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x440df4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x470110]
call fcn.00419cfc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x440dec
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x440dec
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x440dec
mov eax, dword [ebp - 0x14]
call fcn.0044bee8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x440dec
push ebp
call fcn.00440ca0
pop ecx
test al, al
jne 0x440dec
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403e20
test al, al
je 0x440dec
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403e20
cmp byte [ebp - 1], 0
je 0x440dec
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00407bd8
test al, al
je 0x440dec
mov edx, dword [ebp - 0x14]
mov eax, dword [0x470114]
call fcn.00440418
inc edi
dec ebx
jne 0x440d49
mov eax, dword [0x470114]
cmp dword [eax + 8], 0
jle 0x440e0c
mov eax, dword [0x470114]
call fcn.004404d0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x440e25
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00440b04
pop ecx
test al, al
jne 0x440e25
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret