Function at 0x41a400
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 edi, dword [esp + 0x78]
mov ecx, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x41a420
cmp eax, 0xffffffdd
jge 0x41a437
mov eax, 0xffffffff
jmp 0x41a43a
add eax, 0x22
push eax
call fcn.00408680
add esp, 4
mov esi, eax
mov dword [esp + 8], 0x77f979dc
mov dword [esp + 0xc], 0x73c175f8
mov dword [esp + 0x10], 0x4fef71fe
mov dword [esp + 0x14], 0x4bf74df7
mov dword [esp + 0x18], 0x47fa49ec
mov dword [esp + 0x1c], 0x43f845f9
mov dword [esp + 0x20], 0x5fd341e1
mov dword [esp + 0x24], 0x5bd65de8
mov dword [esp + 0x28], 0x5958
mov byte [esp + 0x2c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x24
ja 0x41a4ef
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0x4d67a16]
mov ebp, edx
and ebp, ecx
xor edx, ecx
lea edx, [edx + ebp*2]
add eax, 0x16
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x50]
add al, 0x92
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x25
jb 0x41a4b0
mov ecx, dword [ebx + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x41a521
add ecx, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41a510
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41a551
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 0x41a540
mov word [eax], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], eax
mov dword [esp + 8], 0x691b6b17
mov dword [esp + 0xc], 0x6d5d6f16
mov dword [esp + 0x10], 0x710a7307
mov dword [esp + 0x14], 0x751d7704
mov dword [esp + 0x18], 0x790f7b06
mov dword [esp + 0x1c], 0x7d0f7f17
mov dword [esp + 0x20], 0x81af830e
mov dword [esp + 0x24], 0x85ab87ad
mov dword [esp + 0x28], 0x89e88baa
mov dword [esp + 0x2c], 0x8dfb8ff3
mov dword [esp + 0x30], 0x91e493e7
mov dword [esp + 0x34], 0x95e797d5
mov dword [esp + 0x38], 0x99ee9be6
mov dword [esp + 0x3c], 0x9de69ff3
mov dword [esp + 0x40], 0xa1eda3e8
mov dword [esp + 0x44], 0xa5e5a7c4
mov dword [esp + 0x48], 0xa9aaab8a
mov byte [esp + 0x4c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x44
ja 0x41a664
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0x18620567]
lea edi, [eax + ecx]
add edi, 0x18620567
add eax, 0x67
or eax, edx
and eax, ecx
add eax, eax
sub edi, eax
mov dword [esp], edi
mov eax, dword [esp]
add al, 0xfd
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x45
jb 0x41a620
lea eax, [esp + 0x50]
lea ecx, [esp + 8]
push eax
push 0x41a930
push ecx
push esi
call fcn.0041b3b0
add esp, 0x10
jmp dword [0x446568]