Function at 0x5840c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a47bd
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x831184]
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, edx
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x30
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xac], ecx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x58], 7
add esp, 0xc
mov word [ebp - 0x6c], ax
movups xmmword [ebp - 0x7c], xmm0
mov word [ebp - 0x54], ax
mov byte [ebp - 0x52], al
push 0xf003f
push esi
push edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], eax
call fcn.0057f2d0
test al, al
je 0x584421
mov dword [ebp - 0xa8], 0xf
xor ecx, ecx
mov dword [ebp - 0xa4], 0xc400fc
mov dword [ebp - 0xa0], 0xc200c2
mov dword [ebp - 0x9c], 0xda00de
mov dword [ebp - 0x98], 0xdc00ce
mov dword [ebp - 0x94], 0xe100dd
mov dword [ebp - 0x90], 0xc600c7
mov dword [ebp - 0x8c], 0xd800dc
mov dword [ebp - 0x88], 0xb800d0
nop
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xa4], ax
inc ecx
mov eax, dword [ebp - 0xa8]
cmp ecx, eax
jb 0x5841b0
xor ecx, ecx
mov word [ebp + eax*2 - 0xa4], cx
xor eax, eax
mov dword [ebp - 0xb8], ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xc8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5841f5
sub ecx, edx
lea eax, [ebp - 0xa4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc8]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0057f450
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xec]
call fcn.00404490
lea ecx, [ebp - 0x9c]
call fcn.00404490
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00404490
cmp dword [ebp - 0x3c], 0
je 0x584419
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x9c]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.0041cd00
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.00403b80
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xa
call fcn.00404490
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x584409
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00403a30
test al, al
jne 0x584398
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403720
mov ecx, 1
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xac], ecx
mov ecx, eax
push esi
call fcn.00403a30
test al, al
jne 0x584398
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403720
mov ecx, 3
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x84], ecx
mov edx, esi
mov dword [ebp - 0xac], ecx
mov ecx, eax
call fcn.00402f00
mov byte [ebp - 0x7d], 0
test al, al
je 0x58439c
mov byte [ebp - 0x7d], 1
mov eax, dword [ebp - 0x84]
test al, 2
je 0x5843cb
and eax, 0xfffffffd
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x84], eax
call fcn.00404220
lea ecx, [ebp - 0xf8]
call fcn.00404490
mov eax, dword [ebp - 0x84]
test al, 1
je 0x5843e5
lea ecx, [ebp - 0xbc]
call fcn.00404220
lea ecx, [ebp - 0xd4]
call fcn.00404490
cmp byte [ebp - 0x7d], 0
je 0x584409
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x4c]
call fcn.00404490
mov byte [ebp - 0x7d], 1
jmp 0x584425
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x4c]
call fcn.00404490
mov byte [ebp - 0x7d], 0
mov eax, dword [ebp - 0x7c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x58443c
push eax
call esi
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x54], 0
call fcn.00404490
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x584459
push eax
call esi
mov al, byte [ebp - 0x7d]
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.0076eb7e
mov esp, ebp
pop ebp
ret