Function at 0x59b240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6d9d
mov eax, dword fs:[0]
push eax
sub esp, 0x220
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 edi, ecx
mov dword [ebp - 0xec], edi
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov byte [edi + 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x1e0]
mov dword [ebp - 4], 0
push eax
call fcn.0059bb30
xor ecx, ecx
mov edx, dword [eax]
lea esi, [eax + 4]
test edx, edx
je 0x59b2d7
mov edi, eax
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x59b2c0
mov edi, dword [ebp - 0xec]
xor eax, eax
mov dword [ebp - 0x12c], VariantCopy
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59b303
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x128]
call fcn.004044f0
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x30]
call fcn.0045bfa0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x1e0]
push eax
call fcn.0059bb30
xor ecx, ecx
mov dword [ebp - 0xf0], eax
mov edx, dword [eax]
lea esi, [eax + 4]
test edx, edx
je 0x59b377
mov edi, eax
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x59b360
mov edi, dword [ebp - 0xec]
xor eax, eax
mov dword [ebp - 0x12c], reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59b3a3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x128]
call fcn.004044f0
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x30]
call fcn.0045bfa0
lea ecx, [ebp - 0x128]
call fcn.00404490
push 0x30
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x90], 0
add esp, 0xc
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov word [ebp - 0x68], ax
mov byte [ebp - 0x66], al
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xf4], eax
cmp ecx, eax
je 0x59b7b5
mov eax, dword [ecx]
mov dword [ebp - 0xc8], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00404120
push 0xf003f
push 0x100
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x90]
call fcn.0057f2d0
test al, al
je 0x59b785
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x90]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.00580380
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
cmp edi, esi
je 0x59b77d
push edi
lea ecx, [ebp - 0x60]
call fcn.00404120
push 0x7cf384
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00421b40
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
push dword [ebp - 0x50]
cmovae ecx, dword [ebp - 0x60]
push ecx
mov ecx, eax
call fcn.00407c50
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xe4], eax
xor eax, eax
movq qword [ebp - 0x100], xmm0
movups xmmword [ebp - 0x110], xmm1
mov dword [ebp - 0x100], ecx
movups xmmword [ebp - 0xe0], xmm1
mov dword [ebp - 0xfc], 7
movq qword [ebp - 0xd0], xmm0
mov word [ebp - 0x110], ax
lea ecx, [ebp - 0x110]
call fcn.00404490
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 9
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x90]
call fcn.0057f2d0
test al, al
je 0x59b75b
xor eax, eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
mov byte [ebp - 4], 0xa
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 - 0x15c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x90]
call fcn.0057f450
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x38], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x128]
call fcn.00404490
lea ecx, [ebp - 0x144]
call fcn.00404490
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xe
call fcn.00404490
cmp dword [ebp - 0x38], 0
je 0x59b753
lea eax, [ebp - 0x48]
push eax
call fcn.0058fa50
test al, al
jne 0x59b753
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076e8c3
mov esi, eax
mov dword [ebp - 0xf8], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0xf
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, esi
push 0
push 0
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0058f5b0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x18]
push dword [ebp - 0xf8]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059dcc0
mov edx, dword [ebp - 0xec]
mov byte [ebp - 4], 0x10
mov eax, dword [edx + 0x3c]
cmp dword [edx + 0x40], eax
je 0x59b70d
mov esi, dword [ebp - 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x59b6ff
lock inc dword [esi + 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [eax + 4], esi
add dword [edx + 0x3c], 8
jmp 0x59b71d
lea ecx, [ebp - 0x18]
push ecx
push eax
lea ecx, [edx + 0x38]
call fcn.00413880
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xec]
mov byte [eax + 4], 1
mov byte [ebp - 4], 0x11
test esi, esi
je 0x59b750
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x59b750
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x59b750
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
call fcn.00404490
lea ecx, [ebp - 0xe0]
call fcn.00404490
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00404490
add edi, 0x18
cmp edi, esi
jne 0x59b4c0
lea ecx, [ebp - 0x24]
call fcn.00404220
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 3
call fcn.00404490
mov ecx, dword [ebp - 0xf0]
add ecx, 0x1c
mov dword [ebp - 0xf0], ecx
cmp ecx, dword [ebp - 0xf4]
jne 0x59b451
mov edi, dword [ebp - 0xec]
lea eax, [ebp - 0x22c]
push eax
call fcn.0059bc00
xor ecx, ecx
mov dword [ebp - 0xf4], eax
mov edx, dword [eax]
lea esi, [eax + 4]
test edx, edx
je 0x59b7eb
mov edi, eax
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x59b7d4
mov edi, dword [ebp - 0xec]
xor eax, eax
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0xac], VariantCopy
mov dword [ebp - 0x98], eax
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 0x59b817
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa8]
call fcn.004044f0
push 0xf003f
push 0x100
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x90]
call fcn.0057f2d0
test al, al
je 0x59ba9b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x90]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.005805c0
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0xec], esi
cmp esi, dword [ebp - 0x20]
je 0x59ba93
nop
push esi
lea ecx, [ebp - 0x48]
call fcn.00404120
mov byte [ebp - 4], 0x14
mov eax, 4
mov dword [ebp - 0x108], eax
xor ecx, ecx
mov dword [ebp - 0x104], 0xe300fa
mov dword [ebp - 0x100], 0xe200ec
mov dword [ebp - 0xfc], 0xad
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x104], ax
inc ecx
mov eax, dword [ebp - 0x108]
cmp ecx, eax
jb 0x59b8d0
xor ecx, ecx
mov dword [ebp - 0x4c], 7
mov word [ebp + eax*2 - 0x104], cx
xor eax, eax
mov dword [ebp - 0x50], ecx
mov ecx, 4
cmp dword [ebp - 0x38], ecx
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x48]
cmovb ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x34], 8
push ecx
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x60]
push eax
call fcn.004044f0
lea ecx, [ebp - 0x104]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59b930
sub ecx, edx
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x50]
sar ecx, 1
cmp dword [ebp - 0x4c], 8
cmovae eax, dword [ebp - 0x60]
cmp edx, ecx
jne 0x59b96d
push edx
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
mov byte [ebp - 0xe5], 1
test eax, eax
je 0x59b974
mov byte [ebp - 0xe5], 0
lea ecx, [ebp - 0x60]
call fcn.00404490
cmp byte [ebp - 0xe5], 0
jne 0x59ba75
lea eax, [ebp - 0x48]
push eax
call fcn.0058fa50
test al, al
jne 0x59ba75
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076e8c3
mov esi, eax
mov dword [ebp - 0xf8], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 0x15
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, esi
push 0
push 1
push eax
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0058f5b0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x18]
push dword [ebp - 0xf8]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059dcc0
mov byte [ebp - 4], 0x16
mov ecx, dword [edi + 0x3c]
cmp dword [edi + 0x40], ecx
je 0x59ba32
mov esi, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x59ba24
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 0x59ba42
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], 0x17
test esi, esi
je 0x59ba6f
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x59ba6f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x59ba6f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xec]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call fcn.00404490
add esi, 0x18
mov dword [ebp - 0xec], esi
cmp esi, dword [ebp - 0x20]
jne 0x59b890
lea ecx, [ebp - 0x24]
call fcn.00404220
mov al, byte [edi + 4]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0xe5], al
call fcn.00404490
mov eax, dword [ebp - 0x90]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x59bacc
push eax
call esi
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x68], 0
call fcn.00404490
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x59baf9
push ecx
call esi
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x8c], 0
call fcn.0045c1a0
mov al, byte [ebp - 0xe5]
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