Function at 0x42a970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov edx, dword [eax + 8]
mov dword [ebp - 4], eax
mov ecx, dword [edi + 8]
sub edx, 1
je 0x42af98
sub edx, 1
je 0x42ae8e
push ebx
sub ecx, 1
je 0x42ac94
sub ecx, 1
je 0x42ab23
cmp byte [ebp + 0x18], 0
je 0x42aaf8
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
shl ecx, 4
add ecx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
cmp eax, ecx
je 0x42aaf1
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
add ecx, ebx
mov esi, dword [eax + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x42aae2
mov eax, edx
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, ebx
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x44]
mov edi, esi
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x10]
mov esi, dword [edx + 0xc]
imul esi, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
imul eax, dword [ebp - 0x18]
add esi, eax
add esi, dword [edx]
cmp dword [ebp - 0x40], 0xfe
jge 0x42aa90
nop dword [eax]
mov eax, ebx
dec edi
cdq
inc ebx
idiv dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
imul eax, edx
movzx edx, byte [eax + ecx]
mov ecx, 0x100
mov eax, dword [ebp - 0x40]
inc eax
imul edx, eax
movzx eax, byte [esi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [esi], cl
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
test edi, edi
jg 0x42aa50
jmp 0x42aac5
mov eax, ebx
dec edi
cdq
inc ebx
idiv dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
imul eax, edx
mov dl, byte [eax + ecx]
mov ecx, 0x100
movzx eax, dl
sub ecx, eax
movzx eax, byte [esi]
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [esi], cl
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
test edi, edi
jg 0x42aa90
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
inc ebx
mov esi, dword [ebp - 0x24]
inc eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
cmp ebx, dword [ebp - 0x20]
jl 0x42aa14
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x28]
jne 0x42a9e3
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043def0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x42ac69
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
shl ecx, 4
add ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x42aaf1
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
add ecx, ebx
mov esi, dword [eax + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jge 0x42ac53
mov eax, edx
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, ebx
sub eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x44]
mov edi, esi
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x10]
mov esi, eax
imul esi, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0xc]
imul eax, ebx
mov ebx, dword [ebp - 0x24]
add esi, eax
add esi, dword [edx]
cmp dword [ebp - 0x40], 0xfe
jge 0x42ac00
nop dword [eax]
mov eax, ebx
dec edi
cdq
inc ebx
idiv dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x14]
imul eax, edx
movzx edx, byte [eax + ecx + 3]
mov ecx, 0x100
mov eax, dword [ebp - 0x40]
inc eax
imul edx, eax
movzx eax, byte [esi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [esi], cl
add esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
test edi, edi
jg 0x42abc0
jmp 0x42ac36
mov eax, ebx
dec edi
cdq
inc ebx
idiv dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x14]
imul eax, edx
mov dl, byte [eax + ecx + 3]
mov ecx, 0x100
movzx eax, dl
sub ecx, eax
movzx eax, byte [esi]
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [esi], cl
add esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
test edi, edi
jg 0x42ac00
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc ebx
mov esi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
cmp ebx, dword [ebp - 0x20]
jl 0x42ab86
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x18]
jne 0x42ab55
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043dd80
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x42ad6f
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
shl ecx, 4
add ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
je 0x42aaf1
nop word [eax + eax]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ecx
cmp ebx, ecx
jge 0x42ad59
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov ecx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
imul eax, esi
imul ecx, ebx
add eax, ecx
mov ecx, dword [ebp - 0x40]
add eax, dword [edi]
cmp ecx, 0xfe
jge 0x42ad40
inc ecx
mov edi, 0x100
imul ebx, ecx, 0xff
shr ebx, 8
sub edi, ebx
nop
movzx ecx, byte [eax]
dec edx
imul ecx, edi
sar ecx, 8
add cl, bl
mov byte [eax], cl
add eax, esi
test edx, edx
jg 0x42ad20
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x48]
jmp 0x42ad4a
mov byte [eax], 0xff
dec edx
add eax, esi
test edx, edx
jg 0x42ad40
mov edx, dword [ebp - 0x20]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x24]
jl 0x42acf0
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x1c]
jne 0x42acd0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
inc eax
shl ecx, 4
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
add ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
je 0x42aaf1
nop
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
add ecx, ebx
mov edx, dword [eax + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jge 0x42ae78
mov eax, esi
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, ebx
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0xc]
imul ecx, eax
mov eax, dword [edi]
add eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x10]
mov ecx, esi
mov eax, dword [eax + 0xc]
imul ecx, dword [ebp - 0x28]
imul eax, ebx
add ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [eax]
mov eax, dword [ebp - 0x24]
cmp eax, 0xfe
jge 0x42ae1e
inc eax
mov edi, 0x100
imul ebx, eax, 0xff
shr ebx, 8
sub edi, ebx
movzx eax, byte [ecx]
dec edx
imul eax, edi
sar eax, 8
add al, bl
mov byte [ecx], al
add ecx, esi
test edx, edx
jg 0x42ae02
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
jmp 0x42ae5e
mov edx, dword [edi + 0x10]
mov eax, dword [ebp - 0xc]
cmp esi, edx
jne 0x42ae54
cmp dword [edi + 8], 1
jne 0x42ae54
mov ebx, dword [ebp - 4]
cmp dword [ebx + 8], 1
mov ebx, dword [ebp - 8]
jne 0x42ae54
mov eax, edx
imul edx, dword [ebp - 0x20]
imul eax, dword [ebp - 0xc]
add edx, dword [ebp - 0x1c]
push eax
push edx
push ecx
call fcn.004ac3c0
add esp, 0xc
jmp 0x42ae5e
mov byte [ecx], 0xff
dec eax
add ecx, esi
test eax, eax
jg 0x42ae54
mov eax, dword [ebp - 0x14]
inc ebx
mov edx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
cmp ebx, dword [ebp - 0x18]
jl 0x42adc1
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x2c]
jne 0x42ad90
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub ecx, 1
je 0x42af44
sub ecx, 1
je 0x42aef0
cmp byte [ebp + 0x18], 0
je 0x42aec6
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0043cc30
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043cea0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x42af1a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0043c2d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043c550
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x42af6e
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0043c800
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043ca10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub ecx, 1
je 0x42b04e
sub ecx, 1
je 0x42affa
cmp byte [ebp + 0x18], 0
je 0x42afd0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0043d950
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043db50
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x42b024
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0043d130
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043d350
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x42b078
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0042d190
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0043d5a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043d770
pop edi
pop esi
mov esp, ebp
pop ebp
ret