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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ad85
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x78], ecx
mov edi, 0xf
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0
mov edx, edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 3
mov esi, dword [eax]
test esi, esi
je 0x10039e28
mov esi, dword [esi + 0x18]
mov dword [ebp - 0x84], esi
test esi, esi
je 0x10039e28
mov eax, dword [eax + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x10039e28
lea ecx, [esi + eax]
test ecx, ecx
je 0x10039e28
mov edi, dword [ecx + 0x1c]
mov eax, dword [ecx + 0x20]
add edi, esi
mov dword [ebp - 0x8c], edi
add eax, esi
mov edi, dword [ecx + 0x24]
add edi, esi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x88], edi
mov edi, edx
test eax, eax
je 0x10039e28
cmp dword [ebp - 0x8c], 0
je 0x10039e28
cmp dword [ebp - 0x88], 0
je 0x10039e28
xor eax, eax
mov dword [ebp - 0x80], eax
cmp dword [ecx + 0x18], eax
jbe 0x10039da8
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + eax*4]
add edx, esi
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039965
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10020770
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x58]
test eax, eax
je 0x100399ae
cmp dword [ebp - 0x44], 0x10
lea edi, [ebp - 0x58]
mov edx, 0x811c9dc5
cmovae edi, esi
xor ecx, ecx
test eax, eax
je 0x100399a9
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x48]
jb 0x10039997
cmp edx, dword [ebp + 8]
je 0x100399cc
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
inc eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
cmp eax, dword [edi + ecx + 0x18]
jae 0x10039da0
mov esi, edi
jmp 0x10039955
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x80]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x7c]
add edx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x84]
cmp edx, ecx
jb 0x10039d1a
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x7c]
add eax, ecx
cmp edx, eax
jae 0x10039d1a
xor eax, eax
test edx, edx
cmove edx, eax
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039a15
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10020770
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae edx, edi
test eax, eax
je 0x10039aa4
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2e
je 0x10039a5a
nop dword [eax]
cmp ecx, edx
je 0x10039aa4
dec ecx
cmp byte [ecx], 0x2e
jne 0x10039a50
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x10039aa9
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0
cmp eax, 0x10
jb 0x10039d53
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10039a9d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push ecx
push edi
jmp 0x10039d4b
xor eax, eax
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x18], eax
mov ecx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xa4], 0
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, edi
mov dword [ebp - 0x94], 0
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 0xf
call fcn.10020770
movups xmm0, xmmword [ebp - 0xa4]
mov ecx, dword [ebp - 0x94]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x94]
movq qword [ebp - 0x30], xmm0
cmp ecx, dword [ebp - 0x90]
jae 0x10039b26
cmp dword [ebp - 0x2c], 0x10
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov word [ecx + eax], 0x64
jmp 0x10039b38
push 0x64
mov byte [ebp - 0x74], 0
push dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10021480
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
jae 0x10039b5a
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov word [eax + ecx], 0x6c
jmp 0x10039b6c
push 0x6c
mov byte [ebp - 0x74], 0
push dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10021480
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
jae 0x10039b8e
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov word [eax + ecx], 0x6c
jmp 0x10039ba0
push 0x6c
mov byte [ebp - 0x74], 0
push dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10021480
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
cmp eax, ecx
jb 0x10039e4c
sub eax, ecx
mov edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
add eax, ecx
lea ecx, [ebp - 0xa4]
push edx
push eax
call fcn.10020770
movups xmm0, xmmword [ebp - 0xa4]
lea eax, [ebp - 0x70]
push eax
sub esp, 0x18
lea eax, [ebp - 0x40]
movups xmmword [ebp - 0x70], xmm0
mov ecx, esp
movq xmm0, qword [ebp - 0x94]
push eax
movq qword [ebp - 0x60], xmm0
call fcn.100204e0
lea ecx, [ebp - 0x98]
call fcn.10038cb0
add esp, 0x18
lea ecx, [ebp - 0x74]
mov edx, eax
call fcn.10039e60
mov ecx, dword [ebp - 0x78]
add esp, 4
mov edx, dword [ebp - 0x5c]
mov eax, dword [eax]
test eax, eax
jne 0x10039cb1
mov dword [ecx], eax
cmp edx, 0x10
jb 0x10039c77
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039c6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push edx
push ecx
call fcn.10098145
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10039d1f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039ca5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push edx
push ecx
call fcn.10098145
add esp, 8
jmp 0x10039d1f
mov dword [ecx], eax
cmp edx, 0x10
jb 0x10039ce4
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039cda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push edx
push ecx
call fcn.10098145
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10039d1f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039d0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push edx
push ecx
call fcn.10098145
add esp, 8
jmp 0x10039d1f
mov ecx, dword [ebp - 0x78]
mov dword [ecx], edx
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10039d53
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039d49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push edx
push ecx
call fcn.10098145
add esp, 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x10039d98
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10039d8e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push ecx
push esi
call fcn.10098145
add esp, 8
mov eax, dword [ebp - 0x78]
jmp 0x10039e31
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x44]
jmp 0x10039dab
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x78]
mov dword [eax], 0
cmp edx, 0x10
jb 0x10039de1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039dd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039e13
push edx
push ecx
call fcn.10098145
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edi, 0x10
jb 0x10039d98
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x10039e19
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10039e19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.10098145
mov eax, dword [ebp - 0x78]
add esp, 8
jmp 0x10039e31
mov eax, dword [ebp - 0x78]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10097cc9
mov esp, ebp
pop ebp
ret
call fcn.10020950
int3