Function at 0x409912
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4c7080]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [0x4ca478]
push edi
test esi, esi
jne 0x409aae
mov eax, dword fs:[0x30]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x650a5157
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
add eax, 0xfffffff8
test ebx, ebx
je 0x40998f
movzx eax, ax
mov edx, 0x71c89f1d
shr eax, 1
lea edi, [ecx + eax*2]
jmp 0x409983
movsx eax, byte [ecx]
xor eax, edx
imul edx, eax, 0x1000193
add ecx, 2
cmp ecx, edi
jne 0x409975
cmp edx, ebx
jne 0x409a8a
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
add edi, edx
mov dword [esp + 0x28], eax
cmp edi, edx
je 0x409a8a
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x409a8a
mov eax, dword [edi + 0x20]
lea eax, [eax + ecx*4]
add eax, edx
sub eax, 4
mov dword [esp + 0x14], 0x71c89f1d
dec ecx
mov dword [esp + 0x24], eax
mov ebx, dword [eax]
add ebx, edx
mov dl, byte [ebx]
inc ebx
mov byte [esp + 0x13], dl
test dl, dl
mov edx, dword [esi + 0x18]
je 0x409a05
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4099e8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x18]
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ebx
je 0x409a19
test ecx, ecx
jne 0x4099be
mov ebx, dword [esp + 0x18]
jmp 0x409a8a
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + edx]
add esi, edx
cmp esi, edi
jbe 0x409aa0
mov eax, dword [esp + 0x28]
add eax, edi
cmp esi, eax
jae 0x409aa0
mov al, byte [esi]
mov ebx, 0x71c89f1d
mov dword [esp + 0x18], ebx
mov ecx, ebx
mov dword [esp + 0x1c], ecx
cmp al, 0x2e
je 0x409a67
movsx eax, al
xor eax, ebx
imul ebx, eax, 0x1000193
inc esi
mov al, byte [esi]
cmp al, 0x2e
jne 0x409a51
mov dword [esp + 0x18], ebx
inc esi
mov al, byte [esi]
test al, al
je 0x409a84
movsx eax, al
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
mov al, byte [esi]
test al, al
jne 0x409a6e
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [esp + 0x20]
je 0x409a9e
cmp dword [esi + 0x18], 0
jne 0x409959
xor esi, esi
mov dword [0x4ca478], esi
test esi, esi
je 0x409e40
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0xbeb5a4a1
mov dword [esp + 0x34], 0xbab1fabf
mov word [esp + 0x38], 0xbb
mov byte [esp + 0x3a], 1
call fcn.00405b19
push eax
call esi
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x409e40
mov ecx, dword [0x4ca490]
test ecx, ecx
jne 0x409c6f
mov eax, dword fs:[0x30]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x9d1bf769
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
add eax, 0xfffffff8
test ebx, ebx
je 0x409b4a
movzx eax, ax
mov edx, 0x35fd0ad1
shr eax, 1
lea edi, [ecx + eax*2]
jmp 0x409b3e
movsx eax, byte [ecx]
xor eax, edx
imul edx, eax, 0x1000193
add ecx, 2
cmp ecx, edi
jne 0x409b30
cmp edx, ebx
jne 0x409c47
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
add edi, edx
mov dword [esp + 0x24], eax
cmp edi, edx
je 0x409c47
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x409c47
mov eax, dword [edi + 0x20]
lea eax, [eax + ecx*4]
add eax, edx
sub eax, 4
mov dword [esp + 0x1c], 0x35fd0ad1
dec ecx
mov dword [esp + 0x28], eax
mov ebx, dword [eax]
add ebx, edx
mov dl, byte [ebx]
inc ebx
mov byte [esp + 0x13], dl
test dl, dl
mov edx, dword [esi + 0x18]
je 0x409bc0
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ebx]
inc ebx
test al, al
jne 0x409ba3
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x18]
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x1c], ebx
je 0x409bd4
test ecx, ecx
jne 0x409b79
mov ebx, dword [esp + 0x18]
jmp 0x409c47
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
add ecx, edx
cmp ecx, edi
jbe 0x409c5d
mov eax, dword [esp + 0x24]
add eax, edi
cmp ecx, eax
jae 0x409c5d
mov eax, 0x35fd0ad1
mov ebx, eax
mov dword [esp + 0x18], eax
mov edx, eax
mov dword [esp + 0x14], eax
mov al, byte [ecx]
cmp al, 0x2e
je 0x409c24
movsx eax, al
xor eax, ebx
imul ebx, eax, 0x1000193
inc ecx
mov al, byte [ecx]
cmp al, 0x2e
jne 0x409c0e
mov dword [esp + 0x18], ebx
inc ecx
mov al, byte [ecx]
test al, al
je 0x409c41
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
mov al, byte [ecx]
test al, al
jne 0x409c2b
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [esp + 0x20]
je 0x409c5b
cmp dword [esi + 0x18], 0
jne 0x409b14
xor ecx, ecx
mov ebx, dword [esp + 0x2c]
mov dword [0x4ca490], ecx
test ecx, ecx
je 0x409e40
movaps xmm0, xmmword [0x4b6c90]
xor edx, edx
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x4c], 0x8793888b
mov dword [esp + 0x50], 0x1008082
lea eax, [edx - 0x31]
xor byte [esp + edx + 0x3c], al
inc edx
cmp edx, 0x16
jb 0x409c8d
lea eax, [esp + 0x3c]
mov byte [esp + 0x53], 0
push eax
push ebx
call ecx
mov ecx, dword [0x4ca420]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ecx, ecx
jne 0x409e35
mov ecx, dword fs:[0x30]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xfda25c17
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
mov esi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
add eax, 0xfffffff8
test ebx, ebx
je 0x409d14
movzx eax, ax
mov edx, 0x65c8dd72
shr eax, 1
lea edi, [ecx + eax*2]
jmp 0x409d08
movsx eax, byte [ecx]
xor eax, edx
imul edx, eax, 0x1000193
add ecx, 2
cmp ecx, edi
jne 0x409cfa
cmp edx, ebx
jne 0x409e11
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
add edi, edx
mov dword [esp + 0x28], eax
cmp edi, edx
je 0x409e11
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x409e11
mov eax, dword [edi + 0x20]
lea eax, [eax + ecx*4]
add eax, edx
sub eax, 4
mov dword [esp + 0x1c], 0x65c8dd72
dec ecx
mov dword [esp + 0x2c], eax
mov ebx, dword [eax]
add ebx, edx
mov dl, byte [ebx]
inc ebx
mov byte [esp + 0x13], dl
test dl, dl
mov edx, dword [esi + 0x18]
je 0x409d8a
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ebx]
inc ebx
test al, al
jne 0x409d6d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x18]
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x1c], ebx
je 0x409d9e
test ecx, ecx
jne 0x409d43
mov ebx, dword [esp + 0x18]
jmp 0x409e11
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
add ecx, edx
cmp ecx, edi
jbe 0x409e27
mov eax, dword [esp + 0x28]
add eax, edi
cmp ecx, eax
jae 0x409e27
mov eax, 0x65c8dd72
mov ebx, eax
mov dword [esp + 0x18], eax
mov edx, eax
mov dword [esp + 0x14], eax
mov al, byte [ecx]
cmp al, 0x2e
je 0x409dee
movsx eax, al
xor eax, ebx
imul ebx, eax, 0x1000193
inc ecx
mov al, byte [ecx]
cmp al, 0x2e
jne 0x409dd8
mov dword [esp + 0x18], ebx
inc ecx
mov al, byte [ecx]
test al, al
je 0x409e0b
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
mov al, byte [ecx]
test al, al
jne 0x409df5
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [esp + 0x20]
je 0x409e25
cmp dword [esi + 0x18], 0
jne 0x409cde
xor ecx, ecx
mov ebx, dword [esp + 0x24]
mov dword [0x4ca420], ecx
test ecx, ecx
je 0x409e40
push 0
push 0
push 0x11
call ecx
push eax
call ebx
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046be79
mov esp, ebp
pop ebp
ret