Function at 0x40a950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f9d2
mov eax, dword fs:[0]
push eax
mov eax, 0x1bc0
call fcn.004fa510
mov eax, dword [0x690a1c]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x1bcc], edi
mov dword [ebp - 0x1bac], edi
mov dword [ebp - 0x1bb0], 0
lea eax, [ebp - 0x1bb4]
mov dword [ebp - 4], 1
push eax
call fcn.0040a2c0
add esp, 4
push eax
lea ecx, [ebp - 0x1ba4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1ba8], str.pid
call fcn.00408650
mov dword [ebp - 0x1bb0], 2
mov edx, dword [ebp - 0x1bb4]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a9f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x69cf68], 0
jne 0x40ab02
push 0x20219
push str.SOFTWAREJianDesk
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1bc8]
mov dword [ebp - 0x1bc8], 0
mov dword [ebp - 0x1bc4], 0
mov dword [ebp - 0x1bc0], 0
call fcn.0040a640
mov edi, dword [ebp - 0x1bc8]
test eax, eax
jne 0x40aaf1
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 edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aaf1
mov eax, dword [ebp - 0x1bbc]
cmp eax, 1
je 0x40aa8e
cmp eax, 2
jne 0x40aaf1
mov eax, dword [ebp - 0x1bb8]
test eax, eax
je 0x40aaab
test al, 1
jne 0x40aaf1
shr eax, 1
cmp word [ebp + eax*2 - 0xb22], 0
je 0x40aab4
jmp 0x40aaf1
xor eax, eax
mov word [ebp - 0xb20], ax
mov ecx, 0x69cf68
lea esi, [ebp - 0xb20]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x40aae4
movzx eax, word [esi + ecx]
test ax, ax
je 0x40aae4
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40aac6
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x40aafc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1bac]
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x40b1ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x69cf68
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 5
call fcn.004090c0
test al, al
jne 0x40ab60
mov ecx, 0x69cf68
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab40
sub ecx, edx
sar ecx, 1
push ecx
push 0x69cf68
lea ecx, [ebp - 0x1bac]
call fcn.0040b220
mov dword [ebp - 0x1bb0], 6
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1b9c]
mov dword [ebp - 0x1ba0], 0x633018
call fcn.00408650
mov dword [ebp - 0x1bb0], 0xe
mov edx, dword [ebp - 0x1bac]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40abb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x69d768], 0
jne 0x40abce
push 0x400
push 0x69d768
call fcn.004fd050
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x40b1d8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x69d768
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 9
call fcn.004090c0
test al, al
jne 0x40ac30
mov ecx, 0x69d768
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac10
sub ecx, edx
sar ecx, 1
push ecx
push 0x69d768
lea ecx, [ebp - 0x1bac]
call fcn.0040b220
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.00408650
mov dword [ebp - 0x1bb0], 0x3e
mov edx, dword [ebp - 0x1bac]
mov eax, ebx
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ac85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x69df68], 0
jne 0x40ac9e
push 0x3ff
push 0x69df68
call fcn.004fd500
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x40b1e2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x69df68
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 0xd
call fcn.004090c0
test al, al
jne 0x40ad00
mov ecx, 0x69df68
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ace0
sub ecx, edx
sar ecx, 1
push ecx
push 0x69df68
lea ecx, [ebp - 0x1bac]
call fcn.0040b220
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.00408650
mov dword [ebp - 0x1bb0], 0xfe
mov edx, dword [ebp - 0x1bac]
mov eax, ebx
mov byte [ebp - 4], 0x10
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ad55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ntdll.dll
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 0x40adbf
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40adb8
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.005e3920
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.00407410
mov ecx, eax
test ecx, ecx
je 0x40b1ec
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.004090c0
test al, al
jne 0x40ae57
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae35
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040b220
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.00408650
mov dword [ebp - 0x1bb0], 0x3fe
mov edx, dword [ebp - 0x1bac]
mov eax, ebx
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aeac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409220
push eax
lea ecx, [ebp - 0x1b7c]
mov dword [ebp - 0x1b80], str.appver
call fcn.004086e0
xor eax, eax
mov byte [ebp - 4], 0x15
cmp ax, word [0x69efe8]
jne 0x40aff0
push 0x210
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.005e3920
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x108
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x40b1f6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bb4], eax
mov byte [ebp - 4], 0x16
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x40b200
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x1bac]
call fcn.004090c0
test al, al
jne 0x40af86
lea ecx, [ebp - 0x320]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af64
sub ecx, edx
lea eax, [ebp - 0x320]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040b220
lea eax, [ebp - 0x1bb4]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x1bac]
push eax
call fcn.004093b0
mov edx, dword [ebp - 0x1bac]
add esp, 8
mov byte [ebp - 4], 0x16
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40afc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1bb4]
push 0x3f
push esi
push 0x69efe8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov byte [ebp - 4], 0x15
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40aff0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x69efe8
lea ecx, [ebp - 0x1b74]
mov dword [ebp - 0x1b78], str.modver
call fcn.004086e0
lea eax, [ebp - 0x1bb4]
mov byte [ebp - 4], 0x19
push eax
call fcn.00409ba0
mov esi, eax
push 0x1048
lea eax, [ebp - 0x1b68]
mov byte [ebp - 4], 0x1a
push 0
push eax
call fcn.005e3920
push 0
push 0x1048
push 0
lea eax, [ebp - 0x1b68]
push eax
push dword [esi]
call fcn.00408cb0
add esp, 0x24
test eax, eax
jne 0x40b058
mov word [ebp - 0x1b68], ax
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x40b20a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
lea eax, [ebp - 0x1b68]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0x1bac]
call fcn.004090c0
test al, al
jne 0x40b0c2
lea ecx, [ebp - 0x1b68]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0a0
sub ecx, edx
lea eax, [ebp - 0x1b68]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040b220
mov dword [ebp - 0x1bb0], 0x7fe
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x1b6c]
mov dword [ebp - 0x1b70], str.instdate
call fcn.00408650
mov edx, dword [ebp - 0x1bac]
mov eax, ebx
mov dword [ebp - 0x1bb0], 0xffe
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1a
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b117
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1bb4]
mov eax, ebx
mov byte [ebp - 4], 0x19
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b138
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 0x1d
push eax
mov ecx, edi
call fcn.00408650
mov dword [ebp - 0x1bb0], 0xfff
xor esi, esi
nop dword [eax]
nop word [eax + eax]
push dword [ebp + esi*8 - 0x1ba4]
mov ecx, edi
push dword [ebp + esi*8 - 0x1ba8]
call fcn.0040a6f0
inc esi
cmp esi, 8
jb 0x40b160
push fcn.004087f0
push 8
push 8
lea eax, [ebp - 0x1ba8]
mov byte [ebp - 4], 1
push eax
call fcn.004fa401
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40b1b0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004fa103
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407120
push 0x80004005
call fcn.00407120
push 0x80004005
call fcn.00407120
push 0x80004005
call fcn.00407120
push 0x80004005
call fcn.00407120
push 0x80004005
call fcn.00407120
push 0x80004005
call fcn.00407120
int3