Function at 0x10040960
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
and esp, 0xfffffff8
sub esp, 0x1c
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 8], ebx
push esi
push edi
test edx, edx
jle 0x10040d44
mov esi, dword [ebx]
add esi, edx
test esi, esi
jle 0x10040d3c
mov ecx, dword [ebx + 4]
lea eax, [esi - 1]
dec ecx
and eax, 0xfffffff8
and ecx, 0xfffffff8
cmp ecx, eax
jge 0x10040d3c
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x11]
add esi, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
lea ecx, [esi + 7]
sar ecx, 3
mov dword [esp + 0x14], ecx
cmp edx, eax
jne 0x10040b27
cmp ecx, 0x100
jle 0x10040d3c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax + eax]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x20], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [esp + 0x1c], ecx
cmp ecx, esi
je 0x10040a44
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10040a44
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, 0x24b63b4c
mov cl, byte [edx]
inc edx
test cl, cl
je 0x10040a3d
nop dword [eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10040a20
cmp esi, 0xdc5691f8
je 0x10040a48
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10040a07
mov eax, dword [eax]
jmp 0x100409e0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push dword [esp + 0x14]
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 ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [ecx + 0xc], eax
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x1c], esi
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + esi + 0x78]
add eax, esi
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x10040ae9
mov edi, dword [eax + 0x18]
test edi, edi
je 0x10040ae9
mov eax, dword [eax + 0x20]
lea ebx, [eax + edi*4]
add ebx, esi
nop dword [eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0xbb2bc223
mov al, byte [edx]
inc edx
test al, al
je 0x10040ae2
movsx eax, al
lea edx, [edx + 1]
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [edx - 1]
test al, al
jne 0x10040ac5
cmp esi, 0xfc75bac6
je 0x10040aed
mov esi, dword [ecx + 0x18]
test edi, edi
jne 0x10040ab0
mov ecx, dword [ecx]
jmp 0x10040a86
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 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 ecx, dword [eax + edx]
mov eax, dword [ebx + 4]
add ecx, edx
add eax, 7
sar eax, 3
push eax
lea eax, [ebx + 0x11]
push eax
push dword [esp + 0x1c]
call ecx
jmp 0x10040d35
cmp byte [ebx + 0x10], 0
je 0x10040bde
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x24], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [esp + 0x20], ecx
cmp ecx, edx
je 0x10040ba4
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10040ba4
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, 0xc22e0bbf
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x10040b9d
nop dword [eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x10040b80
cmp esi, 0x196a3077
je 0x10040ba8
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x10040b67
mov eax, dword [eax]
jmp 0x10040b40
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push dword [esp + 0x14]
mov eax, dword [esi + 0x24]
push dword [esp + 0x20]
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 ebx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0xc], eax
jmp 0x10040d38
cmp ecx, 0x100
jle 0x10040c87
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x20], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [esp + 0x24], ecx
cmp ecx, esi
je 0x10040c59
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10040c59
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0x567694ee
mov cl, byte [edx]
inc edx
test cl, cl
je 0x10040c52
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10040c35
cmp esi, 0x3707d6fa
je 0x10040c5d
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10040c20
mov eax, dword [eax]
jmp 0x10040bf6
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push dword [esp + 0x14]
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 ebx, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 0xc], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x20], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [esp + 0x24], ecx
cmp ecx, esi
je 0x10040cf9
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x10040cf9
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, esi
nop dword [eax]
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0xac47b597
mov cl, byte [edx]
inc edx
test cl, cl
je 0x10040cf2
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x10040cd5
cmp esi, 0x8c2ac4b2
je 0x10040cfd
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10040cc0
mov eax, dword [eax]
jmp 0x10040c96
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 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 ecx, dword [eax + edx]
mov eax, dword [ebx + 4]
add ecx, edx
add eax, 7
sar eax, 3
push eax
push dword [esp + 0x20]
push dword [ebx + 0xc]
call ecx
mov byte [ebx + 0x10], 1
add esp, 0xc
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx + 4]
jle 0x10040d44
mov dword [ebx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4