Function at 0x4390b0
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 0x4396d8
sub edx, 1
je 0x4395ce
push ebx
sub ecx, 1
je 0x4393d4
sub ecx, 1
je 0x439263
cmp byte [ebp + 0x18], 0
je 0x439238
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
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 0x439231
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 0x439222
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 0x4391d0
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 0x439190
jmp 0x439205
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 0x4391d0
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 0x439154
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x28]
jne 0x439123
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.0044cad0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x4393a9
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
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 0x439231
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 0x439393
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 0x439340
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 0x439300
jmp 0x439376
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 0x439340
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 0x4392c6
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x18]
jne 0x439295
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.0044c960
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x4394af
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
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 0x439231
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 0x439499
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 0x439480
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 0x439460
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x48]
jmp 0x43948a
mov byte [eax], 0xff
dec edx
add eax, esi
test edx, edx
jg 0x439480
mov edx, dword [ebp - 0x20]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x24]
jl 0x439430
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x1c]
jne 0x439410
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 0x439231
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 0x4395b8
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 0x43955e
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 0x439542
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
jmp 0x43959e
mov edx, dword [edi + 0x10]
mov eax, dword [ebp - 0xc]
cmp esi, edx
jne 0x439594
cmp dword [edi + 8], 1
jne 0x439594
mov ebx, dword [ebp - 4]
cmp dword [ebx + 8], 1
mov ebx, dword [ebp - 8]
jne 0x439594
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.004bf740
add esp, 0xc
jmp 0x43959e
mov byte [ecx], 0xff
dec eax
add ecx, esi
test eax, eax
jg 0x439594
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 0x439501
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x2c]
jne 0x4394d0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub ecx, 1
je 0x439684
sub ecx, 1
je 0x439630
cmp byte [ebp + 0x18], 0
je 0x439606
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0044b810
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.0044ba80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x43965a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0044aeb0
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.0044b130
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x4396ae
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0044b3e0
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.0044b5f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub ecx, 1
je 0x43978e
sub ecx, 1
je 0x43973a
cmp byte [ebp + 0x18], 0
je 0x439710
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0044c530
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.0044c730
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x439764
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0044bd10
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.0044bf30
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x4397b8
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0043b8d0
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0044c180
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.0044c350
pop edi
pop esi
mov esp, ebp
pop ebp
ret