joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7159
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004bc6a2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c71c8
cmp esi, dword [ebp - 4]
je 0x4c71c3
cmp dword [ebp + 0xc], 0
je 0x4c71c3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c71a0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004c6cab
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4c71ca
xor eax, eax
inc eax
jmp 0x4c71ca
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4c722f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004bc6a2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004bc6a2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4c72a6
cmp word [ecx], dx
je 0x4c72a6
mov eax, dword [0x4e075c]
push edi
dec eax
push eax
push 0x4e0648
call fcn.004c71ce
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4c7319
cmp word [eax], dx
je 0x4c7319
mov eax, dword [edi]
test eax, eax
je 0x4c72ca
cmp word [eax], dx
je 0x4c72ca
lea eax, [ebp - 0x10]
push eax
call fcn.004c6bb1
jmp 0x4c72d3
lea eax, [ebp - 0x10]
push eax
call fcn.004c6c4c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4c7343
mov eax, dword [0x4e0644]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4e0338
call fcn.004c71ce
add esp, 0xc
test al, al
je 0x4c7343
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4c730e
cmp word [eax], di
je 0x4c730e
lea eax, [ebp - 0x10]
push eax
call fcn.004c6bb1
pop ecx
jmp 0x4c7345
lea eax, [ebp - 0x10]
push eax
call fcn.004c6c4c
jmp 0x4c730b
mov eax, dword [edi]
test eax, eax
je 0x4c7330
cmp word [eax], dx
je 0x4c7330
lea eax, [ebp - 0x10]
push eax
call fcn.004c6b66
pop ecx
jmp 0x4c7343
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4c740e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004c7053
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c740e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4c740e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4c740e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c739b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004c16a2
test ebx, ebx
je 0x4c7409
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004c16a2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c740e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c740e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004b8560
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4c7410
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fb4b
leave
ret
Function at 0x4cb6d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004cb651
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4cb844
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4cb844
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4cb7f9
jg 0x4cb731
test eax, eax
je 0x4cb7ef
push 1
push 0x1000
call fcn.004bdf83
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cb754
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4cb7e6
push 0x8000
push ebx
call fcn.004baa79
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4cb77d
jg 0x4cb778
cmp ecx, 0x1000
jb 0x4cb77d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c09f1
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cb7c2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4cb778
jl 0x4cb7a9
test ecx, ecx
jne 0x4cb76a
push dword [ebp - 0xc]
push ebx
call fcn.004baa79
push esi
call fcn.004bc98d
add esp, 0xc
xor ebx, ebx
jmp 0x4cb852
cmp byte [edi + 0x24], 0
je 0x4cb7d9
cmp dword [edi + 0x20], 5
jne 0x4cb7d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4cb7e4
mov ebx, dword [edi + 0x18]
jmp 0x4cb7e6
xor ebx, ebx
push esi
call fcn.004bc98d
pop ecx
jmp 0x4cb852
test ecx, ecx
jg 0x4cb7bb
jl 0x4cb7f9
test eax, eax
jae 0x4cb7bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bea1e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4cb819
cmp byte [edi + 0x1c], 0
je 0x4cb7bb
jmp 0x4cb84a
push ebx
call fcn.004c009d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4cb7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4cb852
cmp byte [edi + 0x1c], 0
je 0x4cb84f
mov ebx, dword [edi + 0x18]
jmp 0x4cb852
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bea1e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4cca50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cca7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cca7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100048f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100558c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10070080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10030093
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1002edec
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10004d80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10070080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
je 0x100068d4
mov ecx, dword [0x7f94e0]
test ecx, ecx
je 0x100068d4
mov edx, dword [ecx + 0x84]
test edx, edx
je 0x100068d4
mov eax, dword [0x63d6c0]
cmp eax, dword [edx]
jne 0x100068d4
mov eax, dword [ecx + 0x88]
test eax, eax
je 0x100067ef
cmp word [eax + 0x9e], 0
jne 0x100068d4
mov al, byte [ecx + 0xb1]
cmp al, 0x64
je 0x10006801
cmp al, 0x6f
jne 0x100068d4
cmp byte [edi + 8], 0
jne 0x10006850
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 7
push 0x53f424
call esi
mov ecx, 0x53f424
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov ax, word [ecx + 4]
mov word [edi + 0xc], ax
mov al, byte [ecx + 6]
mov ecx, 0x90909090
mov byte [edi + 0xe], al
mov eax, 0x53f424
mov dword [eax], ecx
mov word [eax + 4], cx
mov byte [eax + 6], cl
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
jmp 0x10006888
cmp byte [0x53f424], 0x90
je 0x10006891
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 7
push 0x53f424
call esi
mov eax, 0x53f424
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
mov byte [eax + 6], cl
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 7
push 0x53f424
call esi
cmp dword [ebp + 8], 2
mov eax, dword [0x10070b1c]
jne 0x100068b8
mov dword [edi + 4], 2
pop edi
mov byte [eax], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030080
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 4], 1
pop edi
mov byte [eax], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030080
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x10070b1c]
mov dword [edi + 4], 0
mov byte [eax], 0
mov eax, dword [0x10070b18]
mov dword [eax], 0
cmp byte [edi + 8], 0
je 0x1000692d
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 7
push 0x53f424
call esi
mov eax, dword [edi + 8]
mov ecx, 0x53f424
mov dword [ecx], eax
mov ax, word [edi + 0xc]
mov word [ecx + 4], ax
mov al, byte [edi + 0xe]
mov byte [ecx + 6], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 7
push ecx
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10030080
mov esp, ebp
pop ebp
ret 4
Function at 0x10007290
Capabilities:
Read .ini file

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 0x10055d16
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x10070080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 4], 1
cmp dword [edx + 0x14], 0xf
jbe 0x100072e2
mov edx, dword [edx]
cmp dword [ebx + 0x34], 0xf
lea ecx, [ebx + 0x20]
push edx
cmova ecx, dword [ebx + 0x20]
lea edx, [ebp - 0x118]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
push 0x100
cmova eax, dword [ebx + 8]
push edx
push 0x10061029
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x10007321
mov byte [ebp - 0x119], al
jmp 0x100073c7
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], 0
movups xmmword [ebp - 0x134], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007348
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.100054b0
mov edi, dword [ebp - 0x120]
lea ecx, [ebp - 0x134]
mov esi, dword [ebp - 0x134]
cmp edi, 0xf
mov edx, dword [ebp - 0x124]
push 4
cmova ecx, esi
push str.TRUE
call fcn.10007590
add esp, 8
mov byte [ebp - 0x119], al
cmp edi, 0xf
jbe 0x100073c7
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x100073bd
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000745f
push ecx
push esi
call fcn.100300c8
add esp, 8
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x100073f7
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100073ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000745f
push ecx
push edx
call fcn.100300c8
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0xf
jbe 0x10007439
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000742f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000745f
push ecx
push edx
call fcn.100300c8
add esp, 8
mov al, byte [ebp - 0x119]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10030080
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.10037284
int3
Function at 0x10007790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10070080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [eax], 0
mov edi, dword [esi + 4]
jne 0x10007826
cmp dword [edi + 4], 1
jne 0x1000783e
mov eax, dword [0x10070b1c]
mov dword [edi + 4], 0
mov byte [eax], 0
mov eax, dword [0x10070b18]
mov dword [eax], 0
cmp byte [edi + 8], 0
je 0x1000783e
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 7
push 0x53f424
call esi
mov eax, dword [edi + 8]
mov ecx, 0x53f424
mov dword [ecx], eax
mov ax, word [edi + 0xc]
mov word [ecx + 4], ax
mov al, byte [edi + 0xe]
mov byte [ecx + 6], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 7
push ecx
call esi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030080
mov esp, ebp
pop ebp
ret 4
push 1
push 0xd3
mov ecx, edi
call fcn.10006540
mov ecx, dword [esi + 4]
push 1
call fcn.10006790
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10030080
mov esp, ebp
pop ebp
ret 4
Function at 0x100079f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10070080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx], 0
push esi
push edi
mov esi, ecx
jne 0x10007a84
mov edi, dword [esi]
cmp dword [edi + 4], 2
jne 0x10007b81
mov eax, dword [0x10070b1c]
mov dword [edi + 4], 0
mov byte [eax], 0
mov eax, dword [0x10070b18]
mov dword [eax], 0
cmp byte [edi + 8], 0
je 0x10007b81
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 7
push 0x53f424
call esi
mov eax, dword [edi + 8]
mov ecx, 0x53f424
mov dword [ecx], eax
mov ax, word [edi + 0xc]
mov word [ecx + 4], ax
mov al, byte [edi + 0xe]
mov byte [ecx + 6], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 7
push ecx
call esi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030080
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x10070ba4]
xor bl, bl
mov edi, eax
cmp byte [0x8092d8], bl
je 0x10007aba
mov ecx, dword [0x809db4]
xor edx, edx
call dword [0x10070b9c]
test eax, eax
je 0x10007aba
push 2
xor edx, edx
mov ecx, eax
call dword [0x10070bac]
test eax, eax
setne bl
test edi, edi
jne 0x10007b77
test bl, bl
jne 0x10007b77
cmp dword [0x799740], edi
jne 0x10007b77
cmp dword [0x799738], edi
jne 0x10007b77
cmp dword [0x79973c], edi
jne 0x10007b77
cmp byte [0x8092d8], bl
je 0x10007b47
mov ecx, dword [0x63d65c]
test ecx, ecx
je 0x10007b14
cmp byte [ecx + 0x54], bl
je 0x10007b14
cmp byte [ecx + 0x50], bl
je 0x10007b14
xor edx, edx
call dword [0x10070b24]
jmp 0x10007b77
mov eax, dword [0x63d64c]
test eax, eax
je 0x10007b55
cmp byte [eax + 0x50], 0
je 0x10007b55
cmp byte [0x7f957d], 0x64
je 0x10007b3c
mov ecx, dword [0x7f94cc]
xor edx, edx
push 0x64
call dword [0x10070b80]
mov eax, dword [0x63d64c]
mov byte [eax + 0x50], 0
jmp 0x10007b55
cmp dword [0x7f9500], 0
jne 0x10007b77
call fcn.100150b0
mov ecx, dword [0x7f94cc]
cmp byte [ecx + 0xb1], 0x6e
jne 0x10007b77
cmp byte [0x7f957d], 0x64
je 0x10007b77
push 0x64
xor edx, edx
call dword [0x10070b80]
mov ecx, dword [esi]
push 2
call fcn.10006790
pop ebx
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10030080
mov esp, ebp
pop ebp
ret
Function at 0x1000ce30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056305
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10070080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
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, ebx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.1000d7c0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000ceba
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x1000d001
cmp dword [ebx + 8], 0x4924924
je 0x1000d017
lea eax, [ebx + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x28], 0
call fcn.10030093
mov ecx, dword [ebp - 0x1c]
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100645f0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100645f0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1000cfb4
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.1004fb70
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10052140
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x1000cf96
cmp eax, 0x200
jae 0x1000cf94
shl eax, 3
cmp eax, ecx
jae 0x1000cf96
mov eax, ecx
push eax
mov ecx, ebx
call fcn.1000d460
push dword [ebp - 0x20]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000d7c0
mov edx, dword [eax]
jmp 0x1000cfb7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x20]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x1000cfe2
mov dword [ecx + eax*8], esi
jmp 0x1000cff4
cmp ebx, edx
jne 0x1000cfeb
mov dword [ecx + eax*8], esi
jmp 0x1000cff8
mov edx, dword [ebp - 0x1c]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1000cff8
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x24]
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
push str.unordered_map_set_too_long
call fcn.1002ec15
int3
Function at 0x1000d460
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 - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x1000d5b9
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.1000c940
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1000d58c
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 [ebx + 0xc]
imul edi, edi, 0x1000193
and edi, dword [ebx + 0x18]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x1000d511
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1000d582
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x1000d54b
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1000d543
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 - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x1000d57f
cmp edi, edx
je 0x1000d55c
nop
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x1000d595
cmp edi, edx
jne 0x1000d550
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 - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x1000d4c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
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 - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1000d57f
push str.invalid_hash_bucket_count
call fcn.1002ec15
int3