Function at 0x59b1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a56db
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x82f184]
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 - 0xe0], eax
push 0x30
mov byte [eax + 4], 0
lea eax, [ebp - 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x74], 0
add esp, 0xc
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov word [ebp - 0x4c], ax
mov byte [ebp - 0x4a], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
call fcn.0059b6d0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x59b271
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x59b260
xor eax, eax
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0xc0], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 7
lea edx, [ecx + 2]
mov word [ebp - 0xbc], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59b2a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xbc]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x74]
call fcn.0057e150
test al, al
je 0x59b659
mov dword [ebp - 0x20], 5
xor ecx, ecx
mov dword [ebp - 0x1c], 0xd600de
mov dword [ebp - 0x18], 0xcf00d4
mov dword [ebp - 0x14], 0xbd00cf
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x1c], ax
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x59b300
xor ecx, ecx
mov word [ebp + eax*2 - 0x1c], cx
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59b320
sub ecx, edx
mov dword [ebp - 0x34], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
call fcn.004044f0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push 2
push eax
call fcn.00427030
add esp, 8
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.00404120
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa4]
call fcn.00414b80
push eax
lea ecx, [ebp - 0x8c]
call fcn.00404120
lea ecx, [ebp - 0xa4]
call fcn.00404490
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xd8]
call fcn.00404120
lea ecx, [ebp - 0x8c]
call fcn.00404490
lea ecx, [ebp - 0x114]
call fcn.00404490
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.00404490
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x74]
push eax
movq qword [ebp - 0x2c], xmm0
call fcn.0057f440
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0x28]
je 0x59b646
push edi
lea ecx, [ebp - 0xa4]
call fcn.00404120
xor eax, eax
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], ax
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x114]
call fcn.00404120
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0057e2d0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x34], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x12c]
call fcn.00404490
lea ecx, [ebp - 0x114]
call fcn.00404490
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x10
call fcn.00404490
push 0x7cd374
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00421b40
add esp, 0xc
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov ecx, eax
push dword [ebp - 0x34]
cmovae edx, dword [ebp - 0x20]
push edx
call fcn.00407c50
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 - 0xfc]
mov byte [ebp - 4], 0x13
call fcn.00404490
lea eax, [ebp - 0x8c]
push eax
call fcn.0058ea60
test al, al
jne 0x59b618
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076d2e3
mov esi, eax
mov dword [ebp - 0xe4], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0x14
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x8c]
mov ecx, esi
push 0
push 1
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.0058e5c0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x18]
push dword [ebp - 0xe4]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059ccc0
mov edx, dword [ebp - 0xe0]
mov byte [ebp - 4], 0x15
mov ecx, dword [edx + 0x3c]
cmp dword [edx + 0x40], ecx
je 0x59b5d5
mov esi, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x59b5c7
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 0x59b5e5
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [edx + 0x38]
call fcn.00413880
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xe0]
mov byte [eax + 4], 1
mov byte [ebp - 4], 0x16
test esi, esi
je 0x59b618
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x59b618
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x59b618
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x8c]
call fcn.00404490
lea ecx, [ebp - 0x44]
call fcn.00404490
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00404490
add edi, 0x18
cmp edi, dword [ebp - 0x28]
jne 0x59b402
lea ecx, [ebp - 0x2c]
call fcn.00404220
lea ecx, [ebp - 0xd8]
call fcn.00404490
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xbc]
mov al, byte [eax + 4]
mov byte [ebp - 0xd9], al
call fcn.00404490
mov eax, dword [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x59b68a
push eax
call esi
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x4c], 0
call fcn.00404490
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x59b6a7
push eax
call esi
mov al, byte [ebp - 0xd9]
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.0076d59e
mov esp, ebp
pop ebp
ret