Function at 0x5d1910
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ab22f
mov eax, dword fs:[0]
push eax
sub esp, 0x268
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, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1b0], eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
xor esi, esi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1a8], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push 0x30
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push esi
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x50], esi
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 7
add esp, 0xc
mov word [ebp - 0x60], ax
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], al
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 2
push eax
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
lea edx, [edi + 4]
test eax, eax
je 0x5d1a01
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [edi]
cmp ecx, eax
jb 0x5d19f0
xor ecx, ecx
mov dword [ebp - 0x24], 7
mov word [edx + eax*2], cx
xor eax, eax
mov dword [ebp - 0x28], ecx
mov ecx, edx
mov word [ebp - 0x38], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1a20
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x70]
call fcn.0057e200
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x141], al
mov byte [ebp - 4], 2
call fcn.00404490
cmp byte [ebp - 0x141], 0
je 0x5d1aba
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057f200
mov edi, eax
lea eax, [ebp - 0x1c]
cmp eax, edi
je 0x5d1aaf
mov ecx, eax
call fcn.00404220
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [edi + 8], 0
lea ecx, [ebp - 0x1a0]
call fcn.00404220
mov edi, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x5d1bc2
lea eax, [ebp - 0x270]
push eax
call fcn.005c8470
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
lea edx, [edi + 4]
test eax, eax
je 0x5d1b02
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [edi]
cmp ecx, eax
jb 0x5d1af1
xor ecx, ecx
mov word [edx + eax*2], cx
xor eax, eax
mov dword [ebp - 0x28], ecx
mov ecx, edx
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1b20
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.0057e080
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x141], al
mov byte [ebp - 4], 2
call fcn.00404490
cmp byte [ebp - 0x141], 0
je 0x5d1bbf
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057f200
mov edi, eax
lea eax, [ebp - 0x1c]
cmp eax, edi
je 0x5d1bb4
mov ecx, eax
call fcn.00404220
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [edi + 8], 0
lea ecx, [ebp - 0x1a0]
call fcn.00404220
mov edi, dword [ebp - 0x18]
mov eax, 0xc
mov dword [ebp - 0x178], 0xdc00fc
mov dword [ebp - 0x17c], eax
xor ecx, ecx
mov dword [ebp - 0x174], 0xda00dc
mov dword [ebp - 0x170], 0xd100c9
mov dword [ebp - 0x16c], 0xec00ca
mov dword [ebp - 0x168], 0xae00a3
mov dword [ebp - 0x164], 0xa600b2
mov dword [ebp - 0x160], 0xc4
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x178], ax
inc ecx
mov eax, dword [ebp - 0x17c]
cmp ecx, eax
jb 0x5d1c20
xor ecx, ecx
mov word [ebp + eax*2 - 0x178], cx
xor eax, eax
mov dword [ebp - 0x1c8], ecx
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x1c4], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1d8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1c65
sub ecx, edx
lea eax, [ebp - 0x178]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1d8]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057e2d0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x28], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x208]
call fcn.00404490
lea ecx, [ebp - 0x88]
call fcn.00404490
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 9
call fcn.00404490
cmp esi, edi
je 0x5d23cb
push esi
lea ecx, [ebp - 0xa0]
call fcn.00404120
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0xa
push eax
call fcn.005d1840
mov edx, eax
xor ecx, ecx
mov eax, dword [edx]
lea edi, [edx + 4]
test eax, eax
je 0x5d1d51
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov eax, dword [edx]
cmp ecx, eax
jb 0x5d1d40
xor ecx, ecx
mov word [edi + eax*2], cx
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xd0]
push edi
push eax
call fcn.0041ee30
add esp, 0xc
push 0xf003f
push 0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x70]
call fcn.0057e200
test al, al
je 0x5d23a5
mov dword [ebp - 0x158], 7
xor ecx, ecx
mov dword [ebp - 0x154], 0xdc00fc
mov dword [ebp - 0x150], 0xde00d6
mov dword [ebp - 0x14c], 0xd800c8
mov dword [ebp - 0x148], 0xbf00da
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x154], ax
inc ecx
mov eax, dword [ebp - 0x158]
cmp ecx, eax
jb 0x5d1dd0
xor ecx, ecx
mov word [ebp + eax*2 - 0x154], cx
xor eax, eax
mov dword [ebp - 0x184], ecx
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x180], 7
lea edx, [ecx + 2]
mov word [ebp - 0x194], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1e15
sub ecx, edx
lea eax, [ebp - 0x154]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x194]
call fcn.004044f0
cmp byte [ebp - 0x48], 0
je 0x5d1e86
cmp dword [ebp - 0x180], 8
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], 4
push ecx
lea eax, [ebp - 0x194]
cmovae eax, dword [ebp - 0x194]
push 0
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5d1e86
cmp dword [ebp - 0x40], 4
jne 0x5d1e86
mov edi, dword [ebp - 0x20]
jmp 0x5d1e88
xor edi, edi
lea ecx, [ebp - 0x194]
call fcn.00404490
cmp edi, 1
je 0x5d23a5
mov dword [ebp - 0x178], 0xb
xor ecx, ecx
mov dword [ebp - 0x174], 0xd000fc
mov dword [ebp - 0x170], 0xcb00c9
mov dword [ebp - 0x16c], 0xdc00d0
mov dword [ebp - 0x168], 0xf100c7
mov dword [ebp - 0x164], 0xac00a1
mov dword [ebp - 0x160], 0xc300a7
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x174], ax
inc ecx
mov eax, dword [ebp - 0x178]
cmp ecx, eax
jb 0x5d1ef0
xor ecx, ecx
mov word [ebp + eax*2 - 0x174], cx
xor eax, eax
mov dword [ebp - 0x184], ecx
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x180], 7
lea edx, [ecx + 2]
mov word [ebp - 0x194], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d1f35
sub ecx, edx
lea eax, [ebp - 0x174]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x194]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057e2d0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xe8], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0xd8], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x1f0]
call fcn.00404490
lea ecx, [ebp - 0x15c]
call fcn.00404490
lea ecx, [ebp - 0x194]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x194]
push 3
push 0x7d8820
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], 7
mov word [ebp - 0x194], ax
call fcn.004044f0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x70]
call fcn.0057e2d0
mov dword [ebp - 0x78], 0
xor ecx, ecx
mov dword [ebp - 0x74], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x1f0]
call fcn.00404490
lea ecx, [ebp - 0x194]
call fcn.00404490
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x15c]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0xa8], 0
push eax
push 0x7cd378
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.004044f0
push 0x58
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0x16
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x140]
push eax
call fcn.0042bce0
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x140], 0
je 0x5d222e
mov ecx, 4
mov dword [ebp - 0x1a0], 0xd500db
mov dword [ebp - 0x1a4], ecx
xor eax, eax
mov dword [ebp - 0x19c], 0xdf00d3
mov dword [ebp - 0x198], 0xbc
nop dword [eax + eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x1a0], cx
inc eax
mov ecx, dword [ebp - 0x1a4]
cmp eax, ecx
jb 0x5d2140
xor eax, eax
mov word [ebp + ecx*2 - 0x1a0], ax
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x14c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d2183
sub ecx, edx
lea eax, [ebp - 0x1a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.004044f0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0xf0]
call fcn.0048d790
push eax
lea ecx, [ebp - 0x194]
call fcn.00404120
or dword [ebp - 0x1a8], 2
lea ecx, [ebp - 0xb8]
call fcn.00404490
movups xmm0, xmmword [ebp - 0x194]
xor eax, eax
lea ecx, [ebp - 0x194]
mov word [ebp - 0x194], ax
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [ebp - 0x184]
movq qword [ebp - 0xa8], xmm0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 7
call fcn.00404490
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0x17
call fcn.00404490
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
cmovae eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x24], 8
cmovae ecx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x90]
jne 0x5d226e
push edx
push eax
push ecx
call fcn.004090d0
add esp, 0xc
mov byte [ebp - 0x1ac], 1
test eax, eax
je 0x5d2275
mov byte [ebp - 0x1ac], 0
push dword [ebp - 0x1ac]
lea eax, [ebp - 0xb8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x88]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x1b8], esp
mov ecx, esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0xa0]
mov ecx, esp
push eax
call fcn.00404120
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x17
call fcn.005a0410
mov byte [ebp - 4], 0x1c
mov edi, dword [ebp - 0x1b0]
push eax
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x5d2304
call fcn.005b6cd0
add dword [edi + 4], 0x64
jmp 0x5d230c
push ecx
mov ecx, edi
call fcn.005b6b00
lea ecx, [ebp - 0x224]
call fcn.00404490
lea ecx, [ebp - 0x23c]
call fcn.00404490
lea ecx, [ebp - 0x254]
call fcn.00404490
lea ecx, [ebp - 0x26c]
call fcn.00404490
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xf0]
push eax
push dword [eax]
lea eax, [ebp - 0x1c0]
push eax
call fcn.0042d190
push 0x40
push dword [ebp - 0xf0]
call fcn.0076d313
add esp, 8
lea ecx, [ebp - 0x108]
call fcn.00404490
lea ecx, [ebp - 0x120]
call fcn.00404490
lea ecx, [ebp - 0x138]
call fcn.00404490
lea ecx, [ebp - 0xb8]
call fcn.00404490
lea ecx, [ebp - 0x88]
call fcn.00404490
lea ecx, [ebp - 0xe8]
call fcn.00404490
lea ecx, [ebp - 0xd0]
call fcn.00404490
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00404490
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x5d1d10
lea ecx, [ebp - 0x38]
call fcn.00404490
mov eax, dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5d23ea
push eax
call esi
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x48], 0
call fcn.00404490
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x5d240e
push ecx
call esi
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x6c], 0
call fcn.00404220
mov eax, dword [ebp - 0x1b0]
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 4