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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ac9bf
mov eax, dword fs:[0]
push eax
sub esp, 0x268
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, 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.005c9490
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
lea edx, [edi + 4]
test eax, eax
je 0x5d2a31
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [edi]
cmp ecx, eax
jb 0x5d2a20
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 0x5d2a50
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.0057f380
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x141], al
mov byte [ebp - 4], 2
call fcn.00404490
cmp byte [ebp - 0x141], 0
je 0x5d2aea
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00580380
mov edi, eax
lea eax, [ebp - 0x1c]
cmp eax, edi
je 0x5d2adf
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 0x5d2bf2
lea eax, [ebp - 0x270]
push eax
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
lea edx, [edi + 4]
test eax, eax
je 0x5d2b32
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [edi]
cmp ecx, eax
jb 0x5d2b21
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 0x5d2b50
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.0057f200
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x141], al
mov byte [ebp - 4], 2
call fcn.00404490
cmp byte [ebp - 0x141], 0
je 0x5d2bef
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00580380
mov edi, eax
lea eax, [ebp - 0x1c]
cmp eax, edi
je 0x5d2be4
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], 0xcf00ed
mov dword [ebp - 0x17c], eax
xor ecx, ecx
mov dword [ebp - 0x174], 0xcd00cd
mov dword [ebp - 0x170], 0xc200d8
mov dword [ebp - 0x16c], 0xe300db
mov dword [ebp - 0x168], 0xdd00d2
mov dword [ebp - 0x164], 0xd100c3
mov dword [ebp - 0x160], 0xb5
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x178], ax
inc ecx
mov eax, dword [ebp - 0x17c]
cmp ecx, eax
jb 0x5d2c50
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 0x5d2c95
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.0057f450
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 0x5d33fb
push esi
lea ecx, [ebp - 0xa0]
call fcn.00404120
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0xa
push eax
call fcn.005d2870
mov edx, eax
xor ecx, ecx
mov eax, dword [edx]
lea edi, [edx + 4]
test eax, eax
je 0x5d2d81
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov eax, dword [edx]
cmp ecx, eax
jb 0x5d2d70
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.0057f380
test al, al
je 0x5d33d5
mov dword [ebp - 0x158], 7
xor ecx, ecx
mov dword [ebp - 0x154], 0xcf00ed
mov dword [ebp - 0x150], 0xc900c7
mov dword [ebp - 0x14c], 0xcb00d9
mov dword [ebp - 0x148], 0xb000cb
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x154], ax
inc ecx
mov eax, dword [ebp - 0x158]
cmp ecx, eax
jb 0x5d2e00
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 0x5d2e45
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 0x5d2eb6
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 0x5d2eb6
cmp dword [ebp - 0x40], 4
jne 0x5d2eb6
mov edi, dword [ebp - 0x20]
jmp 0x5d2eb8
xor edi, edi
lea ecx, [ebp - 0x194]
call fcn.00404490
cmp edi, 1
je 0x5d33d5
mov dword [ebp - 0x178], 0xb
xor ecx, ecx
mov dword [ebp - 0x174], 0xc300ed
mov dword [ebp - 0x170], 0xdc00d8
mov dword [ebp - 0x16c], 0xcf00c1
mov dword [ebp - 0x168], 0xfe00d6
mov dword [ebp - 0x164], 0xdf00d0
mov dword [ebp - 0x160], 0xb400d6
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x174], ax
inc ecx
mov eax, dword [ebp - 0x178]
cmp ecx, eax
jb 0x5d2f20
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 0x5d2f65
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.0057f450
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 0x7da86c
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.0057f450
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 0x7cf388
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 0x5d325e
mov ecx, 4
mov dword [ebp - 0x1a0], 0xc600ca
mov dword [ebp - 0x1a4], ecx
xor eax, eax
mov dword [ebp - 0x19c], 0xc800c2
mov dword [ebp - 0x198], 0xad
nop dword [eax + eax]
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x1a0], cx
inc eax
mov ecx, dword [ebp - 0x1a4]
cmp eax, ecx
jb 0x5d3170
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 0x5d31b3
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.0048e7f0
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 0x5d329e
push edx
push eax
push ecx
call fcn.004090d0
add esp, 0xc
mov byte [ebp - 0x1ac], 1
test eax, eax
je 0x5d32a5
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.005a1410
mov byte [ebp - 4], 0x1c
mov edi, dword [ebp - 0x1b0]
push eax
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x5d3334
call fcn.005b7cf0
add dword [edi + 4], 0x64
jmp 0x5d333c
push ecx
mov ecx, edi
call fcn.005b7b20
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.0076e8f3
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 0x5d2d40
lea ecx, [ebp - 0x38]
call fcn.00404490
mov eax, dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5d341a
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 0x5d343e
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.0076eb7e
mov esp, ebp
pop ebp
ret 4