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

Disassembly:
cmp dword [esp + 0x18], 0
je 0x10141094
mov dword [esp + 0x18], fcn.1013f860
jmp fcn.100cbd50
mov dword [esp + 0x18], fcn.1013eaf0
jmp fcn.100cba50

Function at 0x10175070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10175240
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1017514d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10248ea0]
jb 0x101750ba
mov eax, dword [ebp - 4]
cmp eax, dword [0x10248ea4]
ja 0x101750ba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1017508a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1018f2e0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x101750df
jmp 0x1017514d
cmp dword [ebp - 0x14], 0x10000
jne 0x10175133
cmp dword [ebp - 0x18], 0x10000
jb 0x10175133
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10175116
mov eax, dword [ebp - 8]
jmp 0x1017514f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10175126
xor eax, eax
jmp 0x1017514f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10175148
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10175240
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1017508a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10175160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10175270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10175235
mov edx, dword [ebp - 4]
cmp edx, dword [0x10248ea0]
jb 0x101751a5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10248ea4]
ja 0x101751a5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10175175
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1018f2e0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x101751ca
jmp 0x10175235
cmp dword [ebp - 0x14], 0x10000
jne 0x1017521e
cmp dword [ebp - 0x18], 0x10000
jb 0x1017521e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10175201
mov eax, dword [ebp - 8]
jmp 0x10175237
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10175211
xor eax, eax
jmp 0x10175237
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10175230
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10175270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10175175
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x101752a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10175690
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10251e64], 0
jne 0x101752dd
cmp dword [0x10251e60], 0
je 0x101752dd
mov eax, dword [0x10251e60]
mov dword [0x10251e64], eax
cmp dword [0x10251e64], 0
je 0x1017535a
mov ecx, dword [0x10251e64]
cmp dword [ecx + 8], 0
je 0x1017535a
mov edx, dword [0x10251e64]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1017535a
mov ecx, dword [0x10251e64]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1017535a
mov eax, dword [0x10251e64]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10175329
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10175330
xor eax, eax
jmp 0x10175479
mov ecx, dword [0x10251e64]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1018f2e0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10175479
mov edx, dword [0x10251e60]
mov dword [0x10251e64], edx
jmp 0x10175376
mov eax, dword [0x10251e64]
mov ecx, dword [eax + 4]
mov dword [0x10251e64], ecx
cmp dword [0x10251e64], 0
je 0x101753b6
cmp dword [0x10251e64], 0
je 0x101753b4
mov edx, dword [0x10251e64]
cmp dword [edx + 8], 0
je 0x101753b4
mov eax, dword [0x10251e64]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x101753b4
mov edx, dword [0x10251e64]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x101753b4
jmp 0x1017530e
jmp 0x10175368
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10175480
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10175477
mov eax, dword [ebp - 0x18]
mov dword [0x10251e64], eax
mov ecx, dword [0x10251e64]
mov dword [ecx], 0x52727464
mov edx, dword [0x10251e64]
mov dword [edx + 8], 0
mov eax, dword [0x10251e64]
mov ecx, dword [0x10251e60]
mov dword [eax + 4], ecx
mov edx, dword [0x10251e64]
mov dword [0x10251e60], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10251e64]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10175447
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10175467
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1017543e
mov eax, dword [0x10251e64]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1017530e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x101761c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10251e60]
mov dword [ebp - 4], eax
jmp 0x101761d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10176200
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x101761fe
call sub.KERNEL32.dll_GetLastError
jmp 0x10176202
jmp 0x101761d0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10176830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10251e70], eax
je 0x10176854
mov eax, 0x10dd
jmp 0x101769fc
cmp dword [0x10251e74], 0
je 0x10176867
mov eax, dword [0x10251e74]
jmp 0x101769fc
cmp dword [ebp + 0xc], 0
jne 0x10176877
mov eax, 0x57
jmp 0x101769fc
cmp dword [ebp + 8], 0
jne 0x10176887
mov eax, 6
jmp 0x101769fc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101768b0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10251e74], ecx
mov edx, dword [ebp + 8]
mov dword [0x10251e78], edx
mov eax, dword [ebp - 8]
jmp 0x101769fc
push 0x18
call fcn.1018a730
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1017690b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10251e74], ecx
cmp dword [ebp - 4], 0
je 0x101768fa
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1018a765
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10251e78], ecx
mov eax, dword [ebp - 8]
jmp 0x101769fc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10176810
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10176810
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1017694b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10176967
mov dword [ebp - 8], 9
cmp dword [0x10251e68], 0
je 0x10176962
jmp 0x101768d9
jmp 0x101768d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1017698e
mov dword [ebp - 8], 9
cmp dword [0x10251e68], 0
je 0x10176989
jmp 0x101768d9
jmp 0x101768d0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x101769b9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x101768d0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10251e80]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10251e80], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10176a10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10251e70], eax
je 0x10176a2d
mov eax, 0x10dd
jmp 0x10176b10
mov eax, dword [0x10251e80]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10176aac
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10176a88
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10176a88
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10175720
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1018a765
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10176a35
mov dword [0x10251e80], 0
call fcn.10176000
mov ecx, dword [0x10251e7c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10176afa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1018a765
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10176ac4
mov dword [0x10251e7c], 0
mov dword [0x10251e70], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10176ff0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10251e74], 0
je 0x10177009
mov eax, dword [0x10251e74]
jmp 0x101770a8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1017701a
xor eax, eax
jmp 0x101770a8
push 8
call fcn.1018a730
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10177072
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1017705b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1018a765
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10251e74], eax
mov dword [0x10251e78], 0
mov eax, dword [ebp - 8]
jmp 0x101770a8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1017708a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1017703a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10251e7c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10251e7c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10179260
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov dword [ebp - 4], eax
jb 0x1017927b
mov edi, dword [edx]
mov ebx, dword [edx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x101792a4
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10179290
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10178e80
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x101792c4
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x101792d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 4], eax
mov esi, edi
cmp dword [edi + 0x14], 0x10
jb 0x101792eb
mov esi, dword [edi]
mov ebx, dword [edi + 0x10]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x10179314
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10179300
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, edx
mov esi, dword [eax + ecx*8 + 4]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ecx + 4]
mov dword [ebp + 0xc], ecx
cmp esi, ecx
je 0x1017937c
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x1017933f
mov edx, dword [esi + 8]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x10179349
mov ecx, dword [edi]
push dword [esi + 0x18]
push edx
push ebx
push ecx
call fcn.1006e2b0
add esp, 0x10
test al, al
jne 0x10179367
mov eax, dword [ebp - 8]
cmp esi, dword [eax]
je 0x10179379
mov esi, dword [esi + 4]
jmp 0x10179333
test esi, esi
je 0x10179379
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1017d4c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2335
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10248f44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov edx, edi
cmp dword [edi + 0x14], 0x10
jb 0x1017d4f7
mov edx, dword [edi]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x1017d515
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x1017d503
push esi
push edi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10178e80
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1017d5e5
cmp dword [ebx + 8], 0x6666666
je 0x1017d5fc
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
push 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.1018a730
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
push edi
lea edi, [ecx + 8]
mov ecx, edi
call fcn.1004d8a0
xorps xmm0, xmm0
movq qword [edi + 0x18], xmm0
mov dword [edi + 0x1c], 0
mov eax, dword [ebx + 8]
inc eax
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10231f10]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10231f10]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
jbe 0x1017d5d6
mov ecx, ebx
call fcn.1017df20
push esi
push edi
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.10178e80
mov ecx, dword [eax]
jmp 0x1017d5d9
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push esi
mov ecx, ebx
call fcn.1017dec0
add eax, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.unordered_map_set_too_long
call fcn.1018c0f9
int3
Function at 0x1017db80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x1017dcc9
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp - 8], 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.1017d920
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x1017dc9c
movzx eax, byte [ecx + 8]
mov edi, dword [ebx + 0x18]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul eax, eax, 0x1000193
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 0xc], eax
cmp ebx, esi
jne 0x1017dc15
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1017dc8f
mov eax, dword [eax + 4]
mov bl, byte [ecx + 8]
cmp bl, byte [eax + 8]
mov ebx, dword [ebp - 4]
jne 0x1017dc52
mov eax, dword [eax]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x1017dc4a
mov ebx, dword [ecx + 4]
mov esi, dword [ebp + 8]
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 - 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], ecx
jmp 0x1017dc8f
mov edi, eax
cmp ebx, eax
je 0x1017dc6c
mov eax, dword [eax + 4]
mov edi, eax
mov bl, byte [ecx + 8]
cmp bl, byte [eax + 8]
mov ebx, dword [ebp - 4]
je 0x1017dca5
cmp ebx, eax
jne 0x1017dc58
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp + 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x1017dbe2
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 + 8], eax
mov esi, eax
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 - 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x1017dc8f
push str.invalid_hash_bucket_count
call fcn.1018c0f9
int3
Function at 0x1017dfc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, eax
je 0x1017e133
cmp dword [edx + 0x1c], 0x10
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 0x14], eax
lea ebx, [edx + 8]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 8], eax
mov esi, edx
jb 0x1017dff9
mov ebx, dword [edx + 8]
mov eax, dword [edx + 0x18]
xor edx, edx
push edi
mov edi, 0x811c9dc5
test eax, eax
je 0x1017e024
mov ecx, eax
nop word [eax + eax]
movzx eax, byte [edx + ebx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1017e010
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.1017cfb0
push 0x28
push edi
call fcn.1018a765
mov edi, dword [ebp - 4]
add esp, 8
dec dword [edi + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x1017e08d
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x1017e040
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1017e128
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
jne 0x1017e09f
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x1017e0a2
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x1017e128
nop dword [eax]
cmp dword [esi + 0x1c], 0x10
lea ebx, [esi + 8]
jb 0x1017e0bc
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp + 8], eax
mov edx, 0x811c9dc5
test eax, eax
je 0x1017e0e4
mov edi, eax
nop
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1017e0d0
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edx
lea eax, [ecx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.1017cfb0
push 0x28
push edi
call fcn.1018a765
mov edi, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [edi + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x1017e139
cmp esi, eax
jne 0x1017e0f8
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
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 - 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x1017e0b0
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8