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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
xor esi, esi
push edi
mov ecx, 0x53
mov edi, 0x1408
mov ebx, 0x465e
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0x72bc
mov dword [ebp - 0x2c], 0x6b
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x40], 0x7752
mov dword [ebp - 0x3c], 0x3dbd
mov dword [ebp - 0x30], 0x518
cmp dword [ebp + 8], esi
je 0x4020c7
cmp dword [ebp + 0xc], esi
je 0x4020c7
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0x364]
mov eax, dword [eax + 0x1e0]
xor eax, dword [edx]
cmp dword [ebp + 0xc], eax
jl 0x4020c7
mov eax, 0x3eb7
mov edx, 0x13
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x401c12
call fcn.004030c0
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + 0x364]
mov dword [ecx + 0x2d8], eax
mov eax, dword [edx]
xor dword [ecx + 0xd0], eax
mov dword [ecx + 0x84], edx
lea esp, [esp]
mov eax, 0x84210843
imul edi
add edx, edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401c40
inc esi
mov eax, esi
and eax, 0x80000003
jns 0x401c64
dec eax
or eax, 0xfffffffc
inc eax
jne 0x401c67
inc esi
cmp esi, 0x284c
jl 0x401c55
mov esi, dword [ecx + 0xd0]
mov eax, dword [ebp + 0xc]
xor edx, edx
div esi
mov edi, dword [ebp + 0x10]
mov ecx, eax
mov dword [edi + 4], ecx
mov eax, 0x99d722db
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401c84
imul ecx, esi
xor esi, esi
mov dword [edi + 0x25c], ecx
test ecx, ecx
je 0x401cf7
mov ebx, dword [ebp + 8]
jmp 0x401cb0
mov eax, dword [edi + 0x84]
inc esi
mov al, byte [eax]
xor byte [esi + ebx - 1], al
movzx ecx, byte [esi + ebx - 1]
mov eax, dword [edi + 0x84]
mov dl, byte [eax + 1]
xor dl, cl
mov byte [esi + ebx - 1], dl
mov eax, dword [edi + 0x84]
mov cl, byte [eax + 2]
xor cl, dl
mov byte [esi + ebx - 1], cl
mov eax, dword [edi + 0x84]
mov al, byte [eax + 3]
xor al, cl
mov byte [esi + ebx - 1], al
cmp esi, dword [edi + 0x25c]
jb 0x401cb0
mov ecx, 0x7695
mov edx, 0xf4
mov eax, 0xa8
cmp eax, 0xf4
cmovg eax, edx
dec ecx
jne 0x401d06
mov eax, dword [edi + 0xd0]
xor esi, esi
dec eax
je 0x401d9e
mov eax, dword [edi + 0xd0]
dec eax
push eax
push 1
push edi
call fcn.00402f40
mov edx, dword [ebp - 4]
add esp, 0xc
mov bl, al
cmp edx, 0x2866
jge 0x401d60
mov ecx, 0x2865
sub ecx, edx
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
mov edx, dword [ebp - 4]
lea edx, [edx + eax*2]
add edx, 0xa
mov dword [ebp - 4], edx
xor eax, eax
cmp bl, byte [eax + edi + 0xe0]
je 0x401d72
inc eax
cmp eax, esi
jbe 0x401d62
jmp 0x401d74
xor bl, bl
mov eax, dword [ebp - 8]
cmp eax, 0x3968
mov ecx, 0x3968
cmovl eax, ecx
mov dword [ebp - 8], eax
test bl, bl
je 0x401d93
mov byte [esi + edi + 0xe0], bl
inc esi
mov eax, dword [edi + 0xd0]
dec eax
cmp esi, eax
jb 0x401d20
push 0x3a
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.00402dd0
lea eax, [ebp - 0x7c]
push eax
call fcn.00402760
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x28], 0x83c2a455
mov dword [ebp - 0x24], 0xe1658f3a
mov dword [ebp - 0x20], 0x5077308a
mov dword [ebp - 0x1c], 0xcd2a09ca
mov dword [ebp - 0x18], 0x5bcc881c
mov dword [ebp - 0x14], esi
xor ebx, ebx
inc ebx
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, ebx
sub eax, ecx
jne 0x401e03
inc ebx
cmp ebx, 0x69fc
jl 0x401de5
movq xmm0, qword [ebp - 0x28]
lea ebx, [edi + 0x4c]
xor eax, eax
movq qword [ebx], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebx + 8], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebx + 0x10], xmm0
mov word [ebx + 0x18], si
xor byte [ebp + eax - 0x7c], 0xf9
inc eax
cmp eax, 0x39
jb 0x401e31
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [edi + 0xd0], eax
jbe 0x402000
xor ebx, ebx
nop
movzx esi, byte [eax + edi + 0xe0]
imul esi, dword [edi + 4]
add esi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp ebx, 0x5f40
jge 0x401e95
lea ebx, [ebx]
inc ebx
mov eax, 0x38e38e39
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*8]
sub ecx, eax
jne 0x401e8d
add ebx, 2
cmp ebx, 0x5f40
jl 0x401e70
mov dword [edi + 0x10], esi
mov edi, dword [ebp - 0x34]
cmp edi, 0x2f25
jge 0x401ec0
mov ecx, 0x2f24
sub ecx, edi
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
lea edi, [edi + eax*2]
add edi, 0xa
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x401edf
mov eax, 0xb81702e1
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401ec7
mov dword [ebp - 0x38], ecx
push 0x3a
lea eax, [ebp - 0xb7]
push 0
push eax
mov byte [ebp - 0xb8], 0
call fcn.00402dd0
push 0x3a
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00402da0
mov ecx, dword [ebp - 0x2c]
add esp, 0x18
mov eax, 0x316
mov edx, 0x6a
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x401f15
mov edi, dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
mov ecx, 0xe
lea esi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
movsb byte es:[edi], byte [esi]
cmp ecx, 0x4c93
jge 0x401f5d
lea esp, [esp]
inc ecx
mov eax, ecx
and eax, 0x80000007
jns 0x401f4f
dec eax
or eax, 0xfffffff8
inc eax
jne 0x401f52
inc ecx
cmp ecx, 0x4c93
jl 0x401f40
mov dword [ebp - 0xc], ecx
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x10]
call eax
push 0x3a
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 4]
call fcn.00402da0
xor esi, esi
add esp, 0xc
cmp dword [edi + 4], esi
jbe 0x401fcd
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x84]
inc esi
mov al, byte [eax + 3]
xor byte [esi + edx - 1], al
movzx ecx, byte [esi + edx - 1]
mov eax, dword [edi + 0x84]
mov dl, byte [eax + 2]
mov eax, dword [ebp - 4]
xor dl, cl
mov byte [esi + eax - 1], dl
mov eax, dword [edi + 0x84]
mov cl, byte [eax + 1]
xor cl, dl
mov edx, dword [ebp - 4]
mov byte [esi + edx - 1], cl
mov eax, dword [edi + 0x84]
mov al, byte [eax]
xor al, cl
mov byte [esi + edx - 1], al
cmp esi, dword [edi + 4]
jb 0x401f83
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x401fea
mov eax, 0xc907da5
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401fd4
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [edi + 0xd0]
jb 0x401e50
lea ebx, [edi + 0x4c]
call fcn.004030c0
mov ecx, eax
mov dword [edi + 0x9c], ecx
mov eax, 0x2f24
mov esi, 0xcb
mov edx, 0x26
lea esp, [esp]
cmp edx, esi
cmovl edx, esi
dec eax
jne 0x402020
lea eax, [ecx - 2]
push eax
push dword [edi + 0x2d8]
call fcn.004010a0
add esp, 8
lea ebx, [ebx]
mov eax, 0x44d72045
imul dword [ebp - 0x3c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x3c], eax
jne 0x402040
push 0xfff4833
push ebx
call fcn.00401a90
add esp, 8
mov ecx, 0x1b64
lea ebx, [ebx]
dec ecx
jne 0x402070
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
je 0x4020b0
mov edi, dword [ebp + 8]
lea ebx, [ebx]
push ebx
push 0x100
push edi
call fcn.00402e30
add esp, 0xc
add edi, 0x100
dec esi
jne 0x402090
jmp 0x4020b0
mov eax, 0x78787879
imul dword [ebp - 0x30]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x30], eax
jne 0x4020b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret