Function at 0x593f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6583
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov byte [ebx + 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
call fcn.00594330
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x593fc1
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x593fb0
xor eax, eax
mov dword [ebp - 0x40], SysStringLen
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x593fe1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004044f0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0045bfa0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00404490
lea eax, [ebp - 0x12c]
push eax
call fcn.00594330
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x594041
nop
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x594030
xor eax, eax
mov dword [ebp - 0x40], reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x594061
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004044f0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0045bfa0
lea ecx, [ebp - 0x3c]
call fcn.00404490
push 0x30
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x58], 7
xor ecx, ecx
mov dword [ebp - 0x7c], eax
add esp, 0xc
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x6c], cx
mov word [ebp - 0x54], ax
mov byte [ebp - 0x52], al
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], ecx
cmp esi, ecx
je 0x5942ba
nop word [eax + eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], eax
lea eax, [esi + 4]
push eax
call fcn.00404120
push 0xf003f
push 0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x7c]
call fcn.0057f2d0
test al, al
je 0x594293
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x7c]
push eax
movq qword [ebp - 0x4c], xmm0
call fcn.005805c0
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x4c]
cmp edi, dword [ebp - 0x48]
je 0x59428b
push edi
lea ecx, [ebp - 0x3c]
call fcn.00404120
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb0]
call fcn.0041cd00
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 7
push eax
call fcn.0058fa50
test al, al
jne 0x594262
xorps xmm0, xmm0
push 0xac
movlpd qword [ebp - 0x18], xmm0
call fcn.0076e8c3
mov esi, eax
mov dword [ebp - 0xbc], esi
push 0xac
push 0
push esi
mov byte [ebp - 4], 8
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0xb0]
mov ecx, esi
push 0
push 1
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0058f5b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
push dword [ebp - 0xbc]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0059dcc0
mov byte [ebp - 4], 9
mov eax, dword [ebx + 0x3c]
cmp dword [ebx + 0x40], eax
je 0x594225
mov esi, dword [ebp - 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x594217
lock inc dword [esi + 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [eax + 4], esi
add dword [ebx + 0x3c], 8
jmp 0x594235
lea ecx, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebx + 0x38]
call fcn.00413880
mov esi, dword [ebp - 0x14]
mov byte [ebx + 4], 1
mov byte [ebp - 4], 0xa
test esi, esi
je 0x594262
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x594262
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x594262
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0xb0]
call fcn.00404490
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00404490
add edi, 0x18
cmp edi, dword [ebp - 0x48]
jne 0x594154
mov esi, dword [ebp - 0xb4]
lea ecx, [ebp - 0x4c]
call fcn.00404220
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.00404490
add esi, 0x1c
mov dword [ebp - 0xb4], esi
cmp esi, dword [ebp - 0xb8]
jne 0x5940f0
mov eax, dword [ebp - 0x7c]
mov bl, byte [ebx + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5942d1
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 ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x5942f5
push ecx
call esi
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x78], 0
call fcn.0045c1a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret