Function at 0x43f540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557758
mov eax, dword fs:[0]
push eax
mov eax, 0x1bc4
call fcn.004d68c0
mov eax, dword [0x5ad6f0]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1bd0], eax
mov dword [ebp - 0x1bc0], eax
mov dword [ebp - 0x1bb0], 0
lea eax, [ebp - 0x1bb4]
mov dword [ebp - 4], 1
push eax
call fcn.0043f0d0
add esp, 4
push eax
lea ecx, [ebp - 0x1ba4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1ba8], str.pid
call fcn.004378f0
mov dword [ebp - 0x1bb0], 2
mov edx, dword [ebp - 0x1bb4]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43f5e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x5b5820], 0
jne 0x43f6ec
push 0x20219
push str.SOFTWAREHaloDesktop
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1bcc]
mov dword [ebp - 0x1bcc], 0
mov dword [ebp - 0x1bc8], 0
mov dword [ebp - 0x1bc4], 0
call fcn.004137c0
mov ebx, dword [ebp - 0x1bcc]
test eax, eax
jne 0x43f6e1
lea eax, [ebp - 0x1bb8]
mov dword [ebp - 0x1bb8], 0x800
push eax
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0x1bbc]
push eax
push 0
push str.FROM
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43f6e1
mov eax, dword [ebp - 0x1bbc]
cmp eax, 1
je 0x43f67e
cmp eax, 2
jne 0x43f6e1
mov eax, dword [ebp - 0x1bb8]
test eax, eax
je 0x43f69b
test al, 1
jne 0x43f6e1
shr eax, 1
cmp word [ebp + eax*2 - 0xb22], 0
je 0x43f6a4
jmp 0x43f6e1
xor eax, eax
mov word [ebp - 0xb20], ax
mov ecx, 0x5b5820
lea esi, [ebp - 0xb20]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x43f6d4
movzx eax, word [esi + ecx]
test ax, ax
je 0x43f6d4
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x43f6b6
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x43f6ec
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43fe6e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x5b5820
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 5
call fcn.00412820
test al, al
jne 0x43f750
mov ecx, 0x5b5820
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f730
sub ecx, edx
sar ecx, 1
push ecx
push 0x5b5820
lea ecx, [ebp - 0x1bac]
call fcn.0040adc0
mov dword [ebp - 0x1bb0], 6
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1b9c]
mov dword [ebp - 0x1ba0], str.from
call fcn.004378f0
mov dword [ebp - 0x1bb0], 0xe
mov edx, dword [ebp - 0x1bac]
mov eax, edi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43f7a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x5b6020], 0
jne 0x43f7be
push 0x400
push 0x5b6020
call fcn.00451930
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43fe78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x5b6020
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 9
call fcn.00412820
test al, al
jne 0x43f820
mov ecx, 0x5b6020
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f800
sub ecx, edx
sar ecx, 1
push ecx
push 0x5b6020
lea ecx, [ebp - 0x1bac]
call fcn.0040adc0
mov dword [ebp - 0x1bb0], 0x1e
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x1b94]
mov dword [ebp - 0x1b98], str.mid
call fcn.004378f0
mov dword [ebp - 0x1bb0], 0x3e
mov edx, dword [ebp - 0x1bac]
mov eax, edi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43f875
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x5b6820], 0
jne 0x43f88e
push 0x3ff
push 0x5b6820
call fcn.00452570
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43fe82
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x5b6820
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 0xd
call fcn.00412820
test al, al
jne 0x43f8f0
mov ecx, 0x5b6820
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f8d0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5b6820
lea ecx, [ebp - 0x1bac]
call fcn.0040adc0
mov dword [ebp - 0x1bb0], 0x7e
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x1b8c]
mov dword [ebp - 0x1b90], str.mid2
call fcn.004378f0
mov dword [ebp - 0x1bb0], 0xfe
mov edx, dword [ebp - 0x1bac]
mov eax, edi
mov byte [ebp - 4], 0x10
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43f945
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5639e4
mov dword [ebp - 0x1bb4], 0
mov dword [ebp - 0x1bbc], 0
mov dword [ebp - 0x1bb8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x43f9af
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43f9a8
lea ecx, [ebp - 0x1bb8]
push ecx
lea ecx, [ebp - 0x1bbc]
push ecx
lea ecx, [ebp - 0x1bb4]
push ecx
call eax
movzx eax, word [ebp - 0x1bb8]
mov dword [ebp - 0x1bb8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00513d10
push dword [ebp - 0x1bbc]
lea eax, [ebp - 0x110]
push dword [ebp - 0x1bb4]
push str._u._u
push 0x7f
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x20
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43fe8c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x1bac]
call fcn.00412820
test al, al
jne 0x43fa47
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fa25
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040adc0
mov dword [ebp - 0x1bb0], 0x1fe
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x1b84]
mov dword [ebp - 0x1b88], str.osver
call fcn.004378f0
mov dword [ebp - 0x1bb0], 0x3fe
mov edx, dword [ebp - 0x1bac]
mov eax, edi
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43fa9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x5b7820], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
jne 0x43fb58
lea eax, [ebp - 0x1bb8]
push eax
call fcn.0043e650
add esp, 4
push 0x10
push str.HaloDesktop.exe
lea ecx, [ebp - 0x1bb8]
mov byte [ebp - 4], 0x15
call fcn.00427ac0
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43fe96
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bb4], eax
lea eax, [ebp - 0x1bb4]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x1bb8]
push eax
call fcn.00412bc0
mov esi, dword [ebp - 0x1bb4]
add esp, 8
push 0x3f
push esi
push 0x5b7820
call ebx
mov byte [ebp - 4], 0x15
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43fb37
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1bb8]
mov eax, edi
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43fb58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5b7820
lea ecx, [ebp - 0x1b7c]
mov dword [ebp - 0x1b80], str.appver
call fcn.0040f1f0
xor eax, eax
mov byte [ebp - 4], 0x17
cmp ax, word [0x5b78a0]
jne 0x43fc98
push 0x210
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x108
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43fea0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bb4], eax
mov byte [ebp - 4], 0x18
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43feaa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x1bac]
call fcn.00412820
test al, al
jne 0x43fc32
lea ecx, [ebp - 0x320]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fc10
sub ecx, edx
lea eax, [ebp - 0x320]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040adc0
lea eax, [ebp - 0x1bb4]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x1bac]
push eax
call fcn.00412bc0
mov edx, dword [ebp - 0x1bac]
add esp, 8
mov byte [ebp - 4], 0x18
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43fc6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1bb4]
push 0x3f
push esi
push 0x5b78a0
call ebx
mov byte [ebp - 4], 0x17
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43fc98
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5b78a0
lea ecx, [ebp - 0x1b74]
mov dword [ebp - 0x1b78], str.modver
call fcn.0040f1f0
lea eax, [ebp - 0x1bb4]
mov byte [ebp - 4], 0x1b
push eax
call fcn.0043e810
mov esi, eax
push 0x1048
lea eax, [ebp - 0x1b68]
mov byte [ebp - 4], 0x1c
push 0
push eax
call fcn.00513d10
push 0
push 0x1048
push 0
lea eax, [ebp - 0x1b68]
push eax
push dword [esi]
call fcn.0043ded0
add esp, 0x24
test eax, eax
jne 0x43fd00
mov word [ebp - 0x1b68], ax
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x43feb4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
lea eax, [ebp - 0x1b68]
mov byte [ebp - 4], 0x1d
push eax
lea ecx, [ebp - 0x1bac]
call fcn.00412820
test al, al
jne 0x43fd62
lea ecx, [ebp - 0x1b68]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fd40
sub ecx, edx
lea eax, [ebp - 0x1b68]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040adc0
mov dword [ebp - 0x1bb0], 0x7fe
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x1b6c]
mov dword [ebp - 0x1b70], str.instdate
call fcn.004378f0
mov edx, dword [ebp - 0x1bac]
mov eax, edi
mov dword [ebp - 0x1bb0], 0xffe
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1c
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43fdb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1bb4]
mov eax, edi
mov byte [ebp - 4], 0x1b
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43fdd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1bc0]
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x1f
call fcn.004378f0
mov dword [ebp - 0x1bb0], 0xfff
xor esi, esi
nop dword [eax]
push dword [ebp + esi*8 - 0x1ba4]
mov ecx, ebx
push dword [ebp + esi*8 - 0x1ba8]
call fcn.0043f2e0
inc esi
cmp esi, 8
jb 0x43fe00
push fcn.0043c910
push 8
push 8
lea eax, [ebp - 0x1ba8]
mov byte [ebp - 4], 1
push eax
call fcn.004d6afa
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x43fe50
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.004d684f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406210
push 0x80004005
call fcn.00406210
push 0x80004005
call fcn.00406210
push 0x80004005
call fcn.00406210
push 0x80004005
call fcn.00406210
push 0x80004005
call fcn.00406210
push 0x80004005
call fcn.00406210
push 0x80004005
call fcn.00406210
int3