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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x526c
mov ecx, 0x463d
mov edi, 0x4f
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], 0xf9
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x1269
mov dword [ebp - 0x5c], 0x4583
mov dword [ebp - 0x60], 0x424e
mov dword [ebp - 0x3c], 0x436b
mov dword [ebp - 0x58], 0x79ab
mov dword [ebp - 0x50], 0xda
mov dword [ebp - 0x40], 0x376d
mov dword [ebp - 0x44], 0x1bd9
mov dword [ebp - 0x4c], 0x3fed
cmp dword [ebp + 8], esi
je 0x4022c5
cmp dword [ebp + 0xc], esi
je 0x4022c5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x230]
xor eax, dword [edx]
cmp dword [ebp + 0xc], eax
jl 0x4022c5
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401d12
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401d24
call fcn.00403370
mov ebx, dword [ebp + 0x10]
mov ecx, 0x71
mov dword [ebx + 0x310], eax
mov eax, 0x7089
cmp edi, ecx
cmovg edi, ecx
dec eax
jne 0x401d51
mov eax, dword [ebx + 0x230]
xor dword [ebx + 0x238], eax
mov edi, dword [ebx + 0x238]
lea ecx, [ebx + 0x230]
mov dword [ebx + 0x380], ecx
mov esi, 0x2097
lea esp, [esp]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401d80
mov esi, dword [ebp - 0x10]
inc esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x401daf
inc esi
cmp esi, 0x3d9a
jl 0x401d96
mov eax, dword [ebp + 0xc]
xor edx, edx
div edi
mov ecx, eax
mov dword [ebx + 0x2a4], ecx
imul ecx, edi
mov dword [ebx + 0xc8], ecx
mov eax, 0x750d
dec eax
jne 0x401dd4
xor esi, esi
test ecx, ecx
je 0x401e27
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x380]
inc esi
mov al, byte [eax]
xor byte [esi + edi - 1], al
movzx ecx, byte [esi + edi - 1]
mov eax, dword [ebx + 0x380]
mov dl, byte [eax + 1]
xor dl, cl
mov byte [esi + edi - 1], dl
mov eax, dword [ebx + 0x380]
mov cl, byte [eax + 2]
xor cl, dl
mov byte [esi + edi - 1], cl
mov eax, dword [ebx + 0x380]
mov al, byte [eax + 3]
xor al, cl
mov byte [esi + edi - 1], al
cmp esi, dword [ebx + 0xc8]
jb 0x401de0
mov eax, 0x6fb5
lea esp, [esp]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
test eax, eax
jne 0x401e30
mov eax, dword [ebx + 0x238]
xor edi, edi
dec eax
je 0x401f50
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x10], 0x53
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebp - 0x48]
inc eax
cmp eax, 0x33e9
jl 0x401e63
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x238]
dec eax
push eax
push 1
push ecx
call fcn.00403200
mov dl, al
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 1], dl
mov ecx, 0x4d77
mov edi, edi
cmp eax, 0x53
cmovl eax, dword [ebp - 0x10]
dec ecx
jne 0x401e90
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, 0x6e53
jl 0x401ea0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dl, byte [ecx + eax + 0x130]
je 0x401ec0
inc eax
cmp eax, edi
jbe 0x401eb0
jmp 0x401ec4
mov byte [ebp - 1], 0
cmp esi, 0x13f0
jge 0x401ef4
lea esp, [esp]
inc esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x401ee9
inc esi
cmp esi, 0x13f0
jl 0x401ed0
mov ecx, dword [ebp + 0x10]
mov al, byte [ebp - 1]
test al, al
je 0x401f03
mov byte [ecx + edi + 0x130], al
inc edi
cmp ebx, 0x50b
jge 0x401f33
jmp 0x401f10
inc ebx
mov eax, 0x66666667
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401f2b
inc ebx
cmp ebx, 0x50b
jl 0x401f10
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x238]
dec eax
cmp edi, eax
jb 0x401e60
mov ebx, ecx
jmp 0x401f50
mov eax, 0x1b4e81b5
imul dword [ebp - 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x401f50
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
mov byte [ebp - 0x63], 0
call fcn.00402930
lea edi, [ebx + 0x328]
mov dword [ebp - 0x2c], 0xcdeac12e
mov dword [ebp - 0x28], 0x86d64f8d
movq xmm0, qword [ebp - 0x2c]
movq qword [edi], xmm0
mov dword [ebp - 0x24], 0x94bbb2bf
mov dword [ebp - 0x20], 0xbbb2859d
movq xmm0, qword [ebp - 0x24]
mov dword [ebp - 0x1c], 0x47bdac6c
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
movq qword [edi + 8], xmm0
mov dword [edi + 0x10], eax
add esp, 4
mov word [edi + 0x14], cx
mov dword [ebp - 0xc], edi
mov byte [edi + 0x16], cl
xor eax, eax
xor byte [ebp + eax - 0x88], 0x99
inc eax
cmp eax, 0x24
jb 0x401ff2
mov edi, 0x1f18
mov eax, 0x2aaaaaab
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402005
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [ecx + 0x238], ebx
jbe 0x40221b
nop
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x402056
jmp 0x402040
mov eax, 0x15390949
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402040
mov dword [ebp - 0x5c], esi
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x402076
lea ecx, [ecx]
mov eax, 0x2c0b02c1
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402060
mov dword [ebp - 0x60], esi
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x402096
lea ecx, [ecx]
mov eax, 0x2aaaaaab
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402080
mov dword [ebp - 0x3c], esi
movzx esi, byte [ecx + ebx + 0x130]
imul esi, dword [ecx + 0x2a4]
mov edi, dword [ebp - 0x58]
add esi, dword [ebp + 8]
test edi, edi
je 0x4020c6
nop
mov eax, 0x478bbced
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4020b0
mov dword [ebp - 0x58], edi
xorps xmm0, xmm0
mov dword [ecx + 0x314], esi
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 0x38], 0
movq qword [ebp - 0x37], xmm0
movq qword [ebp - 0x2f], xmm0
movq qword [ebp - 0x27], xmm0
movq qword [ebp - 0x1f], xmm0
mov dword [ebp - 0x17], 0
mov byte [ebp - 0x13], 0
mov eax, 0x763d
mov edx, 0x6b
nop
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x402100
push 0x25
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x50], ecx
call fcn.00403090
movq xmm0, qword [ebp - 0x88]
mov edx, dword [ebp + 0x10]
movq qword [esi], xmm0
movq xmm0, qword [ebp - 0x80]
movq qword [esi + 8], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x70]
movq qword [esi + 0x18], xmm0
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x20], eax
mov eax, dword [edx + 0x314]
add esp, 0xc
call eax
push 0x25
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00403090
mov ecx, dword [ebp + 0x10]
xor edi, edi
add esp, 0xc
cmp dword [ecx + 0x2a4], edi
jbe 0x4021c0
mov ebx, ecx
mov eax, dword [ebx + 0x380]
inc edi
mov al, byte [eax + 3]
xor byte [edi + esi - 1], al
movzx ecx, byte [edi + esi - 1]
mov eax, dword [ebx + 0x380]
mov dl, byte [eax + 2]
xor dl, cl
mov byte [edi + esi - 1], dl
mov eax, dword [ebx + 0x380]
mov cl, byte [eax + 1]
xor cl, dl
mov byte [edi + esi - 1], cl
mov eax, dword [ebx + 0x380]
mov al, byte [eax]
xor al, cl
mov byte [edi + esi - 1], al
cmp edi, dword [ebx + 0x2a4]
jb 0x402173
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4021e6
jmp 0x4021d0
mov eax, 0x30c30c31
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4021d0
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x402208
lea ecx, [ecx]
mov eax, 0xa0a0a0a1
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4021f0
mov dword [ebp - 0x44], esi
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ecx + 0x238]
jb 0x402030
mov edi, dword [ebp - 0xc]
call fcn.00403370
mov edx, dword [ebp + 0x10]
mov ecx, 0x2f57
mov dword [edx + 0xc0], eax
mov esi, 9
mov ebx, 0xc3
cmp ebx, esi
cmovl ebx, esi
dec ecx
jne 0x402238
lea ecx, [eax - 2]
push ecx
push dword [edx + 0x310]
call fcn.00401100
push 0x144edb8
push edi
call fcn.00401ac0
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xff
add esp, 0x10
lea esi, [edx + eax]
sar esi, 8
test esi, esi
je 0x402290
mov ebx, dword [ebp + 8]
push edi
push 0x100
push ebx
call fcn.004030f0
add esp, 0xc
add ebx, 0x100
dec esi
jne 0x402274
lea esp, [esp]
mov eax, 0x487ede05
imul dword [ebp - 0x4c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x4c], eax
jne 0x402290
mov ecx, 0x1871
lea esp, [esp]
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4022b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret