joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4366d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov edi, 0x4f11d4
xor esi, esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], esi
call fcn.0042241f
push edi
lea eax, [ebp - 0xc]
call fcn.0042241f
push edi
lea eax, [ebp - 4]
call fcn.0042241f
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00489500
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.00413c3b
add esp, 0x10
lea edi, [ebp - 0x10]
call fcn.004234ea
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401023
mov edi, dword [ebp - 0x10]
push esi
push edi
call fcn.00489e54
test eax, eax
pop ecx
pop ecx
je 0x436763
mov dword [ebp - 8], esi
jmp 0x436808
push ebx
mov ebx, str._install:kdeskmenu64.dll__forcedMode:true
push ebx
call fcn.00488c9a
pop ecx
push ebx
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.00413bce
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push edi
push str._s__s
call fcn.00421c33
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.004238f8
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x4367ea
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 0x4367d8
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4367d8
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 0x4367ed
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
jne 0x4367f6
xor eax, eax
jmp 0x4367ff
push dword [ebp - 4]
call fcn.00488c9a
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 0x43682f
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x512bd4]
and dword [ebp - 4], 0
push ebx
push esi
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x5148a8]
add eax, 0xfffffff0
call fcn.00423492
mov esi, eax
push str.kdesk.exe
add esi, 0x10
push esi
push str.__s_s___autorun
lea eax, [ebp - 8]
call fcn.00421c33
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00401023
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
lea esi, [ebp - 4]
call fcn.00404d44
mov ebx, dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x4368c2
mov eax, dword [0x5149d4]
push edi
add eax, 0xfffffff0
call fcn.00423492
mov edi, eax
push ebx
add edi, 0x10
push edi
lea esi, [ebp - 4]
call fcn.00475cc8
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 0x4368d9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4368df
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.00489500
mov eax, dword [0x512bd4]
add esp, 0xc
mov ecx, 0x512bd4
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, 0x5148ac
je 0x436995
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00413ba8
push str.kdesk_
push esi
call fcn.00401000
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push 0x4f58e8
lea eax, [ebp - 4]
call fcn.00421c33
mov edi, dword [ebp - 4]
pop ecx
pop ecx
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.0040103b
push dword [0x5148ac]
call fcn.00427fa3
test eax, eax
pop ecx
je 0x436995
inc ebx
jmp 0x43699a
call fcn.00413449
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x436d9a
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
push ebp
push esi
push edi
lea edi, [esp + 0x10]
call fcn.00436d1a
mov eax, dword [0x512bd4]
mov ecx, 0x512bd4
call dword [eax + 0xc]
mov edi, eax
xor ebp, ebp
push ebp
add edi, 0x10
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0042854b
cmp eax, ebp
jne 0x436dfa
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.004296d3
add esp, 0xc
call esi
push eax
push 0
push ebp
mov esi, 0x514ad4
call fcn.00443ae2
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.00436519
test eax, eax
jne 0x436e3b
mov eax, dword [ebx + 0x80]
cmp eax, ebp
je 0x436e2f
push dword [ebx + 0x58]
push 0x4f59d0
push 3
push 0x32
call eax
add esp, 0x10
mov eax, 0xe0000007
call fcn.004296c4
jmp 0x436e58
push 0xa
lea eax, [ebx + 0xc8]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov eax, ebx
call fcn.00437d32
mov dword [ebx + 0x10], 1
cmp dword [ebx + 0x10], ebp
jne 0x436e67
mov eax, 0xefffffff
call fcn.004296c4
call esi
sub eax, dword [esp + 0xc]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x80]
cmp eax, ebp
je 0x436e8f
cmp dword [ebx + 0x10], ebp
je 0x436e8f
push dword [ebx + 0x58]
push 0x4f59e0
push ebp
push 0x64
call eax
add esp, 0x10
push dword [ebx + 0x7c]
mov esi, 0x514ad4
push dword [ebx + 0x10]
push str.install_end__return:_d__install_cost_time:_dms
call fcn.00443ae2
push dword [ebx + 0x10]
push str.install_thread_end:_d
call fcn.004296d3
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [edi - 0x10]
call fcn.00401023
lea edi, [esp + 0x10]
call fcn.00436d60
pop edi
pop esi
pop ebp
add esp, 0x40
ret
Function at 0x437bfd
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, 0x512bd4
mov ecx, edi
mov esi, ebx
call fcn.0040de3b
and word [ebp - 0x210], 0
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00489500
mov eax, dword [0x512bd4]
add esp, 0xc
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
push str.programfiles
mov dword [ebp - 4], esi
call fcn.0048b6fb
pop ecx
push eax
push ebx
call fcn.00413ba8
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x437c85
push edi
push 0x26
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
je 0x437d24
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.00413ba8
mov eax, ebx
call fcn.00424300
mov esi, ebx
call fcn.00427f1d
mov eax, dword [0x5149d0]
add eax, 0xfffffff0
call fcn.00423492
lea edi, [eax + 0x10]
push dword [edi - 0xc]
mov eax, ebx
push edi
call fcn.0040103b
lea eax, [edi - 0x10]
call fcn.00401023
lea eax, [ebp - 8]
push eax
call fcn.00475b1e
pop ecx
lea edi, [ebp - 4]
call fcn.004234ea
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x437d24
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437d24
xor ecx, ecx
inc ecx
lea edx, [ebp - 8]
mov eax, edi
call fcn.004139e2
call fcn.004234ea
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
jge 0x437d17
push 0x80070057
call fcn.004011d7
movzx eax, word [esi]
push eax
xor edi, edi
mov eax, ebx
call fcn.0042f637
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
mov eax, ebx
pop esi
leave
ret
Function at 0x43883c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x512bd4]
push ebx
push esi
xor esi, esi
push edi
mov ecx, 0x512bd4
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
mov ebx, eax
mov edi, 0x514ad4
mov dword [ebp - 4], esi
push str.GetPacketData__d
mov esi, edi
add ebx, 0x10
call fcn.00443ae2
mov esi, dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.00438928
push eax
push str.GetPacketData_return:_d
mov esi, edi
mov dword [ebp + 0xc], eax
call fcn.00443ae2
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
jne 0x4388ab
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 1
jmp 0x438909
call fcn.0046e81c
test eax, eax
mov dword [ebp - 4], eax
je 0x438909
push str.Extract...
call fcn.00443ae2
mov eax, dword [ebp - 4]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [eax]
push dword [ebp - 8]
push dword [ebp + 0xc]
push eax
call dword [ecx]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp + 0xc], eax
push ecx
push str.Extract_return:_d
call fcn.00443ae2
xor esi, esi
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
je 0x438902
lea eax, [ebx - 0x10]
call fcn.00401023
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov dword [ebp - 0xc], 1
cmp dword [ebx - 0xc], 0
je 0x438916
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x438923
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0xc]
jmp 0x4388f1
Function at 0x438a09
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x210], di
call fcn.00489500
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x438a95
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0xc
jmp 0x438b0d
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
jne 0x438ac8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x438af0
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x438aff
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0xc
jmp 0x438b06
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439449
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebx], 2
push esi
push edi
jne 0x43945f
lea edi, [ebp - 4]
call fcn.00439515
jmp 0x439469
lea eax, [ebp - 4]
push eax
call fcn.004394c0
pop ecx
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43947e
push edi
call fcn.0047561c
pop ecx
lea esi, [ebp - 8]
mov eax, ebx
call fcn.004396e4
mov esi, dword [ebp - 8]
and dword [ebp - 4], 0
push esi
push SysReAllocString
lea eax, [ebp - 4]
call fcn.0042390f
cmp dword [ebp - 4], 0
je 0x4394ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
leave
ret
Function at 0x439a5f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0049a290
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
xor esi, esi
cmp edi, esi
jne 0x439a81
xor eax, eax
jmp 0x439b28
push 0xffe
lea eax, [ebp - 0x1016]
push esi
push eax
mov dword [ebp - 8], esi
mov word [ebp - 0x1018], si
call fcn.00489500
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1018]
push eax
push esi
push edi
jmp 0x439b14
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0xc]
call fcn.0042241f
call fcn.00424300
mov ebx, dword [ebp + 0xc]
push eax
lea edi, [ebp - 0x18]
call fcn.0043a684
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
inc dword [ebp - 8]
push 0xffe
lea eax, [ebp - 0x1016]
push esi
push eax
mov word [ebp - 0x1018], si
call fcn.00489500
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [eax]
mov dword [ebp - 4], 0x7fe
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x439ab3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x439e8a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push esi
push edi
push ecx
add eax, 0xfffffff0
mov esi, esp
call fcn.00423492
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
call fcn.00439f0d
mov esi, dword [ebp - 4]
xor edi, edi
add esp, 0xc
cmp dword [esi - 0xc], edi
je 0x439ef4
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x439ed2
lea eax, [ebp - 4]
mov edi, ebx
call fcn.004234ea
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00439c67
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x43a0e8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x513ad8], 0
jne 0x43a1a7
push esi
push edi
push 0x400000
lea eax, [ebp - 4]
call fcn.00475524
xor ecx, ecx
lea esi, [ebp - 4]
mov dword [esp], str.fantasydesk
call fcn.00413b05
cmp eax, 0xffffffff
mov edi, dword [ebp - 4]
je 0x43a12d
mov dword [0x513ad4], 1
jmp 0x43a196
push str.kdesk
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00413b05
cmp eax, 0xffffffff
je 0x43a196
mov eax, dword [0x512bd4]
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push edi
push str._s_ressrcchsuplive.svr
lea eax, [ebp - 4]
call fcn.00421c33
mov esi, dword [ebp - 4]
pop ecx
pop ecx
push esi
push 0
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
add eax, 0xfffff445
push 0x61
pop ecx
cmp ecx, eax
sbb eax, eax
add eax, 3
mov dword [0x513ad4], eax
lea eax, [esi - 0x10]
call fcn.00401023
lea eax, [edi - 0x10]
mov byte [0x513ad8], 1
call fcn.00401023
pop edi
pop esi
mov al, 1
leave
ret
Function at 0x43a1ab
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.0049a290
push ebx
push esi
push edi
mov esi, 0x20219
push esi
push str.HKEY_LOCAL_MACHINE_softwarecmcmkdesk
lea ebx, [ebp - 0x1c]
call fcn.00404e19
lea edi, [ebp - 0x1024]
call fcn.00404df1
push esi
mov esi, ebx
call fcn.00404ec5
test eax, eax
je 0x43a2e7
push str.ProgramPath
mov eax, ebx
push eax
mov eax, edi
call fcn.00404eef
test eax, eax
je 0x43a2e7
mov eax, edi
push eax
lea eax, [ebp - 8]
call fcn.0042241f
lea eax, [ebp - 0xc]
xor ecx, ecx
push eax
inc ecx
lea eax, [ebp - 8]
call fcn.0040703b
mov esi, 0x4e96bc
push esi
push eax
call fcn.0040ddd3
test eax, eax
mov eax, dword [ebp - 0xc]
setne bl
add eax, 0xfffffff0
call fcn.00401023
test bl, bl
je 0x43a244
push esi
lea eax, [ebp - 8]
push eax
call fcn.00401000
call fcn.0043ee91
cmp eax, 2
jne 0x43a2b1
mov edi, dword [ebp - 8]
add edi, 0xfffffff0
mov eax, edi
call fcn.00423492
add eax, 0x10
mov dword [ebp - 0xc], eax
push str.kdesk64.exe
lea eax, [ebp - 0xc]
push eax
call fcn.00401000
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a2a9
add esi, 0xfffffff0
mov eax, esi
call fcn.00423492
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.00401023
mov eax, edi
call fcn.00401023
lea esi, [ebp - 0x1c]
call fcn.00404ead
mov eax, ebx
jmp 0x43a2ff
lea eax, [esi - 0x10]
call fcn.00401023
push str.kdesk.exe
lea eax, [ebp - 8]
push eax
call fcn.00401000
mov esi, dword [ebp - 8]
add esi, 0xfffffff0
mov eax, esi
call fcn.00423492
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00401023
lea esi, [ebp - 0x1c]
call fcn.00404ead
mov eax, edi
jmp 0x43a2ff
mov eax, dword [ebp + 8]
push 0x4f11d4
call fcn.0042241f
lea esi, [ebp - 0x1c]
call fcn.00404ead
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43a306
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push eax
call fcn.0043a3f8
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
jne 0x43a334
push 0x4f11d4
mov eax, edi
call fcn.0042241f
lea eax, [ebx - 0x10]
jmp 0x43a3ed
lea eax, [ebp - 0xc]
xor ecx, ecx
push eax
inc ecx
lea eax, [ebp - 8]
call fcn.0040703b
mov esi, 0x4e96bc
push esi
push eax
call fcn.0040ddd3
test eax, eax
mov eax, dword [ebp - 0xc]
setne byte [ebp - 1]
add eax, 0xfffffff0
call fcn.00401023
cmp byte [ebp - 1], 0
je 0x43a373
push esi
lea eax, [ebp - 8]
push eax
call fcn.00401000
mov ebx, dword [ebp - 8]
call fcn.0043ee91
cmp eax, 2
jne 0x43a3cb
add ebx, 0xfffffff0
mov eax, ebx
call fcn.00423492
add eax, 0x10
mov dword [ebp - 0xc], eax
push str.kdesk64.exe
lea eax, [ebp - 0xc]
push eax
call fcn.00401000
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a3c3
add esi, 0xfffffff0
mov eax, esi
call fcn.00423492
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00401023
mov eax, ebx
jmp 0x43a3ed
lea eax, [esi - 0x10]
call fcn.00401023
push str.kdesk.exe
lea eax, [ebp - 8]
push eax
call fcn.00401000
mov esi, dword [ebp - 8]
add esi, 0xfffffff0
mov eax, esi
call fcn.00423492
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00401023
pop esi
mov eax, edi
pop ebx
leave
ret

Function at 0x43a52e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0049a290
push ebx
push esi
push edi
mov esi, 0x20219
push esi
push str.HKEY_LOCAL_MACHINE_softwarecmcmkdesk
lea ebx, [ebp - 0x18]
call fcn.00404e19
lea edi, [ebp - 0x1020]
call fcn.00404df1
push esi
mov esi, ebx
call fcn.00404ec5
test eax, eax
je 0x43a5fd
push str.ProgramPath
mov eax, ebx
push eax
mov eax, edi
call fcn.00404eef
test eax, eax
je 0x43a5fd
mov eax, edi
push eax
lea eax, [ebp - 4]
call fcn.0042241f
lea eax, [ebp - 8]
xor ecx, ecx
push eax
inc ecx
lea eax, [ebp - 4]
call fcn.0040703b
mov esi, 0x4e96bc
push esi
push eax
call fcn.0040ddd3
test eax, eax
mov eax, dword [ebp - 8]
setne bl
add eax, 0xfffffff0
call fcn.00401023
test bl, bl
je 0x43a5c3
push esi
lea eax, [ebp - 4]
push eax
call fcn.00401000
push str.ressrcchsuplive.svr
lea eax, [ebp - 4]
push eax
call fcn.00401000
mov esi, dword [ebp - 4]
push esi
push 0
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00401023
lea esi, [ebp - 0x18]
call fcn.00404ead
mov eax, edi
jmp 0x43a607
lea esi, [ebp - 0x18]
call fcn.00404ead
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ad0d
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x512bd4]
push esi
push edi
mov ecx, 0x512bd4
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
push 7
push str._from:_d__mode:3__operation:_d
lea eax, [ebp - 4]
call fcn.00421c33
add esp, 0xc
call fcn.00404d10
lea edi, [ebp - 8]
call fcn.0043a306
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43ad5d
test al, 0x10
je 0x43ad6d
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x43ad8e
mov edi, dword [ebp - 4]
push 1
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
leave
ret

Function at 0x43ad97
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x512bd4]
push ebx
push esi
push edi
mov ecx, 0x512bd4
call dword [eax + 0xc]
push str.arrange_pop_page_failed
add eax, 0x10
push 0x4f6890
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
push str._from:_d__mode:2___s:1___s:1
lea eax, [ebp - 4]
call fcn.00421c33
add esp, 0x10
lea edi, [ebp - 8]
call fcn.0043ae1a
mov esi, dword [ebp - 8]
push ebx
push esi
call fcn.00489dcd
test eax, eax
mov edi, dword [ebp - 4]
pop ecx
pop ecx
je 0x43ae01
lea eax, [esi - 0x10]
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 1
push ebx
push edi
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
jmp 0x43adea

Function at 0x43ae1a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call fcn.0043ee91
cmp eax, 2
jne 0x43ae75
push str.kdesk64.exe
lea eax, [ebp - 4]
push eax
call fcn.0043ae9b
lea ecx, [ebp - 8]
call fcn.00413c3b
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ae6d
add esi, 0xfffffff0
mov eax, esi
call fcn.00423492
add eax, 0x10
mov dword [edi], eax
mov eax, esi
jmp 0x43ae91
lea eax, [esi - 0x10]
call fcn.00401023
push str.kdesk.exe
lea eax, [ebp - 8]
push eax
call fcn.0043ae9b
mov ecx, edi
call fcn.00413c3b
mov eax, dword [ebp - 8]
pop ecx
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
pop esi
leave
ret