Function at 0x59d3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a708a
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
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 dword [ebp - 0x114], ecx
xor eax, eax
push 0x30
push eax
mov dword [ebp - 0xe4], eax
mov byte [ecx + 4], al
lea eax, [ebp - 0x78]
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x78], 0
add esp, 0xc
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov word [ebp - 0x50], ax
mov byte [ebp - 0x4e], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0059da20
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x59d481
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x59d470
xor eax, eax
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0xc4], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 7
lea edx, [ecx + 2]
mov word [ebp - 0xc0], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59d4b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xc0]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.0057f2d0
test al, al
je 0x59d99e
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x78]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.005805c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x110], eax
cmp eax, dword [ebp - 0x20]
je 0x59d996
nop
push eax
lea ecx, [ebp - 0xdc]
call fcn.00404120
xor eax, eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 7
mov word [ebp - 0x130], ax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xfc]
call fcn.00404120
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x78]
call fcn.0057f450
mov dword [ebp - 0x98], 0
xor ecx, ecx
mov dword [ebp - 0x94], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x98], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x3c]
call fcn.00404490
lea ecx, [ebp - 0xfc]
call fcn.00404490
lea ecx, [ebp - 0x130]
call fcn.00404490
cmp dword [ebp - 0x98], 0
je 0x59d964
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x130]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
push 0x7da4e4
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 7
mov word [ebp - 0x130], ax
call fcn.004044f0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x48]
call fcn.00405a10
add esp, 4
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xc
call fcn.00404490
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
cmp esi, edi
je 0x59d859
nop
push esi
lea ecx, [ebp - 0x3c]
call fcn.00404120
mov byte [ebp - 4], 0xd
mov ecx, 4
mov dword [ebp - 0x10c], ecx
xor eax, eax
mov dword [ebp - 0x108], 0xda00e8
mov dword [ebp - 0x104], 0x9100db
mov dword [ebp - 0x100], 0xad
nop dword [eax + eax]
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x108], cx
inc eax
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jb 0x59d6b0
xor eax, eax
mov dword [ebp - 0xe8], 7
mov word [ebp + ecx*2 - 0x108], ax
mov ecx, 4
cmp dword [ebp - 0x2c], ecx
mov dword [ebp - 0xec], eax
cmovb ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 8
mov word [ebp - 0xfc], ax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0xfc]
call fcn.004044f0
or dword [ebp - 0xe4], 1
lea ecx, [ebp - 0x108]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59d720
sub ecx, edx
lea eax, [ebp - 0xfc]
mov edx, dword [ebp - 0xec]
sar ecx, 1
cmp dword [ebp - 0xe8], 8
cmovae eax, dword [ebp - 0xfc]
cmp edx, ecx
jne 0x59d769
push edx
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
mov byte [ebp - 0xdd], 1
test eax, eax
je 0x59d770
mov byte [ebp - 0xdd], 0
lea ecx, [ebp - 0xfc]
call fcn.00404490
cmp byte [ebp - 0xdd], 0
jne 0x59d7a0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00404490
add esi, 0x18
cmp esi, edi
jne 0x59d670
jmp 0x59d859
xor eax, eax
mov dword [ebp - 0xec], 0
mov word [ebp - 0xfc], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xe8], 7
cmp eax, 4
jb 0x59da0d
add eax, 0xfffffffc
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ecx
add eax, 8
lea ecx, [ebp - 0xfc]
push eax
call fcn.004044f0
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0x90]
or eax, 2
mov dword [ebp - 0xe4], eax
call fcn.00404490
movups xmm0, xmmword [ebp - 0xfc]
xor eax, eax
lea ecx, [ebp - 0xfc]
mov word [ebp - 0xfc], ax
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [ebp - 0xec]
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 7
call fcn.00404490
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00404490
lea eax, [ebp - 0x90]
push eax
call fcn.0058fa50
test al, al
jne 0x59d951
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076e8c3
mov esi, eax
mov dword [ebp - 0x118], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0xe
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x90]
mov ecx, esi
push 0
push 1
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0058f5b0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
push dword [ebp - 0x118]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059dcc0
mov edi, dword [ebp - 0x114]
mov byte [ebp - 4], 0xf
mov ecx, dword [edi + 0x3c]
cmp dword [edi + 0x40], ecx
je 0x59d914
mov esi, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x59d906
lock inc dword [esi + 4]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], esi
add dword [edi + 0x3c], 8
jmp 0x59d924
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [edi + 0x38]
call fcn.00413880
mov esi, dword [ebp - 0x14]
mov byte [edi + 4], 1
mov byte [ebp - 4], 0x10
test esi, esi
je 0x59d951
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x59d951
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x59d951
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x48]
call fcn.00404220
lea ecx, [ebp - 0x90]
call fcn.00404490
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00404490
mov eax, dword [ebp - 0x110]
add eax, 0x18
mov dword [ebp - 0x110], eax
cmp eax, dword [ebp - 0x20]
jne 0x59d520
lea ecx, [ebp - 0x24]
call fcn.00404220
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0xc0]
mov al, byte [eax + 4]
mov byte [ebp - 0xdd], al
call fcn.00404490
mov eax, dword [ebp - 0x78]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x59d9cf
push eax
call esi
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x50], 0
call fcn.00404490
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x59d9ec
push ecx
call esi
mov al, byte [ebp - 0xdd]
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
call fcn.004046a0
int3