Function at 0x410b20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5fcff4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov dword [ebp - 0x108], 0xcaf62cc8
lea edx, [ebp - 0x108]
mov dword [ebp - 0x118], eax
lea edi, [ebp - 8]
mov dword [ebp - 0x104], 0x8d841597
xor esi, esi
mov dword [ebp - 0x100], 0x22dd570e
xor ecx, ecx
mov dword [ebp - 0xfc], 0x2ff21976
mov dword [ebp - 0xf8], 0x47b566f1
mov dword [ebp - 0xf4], 0xe50793f0
mov dword [ebp - 0xf0], 0x3ad12b0d
mov dword [ebp - 0xec], 0x4e6f048b
mov dword [ebp - 0xe8], 0xf5eaf848
mov dword [ebp - 0xe4], 0xbd82d6ae
mov dword [ebp - 0xe0], 0x520cd903
mov dword [ebp - 0xdc], 0x87b4686d
mov dword [ebp - 0xd8], 0xdccdf33e
mov dword [ebp - 0xd4], 0x81a355f7
mov dword [ebp - 0xd0], 0x73c0d2fc
mov dword [ebp - 0xcc], 0x259ade62
mov dword [ebp - 0xc8], 0xd0065b09
mov dword [ebp - 0xc4], 0x9d208029
mov dword [ebp - 0xc0], 0x426c1fc9
mov dword [ebp - 0xbc], 0x54c7efbb
mov dword [ebp - 0xb8], 0x43dfe272
mov dword [ebp - 0xb4], 0x5ca75a64
mov dword [ebp - 0xb0], 0x18c15f92
mov dword [ebp - 0xac], 0x899544b8
mov dword [ebp - 0xa8], 0x8eb19970
mov dword [ebp - 0xa4], 0x4190cc0a
mov dword [ebp - 0xa0], 0x2d4a5e85
mov dword [ebp - 0x9c], 0xd821129c
mov dword [ebp - 0x98], 0x33774d8f
mov dword [ebp - 0x94], 0xb245a578
mov dword [ebp - 0x90], 0x1be3f9c2
mov dword [ebp - 0x8c], 0x86a2d508
mov dword [ebp - 0x88], 0xe86a980b
mov dword [ebp - 0x84], 0x31650fbe
mov dword [ebp - 0x80], 0xfd834675
mov dword [ebp - 0x7c], 0xed94c526
mov dword [ebp - 0x78], 0xa834b7ee
mov dword [ebp - 0x74], 0x362e8a1e
mov dword [ebp - 0x70], 0x2a51d337
mov dword [ebp - 0x6c], 0xd735e6fe
mov dword [ebp - 0x68], 0xb6dbebc6
mov dword [ebp - 0x64], 0xe4a4a6cb
mov dword [ebp - 0x60], 0x965dbfce
mov dword [ebp - 0x5c], 0x133b2816
mov dword [ebp - 0x58], 0xb3b06960
mov dword [ebp - 0x54], 0xd41102fb
mov dword [ebp - 0x50], 0xa9743224
mov dword [ebp - 0x4c], 0xe7ad6327
mov dword [ebp - 0x48], 0x39143c4c
mov dword [ebp - 0x44], 0x1d38af00
mov dword [ebp - 0x40], 0x106b4b8c
mov dword [ebp - 0x3c], 0xe13fda53
mov dword [ebp - 0x38], 0xe9a050ff
mov dword [ebp - 0x34], 0x79eccf71
mov dword [ebp - 0x30], 0x7f0188fa
mov dword [ebp - 0x2c], 0x91e06740
mov dword [ebp - 0x28], 0x7c9b9e6e
mov dword [ebp - 0x24], 0xbc581cf4
mov dword [ebp - 0x20], 0xc4a19f23
mov dword [ebp - 0x1c], 0xba595649
mov dword [ebp - 0x18], 0xaac34f7a
mov dword [ebp - 0x14], 0x7d7b7e30
mov dword [ebp - 0x10], 0x561171a
mov dword [ebp - 0xc], 0xacabb93d
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], ecx
sub edi, edx
je 0x410e05
cmp edi, 0x7fffffff
ja 0x410f8f
cmp edi, 0x1000
jb 0x410dce
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x410f94
push eax
call fcn.00417cca
add esp, 4
test eax, eax
je 0x410f99
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x410dd9
push edi
call fcn.00417cca
add esp, 4
mov esi, eax
lea eax, [esi + edi]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x108]
push edi
push eax
push esi
call fcn.005641f0
mov ecx, dword [ebp - 0x110]
add esp, 0xc
mov eax, dword [ebp - 0x118]
lea edi, [eax + 0x3014]
lea eax, [ebp - 0x124]
cmp edi, eax
je 0x410e60
mov eax, dword [edi]
test eax, eax
je 0x410e48
mov ecx, dword [edi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x410e3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f99
mov eax, edx
push ecx
push eax
call fcn.00561389
add esp, 8
mov eax, dword [ebp - 0x114]
mov dword [edi], esi
xor esi, esi
mov dword [edi + 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x110]
mov dword [edi + 8], eax
test esi, esi
je 0x410e8e
sub ecx, esi
mov eax, esi
cmp ecx, 0x1000
jb 0x410e84
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f99
push ecx
push esi
call fcn.00561389
add esp, 8
xor eax, eax
mov dword [ebp - 0x110], eax
nop word [eax + eax]
mov ecx, dword [ebp - 0x118]
lea esi, [eax + 1]
xor edx, edx
mov ecx, dword [ecx + 0x3010]
mov eax, ecx
div esi
add edx, ecx
mov ecx, dword [edi]
movzx edx, dl
mov al, byte [edx + ecx]
mov byte [ebp - 0x109], al
mov eax, dword [ebp - 0x110]
movzx eax, byte [ecx + eax]
mov byte [edx + ecx], al
mov eax, dword [edi]
mov edx, dword [ebp - 0x110]
mov cl, byte [ebp - 0x109]
mov dword [ebp - 0x110], esi
mov byte [edx + eax], cl
mov eax, esi
cmp eax, 0x100
jb 0x410ea0
mov esi, dword [ebp - 0x118]
add esi, 0x3020
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov dword [ebp - 0x114], eax
cmp ecx, 0x100
jbe 0x410f1d
lea eax, [edx + 0x100]
jmp 0x410f63
jae 0x410f66
mov eax, dword [esi + 8]
sub eax, edx
cmp eax, 0x100
jae 0x410f37
sub esp, 8
mov ecx, esi
call fcn.00410fa0
jmp 0x410f66
mov esi, 0x100
sub esi, ecx
push esi
push 0
push dword [ebp - 0x114]
call fcn.00564770
mov eax, dword [ebp - 0x114]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x118]
add esi, 0x3020
mov dword [esi + 4], eax
xor edx, edx
mov eax, dword [edi]
movzx ecx, byte [eax + edx]
mov eax, dword [esi]
mov byte [ecx + eax], dl
inc edx
cmp edx, 0x100
jb 0x410f68
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00560f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00406da0
call fcn.00407360
call fcn.00567a6f
int3