Function at 0x40ad50
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
cmp dword [ecx + 0x20], 0
je 0x40b1b1
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.00406960
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 8], eax
movzx eax, byte [esi]
imul ecx, eax, 0xcd
shr ecx, 0xa
and ecx, 0xfffffffe
lea ecx, [ecx + ecx*4]
sub al, cl
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + 2], al
mov byte [esp + 3], 0
mov dword [esp + 0xc], edx
lea eax, [edx + 0x400]
push eax
call fcn.004097b0
add esp, 4
mov edi, eax
mov dword [esp + 0x74], 0xe7ebd6e8
mov byte [esp + 0x78], 0x44
mov dword [esp + 0x79], 0
mov dword [esp + 0x7c], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x74]
xor cl, al
xor cl, 0xf0
add cl, 0x50
mov byte [esp + eax + 0x74], cl
inc eax
cmp eax, 0xc
jne 0x40ade0
lea ebx, [esp + 0x74]
mov ecx, esi
push 0x44bf84
push ebx
push edi
call fcn.0040a5d0
mov dword [esp + 0x74], 0x73ded8c0
mov word [esp + 0x78], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x94
xor cl, byte [esp + eax + 0x74]
add cl, 0x1c
mov byte [esp + eax + 0x74], cl
inc eax
cmp eax, 6
jne 0x40ae20
lea eax, [esp + 2]
mov ecx, esi
push eax
push ebx
mov dword [esp + 0xc], edi
push edi
call fcn.0040a5d0
mov ebp, dword [str.HbVgyI__terfd]
mov dword [esp + 0x74], 0x59bea4b8
mov dword [esp + 0x78], 0
mov ecx, 0xf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ecx + 0x65]
mov edx, eax
and edx, ecx
add dl, dl
sub al, dl
movzx eax, al
add eax, ecx
add al, 0xb5
mov byte [esp + ecx + 0x65], al
inc ecx
cmp ecx, 0x17
jne 0x40ae70
mov dword [esp + 0x10], esi
mov ecx, esi
push ebp
push ebx
push dword [esp + 0xc]
call fcn.0040a5d0
mov dword [esp + 0x74], 0x55606819
mov dword [esp + 0x78], 0x20555c51
mov dword [esp + 0x7c], 0x5e5f5421
mov byte [esp + 0x80], 0xb8
mov dword [esp + 0x81], 0
mov dword [esp + 0x84], 0
mov esi, 0x1d
mov edi, 0x22
nop
movzx ebp, byte [esp + esi + 0x57]
mov edx, edi
or edx, ebp
mov ecx, edi
and ecx, 3
mov eax, esi
and eax, 0x3c
or eax, ecx
xor eax, 0x3c
and eax, ebp
not edx
or edx, eax
add dl, 0xaf
mov byte [esp + esi + 0x57], dl
inc esi
dec edi
cmp esi, 0x31
jne 0x40aee0
mov dword [esp + 0x14], 0x41daeae7
mov word [esp + 0x18], 0
xor eax, eax
nop
nop
nop
mov ecx, eax
add cl, 0xf1
xor cl, byte [esp + eax + 0x14]
add cl, 0x4b
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 6
jne 0x40af20
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, edi
push ebx
push eax
mov ebp, dword [esp + 0xc]
push ebp
call fcn.0040a5d0
mov dword [esp + 0x74], 0xdec6d8de
mov byte [esp + 0x78], 0x7c
mov dword [esp + 0x79], 0
mov word [esp + 0x7d], 0
mov eax, 0x7bd8a294
nop
nop
nop
movzx ecx, byte [esp + eax - 0x7bd8a220]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
lea edx, [eax + ecx]
add ecx, eax
add ecx, 0x1b
not edx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + eax - 0x7bd8a220], cl
inc eax
cmp eax, 0x7bd8a29f
jne 0x40af70
mov ecx, edi
push dword [esp + 0xc]
push dword [esp + 0xc]
push ebx
push ebp
call fcn.0040a8c0
mov dword [esp + 0x14], 0x19ab1bd1
mov dword [esp + 0x18], 0xe55ae7aa
mov dword [esp + 0x1c], 0xe150e34f
mov dword [esp + 0x20], 0xed1def5c
mov dword [esp + 0x24], 0xe96deb30
mov dword [esp + 0x28], 0xf55df758
mov dword [esp + 0x2c], 0xf112f332
mov dword [esp + 0x30], 0xfd45ff43
mov dword [esp + 0x34], 0xf946fb48
mov dword [esp + 0x38], 0xc576c74f
mov dword [esp + 0x3c], 0xc17cc36b
mov dword [esp + 0x40], 0xcd3fcf7c
mov dword [esp + 0x44], 0xc97bcb66
mov dword [esp + 0x48], 0xd565d776
mov dword [esp + 0x4c], 0xd17ed327
mov dword [esp + 0x50], 0xdd62df7f
mov dword [esp + 0x54], 0xd91fdb73
mov dword [esp + 0x58], 0xa508a738
mov dword [esp + 0x5c], 0xa119a315
mov dword [esp + 0x60], 0xad02af12
mov dword [esp + 0x64], 0xa914ab03
mov dword [esp + 0x68], 0xb575b72f
mov word [esp + 0x6c], 0xb3b4
mov byte [esp + 0x70], 0
mov word [esp + 0x6e], 0
mov eax, 0xa37ae57b
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x5c851a99]
xor ecx, eax
mov edx, ecx
and edx, 0x69
xor ecx, 0x69
lea ecx, [ecx + edx*2]
add cl, 0x30
mov byte [esp + eax + 0x5c851a99], cl
inc eax
cmp eax, 0xa37ae5d8
jne 0x40b080
movzx eax, word [esp + 0x14]
test ax, ax
je 0x40b0d1
lea ebx, [esp + 0x74]
lea ecx, [esp + 0x16]
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0c0
mov word [ebx], 0
movzx ecx, byte [edi + 0x60]
test cl, cl
je 0x40b101
lea eax, [edi + 0x61]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ecx, cl
mov word [ebx], cx
add ebx, 2
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40b0f0
mov dword [ebx], 0xa000d
mov word [ebx + 4], 0
mov eax, dword [edi + 0x80]
mov dword [esp + 0x14], 0x1777194b
mov dword [esp + 0x18], 0x138b1584
mov word [esp + 0x1c], 0x1110
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov ecx, 6
mov edx, 0xf9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, edx
and esi, 0x93
mov ebx, ecx
and ebx, 0xc
or ebx, esi
xor bl, byte [esp + ecx + 0xe]
xor bl, 0x93
add bl, 0xe2
mov byte [esp + ecx + 0xe], bl
inc ecx
dec edx
cmp ecx, 0x16
jne 0x40b150
lea ecx, [esp + 0x74]
push 0x493e0
push eax
push ebp
push 0
push 0
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0040d8b0
add esp, 0x1c
mov ebx, eax
push ebp
call fcn.004097c0
add esp, 4
mov eax, dword [edi + 0x80]
add dword [edi + 4], eax
mov dword [edi + 0x80], 0
jmp 0x40b1b3
mov bl, 1
mov eax, ebx
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret