Function at 0x4363e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5308f6
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x599850]
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, dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x268], edi
call fcn.004358c0
add esp, 4
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push str.SOFTWAREQuadCode
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x436513
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.DeviceID
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x264]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x436513
cmp dword [ebp - 0x260], esi
jbe 0x436513
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004357e0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
push edi
call fcn.00470d50
add esp, 8
lea ecx, [ebp - 0x248]
call fcn.00407777
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x43689d
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x436893
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4368ba
jmp 0x436893
push 0
lea eax, [ebp - 0x264]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SOFTWAREQuadCode
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4367bd
cmp dword [ebp - 0x220], eax
jne 0x4366b4
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x4366b4
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x26c], edx
test edx, edx
je 0x4366b4
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x436595
sub esi, ecx
mov ecx, dword [ebp - 0x21c]
sar esi, 1
mov dword [ebp - 0x268], ecx
cmp esi, ecx
ja 0x4365e2
cmp ecx, 8
mov dword [ebp - 0x220], esi
lea edi, [ebp - 0x230]
cmovae edi, dword [ebp - 0x230]
add esi, esi
push esi
push edx
push edi
call fcn.00504640
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4366a1
cmp esi, 0x7ffffffe
ja 0x4368bf
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x436602
mov edi, SysReAllocString
jmp 0x436620
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x436618
mov edi, SysReAllocString
jmp 0x436620
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407bd0
mov dword [ebp - 0x220], esi
add esi, esi
push esi
push dword [ebp - 0x26c]
mov dword [ebp - 0x21c], edi
mov edi, eax
push edi
mov dword [ebp - 0x270], eax
call fcn.00504640
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x268]
cmp eax, 8
jb 0x43669b
mov edx, dword [ebp - 0x230]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x436691
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4368c4
push ecx
push edx
call fcn.004ff746
add esp, 8
mov dword [ebp - 0x230], edi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov edi, dword [ebp - 0x274]
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 1
push 0
push str.DeviceID
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x264]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4367ce
call fcn.0045aa70
mov esi, eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov ecx, dword [esi + 0x2c]
cmp ecx, 4
mov al, byte [esi + 0x90]
setle byte [ebp - 0x259]
mov byte [ebp - 0x25a], al
jle 0x43673c
test al, al
je 0x4367ce
sub esp, 8
lea ecx, [esi + 8]
mov eax, esp
push 4
sub esp, 8
mov dword [eax], str.Failed_to_set_reg_key
mov dword [eax + 4], 0x15
mov edx, esp
cmp dword [esi + 0x1c], 0x10
jb 0x436761
mov ecx, dword [esi + 8]
movq xmm0, qword [ebp - 0x254]
sub esp, 0xc
mov dword [edx], ecx
lea ecx, [ebp - 0x2b0]
mov eax, dword [esi + 0x18]
mov dword [edx + 4], eax
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00419680
cmp byte [ebp - 0x259], 0
je 0x4367a3
mov eax, dword [esi]
lea ecx, [ebp - 0x2b0]
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [ebp - 0x25a], 0
je 0x4367ce
lea eax, [ebp - 0x2b0]
lea ecx, [esi + 0x60]
push eax
call fcn.0041d530
jmp 0x4367ce
call fcn.0045aa70
push str.Failed_to_create_reg_key
mov ecx, eax
call fcn.00435730
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
cmovae edx, dword [ebp - 0x230]
mov ecx, edx
mov dword [ebp - 0x234], 0
movups xmmword [ebp - 0x248], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436805
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00435380
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.00470d50
mov ecx, dword [ebp - 0x234]
add esp, 8
cmp ecx, 8
jb 0x436871
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x436867
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4368ba
push ecx
push edx
call fcn.004ff746
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x4364d0
push ecx
push edx
call fcn.004ff746
add esp, 8
mov eax, edi
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.004ff754
mov esp, ebp
pop ebp
ret
call fcn.00508363
call fcn.00408da0
call fcn.00508363
int3