Function at 0x40a860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61b812
mov eax, dword fs:[0]
push eax
mov eax, 0x1bc0
call fcn.004f9e50
mov eax, dword [0x68d9ac]
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.0040a1d0
add esp, 4
push eax
lea ecx, [ebp - 0x1ba4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1ba8], str.pid
call fcn.00408560
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 0x40a909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x699de8], 0
jne 0x40aa12
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.0040a550
mov edi, dword [ebp - 0x1bc8]
test eax, eax
jne 0x40aa01
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 0x40aa01
mov eax, dword [ebp - 0x1bbc]
cmp eax, 1
je 0x40a99e
cmp eax, 2
jne 0x40aa01
mov eax, dword [ebp - 0x1bb8]
test eax, eax
je 0x40a9bb
test al, 1
jne 0x40aa01
shr eax, 1
cmp word [ebp + eax*2 - 0xb22], 0
je 0x40a9c4
jmp 0x40aa01
xor eax, eax
mov word [ebp - 0xb20], ax
mov ecx, 0x699de8
lea esi, [ebp - 0xb20]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x40a9f4
movzx eax, word [esi + ecx]
test ax, ax
je 0x40a9f4
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40a9d6
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x40aa0c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1bac]
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x40b0de
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x699de8
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 5
call fcn.00408fd0
test al, al
jne 0x40aa70
mov ecx, 0x699de8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa50
sub ecx, edx
sar ecx, 1
push ecx
push 0x699de8
lea ecx, [ebp - 0x1bac]
call fcn.0040b130
mov dword [ebp - 0x1bb0], 6
lea eax, [ebp - 0x1bac]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1b9c]
mov dword [ebp - 0x1ba0], 0x62f018
call fcn.00408560
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 0x40aac5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x69a5e8], 0
jne 0x40aade
push 0x400
push 0x69a5e8
call fcn.004fc990
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x40b0e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x69a5e8
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 9
call fcn.00408fd0
test al, al
jne 0x40ab40
mov ecx, 0x69a5e8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab20
sub ecx, edx
sar ecx, 1
push ecx
push 0x69a5e8
lea ecx, [ebp - 0x1bac]
call fcn.0040b130
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.00408560
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 0x40ab95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x69ade8], 0
jne 0x40abae
push 0x3ff
push 0x69ade8
call fcn.004fce40
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x40b0f2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bac], eax
push 0x69ade8
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 0xd
call fcn.00408fd0
test al, al
jne 0x40ac10
mov ecx, 0x69ade8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40abf0
sub ecx, edx
sar ecx, 1
push ecx
push 0x69ade8
lea ecx, [ebp - 0x1bac]
call fcn.0040b130
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.00408560
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 0x40ac65
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 0x40accf
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40acc8
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.005e3240
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.00407320
mov ecx, eax
test ecx, ecx
je 0x40b0fc
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.00408fd0
test al, al
jne 0x40ad67
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad45
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040b130
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.00408560
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 0x40adbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409130
push eax
lea ecx, [ebp - 0x1b7c]
mov dword [ebp - 0x1b80], str.appver
call fcn.004085f0
xor eax, eax
mov byte [ebp - 4], 0x15
cmp ax, word [0x69be68]
jne 0x40af00
push 0x210
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.005e3240
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x108
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x40b106
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1bb4], eax
mov byte [ebp - 4], 0x16
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x40b110
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.00408fd0
test al, al
jne 0x40ae96
lea ecx, [ebp - 0x320]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae74
sub ecx, edx
lea eax, [ebp - 0x320]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040b130
lea eax, [ebp - 0x1bb4]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x1bac]
push eax
call fcn.004092c0
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 0x40aed1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1bb4]
push 0x3f
push esi
push 0x69be68
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 0x40af00
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x69be68
lea ecx, [ebp - 0x1b74]
mov dword [ebp - 0x1b78], str.modver
call fcn.004085f0
lea eax, [ebp - 0x1bb4]
mov byte [ebp - 4], 0x19
push eax
call fcn.00409ab0
mov esi, eax
push 0x1048
lea eax, [ebp - 0x1b68]
mov byte [ebp - 4], 0x1a
push 0
push eax
call fcn.005e3240
push 0
push 0x1048
push 0
lea eax, [ebp - 0x1b68]
push eax
push dword [esi]
call fcn.00408bc0
add esp, 0x24
test eax, eax
jne 0x40af68
mov word [ebp - 0x1b68], ax
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x40b11a
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.00408fd0
test al, al
jne 0x40afd2
lea ecx, [ebp - 0x1b68]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40afb0
sub ecx, edx
lea eax, [ebp - 0x1b68]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.0040b130
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.00408560
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 0x40b027
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 0x40b048
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.00408560
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.0040a600
inc esi
cmp esi, 8
jb 0x40b070
push fcn.00408700
push 8
push 8
lea eax, [ebp - 0x1ba8]
mov byte [ebp - 4], 1
push eax
call fcn.004f9d41
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 0x40b0c0
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.004f9a43
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
int3