joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100d4710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10029ec0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100525c5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10029ef0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10029ef0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100525c5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10029fed
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10029f19
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10029f4d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100525c5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10029fac
sub eax, 1
je 0x10029fac
sub eax, 2
jne 0x10029fed
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10026160
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100525c5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10029fca
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10029fed
lea ecx, [ebp - 0x28]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100525c5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100525c5
mov esp, ebp
pop ebp
ret 4
Function at 0x1002b020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1002b04c
jl 0x1002b040
test ecx, ecx
jne 0x1002b04c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1002b065
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1002b0b3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1002b0b9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1002b0b9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1002b126
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002b0e2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1002b114
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1002b126
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1002b0f0
test edi, edi
je 0x1002b126
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002b140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1002b165
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1002b18b
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1002b190
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1002b1f0
jg 0x1002b1a5
test esi, esi
je 0x1002b1f0
test ecx, ecx
jl 0x1002b1eb
jg 0x1002b1af
test eax, eax
je 0x1002b1eb
cmp edi, ecx
jg 0x1002b1c1
jl 0x1002b1b9
cmp esi, eax
jae 0x1002b1c1
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1002b1f3
mov ecx, dword [ebp + 8]
jmp 0x1002b1fd
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1002b217
jg 0x1002b1fd
test esi, esi
je 0x1002b217
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002b217
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100390a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100d4710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100d234c]
push ebx
mov ebx, ecx
test eax, eax
je 0x100390c4
cmp eax, ebx
jne 0x1003924f
movups xmm1, xmmword [ebx + 0x40]
movss xmm2, dword [0x100d2360]
comiss xmm2, xmm1
movups xmmword [ebp - 0x1c], xmm1
jbe 0x10039125
movss xmm3, dword [0x100d2364]
movss xmm4, dword [ebp - 0x18]
comiss xmm3, xmm4
jbe 0x10039125
movss xmm0, dword [ebp - 0x14]
addss xmm0, xmm1
comiss xmm0, xmm2
jbe 0x10039125
movss xmm0, dword [ebp - 0x10]
addss xmm0, xmm4
comiss xmm0, xmm3
jbe 0x10039125
cmp byte [0x100d236d], 0
je 0x10039125
cmp byte [0x100d256d], 0
jne 0x10039125
mov byte [ebx + 0x3c], 1
movss xmm2, dword [0x100d2360]
cmp byte [ebx + 0x3c], 0
je 0x1003924f
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x10039149
mov dword [0x100d234c], 0
mov byte [ebx + 0x3c], al
cmp byte [ebx + 0x3c], 0
movss xmm2, dword [0x100d2360]
je 0x1003924f
mov dword [0x100d234c], ebx
cmp dword [ebx + 0x2c], 0
push esi
je 0x10039204
movss xmm1, dword [ebx + 0x38]
subss xmm1, dword [ebx + 0x34]
subss xmm2, dword [ebx + 0x40]
push edi
push ecx
mulss xmm1, xmm2
divss xmm1, dword [ebx + 0x48]
addss xmm1, dword [ebx + 0x34]
movss dword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
mov eax, dword [ebx + 0x2c]
fstp dword [ebp - 8]
cvttss2si ecx, dword [ebp - 8]
mov dword [eax], ecx
movss xmm0, dword [ebx + 0x38]
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
movss xmm0, dword [ebx + 0x34]
fstp dword [ebp - 8]
cvttss2si edi, dword [ebp - 8]
movss dword [esp], xmm0
mov dword [ebp - 0xc], edi
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
mov esi, dword [ebx + 0x2c]
lea edx, [ebp - 8]
fstp dword [ebp - 8]
cvttss2si eax, dword [ebp - 8]
add esp, 4
cmp dword [esi], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
cmovge edx, esi
cmp edi, dword [esi]
pop edi
cmovge eax, edx
mov eax, dword [eax]
mov dword [esi], eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100525c5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x1003924e
movss xmm0, dword [ebx + 0x38]
lea esi, [ebx + 0x38]
subss xmm0, dword [ebx + 0x34]
subss xmm2, dword [ebx + 0x40]
lea edx, [ebx + 0x34]
mulss xmm0, xmm2
divss xmm0, dword [ebx + 0x48]
addss xmm0, dword [edx]
movss dword [eax], xmm0
mov ecx, dword [ebx + 0x30]
mov eax, ecx
movss xmm0, dword [edx]
movss xmm1, dword [ecx]
comiss xmm0, xmm1
cmova eax, edx
comiss xmm1, dword [esi]
cmova eax, esi
mov eax, dword [eax]
mov dword [ecx], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100525c5
mov esp, ebp
pop ebp
ret
Function at 0x100392e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 4]
push esi
push edi
mov edi, dword [ebx + 4]
lea esi, [ebx + 0x14]
sub edi, dword [ebx]
lea eax, [ebp - 8]
sar edi, 2
test ecx, ecx
mov dword [ebp - 8], edi
cmovns edx, esi
cmp edi, ecx
cmovge eax, edx
mov eax, dword [eax]
mov dword [esi], eax
cmp eax, 3
ja case.0x1003931c.0
jmp dword [eax*4 + 0x10039388]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
pop edi
pop esi
mov al, byte [eax + 0x100d246c]
mov byte [ecx], al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x100d246c], 0
je 0x10039380
cmp byte [eax + 0x100d256c], 0
jne 0x10039380
mov ecx, dword [ebx + 0x18]
pop edi
pop esi
pop ebx
cmp byte [ecx], 0
sete al
mov byte [ecx], al
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, dword [ebx + 0x18]
pop edi
sete cl
pop esi
mov byte [eax], cl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003c840
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
movzx eax, byte [edx]
mov edi, ecx
xor eax, 0x811c9dc5
mov ebx, dword [ebp + 8]
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], ebx
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push edx
push eax
call fcn.1003c720
mov eax, dword [ebp - 4]
test eax, eax
je 0x1003c8b1
mov dword [ebx], eax
mov eax, ebx
mov byte [ebx + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0x9249249
je 0x1003ca0a
push 0x1c
call fcn.10052088
mov ecx, dword [ebp - 0xc]
mov esi, eax
add esp, 4
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov eax, dword [edi + 8]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100555f0]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100555f0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1003c9a0
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 8], xmm0
fld qword [ebp - 8]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 8]
movsd xmm0, qword [ebp - 8]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10052610
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jae 0x1003c981
cmp eax, 0x200
jae 0x1003c97f
shl eax, 3
cmp eax, ecx
jae 0x1003c981
mov eax, ecx
push eax
mov ecx, edi
call fcn.1003d4e0
mov ebx, dword [ebp - 0x10]
lea eax, [esi + 8]
push ebx
push eax
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.1003c720
mov edx, dword [eax]
jmp 0x1003c9a6
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
and eax, ebx
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi + 4]
jne 0x1003c9ce
mov dword [ecx + eax*8], esi
jmp 0x1003c9f2
cmp ebx, edx
jne 0x1003c9e9
mov ebx, dword [ebp - 0x14]
mov dword [ecx + eax*8], esi
mov eax, ebx
mov dword [ebx], esi
mov byte [ebx + 4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1003c9f6
mov dword [ecx + eax*8 + 4], esi
mov ebx, dword [ebp - 0x14]
mov eax, ebx
pop edi
mov dword [ebx], esi
pop esi
mov byte [ebx + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x1003d280
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100d4710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003d3fa
push edi
mov edi, dword [eax + 2]
test edi, edi
je 0x1003d3f9
add edi, 0xfffffffc
je 0x1003d3f9
mov eax, dword [edi + 4]
test eax, eax
je 0x1003d3f9
cmp eax, 0xc8
jg 0x1003d3f9
cmp dword [edi], 0
je 0x1003d3f9
mov eax, dword [edi + 8]
test eax, eax
je 0x1003d3f9
push ebx
push 0x811c9dc5
push eax
call fcn.1001b770
xor ebx, ebx
mov dword [ebp - 8], eax
add esp, 8
cmp dword [edi + 4], ebx
jle 0x1003d3f8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
push esi
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003d3e4
mov al, byte [ecx]
test al, al
jne 0x1003d31f
mov eax, 0x811c9dc5
jmp 0x1003d33a
movsx eax, al
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
push eax
lea eax, [ecx + 1]
push eax
call fcn.1001b770
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1003ca20
mov ecx, dword [eax]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
add ecx, 0xc
push eax
call fcn.1003c840
mov eax, dword [eax]
cmp dword [eax + 0x14], 0
jne 0x1003d3e4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1003ca20
mov ecx, dword [eax]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
add ecx, 0xc
push eax
call fcn.1003c840
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
mov byte [eax + 0xc], 1
lea eax, [ebp - 8]
mov esi, dword [esi + 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1003ca20
mov ecx, dword [eax]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44]
add ecx, 0xc
push eax
call fcn.1003c840
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [eax + 0x14], esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1003ca20
mov ecx, dword [eax]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
add ecx, 0xc
push eax
call fcn.1003c840
mov eax, dword [eax]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x14]
inc ebx
add ecx, 0x3c
mov dword [ebp - 0x14], ecx
cmp ebx, dword [edi + 4]
jl 0x1003d303
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100525c5
mov esp, ebp
pop ebp
ret
Function at 0x1003d4e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x1003d63a
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.1003d410
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x1003d60c
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x1003d593
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1003d5ff
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x1003d5ca
mov eax, dword [eax]
cmp eax, ecx
je 0x1003d5c2
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x1003d5ff
cmp ebx, eax
je 0x1003d5dc
nop
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x1003d615
cmp ebx, eax
jne 0x1003d5d0
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x1003d542
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x1003d5ff
push str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x10046e40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100d4710]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100d54cc], 4
push esi
push edi
jne 0x10046e96
mov eax, dword [0x100d5440]
mov edx, dword [eax + 0x308]
mov ecx, dword [eax + 0x228]
mov eax, dword [edx + 0x4cb0]
add eax, dword [edx + 0x4cac]
mov esi, dword [edx + 0x174]
test esi, esi
mov edi, dword [ecx]
push eax
push dword [edx + 0x4cb4]
setg al
movzx eax, al
push eax
mov eax, dword [edi + 0xc]
push esi
call eax
cmp byte [0x1012e9cc], 0
jne 0x10046ee7
push 0xffffffffffffffff
push str.B8_________3B_F0_0F_4F_F0_89_5D_FC
push str.engine.dll
call fcn.1000ca70
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0xc
mov dword [ebp - 8], 0
lea edi, [eax + 1]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 8]
mov dword [edi], 0x3e
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov byte [0x1012e9cc], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100525c5
mov esp, ebp
pop ebp
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx