joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a30f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42a395
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42a35a
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call fcn.0042a30f
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x42a39b
lea eax, [esp + 0x18]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x200
call edi
test eax, eax
je 0x42a342
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x42a395

Function at 0x42a3ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.004857c0
add esp, 0xc
mov ecx, 0x509500
call fcn.0040f32d
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x42a430
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00414fa4
push str.kdesk_
push esi
call fcn.00401000
push dword [esi]
call fcn.00429065
mov dword [esp], str.kdesksetup.log
push esi
call fcn.00401000
jmp 0x42a435
call fcn.0041483c
mov eax, esi
pop esi
leave
ret

Function at 0x42a43a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0040e925
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x42a4e7
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x42a4e6
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call fcn.0040e964
mov esi, eax
mov dword [ebp - 8], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42a4e6
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x42a4e6
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x42a497
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x42a4d1
xor eax, eax
jmp 0x42a4d8
push eax
call fcn.004838a0
pop ecx
mov edx, esi
call fcn.0040dc8f
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x42a8b2
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x42a8d4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
leave
ret
mov dword [ebp - 4], 0x110
call fcn.004403ff
cmp eax, 8
jne 0x42a8f6
call fcn.004406fe
cmp eax, 2
jne 0x42a8f6
mov dword [ebp - 4], 0x10
push ebx
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x42a993
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
cmp eax, 0x431
je 0x42a942
call ebx
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop ebx
jmp 0x42a8d1
push 2
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x42a92f
push dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x42a993
call ebx
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a7c7
add esp, 0x18
jmp 0x42a931
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x42a9af
cmp word [eax], si
je 0x42a9af
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42a933
Function at 0x42a9bb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push str.CreateShellLink_start...
mov esi, 0x50b3f4
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00445464
pop ecx
lea eax, [ebp - 4]
push eax
push 0x4da7fc
push 1
push ebx
push 0x4da80c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jl 0x42aab3
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x14], ebx
je 0x42aa2b
push dword [ebp + 0x14]
call fcn.00483779
test eax, eax
pop ecx
jbe 0x42aa2b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push dword [ebp + 0x14]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x42aa41
cmp word [eax], bx
je 0x42aa41
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4da81c
push eax
call dword [ecx]
test eax, eax
jl 0x42aaa0
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
call fcn.00423484
lea eax, [ebp - 0xc]
call fcn.00428fc6
mov edi, dword [ebp - 0xc]
push edi
call fcn.00429065
pop ecx
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp dword [ebp - 0xc], ebx
setge al
mov edi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push str.CreateShellLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.00445464
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f36c
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
lea ebp, [edi + 4]
lea esi, [ebp + 0x10]
call fcn.00434ffa
lea esi, [ebp + 0x28]
call fcn.00434ffa
or dword [ebp + 0x40], 0xffffffff
xor ebx, ebx
mov dword [ebp], 1
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
mov byte [ebp + 0x44], bl
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], 0x2710
cmp dword [0x509258], ebx
je 0x42f3c2
push 0x5090c8
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x509258], eax
fld dword [0x4f33c0]
lea esi, [edi + 0x54]
mov dword [edi], vtable.ATL::CAtlHttpClientT_class_ATL::ZEvtSyncSocket_.0
fstp dword [esi + 0xc]
fld dword [0x4f33c4]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0x10]
mov dword [esi], ebx
fld dword [0x4f33c8]
mov dword [esi + 4], ebx
fstp dword [esi + 0x14]
mov dword [esi + 8], 0x11
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040b9eb
fld dword [0x4f33c0]
lea esi, [edi + 0x84]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0xc]
fld dword [0x4f33c4]
mov dword [esi], ebx
fstp dword [esi + 0x10]
mov dword [esi + 4], ebx
fld dword [0x4f33c8]
mov dword [esi + 8], 0x11
fstp dword [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040b9eb
lea eax, [edi + 0xb4]
lea esi, [edi + 0xc8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call fcn.004307af
lea esi, [edi + 0x10d8]
call fcn.00427f59
lea esi, [edi + 0x3544]
mov ecx, 0x509500
call fcn.0040f32d
lea esi, [edi + 0x3548]
mov ecx, 0x509500
call fcn.0040f32d
mov esi, ebp
call fcn.00428aac
call fcn.00431e5e
mov dword [edi + 0xc4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x434d96
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.0041491e
mov edi, eax
cmp edi, esi
je 0x434dd3
cmp dword [ebp - 8], esi
je 0x434dcf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x434e40
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x434df1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.00434d96
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x434e47
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], pe_nt_image_headers32
call edi
test eax, eax
je 0x434ddb
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x434e27
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x434e3e
push dword [ebp - 8]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x434e55
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x434e40

Function at 0x435187
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [0x509500]
push edi
mov ecx, 0x509500
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
call fcn.00435886
test eax, eax
je 0x4351b8
lea eax, [ebp - 4]
push eax
call fcn.00435748
jmp 0x4351dd
push str.idex
lea eax, [ebp - 8]
call fcn.00423484
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004352f1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
cmp dword [esi + 0x18], 8
jb 0x4351e8
mov eax, dword [esi + 4]
jmp 0x4351eb
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
call fcn.00423484
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
mov esi, dword [ebp - 8]
jg 0x435205
xor ebx, ebx
inc ebx
jmp 0x43521c
push esi
push 0xffffffffffffffff
push edi
push str.ulst
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
lea eax, [esi - 0x10]
call fcn.00401023
test ebx, ebx
je 0x435234
lea eax, [ebp - 4]
push eax
call fcn.00435748
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, edi
call fcn.0042c8b0
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4352f1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0xc], esi
mov word [ebp - 0x218], si
call fcn.004857c0
add esp, 0xc
xor edi, edi
inc edi
push edi
push str.CLSID8AB9CCC4_75EC_438b_B6C0_D8D78882A12DImplemented_Categories6BC04964_67B7_4d50_BB9B_3653A5C305B3
mov dword [ebp - 4], esi
push SysReAllocString
lea esi, [ebp - 4]
call fcn.00440858
test eax, eax
je 0x435343
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
jmp 0x43535f
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [edi]
push eax
lea ebx, [ebp - 4]
call fcn.004249b1
test eax, eax
je 0x43535f
mov dword [ebp - 0xc], 1
mov eax, dword [0x509500]
mov ecx, 0x509500
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0043577b
test eax, eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
je 0x4353a4
mov eax, dword [edi]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
push 0x4edccc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x4353d5
test ebx, ebx
ja 0x4353bc
push dword [ebp + 0xc]
push edi
call fcn.00435405
mov dword [ebp - 8], eax
jmp 0x4353e4
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00414fa4
mov dword [ebp - 8], 1
jmp 0x4353dc
test ebx, ebx
ja 0x4353e4
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0043591e
lea eax, [esi - 0x10]
call fcn.00401023
cmp dword [ebp - 4], 0
je 0x4353fb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4357df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x206]
push esi
push eax
mov word [ebp - 0x208], si
call fcn.004857c0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x435881
push 1
push 0x23
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, 0x104
jne 0x43584c
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x435881
lea eax, [ebp - 0x208]
push str.All_UsersApplication_Data
push eax
call fcn.0042f78b
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push str.KingsoftKIS_
push eax
call fcn.0042f78b
lea eax, [ebp - 0x208]
push eax
call fcn.00483779
add esp, 0xc
cmp eax, esi
jae 0x435881
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.0048942f
pop ecx
pop ecx
pop esi
leave
ret 4

Function at 0x437355
Capabilities:
Set registry value

Disassembly:
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push 1
push 0
push str.idex
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x43747d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
xor ebx, ebx
push esi
inc ebx
test eax, eax
push edi
jne 0x4374a0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call fcn.00437385
mov eax, dword [eax]
pop ecx
push eax
lea eax, [ebp - 0xc]
call fcn.00423484
test byte [ebp - 4], bl
je 0x4374b9
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [0x509500]
mov ecx, 0x509500
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 8]
call fcn.004050fa
push dword [eax]
mov esi, dword [ebp - 0xc]
push esi
push str._sressrc_suplive.svr
lea eax, [ebp - 4]
call fcn.00422cb5
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00401023
mov edi, dword [ebp - 4]
push edi
push 0xbbb
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov ebx, eax
lea eax, [edi - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4375d2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x9c]
push esi
push eax
call fcn.004857c0
add esp, 0xc
push 0x58
lea eax, [ebp - 0x5c]
push esi
push eax
mov byte [ebp - 0x9c], 0x80
call fcn.004857c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
push dword [ebp + 0xc]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
call fcn.0043f6b7
push dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.00437529
pop esi
leave
ret
Function at 0x437c86
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00404ceb
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 8]
mov dword [0x50b1b4], eax
mov eax, dword [esp + 0xc]
mov dword [0x50b1ac], eax
mov eax, dword [0x50b1c0]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x437cc3
mov eax, 0xe000001f
call fcn.0042a6db
xor eax, eax
jmp 0x437cf0
push esi
push esi
push 0x50b1a8
push 0x4383fa
push esi
push esi
mov dword [0x50b1b8], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
mov dword [0x50b1bc], eax
jne 0x437ced
mov eax, 0xe0000020
jmp 0x437cba
xor eax, eax
inc eax
pop esi
ret 8

Function at 0x438076
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov edi, 0x4e9bdc
xor esi, esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], esi
call fcn.00423484
push edi
lea eax, [ebp - 0xc]
call fcn.00423484
push edi
lea eax, [ebp - 4]
call fcn.00423484
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.004857c0
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push str.kdeskmenu64install64.exe
add eax, 0x18
lea ecx, [ebp + 8]
mov dword [ebp - 0x68], 0x44
call fcn.00415037
add esp, 0x10
lea edi, [ebp - 0x10]
call fcn.0042454d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401023
mov edi, dword [ebp - 0x10]
push esi
push edi
call fcn.00483a77
test eax, eax
pop ecx
pop ecx
je 0x438109
mov dword [ebp - 8], esi
jmp 0x4381ae
push ebx
mov ebx, str._install:kdeskmenu64.dll__forcedMode:true
push ebx
call fcn.00483779
pop ecx
push ebx
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.00414fca
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push edi
push str._s__s
call fcn.00422cb5
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea esi, [ebp - 4]
call fcn.0042495c
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x438190
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x43817e
cmp dword [ebp - 0x14], 0xffffffff
jne 0x43817e
mov dword [ebp - 8], ebx
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x438193
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
jne 0x43819c
xor eax, eax
jmp 0x4381a5
push dword [ebp - 4]
call fcn.00483779
pop ecx
lea edx, [ebp - 4]
call fcn.004010ac
pop ebx
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x4381d5
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x509500]
and dword [ebp - 4], 0
push ebx
push esi
mov ecx, 0x509500
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x50b1c0]
add eax, 0xfffffff0
call fcn.004244f5
mov esi, eax
push str.kdesk.exe
add esi, 0x10
push esi
push str.__s_s___autorun
lea eax, [ebp - 8]
call fcn.00422cb5
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00401023
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
lea esi, [ebp - 4]
call fcn.00440858
mov ebx, dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x438268
mov eax, dword [0x50b2ec]
push edi
add eax, 0xfffffff0
call fcn.004244f5
mov edi, eax
push ebx
add edi, 0x10
push edi
lea esi, [ebp - 4]
call fcn.00472a5a
mov esi, eax
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
lea eax, [ebx - 0x10]
call fcn.00401023
cmp dword [ebp - 4], 0
je 0x43827f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x438285
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.004857c0
mov eax, dword [0x509500]
add esp, 0xc
mov ecx, 0x509500
call dword [eax + 0xc]
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
add edi, 0x10
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
mov esi, 0x50b1c4
je 0x43833b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00414fa4
push str.kdesk_
push esi
call fcn.00401000
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push 0x4ee578
lea eax, [ebp - 4]
call fcn.00422cb5
mov edi, dword [ebp - 4]
pop ecx
pop ecx
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.0040103b
push dword [0x50b1c4]
call fcn.00429065
test eax, eax
pop ecx
je 0x43833b
inc ebx
jmp 0x438340
call fcn.0041483c
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x438740
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
push ebp
push esi
push edi
lea edi, [esp + 0x10]
call fcn.004386c0
mov eax, dword [0x509500]
mov ecx, 0x509500
call dword [eax + 0xc]
mov edi, eax
xor ebp, ebp
push ebp
add edi, 0x10
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0044514c
cmp eax, ebp
jne 0x4387a0
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push ebp
mov ebp, str.GetDebugPrivilege_return:_d_GetLassError_return:_d
push ebp
call fcn.0042a6ea
add esp, 0xc
call esi
push eax
push 0
push ebp
mov esi, 0x50b3f4
call fcn.00445464
add esp, 0xc
xor ebp, ebp
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [esp + 0xc], eax
mov eax, ebx
mov dword [ebx + 0x10], ebp
call fcn.00437e7c
test eax, eax
jne 0x4387e1
mov eax, dword [ebx + 0x80]
cmp eax, ebp
je 0x4387d5
push dword [ebx + 0x58]
push 0x4ee660
push 3
push 0x32
call eax
add esp, 0x10
mov eax, 0xe0000007
call fcn.0042a6db
jmp 0x4387fe
push 0xa
lea eax, [ebx + 0xc8]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov eax, ebx
call fcn.00439703
mov dword [ebx + 0x10], 1
cmp dword [ebx + 0x10], ebp
jne 0x43880d
mov eax, 0xefffffff
call fcn.0042a6db
call esi
sub eax, dword [esp + 0xc]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x80]
cmp eax, ebp
je 0x438835
cmp dword [ebx + 0x10], ebp
je 0x438835
push dword [ebx + 0x58]
push 0x4ee670
push ebp
push 0x64
call eax
add esp, 0x10
push dword [ebx + 0x7c]
mov esi, 0x50b3f4
push dword [ebx + 0x10]
push str.install_end__return:_d__install_cost_time:_dms
call fcn.00445464
push dword [ebx + 0x10]
push str.install_thread_end:_d
call fcn.0042a6ea
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [edi - 0x10]
call fcn.00401023
lea edi, [esp + 0x10]
call fcn.00438706
pop edi
pop esi
pop ebp
add esp, 0x40
ret