Function at 0x4025a0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, 0x3077
mov ebx, 0x470b
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], 0x18cf
mov dword [ebp - 0x50], 0x6929
mov dword [ebp - 8], 0x76e5
mov dword [ebp - 4], 0x40dc
mov dword [ebp - 0x40], 0x12ea
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x58], 0x1585
mov dword [ebp - 0x38], 0x5b47
mov dword [ebp - 0x3c], 0x712f
mov dword [ebp - 0x44], 0x47
mov dword [ebp - 0x4c], 0xb2
mov dword [ebp - 0x54], 0x2b1d
je 0x402c56
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402c56
mov eax, dword [ebp + 0x10]
push edi
lea edi, [eax + 0x108]
mov eax, dword [eax + 0x7c]
xor eax, dword [edi]
cmp ecx, eax
jl 0x402c55
call fcn.00403d70
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x1f8], eax
mov eax, dword [edi]
xor dword [ecx + 0x1e0], eax
mov ecx, dword [ecx + 0x1e0]
nop
mov eax, 0x82082083
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402660
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax + 0x1ec], edi
mov eax, dword [ebp + 0xc]
div ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x118], eax
imul eax, ecx
mov dword [edx + 0x240], eax
test eax, eax
je 0x4026ed
mov edi, dword [ebp + 8]
mov edi, edi
mov eax, dword [edx + 0x1ec]
inc esi
mov al, byte [eax]
xor byte [esi + edi - 1], al
mov eax, dword [edx + 0x1ec]
movzx ecx, byte [esi + edi - 1]
mov dl, byte [eax + 1]
mov eax, dword [ebp + 0x10]
xor dl, cl
mov byte [esi + edi - 1], dl
mov eax, dword [eax + 0x1ec]
mov cl, byte [eax + 2]
xor cl, dl
mov edx, dword [ebp + 0x10]
mov byte [esi + edi - 1], cl
mov eax, dword [edx + 0x1ec]
mov al, byte [eax + 3]
xor al, cl
mov byte [esi + edi - 1], al
cmp esi, dword [edx + 0x240]
jb 0x4026a0
mov eax, dword [edx + 0x1e0]
xor esi, esi
dec eax
je 0x4027a5
mov edi, 0xd54
mov eax, dword [edx + 0x1e0]
dec eax
push eax
push 1
push edx
call fcn.00403bf0
add esp, 0xc
mov cl, al
test edi, edi
je 0x402735
lea ebx, [ebx]
mov eax, 0x8dda5203
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402720
mov edx, dword [ebp + 0x10]
xor eax, eax
lea ebx, [ebx]
cmp cl, byte [edx + eax + 0x2d0]
je 0x40275a
inc eax
cmp eax, esi
jbe 0x402740
test cl, cl
je 0x40275a
mov byte [edx + esi + 0x2d0], cl
inc esi
test ebx, ebx
je 0x402778
mov edi, edi
mov eax, 0xb11fd3b9
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402760
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x3f0
jge 0x402796
mov eax, 0x3ef
sub eax, ecx
shr eax, 3
lea ecx, [ecx + eax*8]
add ecx, 8
mov dword [ebp - 0x48], ecx
mov eax, dword [edx + 0x1e0]
dec eax
cmp esi, eax
jb 0x402701
mov eax, 0x6f74ae27
imul dword [ebp - 0x5c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x5c], eax
jne 0x4027a5
xor ecx, ecx
mov edi, edi
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x4027cf
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4027d4
add ecx, 2
cmp ecx, 0x6b24
jl 0x4027c0
xorps xmm0, xmm0
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 0x88], 0
movq qword [ebp - 0x87], xmm0
movq qword [ebp - 0x7f], xmm0
movq qword [ebp - 0x77], xmm0
movq qword [ebp - 0x6f], xmm0
mov dword [ebp - 0x67], 0
call fcn.00403470
add esp, 4
mov ecx, 0x5eef
jmp 0x402820
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402820
mov eax, 0x2f149903
imul dword [ebp - 0x50]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x50], eax
jne 0x402835
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0x40b13b3e
mov dword [ebp - 0x20], 0xe4a4ae1b
movq xmm0, qword [ebp - 0x24]
movq qword [ebx + 0x258], xmm0
mov dword [ebp - 0x1c], 0x67d40737
mov dword [ebp - 0x18], 0x97497347
movq xmm0, qword [ebp - 0x1c]
mov dword [ebp - 0x14], 0xb5f40504
mov eax, dword [ebp - 0x14]
xor ecx, ecx
movq qword [ebx + 0x260], xmm0
mov dword [ebx + 0x268], eax
mov word [ebx + 0x26c], cx
xor eax, eax
xor byte [ebp + eax - 0x88], 0x31
inc eax
cmp eax, 0x23
jb 0x4028a0
mov edi, edi
mov eax, 0x1a6d01a7
imul dword [ebp - 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x4028b0
jmp 0x4028d0
mov eax, 0x7a44c6b
imul dword [ebp - 4]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x4028d0
mov ecx, 0x3fae
jmp 0x4028f0
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4028f0
mov ecx, 0x5958
lea ebx, [ebx]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402910
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0x1e0], eax
jbe 0x402b45
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x75bc
jl 0x402936
movzx edi, byte [eax + ebx + 0x2d0]
imul edi, dword [ebx + 0x118]
mov eax, dword [ebp - 0x40]
add edi, dword [ebp + 8]
test eax, eax
je 0x402970
jmp 0x402960
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
test eax, eax
jne 0x402960
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x2893
jge 0x40298e
mov eax, 0x2892
sub eax, ecx
shr eax, 2
lea ecx, [ecx + eax*4]
add ecx, 4
mov dword [ebp - 0x60], ecx
mov esi, dword [ebp - 0x34]
mov dword [ebx + 0x1c0], edi
cmp esi, 0xef3
jge 0x4029bc
mov ecx, 0xef2
sub ecx, esi
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
lea esi, [esi + eax*2]
add esi, 0xa
mov dword [ebp - 0x34], esi
mov eax, 0x10a1
dec eax
jne 0x4029c1
xorps xmm0, xmm0
push 0x24
mov byte [ebp - 0x30], al
mov dword [ebp - 0xf], eax
lea eax, [ebp - 0x30]
push edi
push eax
movq qword [ebp - 0x2f], xmm0
movq qword [ebp - 0x27], xmm0
movq qword [ebp - 0x1f], xmm0
movq qword [ebp - 0x17], xmm0
call fcn.00403a50
add esp, 0xc
mov eax, 0x5ec1
dec eax
jne 0x4029f5
movq xmm0, qword [ebp - 0x88]
mov ecx, dword [ebp - 0x58]
movq qword [edi], xmm0
movq xmm0, qword [ebp - 0x80]
movq qword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [edi + 0x10], xmm0
movq xmm0, qword [ebp - 0x70]
movq qword [edi + 0x18], xmm0
mov ax, word [ebp - 0x68]
mov word [edi + 0x20], ax
mov al, byte [ebp - 0x66]
mov byte [edi + 0x22], al
test ecx, ecx
je 0x402a56
jmp 0x402a40
mov eax, 0x214d0215
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402a40
mov dword [ebp - 0x58], ecx
mov eax, dword [ebx + 0x1c0]
call eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.00403a50
mov ecx, dword [ebp - 0x38]
add esp, 0xc
test ecx, ecx
je 0x402a8a
mov eax, 0x10fef011
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402a74
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x402aa9
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402a91
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x44]
mov eax, 0x3026
mov edx, 0xd3
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x402ab6
xor esi, esi
mov dword [ebp - 0x44], ecx
cmp dword [ebx + 0x118], esi
jbe 0x402b17
jmp 0x402ad0
mov eax, dword [ebx + 0x1ec]
inc esi
mov al, byte [eax + 3]
xor byte [esi + edi - 1], al
movzx ecx, byte [esi + edi - 1]
mov eax, dword [ebx + 0x1ec]
mov dl, byte [eax + 2]
xor dl, cl
mov byte [esi + edi - 1], dl
mov eax, dword [ebx + 0x1ec]
mov cl, byte [eax + 1]
xor cl, dl
mov byte [esi + edi - 1], cl
mov eax, dword [ebx + 0x1ec]
mov al, byte [eax]
xor al, cl
mov byte [esi + edi - 1], al
cmp esi, dword [ebx + 0x118]
jb 0x402ad0
mov ecx, dword [ebp - 0x4c]
mov eax, 0x7a91
mov edx, 0x64
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x402b24
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 0x1e0]
jb 0x402936
call fcn.00403d70
mov ecx, eax
mov dword [ebx + 0x1f4], ecx
mov edi, 0x52b0
jmp 0x402b60
mov eax, 0x7e07e07f
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402b60
lea eax, [ecx - 2]
push eax
push dword [ebx + 0x1f8]
call fcn.004018c0
push 0x112056a2
lea edi, [ebx + 0x258]
push edi
call fcn.004024f0
add esp, 0x10
xor ebx, ebx
inc ebx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, ebx
sub eax, ecx
jne 0x402bbc
inc ebx
cmp ebx, 0x7c00
jl 0x402b98
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xff
mov ecx, 0x51f3
lea esi, [edx + eax]
sar esi, 8
lea esp, [esp]
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402be0
test esi, esi
je 0x402c20
mov ebx, dword [ebp + 8]
lea esp, [esp]
push edi
push 0x100
push ebx
call fcn.00403ae0
add esp, 0xc
add ebx, 0x100
dec esi
jne 0x402c00
jmp 0x402c20
mov eax, 0x22b63cbf
imul dword [ebp - 0x54]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x54], eax
jne 0x402c20
mov ecx, 0xdf6
lea esp, [esp]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402c40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret