Function at 0x401640
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, 0x8c
mov eax, dword [0x405040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x404140
lea esp, [esp + 4]
nop
nop
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x10], 0x64f5b658
mov dword [ebp - 0xc], 0xf4dc0a2
mov dword [ebp - 8], 0x5f7bb71
mov ecx, dword [eax]
mov eax, dword [0x40546c]
cmp eax, dword [ecx + 4]
jle 0x4016f3
push 0x40546c
call fcn.00402272
add esp, 4
cmp dword [0x40546c], 0xffffffff
jne 0x4016f3
xorps xmm0, xmm0
mov byte [0x405440], 1
movlpd qword [ebp - 0x48], xmm0
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10]
mov byte [ecx + 0x405434], al
add ecx, 1
adc edx, 0
test edx, edx
jne 0x4016d9
cmp ecx, 0xc
jb 0x4016c0
push 0x4030b0
call fcn.00402512
add esp, 4
push 0x40546c
call fcn.00402221
add esp, 4
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x38], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x34], ecx
cmp ecx, edx
je 0x401764
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401764
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, 0xaa947c77
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x40175d
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 0x401740
cmp esi, 0xa673069
je 0x401768
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x401725
mov eax, dword [eax]
jmp 0x401700
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
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 ebx, dword [eax + edx]
add ebx, edx
cmp byte [0x405440], 0
je 0x4017d3
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
nop word [eax + eax]
mov ecx, esi
mov eax, 0x59bd715
and ecx, 7
mov edx, 0x213fa5c5
shl ecx, 3
call fcn.00402f90
xor byte [esi + 0x405434], al
add esi, 1
adc edi, 0
test edi, edi
jne 0x4017cc
cmp esi, 0xc
jb 0x4017a0
mov byte [0x405440], 0
push 0x405434
call ebx
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x401a6c
mov dword [ebp - 0x48], eax
xor edx, edx
mov word [ebp - 0x44], ax
mov byte [ebp - 0x42], al
mov byte [ebp - 6], al
mov dword [ebp - 0x40], 0x7206ae72
mov eax, dword [ebp - 0x40]
mov word [ebp - 0x3c], 0x72ff
mov dword [ebp - 0xc], eax
mov ax, word [ebp - 0x3c]
mov word [ebp - 8], ax
nop
mov al, byte [ebp + edx - 0xb]
mov cl, byte [ebp + edx - 0xc]
mov byte [ebp + edx - 0xc], al
mov byte [ebp + edx - 0xb], cl
add edx, 2
cmp edx, 6
jb 0x401810
xor esi, esi
nop word [eax + eax]
mov al, byte [ebp + esi - 0xc]
xor ah, ah
not al
mov cl, al
shr al, 1
and cl, 0xd5
and al, 0x55
add cl, cl
or cl, al
xor ebx, ebx
mov byte [ebp - 0x2d], cl
lea edx, [ebx + 7]
nop dword [eax]
mov al, cl
mov cl, bl
shr al, cl
inc ebx
mov ecx, edx
and al, 1
shl al, cl
dec edx
mov cl, byte [ebp - 0x2d]
or ah, al
cmp edx, 0xffffffff
jg 0x401850
mov byte [ebp + esi - 0x48], ah
inc esi
cmp esi, 6
jb 0x401830
movaps xmm1, xmmword [0x4041a0]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0x46e6e2b6
xor edx, edx
mov dword [ebp - 0x58], 0x96661e46
mov word [ebp - 0x54], 0xa647
mov ax, word [ebp - 0x54]
movups xmmword [ebp - 0x88], xmm0
mov byte [ebp - 0x42], 0
movq qword [ebp - 0x78], xmm0
movq xmm0, qword [ebp - 0x5c]
mov dword [ebp - 0x70], 0
mov word [ebp - 0x12], 0
movups xmmword [ebp - 0x2c], xmm1
mov word [ebp - 0x14], ax
movq qword [ebp - 0x1c], xmm0
nop word [eax + eax]
mov al, byte [ebp + edx - 0x2b]
mov cl, byte [ebp + edx - 0x2c]
mov byte [ebp + edx - 0x2c], al
mov byte [ebp + edx - 0x2b], cl
add edx, 2
cmp edx, 0x1b
jb 0x4018d0
xor esi, esi
nop word [eax + eax]
mov al, byte [ebp + esi - 0x2c]
xor ah, ah
not al
mov cl, al
shr al, 1
and cl, 0xd5
and al, 0x55
add cl, cl
or cl, al
xor ebx, ebx
mov byte [ebp - 0x2d], cl
lea edx, [ebx + 7]
nop dword [eax]
mov al, cl
mov cl, bl
shr al, cl
inc ebx
mov ecx, edx
and al, 1
shl al, cl
dec edx
mov cl, byte [ebp - 0x2d]
or ah, al
cmp edx, 0xffffffff
jg 0x401910
mov byte [ebp + esi - 0x88], ah
inc esi
cmp esi, 0x1b
jb 0x4018f0
mov eax, dword fs:[0x30]
mov byte [ebp - 0x6d], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x34], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x38], ecx
cmp ecx, esi
je 0x4019a9
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x4019a9
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop word [eax + eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x118a9140
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4019a2
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x401985
cmp esi, 0xfea9888b
je 0x4019ad
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401970
mov eax, dword [eax]
jmp 0x401945
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push 0x10
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 - 0x48]
push ecx
lea ecx, [ebp - 0x88]
add eax, edx
push ecx
push 0
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x34], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x38], ecx
cmp ecx, esi
je 0x401a49
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401a49
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop word [eax + eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x24ad416b
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401a42
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x401a25
cmp esi, 0xc275003c
je 0x401a4d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401a10
mov eax, dword [eax]
jmp 0x4019e5
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push 0
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
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00402213
mov esp, ebp
pop ebp
ret