Function at 0x59c9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6f94
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
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 eax, ecx
mov dword [ebp - 0xf4], eax
xor edi, edi
mov dword [ebp - 0xc8], edi
push 0x30
mov byte [eax + 4], 0
lea eax, [ebp - 0x6c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x6c], edi
add esp, 0xc
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov word [ebp - 0x44], ax
mov byte [ebp - 0x42], al
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 0xa9
mov word [ebp + eax*2 - 0xcc], cx
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xa4], VariantCopy
lea edx, [ecx + 2]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59ca90
sub ecx, edx
lea eax, [ebp - 0xcc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.0057f2d0
test al, al
je 0x59d10e
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x6c]
push eax
movq qword [ebp - 0x3c], xmm0
call fcn.00580380
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0xc4], esi
cmp esi, dword [ebp - 0x38]
je 0x59d106
nop word [eax + eax]
push esi
lea ecx, [ebp - 0xbc]
call fcn.00404120
mov byte [ebp - 4], 3
mov eax, 0xc
mov dword [ebp - 0x12c], eax
xor ecx, ecx
mov dword [ebp - 0x128], 0xee00f5
mov dword [ebp - 0x124], 0xca00ce
mov dword [ebp - 0x120], 0xdb00cc
mov dword [ebp - 0x11c], 0xc400c3
mov dword [ebp - 0x118], 0xd100f8
mov dword [ebp - 0x114], 0xda00dc
mov dword [ebp - 0x110], 0xb5
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x128], ax
inc ecx
mov eax, dword [ebp - 0x12c]
cmp ecx, eax
jb 0x59cb80
xor ecx, ecx
mov word [ebp + eax*2 - 0x128], cx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00421b40
mov ecx, dword [ebp - 0xa4]
add esp, 0xc
mov dword [ebp - 0x88], ecx
xor ecx, ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 4
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0057f2d0
test al, al
je 0x59d0da
xor eax, eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x144]
push eax
push 0x7cf388
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
call fcn.004044f0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0057f450
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x124]
call fcn.00404490
lea ecx, [ebp - 0x144]
call fcn.00404490
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.00404490
cmp dword [ebp - 0x20], 0
je 0x59d0d2
mov eax, 2
mov dword [ebp - 0xfc], 0xd100e9
mov dword [ebp - 0x100], eax
xor ecx, ecx
mov dword [ebp - 0xf8], 0xab
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xfc], ax
inc ecx
mov eax, dword [ebp - 0x100]
cmp ecx, eax
jb 0x59cd20
xor ecx, ecx
mov dword [ebp - 0xd4], 7
mov word [ebp + eax*2 - 0xfc], cx
xor eax, eax
mov dword [ebp - 0xd8], ecx
mov ecx, 2
cmp dword [ebp - 0x20], ecx
mov word [ebp - 0xe8], ax
lea eax, [ebp - 0x30]
cmovb ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 8
push ecx
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0xe8]
push eax
call fcn.004044f0
lea ecx, [ebp - 0xfc]
or edi, 5
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59cd90
sub ecx, edx
lea eax, [ebp - 0xe8]
mov edx, dword [ebp - 0xd8]
sar ecx, 1
cmp dword [ebp - 0xd4], 8
cmovae eax, dword [ebp - 0xe8]
cmp edx, ecx
jne 0x59cdd6
push edx
lea ecx, [ebp - 0xfc]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x59ce66
mov ecx, 2
mov dword [ebp - 0x108], 0x9b008c
mov dword [ebp - 0x10c], ecx
xor eax, eax
mov dword [ebp - 0x104], 0xab
nop word [eax + eax]
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x108], cx
inc eax
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jb 0x59ce00
xor eax, eax
mov word [ebp + ecx*2 - 0x108], ax
lea ecx, [ebp - 0x108]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59ce30
sub ecx, edx
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
sar ecx, 1
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
cmp edx, ecx
jne 0x59ce6f
push edx
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x59ce6f
mov byte [ebp - 0xbd], 1
jmp 0x59ce76
mov byte [ebp - 0xbd], 0
lea ecx, [ebp - 0xe8]
and edi, 0xfffffffe
call fcn.00404490
cmp byte [ebp - 0xbd], 0
jne 0x59d0d2
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
cmp word [eax], 0x40
jne 0x59cec9
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403fb0
push eax
lea ecx, [ebp - 0x30]
call fcn.00404030
lea ecx, [ebp - 0x15c]
call fcn.00404490
push 1
xor eax, eax
mov dword [ebp - 0xd8], 0
push 0x7cf390
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
call fcn.004044f0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x168]
call fcn.00405bb0
add esp, 4
mov byte [ebp - 4], 0xb
push dword [eax]
call fcn.0058fa50
lea ecx, [ebp - 0x168]
mov byte [ebp - 0xbd], al
call fcn.00404220
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.00404490
cmp byte [ebp - 0xbd], 0
jne 0x59d0d2
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076e8c3
mov esi, eax
mov dword [ebp - 0xcc], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0xc
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0xf0], 0xc
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xec], 0xee00f5
mov dword [ebp - 0xe8], 0xca00ce
mov dword [ebp - 0xe4], 0xdb00cc
mov dword [ebp - 0xe0], 0xc400c3
mov dword [ebp - 0xdc], 0xd100f8
mov dword [ebp - 0xd8], 0xda00dc
mov dword [ebp - 0xd4], 0xb5
call fcn.00403e20
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00421b40
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0xa4]
or edi, 2
push eax
mov ecx, esi
mov dword [ebp - 0xc8], edi
call fcn.0058f5b0
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x18]
push dword [ebp - 0xcc]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059dcc0
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x15c]
and edi, 0xfffffffd
mov dword [ebp - 0xc8], edi
call fcn.00404490
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 0x3c]
cmp dword [edx + 0x40], ecx
je 0x59d083
mov esi, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x59d075
lock inc dword [esi + 4]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], esi
add dword [edx + 0x3c], 8
jmp 0x59d093
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [edx + 0x38]
call fcn.00413880
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xf4]
mov byte [eax + 4], 1
mov byte [ebp - 4], 0x11
test esi, esi
je 0x59d0cc
mov edi, dword [ebp - 0xc8]
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x59d0cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x59d0cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xc4]
lea ecx, [ebp - 0x30]
call fcn.00404490
lea ecx, [ebp - 0x84]
call fcn.00404490
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.00404490
add esi, 0x18
mov dword [ebp - 0xc4], esi
cmp esi, dword [ebp - 0x38]
jne 0x59cb10
lea ecx, [ebp - 0x3c]
call fcn.00404220
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xa0]
mov al, byte [eax + 4]
mov byte [ebp - 0xbd], al
call fcn.00404490
mov eax, dword [ebp - 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x59d13f
push eax
call esi
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x44], 0
call fcn.00404490
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x59d15c
push eax
call esi
mov al, byte [ebp - 0xbd]
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