Function at 0x4030c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x218
mov eax, dword [0x438c04]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, dword [esp + 0x238]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
mov byte [esp + ecx + 0x24], cl
add ecx, 1
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x123], al
jl 0x4030f1
xor edx, edx
mov al, byte [esp + edx + 0x24]
movzx ecx, byte [esp + edx + 0x124]
movzx edi, al
add ecx, esi
add edi, ecx
mov esi, edi
and esi, 0x800000ff
jns 0x403136
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x24]
mov byte [esp + esi + 0x24], al
mov byte [esp + edx + 0x24], cl
add edx, 1
cmp edx, 0x100
jl 0x403111
mov eax, dword [esp + 0x230]
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
jle 0x403637
mov ecx, dword [esp + 0x22c]
sub ecx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov bl, 6
nop
mov edx, dword [esp + 0x14]
add edx, 1
mov eax, edx
and eax, 0x800000ff
jns 0x403197
dec eax
or eax, 0xffffff00
inc eax
lea esi, [esp + eax + 0x24]
mov dword [esp + 0x14], eax
movzx eax, byte [esi]
add eax, dword [esp + 0x1c]
and eax, 0x800000ff
jns 0x4031b4
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi]
lea edi, [esp + eax + 0x24]
mov dword [esp + 0x1c], eax
mov al, byte [edi]
mov byte [edi], cl
mov byte [esi], al
movzx edx, byte [edi]
movzx ebp, al
add ebp, edx
and ebp, 0x800000ff
jns 0x4031dc
dec ebp
or ebp, 0xffffff00
inc ebp
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor edi, edi
test byte [eax + 8], bl
jne 0x40321e
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40321e
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40323f
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x403237
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x403280
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x403280
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4032a1
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x403299
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x4032e2
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4032e2
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403303
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x4032fb
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x403344
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x403344
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403365
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x40335d
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x4033a6
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4033a6
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4033c7
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x4033bf
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x403408
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x403408
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403429
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x403421
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x40346a
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40346a
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40348b
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x403483
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x4034cc
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4034cc
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4034ed
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x4034e5
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x40352e
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40352e
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40354f
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x403547
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x403590
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x403590
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4035b1
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x4035a9
or eax, 4
push 0
push eax
call fcn.00402550
push str.cI96Mbrsnpk59brU5ha2wNF1Q9BsyqifKgK1xtu2CFJRBaceN93mYi6rzGyNqm5UT688hTbou6z3o
push 0x43cc98
call fcn.00402ac0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402cd0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x4035f2
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4035f2
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x403613
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x40360b
or eax, 4
push 0
push eax
call fcn.00402550
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov cl, byte [edx + eax]
xor cl, byte [esp + ebp + 0x24]
add eax, 1
sub dword [esp + 0x10], 1
mov byte [eax - 1], cl
mov dword [esp + 0x18], eax
jne 0x403180
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414d9d
add esp, 0x218
ret