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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
xor ebx, ebx
push esi
push edi
mov ecx, 0x71e4
mov esi, 0x90
mov dword [ebp - 0xc], 0x7f32
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x90], ebx
xor edi, edi
mov dword [ebp - 0x98], 0x170b
mov dword [ebp - 8], 0x1428
mov dword [ebp - 4], 0x6d99
mov dword [ebp - 0x40], 0xc9
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x64], 0x4914
mov dword [ebp - 0x5c], 0xe5a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], 0x4636
mov dword [ebp - 0x48], 0x39b0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x58], 0x2a
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], 0x48f6
mov dword [ebp - 0x54], 0x6644
mov eax, 0x43b3d5b
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401f76
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 0x401fae
add ebx, 2
cmp ebx, 0x55c8
jl 0x401f88
cmp dword [ebp + 8], edi
je 0x402741
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402741
mov eax, dword [ebp + 0x10]
lea ebx, [eax + 0xb8]
mov eax, dword [eax + 0x74]
xor eax, dword [ebx]
cmp ecx, eax
jl 0x402741
mov ecx, 0x4ec6
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401fe5
call fcn.00403650
mov ecx, dword [ebp + 0x10]
mov edx, 0xa
mov dword [ecx + 0x44], eax
mov ecx, 0x60a7
mov eax, 0xaf
cmp eax, 0xa
cmovl eax, edx
dec ecx
jne 0x402014
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx]
xor dword [ecx + 0x128], eax
mov esi, dword [ecx + 0x128]
mov dword [ebp - 0x20], esi
mov edi, 0x4cf6
mov eax, 0x478bbced
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402036
mov dword [ecx], ebx
mov eax, 0x7fa1
mov edx, 0x1d
mov ecx, 0xfa
lea ebx, [ebx]
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x402060
mov eax, dword [ebp + 0xc]
xor edx, edx
div esi
mov edx, 0xdf
mov ecx, 0x4d
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x68], esi
mov eax, 0x167
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x402086
xor 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 0x4020ad
add ebx, 2
cmp ebx, 0x4c18
jl 0x402090
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
imul eax, esi
mov dword [ebp - 0x20], eax
mov dword [ecx + 0x19c], eax
xor ebx, ebx
lea esp, [esp]
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 0x4020eb
inc ebx
cmp ebx, 0x6b98
jl 0x4020d0
mov ebx, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp - 0x20], esi
jbe 0x402137
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
inc esi
mov al, byte [eax]
xor byte [esi + edi - 1], al
movzx ecx, byte [esi + edi - 1]
mov eax, dword [ebx]
mov dl, byte [eax + 1]
xor dl, cl
mov byte [esi + edi - 1], dl
mov eax, dword [ebx]
mov cl, byte [eax + 2]
xor cl, dl
mov byte [esi + edi - 1], cl
mov eax, dword [ebx]
mov al, byte [eax + 3]
xor al, cl
mov byte [esi + edi - 1], al
cmp esi, dword [ebx + 0x19c]
jb 0x402100
mov edi, 0x60b8
lea esp, [esp]
mov eax, 0x2f149903
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402140
mov eax, 0x5397829d
imul dword [ebp - 0xc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc], eax
jne 0x402153
mov eax, dword [ebx + 0x128]
xor esi, esi
dec eax
je 0x402250
mov dword [ebp - 0xc], 0x42
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x4bf
jge 0x40219e
mov eax, 0x4be
sub eax, ecx
shr eax, 2
lea ecx, [ecx + eax*4]
add ecx, 4
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebx + 0x128]
dec eax
push eax
push 1
push ebx
call fcn.00403460
add esp, 0xc
mov cl, al
xor eax, eax
cmp cl, byte [ebx + eax + 0x1ac]
je 0x4021c5
inc eax
cmp eax, esi
jbe 0x4021b5
jmp 0x4021c7
xor cl, cl
mov edx, dword [ebp - 0x88]
mov eax, 0x5018
cmp edx, 0x42
cmovg edx, dword [ebp - 0xc]
dec eax
jne 0x4021d2
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], edx
inc eax
cmp eax, 0x6217
jl 0x4021e8
mov dword [ebp - 0x90], eax
test cl, cl
je 0x402202
mov byte [ebx + esi + 0x1ac], cl
inc esi
cmp edi, 0x394e
jge 0x402236
lea ebx, [ebx]
inc edi
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, edi
sub eax, ecx
jne 0x40222e
inc edi
cmp edi, 0x394e
jl 0x402210
mov eax, dword [ebx + 0x128]
dec eax
cmp esi, eax
jb 0x402180
jmp 0x402250
mov eax, 0x4c8f8d29
imul dword [ebp - 0x98]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x98], eax
jne 0x402250
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0xf74d2af4
mov dword [ebp - 0x80], 0x31f9f9f6
mov dword [ebp - 0x7c], 0x62fc442a
movq qword [ebp - 0x78], xmm0
mov dword [ebp - 0x70], 0
mov word [ebp - 0x6c], 0
mov dword [ebp - 0x3c], 0x67affaab
mov dword [ebp - 0x38], 0xab296ae7
mov dword [ebp - 0x34], 0xd63fdffb
mov dword [ebp - 0x30], 0x3a079eb6
mov dword [ebp - 0x2c], 0xfb1f03bd
movq qword [ebp - 0x28], xmm0
mov eax, 0xc907da5
imul dword [ebp - 8]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x4022c2
movq xmm0, qword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 0xe0]
mov dword [ebp - 8], edi
movq qword [edi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], eax
xor eax, eax
jmp 0x402310
xor byte [ebp + eax - 0x84], 0xa1
inc eax
cmp eax, 0xc
jb 0x402310
mov edi, edi
mov eax, 0x4d4873ed
imul dword [ebp - 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x402320
mov ecx, 0x23bf
lea esp, [esp]
mov eax, 0xb70fbb5b
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402340
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x128], ebx
jbe 0x402633
mov edx, 0x94
mov edi, edi
mov ecx, dword [ebp - 0x40]
mov eax, 0x5f78
jmp 0x402380
cmp ecx, 0x94
cmovg ecx, edx
dec eax
jne 0x402380
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
cmp edi, 0x4c18
jge 0x4023c8
lea ebx, [ebx]
inc edi
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, edi
lea eax, [eax + eax*8]
sub ecx, eax
jne 0x4023bd
add edi, 2
cmp edi, 0x4c18
jl 0x4023a0
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x50]
cmp edi, 0x3513
jge 0x4023f0
mov ecx, 0x3512
sub ecx, edi
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
lea eax, [edx + edx*2]
lea edi, [edi + eax*2]
add edi, 6
mov dword [ebp - 0x50], edi
movzx edi, byte [esi + ebx + 0x1ac]
imul edi, dword [esi + 0x68]
mov ecx, dword [ebp - 0x64]
add edi, dword [ebp + 8]
test ecx, ecx
je 0x40241c
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402406
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [esi + 0x178], edi
test ecx, ecx
je 0x402446
lea esp, [esp]
mov eax, 0x94f2095
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402430
mov dword [ebp - 0x5c], ecx
mov esi, dword [ebp - 0x18]
cmp esi, 0x4abd
jge 0x40247a
inc esi
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x40246f
inc esi
cmp esi, 0x4abd
jl 0x402451
mov dword [ebp - 0x18], esi
movq xmm0, qword [edi]
mov eax, dword [ebp - 0x44]
mov esi, dword [edi + 0x18]
movq qword [ebp - 0x9c], xmm0
movq xmm0, qword [edi + 8]
movq qword [ebp - 0x94], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x8c], xmm0
test eax, eax
je 0x4024c0
lea ebx, [ebx]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
test eax, eax
jne 0x4024b0
mov dword [ebp - 0x44], eax
movq xmm0, qword [ebp - 0x84]
mov eax, dword [ebp - 0x7c]
movq qword [edi], xmm0
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x178]
call eax
movq xmm0, qword [ebp - 0x9c]
mov ecx, dword [ebp - 0x48]
movq qword [edi], xmm0
movq xmm0, qword [ebp - 0x94]
movq qword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x8c]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], esi
test ecx, ecx
je 0x402528
lea ecx, [ecx]
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402510
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x598b
jge 0x402554
mov eax, ecx
and eax, 0x80000001
jns 0x402541
dec eax
or eax, 0xfffffffe
inc eax
jne 0x402548
add ecx, 3
jmp 0x402549
inc ecx
cmp ecx, 0x598b
jl 0x402533
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [eax + 0x68], esi
jbe 0x402597
mov ebx, eax
mov eax, dword [ebx]
inc esi
mov al, byte [eax + 3]
xor byte [esi + edi - 1], al
movzx ecx, byte [esi + edi - 1]
mov eax, dword [ebx]
mov dl, byte [eax + 2]
xor dl, cl
mov byte [esi + edi - 1], dl
mov eax, dword [ebx]
mov cl, byte [eax + 1]
xor cl, dl
mov byte [esi + edi - 1], cl
mov eax, dword [ebx]
mov al, byte [eax]
xor al, cl
mov byte [esi + edi - 1], al
cmp esi, dword [ebx + 0x68]
jb 0x402560
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
cmp esi, 0x2d63
jge 0x4025c6
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 0x4025bb
inc esi
cmp esi, 0x2d63
jl 0x4025a2
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x58]
mov eax, 0x585e
mov edx, 0x2f
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x4025d3
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x58], ecx
cmp eax, 0x7074
mov ecx, 0x7074
cmovl eax, ecx
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
test ecx, ecx
je 0x402618
jmp 0x402600
mov eax, 0xbfa02fe9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402600
mov dword [ebp - 0x68], ecx
mov esi, dword [ebp + 0x10]
inc ebx
mov dword [ebp - 4], ebx
mov edx, 0x94
cmp ebx, dword [esi + 0x128]
jb 0x402370
mov edi, dword [ebp - 8]
call fcn.00403650
mov dword [esi + 0x130], eax
add eax, 0xfffffffe
push eax
push dword [esi + 0x44]
call fcn.00401150
add esp, 8
mov ecx, 0x4265
mov eax, 0xd62b80d7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402652
push 0x36ccd83
push edi
call fcn.00401dc0
add esp, 8
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 0x40269d
add ebx, 5
cmp ebx, 0x5d4b
jl 0x402677
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
je 0x4026e0
mov ebx, dword [ebp + 8]
lea esp, [esp]
push edi
push 0x100
push ebx
call fcn.00403330
add esp, 0xc
add ebx, 0x100
dec esi
jne 0x4026c0
jmp 0x4026e0
mov eax, 0xc907da5
imul dword [ebp - 0x54]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x54], eax
jne 0x4026e0
mov ecx, 0x2fe1
lea esp, [esp]
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402700
xor ebx, ebx
inc ebx
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x402732
add ebx, 2
cmp ebx, 0x4c18
jl 0x402717
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2043
mov ecx, 0x25
jmp 0x402750
cmp esi, ecx
cmovg esi, ecx
dec eax
jne 0x402750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret