Function at 0x42d0c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x463b5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x34]
mov eax, dword [eax + 0x4c]
test eax, eax
mov dword [esp + 0x2c], ebp
jne 0x42d104
pop ebp
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
add esp, 0x170
ret 8
push ebx
mov ebx, dword [esp + 0x17c]
lea edx, [esp + 0x18]
push edx
lea ecx, [ebp + 0x84]
push ebx
mov dword [esp + 0x2c], ecx
call fcn.00437510
test eax, eax
je 0x42d6a3
mov edx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x188]
xor eax, eax
mov dword [edi], eax
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
push eax
mov eax, edi
push eax
call dword [0x466568]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42d16d
push 0x80070057
call fcn.00401190
movzx eax, byte [eax]
movzx edx, al
test byte [edx + 0x488241], 4
je 0x42d18b
cmp ecx, 1
jge 0x42d18b
push 0x80070057
call fcn.00401190
lea ecx, [esp + 0x3c]
call fcn.0042bfe0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 0
push eax
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18c], 0
call fcn.0042b810
test eax, eax
lea ecx, [esp + 0x3c]
jne 0x42d3f2
push eax
push 0xffffffffffffffff
call fcn.0042b540
mov esi, dword [ebp + 0x94]
mov edi, dword [ebp + 0x98]
lea edx, [esp + 0x30]
push edx
push ebx
mov ecx, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edi
call fcn.0042cf50
mov ecx, eax
call fcn.00437510
test eax, eax
je 0x42d3ee
lea ecx, [esp + 0xa4]
call fcn.0042bfe0
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x180], 1
call fcn.0042b3f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0
push 0
push eax
push ecx
lea ecx, [esp + 0xb4]
call fcn.0042b810
test eax, eax
lea ecx, [esp + 0xa4]
jne 0x42d3e1
push eax
push 0xffffffffffffffff
call fcn.0042b540
push ebx
push 0
push 0
lea ecx, [esp + 0xb0]
call fcn.0042b400
push eax
mov ecx, ebp
call fcn.0042cf50
mov ecx, eax
call fcn.00437620
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
sar eax, 1
sar edx, 1
cmp eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jge 0x42d299
mov dword [esp + 0x1c], eax
cmp edx, ebx
jge 0x42d2a1
mov dword [esp + 0x14], edx
movzx ebx, byte [esp + 0x12]
mov eax, dword [esp + 0x14]
mov edx, esi
and edx, 0xff
shl edx, 0x10
and esi, 0xff00
add ebx, edx
add ebx, esi
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x42d38b
jmp 0x42d2d3
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
call fcn.0042b3d0
mov edi, dword [eax + 8]
lea ecx, [esp + 0x3c]
imul edi, esi
call fcn.00435220
lea ecx, [esp + 0xa4]
lea edi, [eax + edi*4]
call fcn.0042b3d0
mov eax, dword [eax + 8]
imul eax, esi
lea ecx, [esp + 0xa4]
mov dword [esp + 0x28], eax
call fcn.00435220
mov ecx, dword [esp + 0x28]
lea esi, [eax + ecx*8]
lea ecx, [esp + 0xa4]
call fcn.0042b3d0
mov edx, dword [esp + 0x1c]
test edx, edx
mov eax, dword [eax + 8]
lea ecx, [esi + eax*4]
jle 0x42d372
mov eax, dword [ecx + 4]
mov ebp, dword [esi + 4]
and eax, 0xff
and ebp, 0xff
add eax, ebp
mov ebp, dword [ecx]
and ebp, 0xff
add eax, ebp
mov ebp, dword [esi]
and ebp, 0xff
add eax, ebp
and eax, 0xfffffffc
shl eax, 0x16
add eax, ebx
mov dword [edi], eax
add edi, 4
add esi, 8
add ecx, 8
dec edx
jne 0x42d331
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x42d2cf
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
je 0x42d64d
lea ecx, [esp + 0x10c]
call fcn.0042bfe0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
lea ecx, [esp + 0x11c]
mov byte [esp + 0x18c], 2
call fcn.0042b810
test eax, eax
je 0x42d409
lea ecx, [esp + 0x10c]
mov byte [esp + 0x17c], 1
call fcn.0042be30
lea ecx, [esp + 0xa4]
mov byte [esp + 0x17c], 0
call fcn.0042be30
lea ecx, [esp + 0x3c]
mov dword [esp + 0x17c], 0xffffffff
call fcn.0042be30
xor eax, eax
jmp 0x42d6a1
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x30]
mov esi, dword [eax + 0x34]
movzx ebx, byte [esp + 0x1a]
mov eax, edi
and eax, 0xff
shl eax, 0x10
add ebx, eax
mov eax, dword [esp + 0x14]
and edi, 0xff00
sub eax, esi
xor ebp, ebp
add ebx, edi
test eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
jle 0x42d515
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x42d460
mov esi, dword [esp + 0x2c]
lea esp, [esp]
lea ecx, [esp + 0x10c]
call fcn.0042b3d0
lea ecx, [esi + ebp]
mov esi, ecx
imul esi, dword [eax + 8]
add esi, dword [esp + 0x28]
lea ecx, [esp + 0x10c]
call fcn.00435220
lea ecx, [esp + 0xa4]
lea edi, [eax + esi*4]
call fcn.0042b3d0
mov esi, dword [eax + 8]
lea ecx, [esp + 0xa4]
imul esi, ebp
call fcn.00435220
lea ecx, [esp + 0xa4]
lea esi, [eax + esi*8]
call fcn.0042b3d0
mov edx, dword [eax + 8]
lea ecx, [esi + edx*4]
mov edx, dword [esp + 0x1c]
test edx, edx
jle 0x42d504
mov eax, dword [ecx + 4]
mov ebp, dword [esi + 4]
and eax, 0xff
and ebp, 0xff
add eax, ebp
mov ebp, dword [ecx]
and ebp, 0xff
add eax, ebp
mov ebp, dword [esi]
and ebp, 0xff
add eax, ebp
and eax, 0xfffffffc
shl eax, 0x16
add eax, ebx
mov dword [edi], eax
add edi, 4
add esi, 8
add ecx, 8
dec edx
jne 0x42d4c3
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
mov dword [esp + 0x18], ebp
jl 0x42d458
lea ecx, [esp + 0x3c]
call fcn.00435220
lea ecx, [esp + 0x10c]
mov dword [esp + 0x10], eax
call fcn.00435220
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], eax
call fcn.0042b3d0
mov esi, dword [eax + 0xc]
lea ecx, [esp + 0x3c]
call fcn.0042b3d0
mov eax, dword [eax + 8]
imul eax, esi
test eax, eax
jle 0x42d635
mov dword [esp + 0x18], eax
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov ebx, dword [edx]
mov edi, ecx
shr edi, 0x18
mov esi, ebx
shr esi, 0x18
mov eax, 0xff
sub eax, edi
imul esi, eax
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
lea esi, [edi + ebp]
test esi, esi
je 0x42d60d
mov eax, ebx
and eax, 0xff0000
imul eax, ebp
mov edx, ecx
and edx, 0xff0000
imul edx, edi
add eax, edx
xor edx, edx
div esi
mov edx, ecx
and edx, 0xff00
imul edx, edi
and ecx, 0xff
imul ecx, edi
mov ebx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
and eax, 0xff00
imul eax, ebp
add eax, edx
xor edx, edx
div esi
and ebx, 0xff0000
xor edx, edx
and eax, 0xff00
add ebx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
and eax, 0xff
imul eax, ebp
add eax, ecx
div esi
mov ecx, dword [esp + 0x10]
shl esi, 0x18
add ebx, eax
add esi, ebx
mov dword [ecx], esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x42d560
lea ecx, [esp + 0x10c]
mov byte [esp + 0x17c], 1
call fcn.0042be30
mov ebp, dword [esp + 0x38]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push 0
push edx
push eax
lea ecx, [esp + 0x48]
mov esi, 1
push ecx
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
call fcn.0042b410
lea ecx, [esp + 0xa4]
mov byte [esp + 0x17c], 0
call fcn.0042be30
lea ecx, [esp + 0x3c]
mov dword [esp + 0x17c], 0xffffffff
call fcn.0042be30
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x16c]
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x170
ret 8