joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x100b9dc8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x47ec]
mov edx, dword [eax]
inc dword [esi + 0xa8]
mov ecx, dword [edi + 0x264]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x100081bf
push ecx
add ecx, 0x78
call fcn.10023de0
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x264]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x10008232
cmp eax, 1
jne 0x100081e3
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x100081e3
cmp dword [eax + 0x20], 0
je 0x10008232
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x10008219
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x10008204
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x10008209
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10018570
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x188]
mov eax, dword [eax + 0x180]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10008272
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x1000826b
cmp byte [ecx + 0xb1], 0
jne 0x1000826b
mov edx, ebx
call fcn.10008180
add esi, 4
cmp esi, edi
jne 0x10008250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009330
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x100b9dc8]
push edi
mov dword [esp + 0x14], edx
mov ebx, dword [esi + 0x3e60]
mov edi, dword [ebx + 0xc]
and edi, 4
or edi, 0x1000103
cmp dword [ebx + 0x190], 0
jne 0x1000936f
cmp dword [esi + 0x4a28], 0
mov eax, 0x228
je 0x10009374
mov eax, 0x1f8
movss xmm4, dword [eax + ebx]
xorps xmm3, xmm3
movss xmm5, dword [eax + ebx + 4]
mov ecx, dword [ebp + 8]
subss xmm4, dword [ebx + 0xf0]
subss xmm5, dword [ebx + 0xf4]
movss xmm2, dword [0x100a6624]
cvttss2si eax, dword [ecx]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 2
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
lahf
xor ecx, ecx
test ah, 0x44
mov eax, 1
cmovnp ecx, eax
ucomiss xmm0, xmm3
lahf
test ah, 0x44
mov eax, dword [esp + 0x10]
cmovnp eax, dword [esp + 0x18]
or eax, ecx
comiss xmm3, xmm1
mov dword [esp + 0x10], eax
jb 0x100093fc
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x100093fc
movaps xmm1, xmm2
comiss xmm3, xmm0
jb 0x1000940d
addss xmm0, xmm5
comiss xmm0, xmm2
jae 0x1000940d
movaps xmm0, xmm2
or dword [esi + 0x4714], 2
lea eax, [esp + 0x18]
push edx
push 0x100a63e4
movss dword [esi + 0x4734], xmm1
movss dword [esi + 0x4738], xmm0
mov dword [esi + 0x471c], 1
push dword [ebx + 4]
push str._s__s__08X
push 0
push eax
call fcn.100036f0
movss xmm0, dword [esi + 0x37b8]
xor edx, edx
mov ecx, dword [esp + 0x30]
push edi
movss dword [esp + 0x38], xmm0
call fcn.1000be10
mov edi, dword [esi + 0x3e60]
add esp, 0x1c
movss xmm0, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
movss dword [esi + 0x37b8], xmm0
cmp word [edi + 0xb6], 1
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov dword [edi + 0x74], edx
mov byte [edi + 0xc6], al
jne 0x100094ae
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], eax
mov edi, edx
mov al, 0x23
not edi
mov edx, 0x100a0331
mov ebx, edi
nop dword [eax + eax]
cmp al, 0x23
jne 0x100094ce
cmp byte [edx], al
jne 0x100094ce
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x100a1130]
test al, al
jne 0x100094c0
mov edi, dword [esp + 0x1c]
not ebx
cmp dword [esi + 0x3eac], ebx
jne 0x100094fe
xor edx, edx
xor ecx, ecx
call fcn.100062d0
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x47fc], eax
jne 0x10009544
cmp word [edi + 0x14c], 0
jne 0x1000951d
cmp byte [edi + 0x152], 0
je 0x10009544
xor edx, edx
mov ecx, edi
call fcn.1000e6e0
xor dl, dl
mov ecx, edi
call fcn.10013440
mov edx, edi
mov ecx, ebx
call fcn.100062d0
mov eax, dword [esi + 0x4820]
mov dword [esi + 0x3ecc], eax
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100097d0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000980f
cmp bl, 0x23
jne 0x100097f1
cmp byte [esi], bl
jne 0x100097f1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x100a1130]
test bl, bl
jne 0x100097e2
mov ecx, dword [0x100b9dc8]
not eax
mov esi, dword [ecx + 0x3e48]
mov edi, dword [ecx + 0x3e50]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000984e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10009848
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000984a
mov esi, edx
test esi, esi
jne 0x10009830
cmp edi, ebx
je 0x1000985d
cmp dword [edi], eax
jne 0x1000985d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10016630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5b40], 0
lea esi, [edi + 0x5b44]
je 0x100166b2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001666c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10018a30
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10003bd0
mov edx, dword [esi]
mov ecx, 0x100b9dc4
push dword [edi + 0x5b40]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5b4c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10003bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016aa0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x100b9dc8]
test bl, bl
je 0x10016ae6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10016ac7
cmp byte [esi], bl
jne 0x10016ac7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100a1130]
test bl, bl
jne 0x10016ab8
mov edi, dword [0x100b9dc8]
mov ecx, dword [edi + 0x5ae4]
not eax
mov edx, dword [edi + 0x5aec]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x10016b0d
cmp dword [edx + 4], eax
je 0x10016b10
add edx, 0x24
cmp edx, ecx
jne 0x10016b01
xor eax, eax
ret
mov eax, edx
ret

