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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
mov esi, dword [edx + 8]
mov edx, dword [edx]
test esi, esi
mov dword [esp], esi
mov dword [esp + 0xc], edx
je 0x478b21
lea ebx, [edx + 5]
lea edx, [esi*8]
nop
mov dword [esp + 4], edx
movzx edx, byte [ebx - 1]
xor edx, eax
mov eax, 0x100
mov edi, edx
imul edi, eax
mov eax, edx
mov edx, 0x1b3
mul edx
add edx, edi
mov edi, 0x1b3
imul ecx, edi
add ecx, edx
movzx edx, byte [ebx]
imul ecx, edi
xor eax, edx
mov edx, 0x100
mov esi, eax
imul esi, edx
mul edi
xor eax, dword [ebx - 5]
mov edi, edx
add ebx, 8
add edi, esi
add edi, ecx
mov ecx, 0x100
mov esi, eax
imul esi, ecx
mov ecx, 0x1b3
mul ecx
mov ecx, edx
mov edx, dword [esp + 4]
add ecx, esi
mov esi, 0x1b3
imul edi, esi
add ecx, edi
add edx, 0xfffffff8
jne 0x478ab0
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
test edi, edi
je 0x478d9b
push 0
push edi
push ecx
push eax
call sym.___umoddi3
add esp, 0x10
mov ecx, eax
cmp edi, eax
jbe 0x478db4
mov eax, dword [esi]
lea edx, [ecx + ecx*4]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edx
movzx ecx, word [eax + edx*4 + 0x10]
cmp cx, word [esi + 0x10]
mov esi, dword [esp]
jne 0x478bc4
cmp dword [eax + edx*4 + 8], esi
jne 0x478bc4
mov edi, dword [esp + 0xc]
test esi, esi
je 0x478d64
lea ecx, [eax + edx*4]
mov edx, dword [ecx]
xor ecx, ecx
nop word [eax + eax]
movd xmm0, dword [edx + ecx*8 + 4]
movd xmm1, dword [edi + ecx*8 + 4]
pcmpeqb xmm1, xmm0
punpcklbw xmm0, xmm1
pshuflw xmm0, xmm0, 0x60
pshufd xmm0, xmm0, 0x50
movmskpd ebx, xmm0
cmp bl, 3
jne 0x478d66
mov esi, dword [edx + ecx*8]
cmp esi, dword [edi + ecx*8]
jne 0x478d70
mov esi, dword [esp]
inc ecx
cmp esi, ecx
jne 0x478b80
jmp 0x478d7b
test esi, esi
je 0x478c2b
xor ebx, ebx
cmp esi, 0x10000000
setb al
jae 0x478dcc
mov bl, al
lea edi, [esi*8]
shl ebx, 2
test edi, edi
js 0x478dcc
mov dword [esp], ebx
je 0x478c1b
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x478c10
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x478c1f
mov dword [0x5da100], eax
push edi
push 0
push eax
call sub.kernel32.dll_HeapAlloc
mov ebx, eax
test ebx, ebx
jne 0x478c37
mov ecx, dword [esp]
mov edx, edi
call dbg.handle_alloc_error
ud2
lea edi, [esi*8]
mov ebx, 4
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call sym._memcpy
add esp, 0xc
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov word [esp + 0x18], 2
lea ecx, [esp + 0x28]
push eax
call sym.regex_automata::nfa::thompson::builder::Builder::add::h2a04e8d07243765a
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, 0x27
jne 0x478ceb
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
movsd qword [esp + 0x28], xmm0
mov edx, dword [eax + 8]
cmp edx, ecx
jbe 0x478dbd
movzx edi, word [eax + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
cmp dword [eax + ecx*4 + 4], 0
lea ebx, [eax + ecx*4]
je 0x478cc4
push dword [ebx]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [esp + 8]
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx], xmm0
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], di
mov dword [eax + 4], esi
mov dword [eax], 0x27
jmp 0x478d5c
mov edx, dword [esp + 8]
movsd xmm2, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x50]
movsd xmm0, qword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
movsd qword [edx + 0x30], xmm2
movsd qword [edx + 0x28], xmm1
movsd xmm2, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
movsd qword [edx + 0x38], xmm0
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [esp + 0x38]
movq xmm1, qword [esp + 0x30]
movsd qword [edx + 0x10], xmm2
movq qword [edx + 8], xmm1
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x478d5c
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
cmp ecx, esi
jb 0x478bc8
jmp 0x478d7b
mov esi, dword [esp]
cmp ecx, esi
jb 0x478bc8
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [eax + ecx*4 + 0xc]
mov dword [edx + 4], eax
mov dword [edx], 0x27
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
jne 0x478d4e
jmp 0x478d5c
mov ecx, 0x56bf10
mov edx, 0x39
push 0x56befc
call dbg.panic
add esp, 4
ud2
mov edx, edi
push 0x56bf4c
jmp 0x478dc2
push 0x56bf5c
call dbg.panic_bounds_check
add esp, 4
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2