Function at 0x4022c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b1e5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0x24
mov dword [ebp - 0x2c], 0
push str.8ba850cf_948e_4f70_b9d0_a0d20c135b9f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00402bc0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x48], ecx
cmp ecx, 0x64
ja 0x40256e
cmp ecx, 1
jb 0x40256e
cmp dword [ebp + 0x1c], 0x10
lea eax, [ecx + 0x20]
mov byte [ebp - 0x14], al
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00402f00
lea ecx, [ebp + 8]
call fcn.004028f0
movups xmm0, xmmword [ebp - 0x64]
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x64], 0
movups xmmword [ebp + 8], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [ebp + 0x18], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
call fcn.004028f0
mov eax, 0x7e
mov edi, 0
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
je 0x402441
nop
call fcn.00525c69
mov ecx, 0x5e
cdq
idiv ecx
mov ecx, dword [ebp + 0x18]
add dl, 0x21
mov byte [ebp - 0x14], dl
cmp ecx, 0x7fffffff
je 0x402608
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp - 0x14]
push 1
push edx
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00402f00
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402425
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40241b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402603
push ecx
push edx
call fcn.00517162
add esp, 8
movups xmm0, xmmword [ebp - 0x64]
inc edi
movups xmmword [ebp + 8], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [ebp + 0x18], xmm0
cmp edi, dword [ebp - 0x48]
jb 0x4023b0
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x402499
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
mov eax, dword [ebp - 0x48]
cmovae esi, dword [ebp + 8]
add esi, ecx
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, edx
xor edx, edx
div dword [ebp - 0x1c]
mov al, byte [esi]
add edx, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
xor al, byte [edx]
mov edx, dword [ebp - 0x48]
mov byte [ecx + edx], al
mov ecx, edx
mov eax, dword [ebp + 0x18]
inc ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
cmp ecx, eax
jb 0x402450
mov esi, dword [ebp - 0x4c]
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
push eax
cmovae edx, dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00401e10
movups xmm0, xmmword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 0x44], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
cmp eax, 0x10
jb 0x40251d
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x402513
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402603
push edx
push ecx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402551
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402547
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402603
push ecx
push edx
call fcn.00517162
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0
push 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x5581b4
mov byte [esi], 0
call fcn.00402bc0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4025d1
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4025c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402603
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402551
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402547
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402547
call fcn.0051eb64
call fcn.00401640
int3