Function at 0x10016d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x100b9dc8]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x5ad4], 0
push edi
test esi, esi
je 0x10016d9d
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.10016db0
mov edx, 0x100a0d38
mov ecx, esi
mov edi, eax
call fcn.10003840
mov esi, eax
test esi, esi
je 0x10016d9d
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100213aa
mov eax, dword [0x100b9dc8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002139d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100213db
mov eax, dword [0x100b9dc8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100213ce
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002140c
mov eax, dword [0x100b9dc8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100213ff
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10021459
mov eax, dword [0x100b9dc8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002144c
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1002148a
mov eax, dword [0x100b9dc8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1002147d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100214bb
mov eax, dword [0x100b9dc8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100214ae
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10023cd0
Function at 0x10024b30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov eax, dword [0x100b9dc8]
test eax, eax
je 0x10024b7a
inc dword [eax + 0xb0]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx edx, byte [esi]
add esp, 4
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov dword [esp + 0xc], eax
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x10024c35
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x10024c35
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
mov edx, dword [esp + 0xc]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x100b9e04], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x100b9e0c], edx
shl ecx, 8
add ecx, edx
mov dword [0x100b9e10], edx
add edi, ecx
mov ecx, esi
mov dword [0x100b9e08], edi
call fcn.10028200
cmp eax, esi
je 0x10024c35
nop
cmp dword [0x100b9e10], edi
ja 0x10024c35
mov ecx, eax
mov esi, eax
call fcn.10028200
cmp eax, esi
jne 0x10024c20
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10024c49
mov ecx, 0x1e
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jmp 0x10024c89
push 0x78
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 1
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov word [esp + 0x60], ax
movss xmm0, dword [esp + 0x10]
lea esi, [esp + 0x18]
comiss xmm0, dword [0x100a655c]
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x90]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
mov byte [esp + 0x98], 1
lea esi, [esp + 0x90]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jbe 0x10024cd6
movss dword [esp + 0x28], xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.10024850
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10029370
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100ab3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x100b9dc8]
lea eax, [ebp - 0xc]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100294db
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100294db
mov eax, dword [0x100b9dc8]
test eax, eax
je 0x100293bd
inc dword [eax + 0xb0]
push edi
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100293de
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x100293e0
xor edi, edi
or dword [esi + 0xc], 6
mov dword [esi + 0x70], edi
mov dword [esi + 0x68], str.imgui_impl_win32
mov esi, dword [0x100b9dc8]
mov dword [edi], ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x1002941e
mov esi, dword [esi + 0x70]
jmp 0x10029420
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10029443
mov dword [esi], eax
mov eax, dword [0x100b9dc8]
xor esi, esi
mov dword [ebp - 0x30], str.xinput1_4.dll
mov dword [ebp - 0x2c], str.xinput1_3.dll
mov dword [ebp - 0x28], str.xinput9_1_0.dll
mov eax, dword [eax + 0x47ec]
mov dword [ebp - 0x24], str.xinput1_2.dll
mov dword [ebp - 0x20], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
nop dword [eax]
push dword [ebp + esi*4 - 0x30]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x100294a9
inc esi
cmp esi, 5
jl 0x10029480
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008f042
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008f042
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.1008f042
mov esp, ebp
pop ebp
ret
Function at 0x10030780
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090ea5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ab3c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.10030c00
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10030803
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x10030962
cmp dword [0x100b9e88], 0xfffffff
jne 0x1003081a
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x28], 0x100b9e84
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.1008f655
mov ecx, dword [ebx]
mov esi, eax
mov edx, dword [ebx + 4]
lea edi, [esi + 8]
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [ebp - 4], 1
mov ecx, dword [0x100b9e88]
mov ebx, dword [0x100b9e9c]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100a67b0]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100a67b0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100b9e80]
comiss xmm1, xmm0
jbe 0x10030911
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1008fd00
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x100308f4
cmp ebx, 0x200
jae 0x100308f2
shl ebx, 3
cmp ebx, ecx
jae 0x100308f4
mov ebx, ecx
push ebx
call fcn.100309a0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.10030c00
mov ecx, dword [0x100b9e88]
mov edx, dword [eax]
jmp 0x10030914
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x100b9e88], ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [0x100b9e98]
and eax, dword [ebp - 0x1c]
mov ecx, dword [0x100b9e8c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [0x100b9e84]
jne 0x10030946
mov dword [ecx + eax*8], esi
jmp 0x10030955
cmp edi, edx
jne 0x1003094f
mov dword [ecx + eax*8], esi
jmp 0x10030959
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10030959
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
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 8
Function at 0x100309a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
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 0x100309cc
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 [0x100b9e84]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x100b9e8c
lea eax, [edi + edi]
push eax
call fcn.10030070
mov eax, dword [0x100b9e84]
lea ebx, [edi - 1]
mov dword [0x100b9e98], ebx
mov dword [0x100b9e9c], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10030b06
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 [0x100b9e8c]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x10030a64
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10030ad1
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10030a9e
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10030a96
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
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 - 0xc]
mov dword [edx + 4], eax
jmp 0x10030ad1
cmp ebx, edx
je 0x10030aae
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10030ae2
cmp ebx, edx
jne 0x10030aa2
mov ebx, dword [eax + 4]
mov dword [ebp - 4], 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 - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10030b06
mov ebx, dword [0x100b9e98]
jmp 0x10030a12
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], 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 0x10030ad1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10031840
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ab3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10031953
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1003194c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1003190f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1003190f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1003190f
mov edx, dword [esi]
test edx, edx
jne 0x100318d8
push 0x200
push edx
push dword [0x100b9dd4]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10031934
lea edi, [esi + 8]
jmp 0x10031902
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10031902
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100b9dd4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10031966
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10031890
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1003194c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1003194c
push eax
push ebx
push dword [0x100b9dd4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008f042
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10031934

Function at 0x10031970
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10031840
test eax, eax
jne 0x100319a1
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x100319f2
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x100319ea
push ebx
nop
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100319e3
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.100316d0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x100319b0
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret