joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc176
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x51b7bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41e6fc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41e6fc
call fcn.0040c000
mov edi, eax
jmp 0x41e81b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41e71f
call fcn.0040c000
jmp 0x41e80e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41e73d
call fcn.0040c000
jmp 0x41e80e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41e75e
mov edi, 0x8007000e
jmp 0x41e810
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x41e854
jb 0x41e77c
cmp eax, 0xffffffff
ja 0x41e854
cmp eax, 0x400
jbe 0x41e791
push eax
lea ecx, [ebp - 0x418]
call fcn.0041bc70
jmp 0x41e7b7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x41e7b7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41e7ce
mov edi, 0x8007000e
jmp 0x41e810
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41e7ee
call fcn.0040c000
jmp 0x41e80e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0041e4b0
mov edi, eax
test esi, esi
je 0x41e81b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41e834
lea ecx, [ebp - 0x418]
call fcn.0041c5a0
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 - 0x14]
xor ecx, ebp
call fcn.00458638
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004040c0
int3
Function at 0x41ff90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x51b7bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
call fcn.004647d0
add esp, 0xc
mov dword [ebp - 0x41c], 1
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push str.Setup_Path
push str.SOFTWAREJianDesk
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x420091
push esi
call fcn.00416070
mov ecx, eax
call fcn.00411940
call fcn.00416070
mov ecx, eax
call fcn.00410b30
push eax
call fcn.0041c700
mov ecx, eax
call fcn.0040ae40
push str.installpkg
call fcn.0041c700
mov ecx, eax
call fcn.0040aeb0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004647d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x51e8d0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041c700
mov ecx, eax
call fcn.0040adb0
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458638
mov esp, ebp
pop ebp
ret 4
cmp dword [0x51e8e0], 0
jne 0x4200b7
push 1
push esi
push 0
push dword [0x51e8d0]
mov dword [0x51e8e0], 1
call fcn.0041ce80
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [0x51a40c]
xor ecx, ebp
pop esi
call fcn.00458638
mov esp, ebp
pop ebp
ret 4
Function at 0x4202b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc262
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x51b7bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004647d0
add esp, 0xc
mov dword [ebp - 0x21c], 1
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.Setup_Path
push str.SOFTWAREJianDesk
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42036d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42036d
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.three_end
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [0x51e8cc]
test ecx, ecx
jne 0x4203d9
push 0x51a280
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x51e8cc], 0
jne 0x4203c8
push 0x7c
call fcn.0042ad10
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4203af
mov ecx, eax
call fcn.0040f950
jmp 0x4203b1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x51e8cc], eax
push 0x51a280
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x51e8cc]
call fcn.00413e30
test eax, eax
je 0x42043f
call fcn.0042eee0
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004647d0
mov ecx, dword [esi]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x104
push eax
push esi
call dword [ecx + 0x44]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0x4e9f6c
push 0x4e9f70
push str.three_end
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458638
mov esp, ebp
pop ebp
ret

Function at 0x424360
Capabilities:
Create process on windows

Disassembly:
call fcn.00416070
mov ecx, eax
call fcn.00413640
push 1
push 0
push 0
test al, al
je 0x42438d
push str.http:__desk.52toolbox.com_cms_agreement_lenovo.html
push 0x4e816c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 0x10
push str.http:__desk.52toolbox.com_cms_agreement.html
push 0x4e816c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 0x10
Function at 0x4243d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcaf0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51b7bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4244d4
call fcn.00416070
mov ecx, eax
call fcn.00413d50
test eax, eax
je 0x424487
call fcn.0042eee0
mov esi, eax
lea ecx, [edi + 0x84]
lea eax, [ebp + 0xc]
push eax
call fcn.00420d90
push ecx
mov ecx, esp
mov dword [ebp - 4], 1
push 0x4e9ea0
push eax
push ecx
call fcn.0041b380
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [eax + 0x58]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42446a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x94]
call dword [eax]
mov dword [edi + 0x178], 2
jmp 0x4245b8
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x4244c5
cmp dword [edi + 0x78], 0
je 0x4244c5
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x20]
push 0
lea ecx, [edi + 0xa8]
call fcn.00419ad0
mov eax, dword [edi + 0x78]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [edi + 0x7c]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [edi + 0x178], 2
jmp 0x4245b8
cmp eax, 1
jne 0x424560
call fcn.00416070
mov ecx, eax
call fcn.00413d50
call fcn.00416070
mov ecx, eax
call fcn.00413d50
test eax, eax
je 0x424516
mov eax, dword [edi + 0xa0]
lea ecx, [edi + 0xa0]
call dword [eax]
mov dword [edi + 0x178], 3
jmp 0x4245b8
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x424554
cmp dword [edi + 0x78], 0
je 0x424554
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x20]
push 0
lea ecx, [edi + 0xa8]
call fcn.00419ad0
mov eax, dword [edi + 0x78]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [edi + 0x7c]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [edi + 0x178], 3
jmp 0x4245b8
cmp eax, 2
jne 0x4245b8
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [edi + 0xa8]
call fcn.00419ad0
sub esp, 0x28
mov eax, esp
mov dword [ebp + 0xc], esp
mov dword [eax + 0x24], 0
push 1
push 0
push str.finish
mov dword [ebp - 4], 9
call fcn.0041c700
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040aaa0
push 1
mov ecx, edi
call fcn.00424ea0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x51b7bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0xa8]
call fcn.00418ec0
mov dword [ebp - 4], 0
call fcn.00416070
mov ecx, eax
call fcn.00413d50
or ebx, 0xffffffff
test eax, eax
je 0x424a04
call fcn.0042eee0
mov esi, eax
lea ecx, [edi + 0x84]
lea eax, [ebp - 0x14]
push eax
call fcn.00420d90
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push 0x4e9ea0
push eax
push ecx
call fcn.0041b380
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [eax + 0x58]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4249f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x94]
call dword [eax]
jmp 0x424a42
mov edx, dword [edi + 0x74]
test edx, edx
je 0x424a42
cmp dword [edi + 0x78], 0
je 0x424a42
mov eax, dword [edx]
push 1
push 0
push edx
call dword [eax + 0x20]
push 0
lea ecx, [edi + 0xa8]
call fcn.00419ad0
mov eax, dword [edi + 0x78]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [edi + 0x7c]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
lea eax, [ebp - 0x10]
mov dword [edi + 0x178], 2
push eax
lea ecx, [edi + 0x84]
call fcn.004215f0
call fcn.0042eee0
push ecx
mov ecx, esp
mov esi, eax
push str.jiandesk_setup.log
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.0041b380
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [eax + 0x58]
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x94]
call dword [eax]
call fcn.00416070
mov ecx, eax
call fcn.00413d50
test eax, eax
jne 0x424ada
call fcn.0042eee0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jne 0x424ada
call fcn.00416070
mov ecx, eax
call fcn.00413640
push 1
push 0
push 0
test al, al
je 0x424ac8
push str.http:__desk.52toolbox.com_cms_agreement_lenovo.html
jmp 0x424acd
push str.http:__desk.52toolbox.com_cms_agreement.html
push 0x4e816c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x424af9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x424de0
Capabilities:
Create process on windows

Disassembly:
call fcn.00416070
mov ecx, eax
call fcn.00413640
push 1
push 0
push 0
test al, al
je 0x424e09
push str.http:__desk.52toolbox.com_cms_agreement_lenovo.html
push 0x4e816c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
push str.http:__desk.52toolbox.com_cms_agreement.html
push 0x4e816c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x424ea0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi + 0xa8]
call fcn.00419ad0
mov ecx, 0x51e920
call fcn.004075f0
push str.quit
call fcn.00421630
add esp, 4
lea ecx, [esi + 0x90]
call fcn.004208b0
xor esi, esi
call fcn.00416070
mov ecx, eax
call fcn.00413d30
test eax, eax
mov ecx, 1
cmovne esi, ecx
call fcn.0042eee0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
call fcn.0042eee0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
pop esi
pop ebp
jmp dword [sym.imp.USER32.dll_PostQuitMessage]

Function at 0x424f50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcbdb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x51b7bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004647d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.PluginCfg
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424fdb
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.lockscreenfix.ini
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.00404d10
mov ecx, eax
test ecx, ecx
je 0x42507f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
movzx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0x4e8a38
push eax
call fcn.0040c300
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
push esi
push str.lock_screen_state
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x425063
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458638
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004040c0
int3
Function at 0x42c000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd3db
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x51b7bc]
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 - 0x828], edi
cmp word [0x520a20], 0
jne 0x42c13a
push 0x20219
push str.SOFTWAREjiandesk
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.0040cbe0
mov ebx, dword [ebp - 0x824]
test eax, eax
jne 0x42c12f
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push str.Setup_Path
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c12f
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x42c0cc
cmp eax, 2
jne 0x42c12f
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x42c0e9
test al, 1
jne 0x42c12f
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x42c0f2
jmp 0x42c12f
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x520a20
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42c122
movzx eax, word [esi + ecx]
test ax, ax
je 0x42c122
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x42c104
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x42c13a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00404d10
mov ecx, eax
test ecx, ecx
je 0x42c1aa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x520a20
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004040e0
test al, al
jne 0x42c18c
mov ecx, 0x520a20
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c170
sub ecx, edx
sar ecx, 1
push ecx
push 0x520a20
mov ecx, edi
call fcn.004054d0
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.00458638
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004040c0
int3
Function at 0x42cf00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x51b7bc]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x828], ebx
cmp word [0x51ea20], 0
jne 0x42d03a
push 0x20219
push str.SOFTWAREjiandesk
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.0040cbe0
mov edi, dword [ebp - 0x824]
test eax, eax
jne 0x42d02f
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0x4e7ae8
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d02f
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x42cfcc
cmp eax, 2
jne 0x42d02f
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x42cfe9
test al, 1
jne 0x42d02f
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x42cff2
jmp 0x42d02f
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x51ea20
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42d022
movzx eax, word [esi + ecx]
test ax, ax
je 0x42d022
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x42d004
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x42d03a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x51ea20
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x42d08b
mov ecx, 0x51ea20
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42d07e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42d07e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x42d060
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.00404d10
mov ecx, eax
test ecx, ecx
je 0x42d0fa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x51ea20
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004040e0
test al, al
jne 0x42d0dc
mov ecx, 0x51ea20
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d0c0
sub ecx, edx
sar ecx, 1
push ecx
push 0x51ea20
mov ecx, ebx
call fcn.004054d0
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.00458638
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004040c0
int3
Function at 0x42eda0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51b7bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x42ee74
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004647d0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
call fcn.0042eff0
test eax, eax
jne 0x42ee3f
push 1
push 0x2a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], 0
jne 0x42ee26
push str.C:Program_Files
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00480108
add esp, 0xc
push 0x4f0160
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00480108
add esp, 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [eax + 0x2c]
test eax, eax
je 0x42ee61
push 0x32
call fcn.0043bf60
add esp, 4
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.004801dd
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00458638
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42eff0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x51b7bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42f0a1
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004647d0
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.Setup_Path
push str.SOFTWAREJianDesk
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42f0a1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f0a1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004801dd
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458638
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00458638
mov esp, ebp
pop ebp
ret 8