Function at 0x4251e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x431040]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
push 0x2c
mov dword [esp + 0x1c], 0
call fcn.00407415
add esp, 4
mov esi, 0x21
xor ecx, ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x14], eax
mov eax, ecx
mov byte [esp + ecx + 0x48], cl
xor edx, edx
div esi
mov al, byte [edx + 0x466790]
mov byte [esp + ecx + 0x148], al
inc ecx
cmp ecx, 0x100
jl 0x425228
xor esi, esi
xor edi, edi
nop dword [eax]
mov dl, byte [esp + esi + 0x48]
movzx eax, byte [esp + esi + 0x148]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x425273
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x48]
mov byte [esp + esi + 0x48], al
inc esi
mov byte [esp + edi + 0x48], dl
cmp esi, 0x100
jl 0x425250
movsd xmm0, qword [0x42dd48]
xor ebx, ebx
xor eax, eax
movsd qword [esp + 0x38], xmm0
xor esi, esi
nop dword [eax]
inc ebx
and ebx, 0x800000ff
jns 0x4252b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x48]
mov byte [esp + 0xf], cl
movzx ecx, cl
add eax, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
and eax, 0x800000ff
jns 0x4252d4
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 0
push eax
push 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00404b20
mov edi, dword [esp + 0x1c]
movsd xmm1, qword [edi]
call fcn.00401e10
mov dword [esp + 0x2c], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov ebx, dword [ecx + 4]
mov ecx, ebx
mov dword [esp + 0x44], ebx
mov edx, dword [ebx]
call dword [edx + 4]
lea eax, [esp + 0x40]
push eax
call fcn.00403660
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x28], al
test ebx, ebx
je 0x42535b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x42535b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
call fcn.004047b0
mov ecx, dword [esp + 0x2c]
call fcn.00403430
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
mov al, byte [esp + ecx + 0x48]
mov byte [esp + ebx + 0x48], al
mov al, byte [esp + 0xf]
mov byte [esp + ecx + 0x48], al
movzx eax, byte [esp + ebx + 0x48]
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
movzx eax, al
sub ecx, edi
and ecx, 0xfffffff8
mov al, byte [esp + eax + 0x48]
xor byte [esi + 0x431ae0], al
mov eax, edi
cmp ecx, 0x1000
jb 0x4253c2
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42542c
push ecx
push edi
call fcn.00407445
inc esi
mov dword [esp + 0x24], 0
add esp, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
cmp esi, 0x34800
jge 0x4253f6
mov eax, dword [esp + 0x10]
jmp 0x4252a0
mov eax, dword [esp + 0x14]
push dword [eax + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00404ce0
push 0x2c
push dword [esp + 0x18]
call fcn.00407445
mov ecx, dword [esp + 0x254]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407402
mov esp, ebp
pop ebp
ret
call fcn.0040f26f
int3