Function at 0x418910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 0x10], 0x53ed51f2
mov dword [esp + 0x14], 0x5fed5dee
mov dword [esp + 0x18], 0x5bfb59ec
mov dword [esp + 0x1c], 0xa70ba5f3
mov dword [esp + 0x20], 0xa30ca102
mov dword [esp + 0x24], 0xaf02ad0d
mov dword [esp + 0x28], 0xab17a90d
mov dword [esp + 0x2c], 0xb708b51e
lea eax, [esp + 0x30]
mov word [esp + 0x30], 0xb1b6
mov dword [esp + 0x32], 0
mov dword [esp + 0x36], 0
mov dword [esp + 0x3a], 0
mov dword [esp + 0x3e], 0
mov dword [esp + 0x42], 0
mov dword [esp + 0x46], 0
mov dword [esp + 0x74], 0
mov ecx, dword [esp + 0x74]
cmp ecx, 0x39
ja 0x4189ea
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
movzx esi, byte [esp + ecx + 0x10]
lea ecx, [edx + esi]
add ecx, 0x89df96f3
add edx, 0x89df96f3
and edx, esi
add edx, edx
sub ecx, edx
add cl, 0x5b
mov edx, dword [esp + 0x74]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
cmp ecx, 0x3a
jb 0x4189b0
mov ebx, dword [ebp + 8]
lea edi, [esp + 0x74]
lea edx, [esp + 0x10]
mov ecx, 8
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x94]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418a20
cmp eax, 0xffffffdd
jge 0x418a37
mov eax, 0xffffffff
jmp 0x418a3a
add eax, 0x22
push eax
call fcn.00436a00
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x418a71
add edi, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x418a60
mov word [eax], 0
movzx ecx, word [esp + 0x74]
test cx, cx
je 0x418aa1
lea edx, [esp + 0x76]
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 0x418a90
mov word [eax], 0
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xa8], eax
mov dword [esp + 0x10], 0x9b0d990d
mov dword [esp + 0x14], 0x9743951e
mov dword [esp + 0x18], 0x931a910d
mov dword [esp + 0x1c], 0x8f138d00
mov dword [esp + 0x20], 0x8b19891e
mov dword [esp + 0x24], 0x8711851d
mov dword [esp + 0x28], 0x83598116
mov dword [esp + 0x2c], 0xbf65bd67
mov dword [esp + 0x30], 0xbb5cb962
mov dword [esp + 0x34], 0xb725b539
mov dword [esp + 0x38], 0xb320b12d
mov dword [esp + 0x3c], 0xaf39ad6f
mov dword [esp + 0x40], 0xab26a93e
mov dword [esp + 0x44], 0xa72ea539
mov dword [esp + 0x48], 0xa35ba12c
mov dword [esp + 0x4c], 0x5f9b5dc0
mov dword [esp + 0x50], 0x5b5a5982
mov byte [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x54
ja 0x418bc6
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x269ec4]
mov edi, ecx
not edi
or edi, edx
and edx, ecx
add edx, edi
sub eax, edx
add al, 0x67
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x55
jb 0x418b90
lea eax, [esp + 0x98]
push eax
push 0x418300
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004195c0
add esp, 0x10
mov ebx, eax
mov eax, dword [0x442a40]
mov ecx, 0x8475f737
xor ecx, dword [0x442a48]
add eax, ecx
inc eax
jmp eax