Function at 0x4207f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov ecx, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x420810
cmp eax, 0xffffffdd
jge 0x420827
mov eax, 0xffffffff
jmp 0x42082a
add eax, 0x22
push eax
call fcn.0040ca10
add esp, 4
mov esi, eax
mov dword [esp + 8], 0xf76909ac
mov dword [esp + 0xc], 0xf361f568
mov dword [esp + 0x10], 0xff5ff16e
mov dword [esp + 0x14], 0xfb57fd57
mov dword [esp + 0x18], 0xe74af95c
mov dword [esp + 0x1c], 0xe348e549
mov dword [esp + 0x20], 0xef73e141
mov dword [esp + 0x24], 0xeb76ed78
mov word [esp + 0x28], 0xe9e8
mov dword [esp + 0x2a], 0
mov byte [esp + 0x2e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x26
ja 0x4208ea
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0xf2edd9fe
and eax, 0xf2edd9fe
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
add al, 0xa
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x27
jb 0x4208a0
mov ecx, dword [ebx + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x420911
add ecx, 2
mov eax, esi
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420900
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x420941
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420930
mov word [eax], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], eax
mov dword [esp + 8], 0x37c539cd
mov dword [esp + 0xc], 0x330735b2
mov dword [esp + 0x10], 0xcf4631cd
mov dword [esp + 0x14], 0xcb37cd40
mov dword [esp + 0x18], 0xc749c93a
mov dword [esp + 0x1c], 0xc331c53d
mov dword [esp + 0x20], 0xdfe9c132
mov dword [esp + 0x24], 0xdbedddeb
mov dword [esp + 0x28], 0xd734d9ee
mov dword [esp + 0x2c], 0xd35dd559
mov dword [esp + 0x30], 0xef60d12d
mov dword [esp + 0x34], 0xeb19ed33
mov dword [esp + 0x38], 0xe76ae91a
mov dword [esp + 0x3c], 0xe36ae519
mov dword [esp + 0x40], 0xff27e16c
mov dword [esp + 0x44], 0xfb3ffd00
mov dword [esp + 0x48], 0xf7f6f9ce
mov byte [esp + 0x4c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x44
ja 0x420a3e
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + ecx]
add edx, 0x8f72baf6
add eax, 0x8f72baf6
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
add al, 0x32
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x45
jb 0x420a00
lea eax, [esp + 0x50]
lea ecx, [esp + 8]
push eax
push 0x420cf0
push ecx
push esi
call fcn.00421630
add esp, 0x10
jmp dword [0x44b534]