Function at 0x10020510
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100885e7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe8
mov eax, dword [0x100b0040]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
lea esi, [eax + 0x40c]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xac], esi
mov eax, dword [eax + 0x418]
mov dword [ebp - 0xcc], eax
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x10020586
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xcc]
xor edx, edx
mov dword [ebp - 4], 0
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xd4], 1
test eax, eax
je 0x10020696
mov esi, 0x5a4d
cmp word [eax], si
mov esi, dword [ebp - 0xac]
jne 0x10020696
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [ebp - 0xb0], edx
cmp dword [edx], 0x4550
jne 0x10020694
movzx eax, word [edx + 0x14]
add edx, 0x18
add eax, edx
xor edx, edx
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
cmp di, word [eax + 6]
jae 0x10020694
mov esi, dword [ebp - 0xc8]
nop dword [eax]
mov dword [ebp - 0xc8], esi
cmp edi, ecx
je 0x10020637
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0xc0], edi
jmp 0x10020662
lea eax, [ebp - 0xc8]
push eax
push edi
lea ecx, [ebp - 0xc4]
call fcn.1002abd0
mov ecx, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
movzx eax, word [eax + 6]
inc edx
add esi, 0x28
mov dword [ebp - 0xb4], edx
cmp edx, eax
mov eax, dword [ebp - 0xb0]
jb 0x10020620
mov edx, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xac]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd0], edx
jmp 0x10020696
xor edx, edx
mov eax, edx
mov dword [ebp - 0xb0], edx
cmp eax, edi
je 0x10020793
nop word [eax + eax]
mov eax, dword [eax]
mov dword [ebp - 0xb4], eax
mov esi, dword [eax + 0x24]
mov edx, esi
shr edx, 0x1d
mov eax, esi
shr eax, 0x1e
and edx, 1
and eax, 1
mov ecx, esi
shr ecx, 0x1f
lea eax, [eax + edx*2]
lea eax, [ecx + eax*2]
mov eax, dword [eax*4 + 0x10098738]
mov ecx, eax
or ecx, 0x200
test esi, 0x4000000
cmove ecx, eax
cmp ecx, 4
je 0x10020770
cmp ecx, 0x40
je 0x10020770
cmp ecx, 0x80
je 0x10020770
mov ecx, dword [ebp - 0xb4]
xor edx, edx
or eax, 0xffffffff
mov esi, dword [ecx + 0xc]
add esi, dword [ebp - 0xcc]
cmp dword [ecx + 8], edx
jbe 0x10020741
mov edi, dword [ebp - 0xb8]
nop
movzx ecx, byte [edx + esi]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [edi + ecx*4]
mov ecx, dword [ebp - 0xb4]
cmp edx, dword [ecx + 8]
jb 0x10020720
mov edi, dword [ebp - 0xc0]
mov esi, dword [ebp - 0xac]
not eax
mov dword [ebp - 0xa4], eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x1002075f
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x10020776
lea eax, [ebp - 0xa4]
push eax
push ecx
mov ecx, esi
call fcn.1002abd0
jmp 0x10020776
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb0]
add eax, 4
mov dword [ebp - 0xb0], eax
cmp eax, edi
jne 0x100206b0
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x100207f9
mov ecx, dword [ebp - 0xd8]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100207d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100209e2
push ecx
push edx
call fcn.1006291d
add esp, 8
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x400]
mov edi, dword [eax + 0x404]
mov eax, dword [esi + 4]
sub edi, ecx
mov esi, dword [esi]
sub eax, esi
sar edi, 2
sar eax, 2
cmp edi, eax
jne 0x100209e7
xor edx, edx
test edi, edi
je 0x1002083f
sub esi, ecx
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi + ecx]
jne 0x1002085f
inc edx
add ecx, 4
cmp edx, edi
jb 0x10020830
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.100623cb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov dword [ebp - 0xa8], 0xf56fc77c
mov dword [ebp - 0xa4], 0x32ed0111
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa8], 0xd994e0a0
mov dword [ebp - 0xa4], 0x37304057
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xa8], 0x5c059901
mov dword [ebp - 0xa4], 0xe636cabc
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0xa8], 0x80965bea
mov dword [ebp - 0xa4], 0xbf2bb09f
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xa8], 0x810ca22f
mov dword [ebp - 0xa4], 0x12836e78
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0xa8], 0xf9e781c8
mov dword [ebp - 0xa4], 0x59552535
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0xa8], 0x3d6dfa21
mov dword [ebp - 0xa4], 0x8253add2
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0xa8], 0x80965bea
mov dword [ebp - 0xa4], 0xbf2bb09f
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0xe4]
vmovdqu ymm0, ymmword [ebp - 0x60]
vpxor ymm0, ymm0, ymmword [ebp - 0xa0]
vmovdqa ymmword [ebp - 0xa0], ymm0
push eax
vzeroupper
call fcn.10010180
push 0x100a079c
lea eax, [ebp - 0xe4]
push eax
call fcn.10064d1f
call fcn.1006ed2a
mov dword [ebp - 0xa8], 0xf56fc77c
mov dword [ebp - 0xa4], 0x61ed0111
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0xa8], 0x9c95e0e8
mov dword [ebp - 0xa4], 0x2d3a4b15
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0xa8], 0x481c9f01
mov dword [ebp - 0xa4], 0x8253c1b3
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0xa8], 0x80965bea
mov dword [ebp - 0xa4], 0xbf2bb09f
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0xa8], 0x810ca22f
mov dword [ebp - 0xa4], 0x12836e78
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0xa8], 0xf9e781c8
mov dword [ebp - 0xa4], 0x59552535
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0xa8], 0x3d6dfa21
mov dword [ebp - 0xa4], 0x8253add2
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0xa8], 0x80965bea
mov dword [ebp - 0xa4], 0xbf2bb09f
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0xc4]
vmovdqu ymm0, ymmword [ebp - 0x60]
vpxor ymm0, ymm0, ymmword [ebp - 0x80]
vmovdqa ymmword [ebp - 0x80], ymm0
push eax
vzeroupper
call fcn.10010180
push 0x100a079c
lea eax, [ebp - 0xc4]
push eax
call fcn.10064d1f
int3