joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edx]
cmp dword [eax + 0x14], 8
jb 0x45001e
mov eax, dword [eax]
push esi
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x450089
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x450053
mov ecx, dword [eax]
jmp 0x450055
mov ecx, eax
mov eax, dword [eax + 0x10]
lea edx, [eax*2 + 2]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x45006c
mov eax, dword [eax]
push edx
push ecx
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4500a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edx]
cmp dword [eax + 0x14], 8
jb 0x4500ae
mov eax, dword [eax]
push esi
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x450102
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x4500e1
mov eax, dword [eax]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x450110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [edx]
cmp dword [ecx + 0x14], 8
jb 0x45011e
mov ecx, dword [ecx]
push esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
push 0
or eax, 0x20006
push eax
push 0
push 0
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x450178
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub ecx, edx
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x45015d
mov eax, dword [eax]
push ecx
push edx
push 3
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call fcn.004094a0
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x450190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455d51
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x46f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x1c], 0
call fcn.0042421b
add esp, 4
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4501ed
mov ecx, dword [eax]
jmp 0x4501ef
mov ecx, eax
xor edx, edx
mov word [ecx], dx
mov ecx, edi
push eax
mov dword [edi], edx
mov dword [edi + 4], edx
call fcn.0040a440
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 1
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x45022a
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45031b
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x450256
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x450312
mov eax, dword [ebp - 0x14]
dec eax
cmp eax, 1
ja 0x450312
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
shr ebx, 1
mov edx, 2
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004246b8
add esp, 4
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], 0
push dword [ebp + 8]
push eax
call fcn.0040bd80
mov dword [ebp - 4], 1
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4502cd
mov eax, dword [eax]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
lea ecx, [ebp - 0x30]
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0044efd0
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00401440
lea ecx, [ebp - 0x30]
call fcn.00401320
lea ecx, [ebp - 0x28]
call fcn.004090b0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x450356
mov byte [esi], 0
mov eax, dword [edx]
cmp dword [eax + 0x14], 8
jb 0x450360
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4503e1
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x450389
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4503d7
mov eax, dword [ebp - 4]
add eax, 0xfffffffd
cmp eax, 1
ja 0x4503d7
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4503b8
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x4503d7
mov byte [esi], 1
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4503f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455d85
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x46f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 1
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x450460
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4504e0
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x450488
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4504d7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
cmp eax, 1
ja 0x4504d7
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004092e0
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4504c1
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402fb4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x461008], 0x8088405
inc edx
mov dword [ebx + 0x461008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x461024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403708
xor eax, eax
push ebp
push 0x403701
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 0x403744
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 0x403708
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x461024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x461024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40451c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x463048], 0
je 0x40457d
cmp word [0x46321c], 0xd7b2
jne 0x404545
cmp dword [0x463224], 0
jbe 0x404545
mov eax, 0x463218
call dword [0x463234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4045a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x404599
push 0
push 0x461754
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408084
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408114
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408114
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080c7
test edx, 3
jne 0x4080b6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080c1
jmp 0x4080c7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080c7
cmp dword [ecx - 8], 1
je 0x4080d1
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4080e3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x408120
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081b0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081b0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408163
test edx, 3
jne 0x408152
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40815d
jmp 0x408163
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408163
cmp dword [ecx - 8], 1
je 0x40816d
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40817f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x40b394
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 0x40b3cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040478c
jmp 0x40b3d6
mov eax, ebx
mov edx, esi
call fcn.004046f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b3e0
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 0x40b402
movzx eax, byte [esp]
jmp 0x40b404
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ba94
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b90c
mov eax, dword [0x462d24]
cmp byte [eax], 0
je 0x40bb10
mov eax, dword [0x462b30]
call fcn.00403058
call fcn.00402df8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408b2c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bb58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb46
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x462ad4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4657f4]
call fcn.0040588c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c3a4
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 0x40c47a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404734
lea eax, [ebp - 4]
call fcn.00404bb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c464
mov eax, ebx
call fcn.00402c9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c45d
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.00404b60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c447
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c48c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c447
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 0x40c464
mov eax, dword [ebp - 0x10]
call fcn.00402cb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c481
lea eax, [ebp - 4]
call fcn.0040469c
ret
Function at 0x41b188
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466300
cmp dword [edi], 0
jne 0x41b204
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4662fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x461ad8
mov ecx, 2
call fcn.00402e8c
mov edx, 0x41b160
lea eax, [esi + 5]
call fcn.0041b180
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b180
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 0x41b1d9
mov dword [0x4662fc], 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 0x41d730
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.00404b60
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d788
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x462e44]
mov dl, 1
mov eax, dword [0x41d254]
call fcn.0040bc54
call fcn.004040e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d35c
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 0x41e5e4
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 0x41e5ea
ret
Function at 0x42b4fc
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.0040469c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42b54a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040490c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42f5cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42f6ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d2b4]
call fcn.0041d384
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42f6d5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d424
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0040490c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42f714
call fcn.004049ac
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d488
lea ecx, [ebp - 4]
mov edx, 0x42f750
mov eax, dword [ebp - 0xc]
call fcn.0041d6b8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d65c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42f6b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42f75c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x46246c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f6bf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42f7ac
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 0x42f7f3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42f7d6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42f7e7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42f7f3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4344f4
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 - 9]
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 [0x466534], 0
je 0x43463d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x462cc4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43463d
mov eax, dword [0x466538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x466534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43460c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x466534]
call fcn.00414138
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x434604
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x434604
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x434604
mov eax, dword [ebp - 0x14]
call fcn.0043e800
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x434604
push ebp
call fcn.004344b0
pop ecx
test al, al
jne 0x434604
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a84
test al, al
je 0x434604
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
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.00403a84
cmp byte [ebp - 1], 0
je 0x434604
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x434604
mov edx, dword [ebp - 0x14]
mov eax, dword [0x466538]
call fcn.00433c20
inc edi
dec ebx
jne 0x434559
mov eax, dword [0x466538]
cmp dword [eax + 8], 0
jle 0x434624
mov eax, dword [0x466538]
call fcn.00433cd8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43463d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00434314
pop ecx
test al, al
jne 0x43463d
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
Function at 0x43b9fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406554
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0043687c
test ebx, ebx
jne 0x43ba4f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043b938
mov ebx, eax
test ebx, ebx
je 0x43bb3a
cmp esi, ebx
je 0x43ba78
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43ba8d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43bac5
add eax, 0xffffff5f
sub eax, 2
jb 0x43badd
dec eax
sub eax, 2
jb 0x43baf1
dec eax
sub eax, 2
jb 0x43bae7
jmp 0x43bafb
add eax, 0xfffffdff
sub eax, 2
jb 0x43badd
dec eax
sub eax, 2
jb 0x43baf1
dec eax
sub eax, 2
jb 0x43bae7
jmp 0x43bafb
mov byte [esp + 0x120], 0
jmp 0x43bb03
mov byte [esp + 0x120], 2
jmp 0x43bb03
mov byte [esp + 0x120], 1
jmp 0x43bb03
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004492b0
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00437ff8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43bb3c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret