joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40e38c
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
ja 0x40e38c
test eax, eax
je 0x40e38c
push 0x2f
push esi
call fcn.0043e27a
add esp, 8
test eax, eax
je 0x40e38c
add eax, 2
cmp word [eax], 0
je 0x40e38c
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push edi
call fcn.00406c90
add esp, 0x10
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00420b40
mov esp, ebp
pop ebp
ret

Function at 0x40e550
Capabilities:
Extract resource via kernel32 functions
Import public key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.CERTIFICATE
push 0xc7
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40e5e2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e5e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e5e2
push edi
push 0
push 1
push 0
push 0
lea edi, [ebx + 0xa54]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40e5e1
push dword [ebp - 4]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
test esi, esi
je 0x40e5e1
lea ecx, [ebx + 0xa58]
push ecx
mov ecx, dword [esi + 0xc]
add ecx, 0x38
push ecx
push 1
push dword [edi]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e5f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40e61d
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
ja 0x40e6a9
test eax, eax
je 0x40e6a9
push edi
lea edi, [esi + 0x410]
push edi
push 0
push str.UkUpdate
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40e697
push esi
push 0x40de40
push edi
lea eax, [esi + 0x10]
mov dword [esi + 0xa34], 0
push eax
lea ecx, [esi + 0xa38]
call fcn.00402a50
test eax, eax
je 0x40e697
pop edi
mov dword [esi + 8], 1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00420b40
mov esp, ebp
pop ebp
ret
Function at 0x40ed10
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x328]
xor eax, eax
cmp dword [ebp - 0x310], 2
push ecx
lea ecx, [ebp - 0x324]
setne al
push ecx
push 0
push 3
push 0
push 0
push 0
add eax, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ed83
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
push esi
je 0x40ede3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eda7
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4a62f4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x40ee15
push 0x4a62f4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
push 0
push 0
push 0
push 0x4a62f4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00420b40
mov esp, ebp
pop ebp
ret
Function at 0x40f2c0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
lea ecx, [ebp - 0x11c]
cmp dword [ebp - 0x108], 2
push ecx
push 3
push 0
setne al
add eax, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f326
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 0
push 0x4a62f4
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.00420b40
mov esp, ebp
pop ebp
ret
Function at 0x40f480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push 3
push 0
push 0
push 0
push str.SoftwarePkLongUniKey
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40f4b6
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push esi
push 4
push 0
push str.ShowDlg
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 4]
push eax
push 4
push 0
push str.Vietnamese
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 8]
push eax
push 4
push 0
push str.CodeTable
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0xc]
push eax
push 4
push 0
push str.SwitchKey
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x10]
push eax
push 4
push 0
push str.InputMethod
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x14]
push eax
push 4
push 0
push str.FreeMarking
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x18]
push eax
push 4
push 0
push str.ModernStyle
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x1c]
push eax
push 4
push 0
push str.VietGUI
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x20]
push eax
push 4
push 0
push str.InConvCharset
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x24]
push eax
push 4
push 0
push str.OutConvCharset
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x28]
push eax
push 4
push 0
push str.ClipboardConvert
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x2c]
push eax
push 4
push 0
push str.MacroEnabled
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x40]
push eax
push 4
push 0
push str.AutoNonVnRestore
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x30]
push eax
push 4
push 0
push str.UseUnicodeClipboard
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x34]
push eax
push 4
push 0
push str.AlwaysMacro
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x38]
push eax
push 4
push 0
push str.UseIME
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x3c]
push eax
push 4
push 0
push str.SpellCheckEnabled
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x44]
push eax
push 4
push 0
push str.AutoUpdate
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x48]
push eax
push 4
push 0
push str.Notification
push dword [ebp - 4]
call edi
push 4
lea eax, [esi + 0x4c]
push eax
push 4
push 0
push str.AutoUpcaseMacro
push dword [ebp - 4]
call edi
lea edx, [esi + 0x50]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f653
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push str.MacroPath
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 0x260]
call fcn.0040ed10
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498540
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4cff04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov ecx, 0x4df4e8
call fcn.00412d50
mov esi, dword [ebp + 0xc]
mov ecx, 0x4df4e8
push esi
mov ebx, eax
call fcn.00412d50
mov edi, eax
test ebx, ebx
je 0x411f3b
test edi, edi
je 0x411f3b
test esi, esi
mov esi, dword [ebp + 0x14]
jne 0x411ec6
push esi
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xfeff
push 2
push eax
call fcn.0046ca9e
add esp, 0x10
push 0
push 0x2000
lea ecx, [ebp - 0x50]
call fcn.00493160
push 0
push 0x2000
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004931b0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004933d0
push esi
lea ecx, [ebp - 0x28]
call fcn.00493400
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push ebx
call fcn.00411d80
add esp, 0x10
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004932f0
lea ecx, [ebp - 0x50]
call fcn.004932d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 2
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 0x412010
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x10c], edi
test eax, eax
jne 0x412106
push esi
call fcn.0045de91
add esp, 4
mov ebx, eax
push 0x8000
push esi
call fcn.0045de91
push eax
call fcn.0046c7da
add esp, 8
push eax
call fcn.0046ccd5
add esp, 8
test edi, edi
jne 0x412126
push 1
call fcn.0045de91
add esp, 4
mov dword [ebp - 0x108], eax
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411e50
push 0
mov edi, eax
call fcn.0045de91
add esp, 0x14
cmp ebx, eax
je 0x4120a2
push ebx
call fcn.0045d926
add esp, 4
push 1
call fcn.0045de91
mov ecx, dword [ebp - 0x108]
add esp, 4
cmp ecx, eax
je 0x4121c3
push ecx
call fcn.0045d926
add esp, 4
test edi, edi
jne 0x4121b1
push dword [ebp - 0x10c]
call fcn.0046cb4d
push dword [ebp - 0x10c]
push esi
call fcn.0046cb9a
add esp, 0xc
test eax, eax
je 0x4121ba
push esi
call fcn.0046cb4d
push esi
call fcn.0045d563
add esp, 8
mov edi, 4
jmp 0x4121c3
push 0x4b06b4
push eax
call fcn.0045d846
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x412064
lea edi, [eax + 3]
jmp 0x4121c3
lea edx, [ebp - 0x104]
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x412130
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0043ef60
add esp, 8
test eax, eax
jne 0x41215a
mov byte [ebp - 0x104], al
jmp 0x41215d
mov byte [eax], 0
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00470f7a
mov esi, eax
add esp, 8
test esi, esi
jne 0x41217f
push ebx
call fcn.0045d926
lea edi, [esi + 4]
jmp 0x4121c0
push 0x4b06b8
push esi
call fcn.0045d846
add esp, 8
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x41207c
push ebx
call fcn.0045d926
push esi
call fcn.0045d563
add esp, 8
mov edi, 4
jmp 0x4121c3
push esi
call fcn.0046cb4d
add esp, 4
push esi
call fcn.0045d563
add esp, 4
push 0
call fcn.0045de91
add esp, 4
cmp ebx, eax
jne 0x4121ef
push 0x8000
push 0
call fcn.0045de91
push eax
call fcn.0046c7da
add esp, 8
push eax
call fcn.0046ccd5
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420b40
mov esp, ebp
pop ebp
ret
Function at 0x412210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498576
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4cff04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 0x50]
mov dword [edi + 4], 0
mov dword [edi], 0
lea esi, [eax + 0x58]
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [0x4df450], 0
xorps xmm0, xmm0
movups xmmword [0x4df3f0], xmm0
mov dword [0x4df4b8], 0
movups xmmword [0x4df400], xmm0
mov dword [0x4df3f0], 1
movups xmmword [0x4df410], xmm0
mov dword [0x4df400], 1
movups xmmword [0x4df420], xmm0
mov dword [0x4df410], 1
movups xmmword [0x4df440], xmm0
mov dword [0x4df428], 1
movups xmmword [0x4df458], xmm0
mov dword [0x4df440], 1
movups xmmword [0x4df468], xmm0
mov dword [0x4df450], 1
movups xmmword [0x4df478], xmm0
mov dword [0x4df458], 1
movups xmmword [0x4df488], xmm0
mov dword [0x4df468], 1
movups xmmword [0x4df4a8], xmm0
mov dword [0x4df478], 1
movups xmmword [0x4df430], xmm0
mov dword [0x4df490], 1
movups xmmword [0x4df498], xmm0
mov dword [0x4df4a8], 1
mov dword [0x4df4b8], 1
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x4c], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
add eax, 0x60
push eax
mov byte [ebp - 4], 1
call fcn.00412cb0
add esp, 4
mov ecx, edi
push 8
push 0x4cc6ec
call fcn.004149b0
push 8
push 0x4cc6ec
mov ecx, esi
call fcn.004149b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415ba0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4985e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4cff04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 4], 0
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [esi + ecx*8]
lea edx, [ecx*8]
mov dword [ebp + 0xc], edx
cmp eax, dword [ebx + 4]
jne 0x415c2b
mov esi, dword [ebx + 4]
jmp 0x415c31
mov esi, dword [esi + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x415c43
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x415c8a
cmp esi, eax
jne 0x415c37
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
cmp esi, eax
je 0x415c73
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x415cc5
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x415ce7
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.00421555
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x415ccd
mov dword [ecx], edi
jmp 0x415ce7
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x415ce7
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004199a0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415d30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498600
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4cff04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 4]
mov dword [ebp - 4], 0
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 0xc]
and ecx, eax
shl ecx, 3
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + ecx]
cmp eax, dword [ebx]
jne 0x415db8
mov esi, dword [ebx]
jmp 0x415dbe
mov esi, dword [esi + ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x415dd0
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x415e02
cmp esi, eax
jne 0x415dc4
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [eax]
push dword [edi + 4]
push edi
call fcn.00415b00
mov ecx, 0xccccccb
mov edx, eax
sub ecx, dword [ebx + 4]
cmp ecx, 1
jae 0x415e1f
push str.list_T__too_long
call fcn.0042269a
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc dword [ebx + 4]
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov edi, dword [ebx]
mov edi, dword [edi]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x415e58
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, dword [edx + 0xc]
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x415e75
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + ecx + 4], edi
jmp 0x415e98
cmp eax, esi
jne 0x415e7d
mov dword [ecx], edi
jmp 0x415e98
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x415e98
mov ecx, dword [ebp - 0x14]
add ecx, dword [edx + 0xc]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.004199a0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4180e0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4dfda8
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [0x4dfdb9]
shr al, 7
mov byte [0x4dff39], al
movzx eax, byte [0x4dfdba]
shr al, 7
mov byte [0x4dff3a], al
movzx eax, byte [0x4dfdb8]
shr al, 7
mov byte [0x4dff3b], al
movzx eax, byte [0x4dfe48]
shr al, 7
mov byte [0x4dff3c], al
movzx eax, byte [0x4dfe49]
shr al, 7
test byte [0x4dfe03], 0x80
mov byte [0x4dff3d], al
jne 0x418157
test byte [0x4dfe04], 0x80
mov byte [0x4dff3e], 0
je 0x41815e
mov byte [0x4dff3e], 1
ret

