Function at 0x401a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
cmp dword [ebp + 8], 0
je 0x4020ac
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4020ac
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x270]
xor eax, dword [esi + 0x5c]
lea ebx, [esi + 0x5c]
cmp ecx, eax
jl 0x4020aa
mov dword [esi + 0x38], 0
xor eax, eax
inc eax
cmp eax, 5
jl 0x401a60
mov dword [esi + 0x38], 0
xor eax, eax
nop
inc eax
cmp eax, 5
jl 0x401a70
push edi
mov dword [esi + 0x38], eax
call fcn.00402750
mov dword [esi + 0x210], eax
mov eax, dword [ebx]
xor dword [esi + 0x1c4], eax
mov edi, dword [esi + 0x1c4]
xor esi, esi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401ab0
inc esi
cmp esi, 0x53e
jl 0x401a95
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 1
mov dword [esi + 0x38], 2
mov edx, 2
lea ecx, [ebp - 0x130]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
inc edx
mov dword [ecx + 8], eax
lea ecx, [ecx + 4]
cmp edx, 0x33
jl 0x401ae1
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], edx
xor edx, edx
div edi
mov dword [esi + 0x74], ebx
mov ebx, eax
mov dword [esi + 0x27c], ebx
xor esi, esi
lea esp, [esp]
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401b2b
inc esi
cmp esi, 0x42ed
jl 0x401b10
imul edi, ebx
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebx], edi
test edi, edi
je 0x401b7b
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x74]
inc esi
mov al, byte [eax]
xor byte [esi + edi - 1], al
movzx ecx, byte [esi + edi - 1]
mov eax, dword [ebx + 0x74]
mov dl, byte [eax + 1]
xor dl, cl
mov byte [esi + edi - 1], dl
mov eax, dword [ebx + 0x74]
mov cl, byte [eax + 2]
xor cl, dl
mov byte [esi + edi - 1], cl
mov eax, dword [ebx + 0x74]
mov al, byte [eax + 3]
xor al, cl
mov byte [esi + edi - 1], al
cmp esi, dword [ebx]
jb 0x401b44
xor esi, esi
lea ecx, [ecx]
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401b9d
add esi, 2
cmp esi, 0xf1f
jl 0x401b80
xor esi, esi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401bc2
inc esi
cmp esi, 0x4cbc
jl 0x401ba7
mov dword [ebx + 0x38], 0
xor eax, eax
inc eax
cmp eax, 0xa
jl 0x401bd3
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x1c4]
xor ecx, ecx
mov dword [ebp - 4], ecx
dec eax
je 0x401d49
mov edi, edi
mov eax, dword [ebx + 0x1c4]
dec eax
push eax
push 1
push ebx
call fcn.004025e0
add esp, 0xc
mov byte [ebp + 0x13], al
xor edi, edi
jmp 0x401c10
xor eax, eax
mov ecx, eax
and ecx, 0x80000001
jns 0x401c21
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x401c28
add eax, 3
jmp 0x401c29
inc eax
cmp eax, 0x738a
jl 0x401c12
mov dword [ebx + 0x38], 1
mov eax, 1
lea esp, [esp]
inc eax
cmp eax, 7
jle 0x401c40
mov dword [ebx + 0x38], eax
xor esi, esi
jmp 0x401c50
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401c6b
inc esi
cmp esi, 0x1d9f
jl 0x401c50
mov al, byte [ebp + 0x13]
cmp al, byte [ebx + edi + 0xc0]
je 0x401cda
xor esi, esi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401c9c
inc esi
cmp esi, 0x7433
jl 0x401c81
xor esi, esi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401cc1
inc esi
cmp esi, 0x16df
jl 0x401ca6
mov esi, dword [ebp - 4]
inc edi
cmp edi, esi
jbe 0x401c10
mov cl, byte [ebp + 0x13]
jmp 0x401cdf
mov esi, dword [ebp - 4]
xor cl, cl
mov dword [ebx + 0x38], 0
xor eax, eax
inc eax
cmp eax, 5
jl 0x401ce8
mov dword [ebx + 0x38], eax
test cl, cl
je 0x401d00
mov byte [ebx + esi + 0xc0], cl
inc esi
mov dword [ebp - 4], esi
xor esi, esi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401d1d
inc esi
cmp esi, 0x4de0
jl 0x401d02
mov dword [ebx + 0x38], 0
xor eax, eax
mov edi, edi
inc eax
cmp eax, 5
jl 0x401d30
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x1c4]
dec eax
cmp dword [ebp - 4], eax
jb 0x401bf0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0x318bec32
mov dword [ebp - 0x40], 0xf73f3f30
mov dword [ebp - 0x3c], 0xa43a82ec
movq qword [ebp - 0x38], xmm0
movq qword [ebp - 0x30], xmm0
mov word [ebp - 0x28], 0
mov byte [ebp - 0x26], 0
xor esi, esi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401d92
inc esi
cmp esi, 0x5307
jl 0x401d77
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x24], 0x70e53b4f
mov dword [ebp - 0x20], 0xdc952023
movq xmm0, qword [ebp - 0x24]
movq qword [ebx + 0x1d4], xmm0
mov dword [ebp - 0x1c], 0x54fb7f68
mov dword [ebp - 0x18], 0x646f511f
movq xmm0, qword [ebp - 0x1c]
movq qword [ebx + 0x1dc], xmm0
mov dword [ebp - 0x14], 0xd7c10d09
movq xmm0, qword [ebp - 0x14]
movq qword [ebx + 0x1e4], xmm0
mov dword [ebp - 8], 0
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x1ec], xmm0
xor ecx, ecx
xor eax, eax
inc eax
cmp eax, 5
jl 0x401e04
mov eax, 1
nop
inc eax
cmp eax, 0xb
jle 0x401e10
xor byte [ebp + ecx - 0x44], 0x67
xor eax, eax
lea ecx, [ecx]
inc eax
cmp eax, 5
jl 0x401e20
inc ecx
cmp ecx, 0xc
jb 0x401e02
xor edi, edi
mov dword [ebx + 0x38], eax
mov dword [ebp + 0x10], edi
cmp dword [ebx + 0x1c4], edi
jbe 0x402003
mov dword [ebx + 0x38], 1
mov eax, 1
lea esp, [esp]
inc eax
cmp eax, 0xd
jle 0x401e50
mov dword [ebx + 0x38], 0
xor eax, eax
nop
inc eax
cmp eax, 5
jl 0x401e60
mov dword [ebx + 0x38], eax
xor esi, esi
jmp 0x401e70
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401e8d
add esi, 2
cmp esi, 0x388c
jl 0x401e70
movzx esi, byte [ebx + edi + 0xc0]
imul esi, dword [ebx + 0x27c]
add esi, dword [ebp + 8]
mov dword [ebx + 0x38], 0
mov dword [ebp - 4], esi
xor eax, eax
inc eax
cmp eax, 5
jl 0x401eb3
mov dword [ebx + 0x38], 0
xor eax, eax
inc eax
cmp eax, 5
jl 0x401ec2
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x218], esi
movq xmm0, qword [esi]
movq qword [ebp - 0x5c], xmm0
movq xmm0, qword [esi + 8]
movq qword [ebp - 0x54], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x4c], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [ebp - 0x64], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x218]
call eax
xor ecx, ecx
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x401f20
dec eax
or eax, 0xfffffffe
inc eax
jne 0x401f26
add ecx, ecx
jmp 0x401f2f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
cmp ecx, 0x6c79
jl 0x401f11
movq xmm0, qword [ebp - 0x5c]
movq qword [esi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [esi + 8], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x64]
xor edi, edi
movq qword [esi + 0x18], xmm0
cmp dword [ebx + 0x27c], edi
jbe 0x401ff0
lea esp, [esp]
mov dword [ebx + 0x38], 0
xor eax, eax
lea esp, [esp]
inc eax
cmp eax, 0x76ee
jl 0x401f80
mov dword [ebx + 0x38], eax
xor esi, esi
lea ecx, [ecx]
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401fac
add esi, esi
cmp esi, 0x584e
jl 0x401f90
mov eax, dword [ebx + 0x74]
mov esi, dword [ebp - 4]
mov al, byte [eax + 3]
xor byte [edi + esi], al
movzx ecx, byte [edi + esi]
mov eax, dword [ebx + 0x74]
inc edi
mov dl, byte [eax + 2]
xor dl, cl
mov byte [edi + esi - 1], dl
mov eax, dword [ebx + 0x74]
mov cl, byte [eax + 1]
xor cl, dl
mov byte [edi + esi - 1], cl
mov eax, dword [ebx + 0x74]
mov al, byte [eax]
xor al, cl
mov byte [edi + esi - 1], al
cmp edi, dword [ebx + 0x27c]
jb 0x401f70
mov edi, dword [ebp + 0x10]
inc edi
mov dword [ebp + 0x10], edi
cmp edi, dword [ebx + 0x1c4]
jb 0x401e40
call fcn.00402750
lea ecx, [eax - 2]
push ecx
push dword [ebx + 0x210]
mov dword [ebx + 0x1f8], eax
call fcn.00401090
push 0x2a4f032
lea edi, [ebx + 0x1d4]
push edi
call fcn.00401980
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xff
add esp, 0x10
lea esi, [edx + eax]
sar esi, 8
test esi, esi
je 0x4020a9
mov eax, dword [ebp + 8]
push edi
push 0x100
push eax
call fcn.004024b0
add esp, 0xc
mov dword [ebx + 0x38], 1
mov eax, 1
inc eax
cmp eax, 0x5d91
jle 0x402063
mov dword [ebx + 0x38], 0
xor ecx, ecx
inc ecx
cmp ecx, 0x33
jl 0x402074
mov dword [ebx + 0x38], 0
xor eax, eax
inc eax
cmp eax, 5
jl 0x402083
mov dword [ebx + 0x38], 0
xor eax, eax
inc eax
cmp eax, 5
jl 0x402092
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 8]
add eax, 0x100
mov dword [ebp + 8], eax
dec esi
jne 0x402048
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret