Function at 0x5d0870
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 0x7ab046
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x82f184]
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 0x5d099f
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d0921
nop
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d0910
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 0x5d0943
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.0057e080
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x8d], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0x8d], 0
jmp 0x5d0a36
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d09c2
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d09b1
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 0x5d09e4
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.0057e200
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x8d], al
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0x8d], 0
je 0x5d0ebb
mov eax, 0xc
mov dword [ebp - 0xc4], 0xdc00fc
mov dword [ebp - 0xc8], eax
xor ecx, ecx
mov dword [ebp - 0xc0], 0xda00dc
mov dword [ebp - 0xbc], 0xd100c9
mov dword [ebp - 0xb8], 0xec00ca
mov dword [ebp - 0xb4], 0xae00a3
mov dword [ebp - 0xb0], 0xa600b2
mov dword [ebp - 0xac], 0xc4
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xc4], ax
inc ecx
mov eax, dword [ebp - 0xc8]
cmp ecx, eax
jb 0x5d0a90
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 0x5d0ad5
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.0057e2d0
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 0x5d0be5
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xe0]
push 0x7cd374
push eax
call fcn.0041ee30
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x5d0bb1
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.0057e150
test al, al
je 0x5d0eb0
mov dword [ebp - 0xc4], 0xb
xor ecx, ecx
mov dword [ebp - 0xc0], 0xd000fc
mov dword [ebp - 0xbc], 0xcb00c9
mov dword [ebp - 0xb8], 0xdc00d0
mov dword [ebp - 0xb4], 0xf100c7
mov dword [ebp - 0xb0], 0xac00a1
mov dword [ebp - 0xac], 0xc300a7
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xc0], ax
inc ecx
mov eax, dword [ebp - 0xc4]
cmp ecx, eax
jb 0x5d0c30
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 0x5d0c75
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.0057e2d0
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 0x7d8820
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.0057e2d0
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.00451010
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.0058a560
test al, al
jne 0x5d0e16
call fcn.00451010
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.0058a560
test al, al
je 0x5d0ea0
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 0x5d0e73
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 0x5d0e9c
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 0x5d0ed2
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 0x5d0eef
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.0076d59e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4