Function at 0x10039850
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1008b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 0xc]
nop dword [eax]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x30], ecx
cmp ecx, esi
je 0x100398e4
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x100398e4
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0xa4b75473
mov cl, byte [edx]
inc edx
test cl, cl
je 0x100398dd
nop word [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x100398c0
cmp esi, 0x9a4896a3
je 0x100398e8
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x100398a5
mov eax, dword [eax]
jmp 0x10039880
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
push 0
push 4
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x10039cfc
mov eax, dword fs:[0x30]
mov dword [ebp - 0x20], 0x1c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax + eax]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x28], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x24], ecx
cmp ecx, esi
je 0x10039994
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10039994
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x119d1a56
mov cl, byte [edx]
inc edx
test cl, cl
je 0x1003998d
nop word [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10039970
cmp esi, 0xfb7a7b87
je 0x10039998
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10039955
mov eax, dword [eax]
jmp 0x10039930
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x30]
add eax, edx
call eax
test eax, eax
je 0x10039c54
mov dword [ebp - 0x2c], 1
nop dword [eax + eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10039b75
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x28], ecx
cmp ecx, esi
je 0x10039a49
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10039a49
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax + eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x988456f5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x10039a42
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10039a25
cmp esi, 0xea51f1f0
je 0x10039a4d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10039a10
mov eax, dword [eax]
jmp 0x100399e6
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
cmp dword [ebp - 0x14], eax
jne 0x10039b75
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x28], ecx
cmp ecx, esi
je 0x10039ae4
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10039ae4
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x9382107f
mov cl, byte [edx]
inc edx
test cl, cl
je 0x10039add
nop word [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10039ac0
cmp esi, 0x7aaa411f
je 0x10039ae8
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10039aa5
mov eax, dword [eax]
jmp 0x10039a80
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
cmp dword [ebp - 0x18], eax
je 0x10039b75
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebx]
test edx, edx
jne 0x10039b3d
push 0x200
push edx
push dword [0x1012ab9c]
mov dword [ebx + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebx], edx
test edx, edx
je 0x10039c32
lea esi, [ebx + 8]
jmp 0x10039b6b
mov eax, dword [ebx + 4]
lea esi, [ebx + 8]
cmp dword [esi], eax
jb 0x10039b6b
add eax, eax
mov dword [ebx + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1012ab9c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10039c32
mov dword [ebx], edx
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi]
mov eax, dword fs:[0x30]
mov dword [ebp - 0x20], 0x1c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax + eax]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x24], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x28], ecx
cmp ecx, edx
je 0x10039bf4
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10039bf4
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0x1e479ac6
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x10039bed
nop word [eax + eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x10039bd0
cmp esi, 0x68cae61a
je 0x10039bf8
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x10039bb5
mov eax, dword [eax]
jmp 0x10039b90
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x30]
add eax, edx
call eax
test eax, eax
jne 0x100399d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10039c54
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x10039c54
push eax
push 0
push dword [0x1012ab9c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x28], ecx
cmp ecx, esi
je 0x10039cc4
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10039cc4
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0xd5198c9e
mov cl, byte [edx]
inc edx
test cl, cl
je 0x10039cbd
nop word [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10039ca0
cmp esi, 0x46e40294
je 0x10039cc8
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10039c85
mov eax, dword [eax]
jmp 0x10039c60
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x30]
mov ecx, dword [eax + 0x24]
lea ecx, [ecx + edi*2]
movzx edx, word [ecx + esi]
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + edx*4]
mov ecx, dword [ecx + esi]
add ecx, esi
call ecx
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a7ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a7ae
mov esp, ebp
pop ebp
ret