Function at 0x434270
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d38db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push edi
mov edi, 1
mov dword [esp + 0x34], ecx
mov eax, edi
mov ecx, esi
push str._DCTDecode
shl eax, cl
mov dword [esp + 0x14], edx
dec eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
push eax
call fcn.00483e3f
add esp, 8
mov dword [esp + 0x24], edi
test eax, eax
sete cl
and ecx, 0xff
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], ecx
je 0x434347
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2 + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, dword [ebp + 0xc]
shl eax, 2
cmp eax, 0x989680
mov dword [esp + 0x40], eax
jle 0x434347
fild dword [esp + 0x40]
sub esp, 8
fdivr qword [0x4da1a8]
fmul qword [0x4d81a8]
fstp qword [esp]
call fcn.004223b0
mov ebx, dword [ebp + 0x24]
lea edx, [ebp + 0xc]
lea ecx, [ebp + 8]
push edx
mov edx, dword [ebp + 0x28]
push ecx
push 0x64
push eax
push edx
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x64
call fcn.0042c950
add esp, 0x20
jmp 0x43434a
mov ebx, dword [ebp + 0x24]
push 0x1c
call fcn.004a622a
add esp, 4
mov dword [esp + 0x48], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x70], ecx
je 0x43437b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0x18
push ecx
push edx
mov ecx, eax
call fcn.00438810
mov edi, eax
mov dword [esp + 0x2c], edi
jmp 0x434381
mov dword [esp + 0x2c], ecx
mov edi, ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
imul eax, ecx
imul eax, esi
add eax, 7
mov dword [esp + 0x70], 0xffffffff
cdq
and edx, 7
add eax, edx
mov edx, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x38], edi
sar eax, 3
cmp dword [esp + 0x3c], edx
mov dword [esp + 0x20], eax
je 0x4343fd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
push eax
push ecx
mov ecx, dword [ebp + 0x28]
lea edx, [esp + 0x48]
push 1
lea eax, [esp + 0x28]
push edx
push eax
push ecx
push ebx
call fcn.0042ca80
push ebx
call fcn.004a6253
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x40]
add esp, 0x20
mov dword [ebp + 0x24], edx
mov ebx, edx
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x43456c
mov edx, dword [esp + 0x34]
cmp edx, 2
je 0x43441a
cmp edx, 5
jne 0x43456c
cmp esi, 8
jne 0x434474
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, eax
mov dword [esp + 0x28], eax
jle 0x4346a8
inc edi
xor esi, esi
test ecx, ecx
jle 0x434459
mov edx, edi
mov cl, byte [eax + ebx]
inc eax
mov byte [edx + 1], cl
add edx, 3
mov cl, byte [eax + ebx]
inc eax
mov byte [edx - 3], cl
mov cl, byte [eax + ebx]
inc eax
mov byte [edx - 4], cl
mov ecx, dword [ebp + 8]
inc esi
cmp esi, ecx
jl 0x434439
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
add edi, esi
mov esi, dword [ebp + 0xc]
inc edx
cmp edx, esi
mov dword [esp + 0x28], edx
jl 0x434431
jmp 0x4346a8
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
test edx, edx
jle 0x4346a8
inc edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x28], edi
jle 0x434537
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push edi
push edx
call fcn.004341e0
and eax, 0xff
add edi, esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call fcn.004341e0
mov ecx, dword [esp + 0x28]
add edi, esi
push esi
and eax, 0xff
push edi
push ecx
mov dword [esp + 0x64], eax
call fcn.004341e0
and eax, 0xff
add esp, 0x24
mov ecx, eax
add edi, esi
shl eax, 8
sub eax, ecx
mov ecx, dword [esp + 0x30]
cdq
idiv ecx
mov edx, dword [esp + 0x40]
add ebx, 3
mov byte [ebx - 4], al
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv ecx
mov edx, dword [esp + 0x3c]
mov byte [ebx - 3], al
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv ecx
mov byte [ebx - 2], al
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4344a2
mov ebx, dword [ebp + 0x24]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc edi
add edx, eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
add edi, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
cmp edx, edi
jl 0x434490
jmp 0x4346a8
mov eax, dword [esp + 0x10]
lea ecx, [eax*8]
push ecx
call fcn.004a622a
add esp, 4
cmp esi, 8
mov dword [esp + 0x14], eax
jne 0x4346ef
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x30], ebx
jle 0x434698
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x34], esi
test ecx, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0
jle 0x43467a
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x434607
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x14]
sub ecx, eax
sub esi, eax
mov dword [esp + 0x28], edx
mov edi, dword [ebp + 0x24]
xor edx, edx
add eax, 8
mov dl, byte [ebx + edi]
inc ebx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
fild dword [esp + 0x3c]
dec edx
mov dword [esp + 0x28], edx
fmul qword [ecx + eax - 8]
fadd qword [eax - 8]
fstp qword [esi + eax - 8]
jne 0x4345d5
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
call fcn.004331e0
fld qword [esp + 0x4c]
fmul qword [0x4da168]
call fcn.00483e18
fld qword [esp + 0x54]
fmul qword [0x4da168]
mov byte [esi + edi], al
call fcn.00483e18
fld qword [esp + 0x5c]
fmul qword [0x4da168]
mov byte [esi + edi + 1], al
call fcn.00483e18
mov byte [esi + edi + 2], al
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
add esi, 3
inc eax
mov dword [esp + 0x24], esi
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4345bb
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
add esi, edx
mov edx, dword [ebp + 0xc]
inc eax
mov dword [esp + 0x34], esi
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x4345a7
mov ebx, dword [ebp + 0x24]
mov eax, dword [esp + 0x14]
push eax
call fcn.004a6253
add esp, 4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4346b8
push eax
call fcn.004a6253
add esp, 4
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4346c8
push eax
call fcn.004a6253
add esp, 4
push ebx
call fcn.004a6253
mov ecx, dword [ebp + 0x10]
add esp, 4
call fcn.004330b0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x40], eax
jle 0x43469b
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x28]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
jle 0x434803
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x43478d
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov eax, dword [esp + 0x14]
sub ebx, edi
sub eax, edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push esi
push ecx
push edx
call fcn.004341e0
and eax, 0xff
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
fild dword [esp + 0x50]
add esp, 0xc
add edx, esi
mov dword [esp + 0x1c], edx
fmul qword [edi + ebx]
add edi, 8
fadd qword [edi - 8]
fstp qword [edi + eax - 8]
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x434743
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004331e0
fld qword [esp + 0x4c]
fmul qword [0x4da168]
call fcn.00483e18
fld qword [esp + 0x54]
mov ebx, dword [esp + 0x30]
fmul qword [0x4da168]
mov byte [ebx + edi], al
call fcn.00483e18
fld qword [esp + 0x5c]
fmul qword [0x4da168]
mov byte [ebx + edi + 1], al
call fcn.00483e18
mov byte [ebx + edi + 2], al
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
add ebx, 3
inc eax
mov dword [esp + 0x30], ebx
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x434721
mov ebx, dword [ebp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
add dword [esp + 0x24], edx
mov edx, dword [esp + 0x18]
add dword [esp + 0x28], edx
mov edx, dword [ebp + 0xc]
inc eax
cmp eax, edx
mov dword [esp + 0x40], eax
jl 0x434707
jmp 0x43469b