Function at 0x4a35f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x5a8
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x5a4], eax
push ebx
push esi
mov esi, dword [esp + 0x5b4]
push edi
mov edi, ecx
call fcn.004a1880
mov ebx, eax
cmp ebx, esi
je 0x4a3cf7
mov eax, 4
cmp dword [0x5e50c8], eax
jg 0x4a3634
cmp dword [0x6e4488], eax
jne 0x4a365c
test esi, esi
je 0x4a365c
cmp byte [esi + 0x149], 0
je 0x4a365c
mov eax, dword [0x69e254]
cmp byte [eax + 0x14a], 0
jne 0x4a365c
cmp byte [eax + 0x14b], 0
je 0x4a3cf7
push ebp
xor ebp, ebp
mov dword [0x6853f8], esi
cmp ebx, ebp
je 0x4a36af
cmp dword [ebx + 0x120], ebp
je 0x4a36af
push ebx
mov ecx, edi
call fcn.0049eca0
test eax, eax
je 0x4a3685
cmp dword [edi + 0x1b8c], ebp
je 0x4a368e
test byte [ebx + 0x128], 0x20
je 0x4a3696
push 0xe6e6e6
push ebp
jmp 0x4a36a1
push ebx
mov ecx, edi
call fcn.0049ed60
push eax
push 1
mov ecx, ebx
call fcn.0049c9e0
mov ecx, ebx
call fcn.0049cd80
cmp esi, ebp
je 0x4a3ce3
mov eax, dword [edi + 0xb7c]
mov ebx, dword [esi + 0x129]
cmp eax, ebp
je 0x4a36d9
mov ecx, dword [edi + 0x1b80]
xor ebx, 0xda1f20b8
xor ecx, eax
mov dword [ecx], ebx
jmp 0x4a373f
push 4
push 0x3000
push 0x64
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ebx, 0xda1f20b8
mov dword [edi + 0xb7c], eax
mov dword [eax], ebx
mov dword [edi + 0x1b80], ebp
lea ebx, [edi + 0xb80]
call dword [sym.imp.MSVCR90.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
add ebx, 4
lea eax, [edx + ebp - 0x25e0df48]
xor eax, dword [edi + 0xb7c]
inc ebp
mov dword [ebx - 4], eax
add dword [edi + 0x1b80], eax
cmp ebp, 0x400
jl 0x4a3703
mov edx, dword [edi + 0x1b80]
xor dword [edi + 0xb7c], edx
mov ecx, esi
call fcn.0049cd60
mov ecx, dword [0x6939cc]
mov bl, byte [esi + 0x128]
push 0xffffff
call fcn.004657b0
cmp bl, 1
jne 0x4a3838
push esi
mov ecx, 0x68dcf0
call fcn.00509ed0
test eax, eax
jne 0x4a3782
push 0xffff00
push 1
mov ecx, esi
call fcn.0049c9e0
mov ecx, dword [0x6939cc]
test ecx, ecx
je 0x4a3cf6
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
push 0
push 0x2000
mov ecx, 0x6ccf58
call fcn.00554960
test eax, eax
je 0x4a37b7
lea eax, [esi + 0x131]
push eax
jmp 0x4a37ff
push 0x3ff
lea ecx, [esp + 0x1b9]
push 0
push ecx
mov byte [esp + 0x1c0], 0
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 0x129]
lea edx, [esi + 0x131]
push edx
push eax
lea ecx, [esp + 0x1c8]
push str._ID:__d___s
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x1c
lea edx, [esp + 0x1b4]
push edx
mov ecx, dword [0x6939cc]
call fcn.00465760
mov edi, dword [0x6939cc]
lea eax, [esi + 0x4de]
push eax
mov ecx, esi
call fcn.004a6b90
push eax
mov ecx, edi
call fcn.00465a10
mov ecx, dword [0x6939cc]
push 1
call fcn.00465c90
jmp 0x4a3cf6
test bl, bl
jns 0x4a38d2
push 0xaafa64
push 1
mov ecx, esi
call fcn.0049c9e0
mov ecx, dword [0x6939cc]
test ecx, ecx
je 0x4a3cf6
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
lea ecx, [esi + 0x131]
push ecx
mov ecx, dword [0x6939cc]
call fcn.00465760
xor eax, eax
push 0x4e0
mov ecx, 0x6a0f60
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
call fcn.004d6bc0
push eax
add esi, 0x378
push esi
lea edx, [esp + 0x18]
push str._s_s
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
jmp 0x4a3cb4
test bl, 0x20
je 0x4a3bb4
mov eax, 0xffff00
cmp bl, 0x29
jne 0x4a38ea
mov eax, 0xed1b23
push eax
push 1
mov ecx, esi
call fcn.0049c9e0
mov ecx, dword [0x6939cc]
test ecx, ecx
je 0x4a3cf6
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
mov ecx, esi
call fcn.0049c470
push 0xff
lea ecx, [esp + 0xb9]
push 0
push ecx
movzx ebx, ax
mov byte [esp + 0xc0], 0
call sub.MSVCR90.dll_memset
movzx eax, bx
add eax, 0xffffffe0
add esp, 0xc
cmp eax, 9
ja case.default.0x4a3943
jmp dword [eax*4 + 0x4a3d14]
push 0x51f
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
push 0x5acee4
lea edx, [esp + 0xbc]
push edx
jmp 0x4a3b04
push 0x51d
mov ecx, 0x6a0f60
call fcn.004d6bc0
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
lea edx, [esp + 0xb8]
push 0x5acee4
push edx
call edi
mov eax, dword [esi + 0x370]
add eax, 4
push eax
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x48]
push edx
call edi
add esp, 0x18
jmp case.default.0x4a3943
push 0x548
mov ecx, 0x6a0f60
call fcn.004d6bc0
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
lea eax, [esp + 0xb8]
push 0x5acee4
push eax
call edi
mov ecx, dword [esi + 0x370]
add ecx, 4
push ecx
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x48]
push eax
call edi
add esp, 0x18
jmp case.default.0x4a3943
push 0x51e
mov ecx, 0x6a0f60
call fcn.004d6bc0
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
lea ecx, [esp + 0xb8]
push 0x5acee4
push ecx
call edi
mov edx, dword [esi + 0x370]
add edx, 4
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x48]
push ecx
call edi
add esp, 0x18
jmp case.default.0x4a3943
push 0x547
mov ecx, 0x6a0f60
call fcn.004d6bc0
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
lea edx, [esp + 0xb8]
push 0x5acee4
push edx
call edi
mov eax, dword [esi + 0x370]
add eax, 4
push eax
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x48]
push edx
call edi
add esp, 0x18
jmp case.default.0x4a3943
push 0x686
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
jmp case.default.0x4a3943
push 0x687
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
jmp case.default.0x4a3943
push 0x688
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
jmp case.default.0x4a3943
push 0x51f
mov ecx, 0x6a0f60
call fcn.004d6bc0
push eax
push 0x5acee4
lea eax, [esp + 0xbc]
push eax
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
call edi
mov eax, dword [esi + 0x370]
movzx edx, word [eax + 0x52]
lea ecx, [eax + 4]
push ecx
push edx
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x4c]
push ecx
call edi
add esp, 0x1c
push ebx
call fcn.00526940
mov ecx, dword [0x6939cc]
add esp, 4
test eax, eax
jne 0x4a3b74
lea edx, [esp + 0x34]
push edx
call fcn.00465760
mov ecx, dword [0x6939cc]
push esi
call fcn.00465c00
mov ecx, dword [0x6939cc]
push esi
call fcn.00465c50
mov ecx, dword [0x6939cc]
push 0
call fcn.00465c90
jmp 0x4a3cf6
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
mov ecx, dword [0x6939cc]
lea eax, [esp + 0x34]
push eax
call fcn.00465760
mov ecx, dword [esi + 0x370]
add ecx, 4
push ecx
mov ecx, dword [0x6939cc]
call fcn.004657d0
mov ecx, dword [0x6939cc]
push 2
call fcn.00465c90
jmp 0x4a3cf6
test bl, 0x40
je 0x4a3c56
push 0xffff00
push 1
mov ecx, esi
call fcn.0049c9e0
mov ecx, dword [0x6939cc]
test ecx, ecx
je 0x4a3cf6
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
lea ecx, [esi + 0x131]
push ecx
mov ecx, dword [0x6939cc]
call fcn.00465760
mov edx, dword [0x6939cc]
mov dword [edx + 0x348], 0x40
mov eax, dword [esi + 0x358]
mov edi, dword [0x6939cc]
push 0xffffffffffffffff
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
push eax
mov ecx, edi
call fcn.004657f0
mov eax, dword [esi + 0x360]
mov edi, dword [0x6939cc]
push 0xffffffffffffffff
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
mov ecx, esi
call edx
push eax
mov ecx, edi
call fcn.00465900
mov ecx, dword [0x6939cc]
push 0
call fcn.00465c90
jmp 0x4a3cf6
cmp bl, 2
jne 0x4a3cf6
push 0xffff00
push 1
mov ecx, esi
call fcn.0049c9e0
movzx eax, word [esi + 0x354]
cmp ax, 0x1e
je 0x4a3cce
cmp ax, 0x1f
je 0x4a3cce
test ax, ax
je 0x4a3cce
mov ecx, dword [0x6939cc]
test ecx, ecx
je 0x4a3cf6
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
mov ecx, dword [0x6939cc]
lea eax, [esi + 0x131]
push eax
call fcn.00465760
mov ecx, dword [esi + 0x42c]
add ecx, 2
push ecx
mov ecx, dword [0x6939cc]
call fcn.004657d0
mov ecx, dword [0x6939cc]
push 2
call fcn.00465c90
jmp 0x4a3cf6
mov ecx, dword [0x6939cc]
test ecx, ecx
je 0x4a3cf6
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
jmp 0x4a3cf6
push ebp
mov ecx, edi
call fcn.004a1cd0
push ebp
mov ecx, 0x693908
call fcn.0046fbf0
pop ebp
mov ecx, dword [esp + 0x5b0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005997a8
add esp, 0x5a8
ret 4