Function at 0x5d18a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ac7d6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
push 0x30
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 7
add esp, 0xc
mov word [ebp - 0x4c], ax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x34], ax
mov byte [ebp - 0x32], al
cmp byte [ebx + 8], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x180]
push eax
je 0x5d19cf
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d1951
nop
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d1940
xor eax, eax
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1973
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa8]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x5c]
call fcn.0057f200
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x8d], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0x8d], 0
jmp 0x5d1a66
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d19f2
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d19e1
xor eax, eax
mov dword [ebp - 0x94], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x98], eax
mov word [ebp - 0xa8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1a14
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa8]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f380
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x8d], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0x8d], 0
je 0x5d1eeb
mov eax, 0xc
mov dword [ebp - 0xc4], 0xcf00ed
mov dword [ebp - 0xc8], eax
xor ecx, ecx
mov dword [ebp - 0xc0], 0xcd00cd
mov dword [ebp - 0xbc], 0xc200d8
mov dword [ebp - 0xb8], 0xe300db
mov dword [ebp - 0xb4], 0xdd00d2
mov dword [ebp - 0xb0], 0xd100c3
mov dword [ebp - 0xac], 0xb5
nop
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xc4], ax
inc ecx
mov eax, dword [ebp - 0xc8]
cmp ecx, eax
jb 0x5d1ac0
xor ecx, ecx
mov word [ebp + eax*2 - 0xc4], cx
xor eax, eax
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x94], 7
lea edx, [ecx + 2]
mov word [ebp - 0xa8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1b05
sub ecx, edx
lea eax, [ebp - 0xc4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f450
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x7c], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x114]
call fcn.00404490
lea ecx, [ebp - 0xe0]
call fcn.00404490
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 7
call fcn.00404490
cmp dword [ebp - 0x7c], 0
je 0x5d1c15
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xe0]
push 0x7cf384
push eax
call fcn.0041ee30
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x5d1be1
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407c50
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f2d0
test al, al
je 0x5d1ee0
mov dword [ebp - 0xc4], 0xb
xor ecx, ecx
mov dword [ebp - 0xc0], 0xc300ed
mov dword [ebp - 0xbc], 0xdc00d8
mov dword [ebp - 0xb8], 0xcf00c1
mov dword [ebp - 0xb4], 0xfe00d6
mov dword [ebp - 0xb0], 0xdf00d0
mov dword [ebp - 0xac], 0xb400d6
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xc0], ax
inc ecx
mov eax, dword [ebp - 0xc4]
cmp ecx, eax
jb 0x5d1c60
xor ecx, ecx
mov word [ebp + eax*2 - 0xc0], cx
xor eax, eax
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xcc], 7
lea edx, [ecx + 2]
mov word [ebp - 0xe0], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1ca5
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe0]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f450
mov dword [ebp - 0x64], 0
xor ecx, ecx
mov dword [ebp - 0x60], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x64], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xfc]
call fcn.00404490
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [ebp - 0xe0]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xe0]
push 3
push 0x7da86c
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
call fcn.004044f0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f450
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xfc]
call fcn.00404490
lea ecx, [ebp - 0xe0]
call fcn.00404490
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x12
call fcn.00404490
call fcn.00451ae0
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.0058b550
test al, al
jne 0x5d1e46
call fcn.00451ae0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.0058b550
test al, al
je 0x5d1ed0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00404120
mov edi, dword [ebp - 0xe4]
lea eax, [ebp - 0xa8]
lea esi, [edi + 0x1c]
cmp esi, eax
je 0x5d1ea3
mov ecx, esi
call fcn.00404490
movups xmm0, xmmword [ebp - 0xa8]
xor eax, eax
mov word [ebp - 0xa8], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x98]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [edi + 0xa0]
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x5d1ecc
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004044f0
mov byte [edi + 0xc], 1
lea ecx, [ebp - 0x2c]
call fcn.00404490
lea ecx, [ebp - 0x74]
call fcn.00404490
lea ecx, [ebp - 0x8c]
call fcn.00404490
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5d1f02
push eax
call esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x34], 0
call fcn.00404490
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x5d1f1f
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4