Function at 0x4012e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push 0x3e8
lea eax, [ebp - 0x404]
push 0
push eax
mov dword [ebp - 0x408], 0
call fcn.004012b0
call fcn.00401ec0
xorps xmm0, xmm0
movq qword [ebp - 0x12], xmm0
movq qword [ebp - 0x238], xmm0
movq qword [ebp - 0x230], xmm0
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x1c], 0x3a611c24
mov dword [ebp - 0x18], 0x7cf8836d
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x238], xmm0
mov word [ebp - 0x14], 0x60
movq xmm0, qword [ebp - 0x14]
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x3f4], eax
mov dword [ebp - 0xa], 0
xor al, al
mov word [ebp - 6], 0
movq xmm0, qword [ebp - 0xc]
movq qword [ebp - 0x228], xmm0
xorps xmm0, xmm0
movq qword [ebp - 0xf4], xmm0
movq qword [ebp - 0xec], xmm0
movq qword [ebp - 0xe4], xmm0
mov word [ebp - 0x220], 0
mov byte [ebp - 0x220], al
mov word [ebp - 0xdc], 0
mov byte [ebp - 0xdc], al
mov dword [ebp - 0x1c], 0x30ccc7f5
mov eax, dword [ebp - 0x1c]
xor eax, 0xcec5ca4
mov dword [ebp - 0x18], 0x83757a00
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0xf4], xmm0
xor dword [ebp - 0xf0], 0xcec5ca4
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xf4]
push eax
mov dword [ebp - 0x14], 0xfa178e83
mov dword [ebp - 0x10], 0x3f2e5d4c
movq xmm0, qword [ebp - 0x14]
movq qword [ebp - 0xec], xmm0
xor dword [ebp - 0xec], 0xcec5ca4
xor dword [ebp - 0xe8], 0xcec5ca4
mov dword [ebp - 0xc], 0xd2eda41d
mov dword [ebp - 8], 0
movq xmm0, qword [ebp - 0xc]
lea eax, [ebp - 0x238]
push 9
movq qword [ebp - 0xe4], xmm0
xor dword [ebp - 0xe4], 0xcec5ca4
push eax
call fcn.00401c20
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00401260
lea eax, [ebp - 0x5c]
push eax
call fcn.00401190
xorps xmm0, xmm0
movq qword [ebp - 0x238], xmm0
movq qword [ebp - 0x230], xmm0
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x1c], 0x23541c04
mov dword [ebp - 0x18], 0x46e5df64
movq xmm0, qword [ebp - 0x1c]
mov dword [ebp - 0x14], 0xd9885c65
mov dword [ebp - 0x10], 0x180df9a7
movq qword [ebp - 0x238], xmm0
movq xmm0, qword [ebp - 0x14]
mov dword [ebp - 0x364], eax
mov word [ebp - 0x220], 0
mov dword [ebp - 0xc], 0x813a32ea
mov dword [ebp - 8], 0
lea eax, [ebp - 0xf4]
push eax
movq qword [ebp - 0x230], xmm0
movq xmm0, qword [ebp - 0xc]
lea eax, [ebp - 0x238]
push 0x14
push eax
movq qword [ebp - 0x228], xmm0
mov byte [ebp - 0x220], 0
call fcn.00401c20
push 0
push 0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x364]
lea eax, [ebp - 0x74]
push eax
call fcn.004010a0
add esp, 0x44
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x388]
push eax
push 0x1c
lea eax, [ebp - 0xc4]
push eax
push 0
call fcn.00401ec0
push eax
push 0xffffffffffffffff
call dword [ebp - 0x1d8]
mov dword [ebp - 0x1c4], eax
test eax, eax
js 0x4017c8
test byte [ebp - 0xb0], 0x40
jne 0x40161c
xorps xmm0, xmm0
movq qword [ebp - 0x238], xmm0
movq qword [ebp - 0x230], xmm0
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 6], 0
mov ax, word [ebp - 4]
mov word [ebp - 0x220], 0
mov word [ebp - 0x220], ax
mov dword [ebp - 0x1c], 0x24551c04
mov dword [ebp - 0x18], 0x73f9d96e
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x238], xmm0
lea eax, [ebp - 0xf4]
push eax
mov dword [ebp - 0x14], 0xde957878
mov dword [ebp - 0x10], 0x1121e0b2
movq xmm0, qword [ebp - 0x14]
movq qword [ebp - 0x230], xmm0
lea eax, [ebp - 0x238]
mov dword [ebp - 0xc], 0x972538ca
mov word [ebp - 8], 0xb7ae
movq xmm0, qword [ebp - 0xc]
push 0x16
push eax
movq qword [ebp - 0x228], xmm0
call fcn.00401c20
push 0
push 0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x364]
lea eax, [ebp - 0x74]
push eax
call fcn.004010a0
add esp, 0x20
mov dword [ebp - 0x3e0], eax
call fcn.00401ec0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x250], ecx
xor edx, edx
jmp 0x401640
mov ecx, dword [edx + eax]
xor ecx, 0xd697e08
mov dword [ebp - 0x84], ecx
cmp cl, 0xf1
jne 0x401673
cmp byte [ebp - 0x83], 0x2d
jne 0x401673
cmp byte [ebp - 0x82], 0xfb
jne 0x401673
cmp byte [ebp - 0x81], 0xf2
je 0x4017ce
inc edx
cmp edx, 0x8000
jb 0x401640
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x3f4]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x1b4], 0xb582fa4
mov dword [ebp - 0x128], 0xb580fa4
mov dword [ebp - 0x184], 0xb582ea4
mov dword [ebp - 0x3f0], ecx
mov dword [ebp - 0x380], 0x2c800
mov dword [ebp - 0x3b8], 0x2000
test eax, eax
je 0x40170a
lea ecx, [ebp - 0x20]
push ecx
push 0x40
lea ecx, [ebp - 0x380]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push 0xffffffffffffffff
call eax
lea eax, [ebp - 0x20]
push eax
push 0x40
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0x3f4]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3f0]
xor dword [ebp - 0xf4], 0xd697e08
xor dword [ebp - 0xf0], 0xd697e08
xor dword [ebp - 0xec], 0xd697e08
xor dword [ebp - 0xe8], 0xd697e08
xor dword [ebp - 0xe4], 0xd697e08
test ecx, ecx
je 0x401755
lea eax, [ebp - 0xf4]
push eax
push 0x2c800
push ecx
call fcn.00401c20
add esp, 0xc
push esi
push edi
call fcn.00401ec0
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x1f4], eax
lea esi, [eax - 2]
test edx, edx
je 0x40178f
test esi, esi
je 0x40178f
cmp edx, esi
jae 0x40178f
mov eax, 0
sub esi, edx
je 0x40178f
mov cl, byte [eax + edx + 1]
add cl, 0x24
xor byte [eax + edx], cl
inc eax
cmp eax, esi
jb 0x401780
lea eax, [ebp - 0x408]
push eax
push 0x2c800
push dword [ebp - 0x3f0]
call fcn.004017e0
mov edx, dword [ebp - 0x3f0]
xor eax, eax
mov ecx, 0xfb
lea edi, [ebp - 0x408]
add esp, 0xc
lea edx, [edx + 0x217a0]
rep stosd dword es:[edi], eax
call edx
pop edi
pop esi
xor eax, eax
mov esp, ebp
pop ebp
ret
lea ecx, [edx + eax]
mov dword [ebp - 0x10c], ecx
jmp 0x401682