Function at 0x40f6d4
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, 0x94
mov eax, dword [0x4e2040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x28], 0
push ebx
mov dword [ebp - 0x88], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x4e5c48]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], ebx
push esi
push edi
test eax, eax
jne 0x40f7d2
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x6c], eax
cmp eax, edx
je 0x40f7b5
mov esi, dword [eax + 0x18]
test esi, esi
je 0x40f7b5
mov eax, dword [eax + 0x20]
lea eax, [eax + esi*4]
add eax, edx
sub eax, 4
mov ecx, 0x9a219ba8
dec esi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], eax
mov edi, dword [eax]
add edi, edx
mov cl, byte [edi]
inc edi
test cl, cl
je 0x40f7ae
mov ebx, dword [ebp - 0x80]
movsx eax, cl
xor eax, ebx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov cl, byte [edi]
imul ebx, eax, 0x1000193
inc edi
test cl, cl
jne 0x40f76d
mov dword [ebp - 0x80], ebx
cmp dword [ebp - 0x80], 0x3d3994b5
mov ebx, dword [ebp - 0x8c]
je 0x40f811
mov eax, dword [ebp - 0x78]
test esi, esi
jne 0x40f750
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x70], eax
cmp eax, dword [ebp - 0x74]
je 0x40f7cb
cmp dword [ecx + 0x18], 0
jne 0x40f72e
xor eax, eax
mov dword [0x4e5c48], eax
push 0
push 0
push 0x4c8c98
lea ecx, [ebp - 0x28]
push ecx
call eax
mov ecx, dword [ebp - 0x28]
mov esi, ecx
mov dword [ebp - 0x80], esi
test eax, eax
jns 0x40f82b
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
test esi, esi
je 0x40ff50
push ecx
jmp 0x40ff4b
mov edi, dword [ebp - 0x6c]
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40f7cd
mov eax, dword [0x4e5c54]
test eax, eax
jne 0x40f90d
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x70], ecx
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x74], eax
cmp eax, edx
je 0x40f8ea
mov edi, dword [eax + 0x18]
test edi, edi
je 0x40f8ea
mov eax, dword [eax + 0x20]
lea eax, [eax + edi*4]
add eax, edx
sub eax, 4
mov ecx, 0x633e91dd
mov dword [ebp - 0x94], eax
dec edi
mov dword [ebp - 0x6c], ecx
mov eax, dword [eax]
add eax, edx
mov cl, byte [eax]
inc eax
mov dword [ebp - 0x78], eax
test cl, cl
je 0x40f8dd
mov ebx, dword [ebp - 0x6c]
mov esi, eax
movsx eax, cl
xor eax, ebx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov cl, byte [esi]
imul ebx, eax, 0x1000193
inc esi
test cl, cl
jne 0x40f89c
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x6c], 0xe86d6ede
mov ebx, dword [ebp - 0x8c]
je 0x40f93d
mov eax, dword [ebp - 0x94]
test edi, edi
jne 0x40f877
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x70], eax
cmp eax, dword [ebp - 0x84]
je 0x40f903
cmp dword [ecx + 0x18], 0
jne 0x40f851
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov dword [0x4e5c54], eax
push 0
push 0x20
push str.ChainingModeGCM
push str.ChainingMode
push ecx
call eax
test eax, eax
jns 0x40f95a
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
jmp 0x40ff46
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40f905
and dword [ebp - 0x24], 0
mov eax, dword [0x4e5c28]
test eax, eax
jne 0x40fa42
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x70], eax
cmp eax, edx
je 0x40fa25
mov edi, dword [eax + 0x18]
test edi, edi
je 0x40fa25
mov eax, dword [eax + 0x20]
lea eax, [eax + edi*4]
add eax, edx
sub eax, 4
mov ecx, 0x46406e07
mov dword [ebp - 0x94], eax
dec edi
mov dword [ebp - 0x6c], ecx
mov eax, dword [eax]
add eax, edx
mov cl, byte [eax]
inc eax
mov dword [ebp - 0x84], eax
test cl, cl
je 0x40fa18
mov ebx, dword [ebp - 0x6c]
mov esi, eax
movsx eax, cl
xor eax, ebx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov cl, byte [esi]
imul ebx, eax, 0x1000193
inc esi
test cl, cl
jne 0x40f9d3
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x6c], 0xfa4ff1b4
mov ebx, dword [ebp - 0x8c]
je 0x40fc32
mov eax, dword [ebp - 0x94]
test edi, edi
jne 0x40f9ab
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x78]
je 0x40fa3b
cmp dword [ecx + 0x18], 0
jne 0x40f981
xor eax, eax
mov dword [0x4e5c28], eax
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x14], 0xf
mov ecx, dword [edx + 0x10]
jbe 0x40fa53
mov edx, dword [edx]
push 0
push ecx
push edx
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
push esi
call eax
test eax, eax
js 0x40f922
mov edi, dword [ebp - 0x90]
push 0x40
push 0
mov eax, dword [edi + 0x10]
sub eax, 0x10
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
call fcn.004b21c0
mov ecx, dword [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x68], 0x40
mov eax, ecx
mov dword [ebp - 0x64], 1
cmp dword [ecx + 0x14], 0xf
jbe 0x40faa4
mov eax, dword [ecx]
cmp dword [edi + 0x14], 0xf
mov dword [ebp - 0x60], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, edi
jbe 0x40fab7
mov eax, dword [edi]
add eax, dword [ebp - 0x70]
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov ecx, 0x400
xor eax, eax
mov dword [ebp - 0x20], ecx
stosd dword es:[edi], eax
push ecx
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x4c], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
call fcn.004109bd
mov eax, dword [0x4e5c2c]
test eax, eax
jne 0x40fbca
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], ecx
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x78], eax
cmp eax, edx
je 0x40fbaa
mov edi, dword [eax + 0x18]
test edi, edi
je 0x40fbaa
mov eax, dword [eax + 0x20]
lea eax, [eax + edi*4]
add eax, edx
sub eax, 4
mov ecx, 0x669e25e8
mov dword [ebp - 0x88], eax
dec edi
mov dword [ebp - 0x6c], ecx
mov eax, dword [eax]
add eax, edx
mov cl, byte [eax]
inc eax
mov dword [ebp - 0x7c], eax
test cl, cl
je 0x40fb9d
mov ebx, dword [ebp - 0x6c]
mov esi, eax
movsx eax, cl
xor eax, ebx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov cl, byte [esi]
imul ebx, eax, 0x1000193
inc esi
test cl, cl
jne 0x40fb58
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x6c], 0x3fb7027d
mov ebx, dword [ebp - 0x8c]
je 0x40fc52
mov eax, dword [ebp - 0x88]
test edi, edi
jne 0x40fb33
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x84]
je 0x40fbc3
cmp dword [ecx + 0x18], 0
jne 0x40fb0d
xor eax, eax
mov dword [0x4e5c2c], eax
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
mov edi, edx
cmova ecx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0xf
jbe 0x40fbe5
mov edi, dword [edx]
push 0
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0xc]
push ecx
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x24]
call eax
mov ecx, eax
mov dword [ebp - 0x6c], ecx
cmp ecx, 0xc0000023
jne 0x40fdd7
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
cmp ecx, edx
ja 0x40fc72
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmova eax, dword [ebp - 0x1c]
mov byte [eax + ecx], 0
jmp 0x40fcbd
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40fa3d
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40fbc5
mov eax, dword [ebp - 8]
mov edi, ecx
sub edi, edx
sub eax, edx
cmp edi, eax
ja 0x40fcab
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmova eax, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0x7c], eax
test edi, edi
je 0x40fca5
push edi
push 0
push eax
call fcn.004b21c0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x40fcbd
push ecx
push edi
mov byte [ebp - 0x7c], 0
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x7c]
push edi
call fcn.00410a3f
mov eax, dword [0x4e5c40]
test eax, eax
jne 0x40fda0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x78], ecx
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x74], eax
cmp eax, edx
je 0x40fd80
mov edi, dword [eax + 0x18]
test edi, edi
je 0x40fd80
mov eax, dword [eax + 0x20]
lea eax, [eax + edi*4]
add eax, edx
sub eax, 4
mov ecx, 0x1ff7d4eb
mov dword [ebp - 0x88], eax
dec edi
mov dword [ebp - 0x6c], ecx
mov eax, dword [eax]
add eax, edx
mov cl, byte [eax]
inc eax
mov dword [ebp - 0x7c], eax
test cl, cl
je 0x40fd73
mov ebx, dword [ebp - 0x6c]
mov esi, eax
movsx eax, cl
xor eax, ebx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov cl, byte [esi]
imul ebx, eax, 0x1000193
inc esi
test cl, cl
jne 0x40fd2e
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x6c], 0xf8780d2c
mov ebx, dword [ebp - 0x8c]
je 0x40fed8
mov eax, dword [ebp - 0x88]
test edi, edi
jne 0x40fd09
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x84]
je 0x40fd99
cmp dword [ecx + 0x18], 0
jne 0x40fce3
xor eax, eax
mov dword [0x4e5c40], eax
cmp dword [ebp - 8], 0xf
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x90]
cmova ecx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0xf
jbe 0x40fdb9
mov edx, dword [edx]
push 0
lea edi, [ebp - 0x20]
push edi
push dword [ebp - 0x20]
push ecx
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp - 0x70]
push edx
push dword [ebp - 0x24]
call eax
mov dword [ebp - 0x6c], eax
mov eax, dword [0x4e5c44]
test eax, eax
jne 0x40feb6
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x78], ecx
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x74], eax
cmp eax, edx
je 0x40fe96
mov edi, dword [eax + 0x18]
test edi, edi
je 0x40fe96
mov eax, dword [eax + 0x20]
lea eax, [eax + edi*4]
add eax, edx
sub eax, 4
mov ecx, 0x3501ab1c
mov dword [ebp - 0x88], eax
dec edi
mov dword [ebp - 0x70], ecx
mov eax, dword [eax]
add eax, edx
mov cl, byte [eax]
inc eax
mov dword [ebp - 0x7c], eax
test cl, cl
je 0x40fe89
mov ebx, dword [ebp - 0x70]
mov esi, eax
movsx eax, cl
xor eax, ebx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul ecx, eax, 0x1000193
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov cl, byte [esi]
imul ebx, eax, 0x1000193
inc esi
test cl, cl
jne 0x40fe48
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x70], ebx
cmp dword [ebp - 0x70], 0x8613a68b
mov ebx, dword [ebp - 0x8c]
je 0x40fef8
mov eax, dword [ebp - 0x88]
test edi, edi
jne 0x40fe23
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x84]
je 0x40feaf
cmp dword [ecx + 0x18], 0
jne 0x40fdfd
xor eax, eax
mov dword [0x4e5c44], eax
push dword [ebp - 0x24]
call eax
cmp dword [ebp - 0x6c], 0
push 0xf
jge 0x40ff15
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x10], 0
pop edi
mov dword [ebx + 0x14], edi
mov byte [ebx], 0
jmp 0x40ff2b
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40fd9b
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40feb1
pop edi
cmp dword [ebp - 8], edi
lea eax, [ebp - 0x1c]
push dword [ebp - 0x20]
cmova eax, dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040bdb9
mov edx, dword [ebp - 8]
cmp edx, edi
jbe 0x40ff3b
mov ecx, dword [ebp - 0x1c]
inc edx
call fcn.0040d759
and dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 8], edi
test esi, esi
je 0x40ff50
push esi
call fcn.0040ff61
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b0ce6
leave
ret