Function at 0x432c08
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x68
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x94]
movsx eax, byte [0x5957b8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x432d03
mov eax, 0x3fa00000
mov dword [0x7de320], eax
mov dword [0x7de324], eax
movsx edx, byte [0x7de328]
test edx, edx
jne 0x432d03
mov byte [0x7de328], 1
xor edx, edx
fld qword [0x570460]
fld qword [0x570458]
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fsub st(1)
fld qword [0x570460]
fmul st(1)
fadd st(2)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x30]
fldcw word [esp]
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x432cad
cmp eax, 0xff
jle 0x432caf
mov eax, 0xff
jmp 0x432caf
xor eax, eax
mov byte [edx + 0x7d6ee0], al
fmul st(2)
fadd st(1)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x30]
fldcw word [esp]
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x432cea
cmp eax, 0xff
jle 0x432cec
mov eax, 0xff
jmp 0x432cec
xor eax, eax
mov byte [edx + 0x7d6fe0], al
inc edx
cmp edx, 0x100
jl 0x432c68
fstp st(0)
fstp st(0)
mov eax, 0x51eb851f
mov ebx, dword [esp + 0x2c]
imul ebx
sar edx, 5
mov eax, ebx
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x44], edx
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea esi, [edx + eax*8]
add esi, esi
add esi, esi
neg esi
add esi, ebx
mov ecx, dword [esp + 0x88]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x40], edx
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea eax, [edx + eax*8]
add eax, eax
add eax, eax
neg eax
add eax, ecx
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x9c]
mov eax, 0x51eb851f
imul ebp
sar edx, 5
mov eax, ebp
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x64], edx
mov edi, dword [esp + 0xa0]
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x4c], edx
lea edi, [ebp + ebp]
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x90]
sub eax, ecx
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x8c]
sub edi, ebx
mov dword [esp + 0x5c], edi
shl esi, 8
mov eax, 0x51eb851f
imul esi
mov ecx, edx
sar ecx, 5
sar esi, 0x1f
sub ecx, esi
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x18]
shl ebx, 8
mov eax, 0x51eb851f
imul ebx
sar edx, 5
sar ebx, 0x1f
sub edx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edx
cmp ebp, edi
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x64]
jge 0x432e1a
xor eax, eax
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x9c]
cmp eax, edx
jl 0x432e2f
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x432e44
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
cmp eax, edx
jl 0x432e55
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa0]
lea eax, [eax - 0x64]
mov esi, dword [esp + 0x9c]
add esi, 0xffffff9c
jne 0x432e70
mov esi, 0x64
test eax, eax
jne 0x432e79
mov eax, 0x64
mov edx, dword [esp + 0x9c]
lea ebx, [edx + edx - 0x64]
mov dword [esp + 0x54], ebx
test ebx, ebx
jne 0x432e95
mov edx, 0x64
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x432f00
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cdq
mov dword [esp + 0x64], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov ebx, edx
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
imul esi
push ebx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.004608f0
add eax, edi
mov dword [ebp*4 + 0x796ae0], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x4c]
cmp ebp, ecx
jl 0x432ec2
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
test edi, edi
jle 0x432f57
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov eax, esi
cdq
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x64], edi
mov dword [esp + 0x44], ecx
mov ebp, edx
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
imul ebx
push ebp
push esi
push edx
push eax
call fcn.004608f0
mov ecx, dword [esp + 0x58]
add eax, ecx
mov dword [edi*4 + 0x7a6be0], eax
add ebx, 0x100
inc edi
mov ecx, dword [esp + 0x64]
cmp edi, ecx
jl 0x432f1f
mov edi, ecx
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x432fc2
test edi, edi
jle 0x432f8f
xor eax, eax
mov esi, dword [eax*4 + 0x7a6be0]
mov edx, esi
and edx, 0xff
and esi, 0xffffff00
movzx ebx, byte [edx + 0x7d6ee0]
or esi, ebx
mov dword [eax*4 + 0x7a6be0], esi
inc eax
cmp eax, edi
jl 0x432f65
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x432fc2
xor eax, eax
mov ebx, dword [esp + 0x4c]
mov edx, dword [eax*4 + 0x796ae0]
movzx esi, dl
and edx, 0xffffff00
movzx esi, byte [esi + 0x7d6fe0]
or edx, esi
mov dword [eax*4 + 0x796ae0], edx
inc eax
cmp eax, ebx
jl 0x432f9d
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
test eax, eax
jle 0x4332b8
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x44], ecx
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x98]
mov edx, dword [eax*4 + 0x796ae0]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x432ffc
lea ebx, [eax + 1]
cmp edx, ebp
jge 0x4332a4
inc eax
cmp eax, esi
jl 0x432fe9
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x48], edi
test edi, edi
jle 0x43329d
xor esi, esi
xor eax, eax
mov edx, dword [eax*4 + 0x7a6be0]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x433037
lea esi, [eax + 1]
cmp edx, ebp
jge 0x433294
inc eax
cmp eax, edi
jl 0x433024
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x4330ad
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x54]
cdq
mov dword [esp + 0x40], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x1c], ebx
mov ebx, edx
mov ebp, ecx
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
imul esi
push ebx
mov ecx, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.004608f0
add eax, edi
mov dword [ebp*4 + 0x7a6be0], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x60]
cmp ebp, ecx
jl 0x43306f
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4330e0
test edi, edi
jle 0x4330e0
xor eax, eax
mov edx, dword [eax*4 + 0x7a6be0]
movzx ecx, dl
and edx, 0xffffff00
movzx ecx, byte [ecx + 0x7d6ee0]
or edx, ecx
mov dword [eax*4 + 0x7a6be0], edx
inc eax
cmp eax, edi
jl 0x4330bb
add edi, edi
add edi, edi
mov eax, ebx
imul eax, edi
push eax
mov edx, dword [esp + 0x28]
push edx
call dword [0x5b2480]
mov ecx, dword [esp + 0x28]
mov edx, ecx
imul edx, edi
add edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
imul eax, edi
neg ecx
imul ecx, edi
add eax, ecx
push eax
push edx
call dword [0x5b2480]
add esp, 0x10
movsx ecx, byte [0x5956f4]
test ecx, ecx
jle 0x43326b
mov dword [0x78ece4], 0x29
xor edi, edi
xor eax, eax
mov edx, dword [esp + 0x20]
sub edx, ebx
mov dword [esp + 0x40], esi
mov esi, eax
mov ebp, edx
jmp 0x433150
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x78ece8], ebx
mov eax, ebp
cdq
idiv ecx
add eax, ebx
mov dword [esi + 0x78ecec], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x9c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x78ecf0], edx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x78ecf4], ecx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x78ecf8], edx
mov edx, dword [esp + 0x88]
mov dword [esi + 0x78ecfc], edx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x78ed00], edx
mov edx, dword [esp + 0x90]
mov dword [esi + 0x78ed04], edx
mov edx, dword [esp + 0x94]
mov dword [esi + 0x78ed08], edx
mov edx, dword [esp + 0x98]
mov dword [esi + 0x78ed0c], edx
mov dword [esi + 0x78ed10], ebp
mov dword [esi + 0x78ed14], ebx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x78ed18], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x78ed1c], edx
push dword [edi*4 + 0x7906e0]
call dword [0x56e244]
push 0xffffffffffffffff
push dword [edi*4 + 0x7907e0]
call dword [0x56e240]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jge 0x43326b
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x78ece4], 0x29
test edi, edi
je 0x433148
cmp edi, 1
jne 0x433179
mov eax, dword [esp + 0x54]
cdq
idiv ecx
add eax, dword [esp + 0x1c]
mov dword [esi + 0x78ece8], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x78ecec], ecx
jmp 0x433179
test ecx, ecx
jle 0x43328c
xor ebx, ebx
push 0xffffffffffffffff
push dword [ebx*4 + 0x7908e0]
call dword [0x56e240]
inc ebx
movsx eax, byte [0x5956f4]
cmp ebx, eax
jl 0x433271
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x48], eax
jmp 0x433044
xor esi, esi
jmp 0x433044
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x20], eax
jmp 0x433014
xor ebx, ebx
jmp 0x433014