Function at 0x418280
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x4df570
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x878
call fcn.00420b7b
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4182b9
mov dword [eax + 0x864], 0
mov dword [eax + 0x868], 0
jmp 0x4182bb
xor eax, eax
push esi
push 0x878
push 0
push eax
mov dword [0x4dfda0], eax
call fcn.0043e120
mov ecx, dword [0x4dfda0]
add esp, 0xc
lea ecx, [ecx + 0x38]
call fcn.00411220
mov ecx, dword [0x4dfda0]
lea eax, [ecx + 0x440]
add ecx, 0x38
push eax
call fcn.004111f0
mov eax, dword [0x4dfda0]
mov dword [eax + 0x43c], 1
mov ecx, dword [0x4dfda0]
lea ecx, [ecx + 0x864]
call fcn.00411740
mov eax, dword [0x4dfda0]
add eax, 8
push eax
call fcn.00417e30
push 0
call fcn.00419580
push 0xc
call fcn.00419600
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esp, 0xc
push 0
push 8
call esi
push 0
push 0x11
mov dword [0x4dff40], eax
call esi
push 0
push 0x10
mov dword [0x4dff44], eax
call esi
push 0
push 0xa0
mov dword [0x4dff48], eax
call esi
push 0
push 0xa1
mov dword [0x4dff4c], eax
call esi
push 0
push 0x56
mov dword [0x4dff50], eax
call esi
push 0
push 0x2d
mov dword [0x4dff58], eax
call esi
mov esi, dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
push 0x12
push str.00000409
mov dword [0x4dff54], eax
call esi
push 0x12
push str.0000042a
mov dword [0x4dfd94], eax
call esi
mov ecx, eax
xor edx, edx
and ecx, 0x3ff
cmp ecx, 0x2a
push edx
cmovne eax, edx
mov dword [0x4dfd98], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4dfd9c], eax
mov dword [0x4dff5c], 0
call fcn.00494cf0
mov eax, dword [0x4dfda0]
mov dword [0x4dff64], eax
mov dword [0x4dff60], 0x41bdb0
pop esi
cmp byte [0x4df564], 0
je 0x41840a
push 0x40
push 2
push str.unikey_log.txt
mov ecx, 0x4e1fe8
call fcn.0041d5a0
mov esp, ebp
pop ebp
ret