joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478692
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push edi
push 7
pop ecx
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x51be5c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x1e
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x478725
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x478725
lea eax, [ebp - 0x30]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
mov byte [eax], bl
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 0xc
push 4
pop ecx
cmp eax, ecx
mov dword [esi], eax
jge 0x47871e
mov dword [esi], ecx
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop ebx
je 0x478735
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x47873a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x40
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x5438cc]
add esp, 0xc
mov ecx, 0x5438cc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.__s___s
push eax
call fcn.0042a016
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
and esi, 0xa
push ebx
mov word [ebp - 0x30], si
mov esi, dword [ebp - 4]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], ebx
je 0x4787ce
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp - 0x10]
lea eax, [esi - 0x10]
call fcn.00401239
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4787e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
push 0x40
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x5438cc]
add esp, 0xc
mov ecx, 0x5438cc
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.__s___s
push eax
call fcn.0042a016
mov edi, dword [ebp - 4]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push edi
and esi, 0xa
push ebx
mov word [ebp - 0x2c], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47887f
cmp dword [ebp + 0x10], ebx
je 0x47887c
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x478892
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
je 0x47889f
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
lea eax, [edi - 0x10]
call fcn.00401239
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4788fe
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push 0x3c
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
call sub.MSVCR80.dll_memset
push 0x206
lea eax, [ebp - 0x242]
push esi
push eax
mov word [ebp - 0x244], si
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x244]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4789b8
Capabilities:
Check if file exists
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0x50edd8
xor ebx, ebx
push str.Shell_TrayWnd
push ebx
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x478ad4
mov eax, dword [0x5438cc]
push esi
xor esi, esi
inc esi
push edi
mov ecx, 0x5438cc
mov dword [ebp - 0xc], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.0047821a
pop ecx
lea edi, [ebp - 8]
call fcn.0042a0a0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401239
push str.ktaskbar.dll
mov eax, edi
push eax
call fcn.00407371
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478ac4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x478ac4
push str.ShowMenu
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x478ab0
push 0x2001f
push str.SOFTWAREKingsoftAntivirus_
push SysReAllocStringLen
lea eax, [ebp - 4]
call fcn.004017a0
test eax, eax
jne 0x478aa1
lea eax, [ebp - 0xc]
push eax
push str.TaskbarRightKeyProcessMgrExMenu
lea eax, [ebp - 4]
push eax
call fcn.004016fe
test eax, eax
je 0x478a93
mov dword [ebp - 0xc], esi
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
push eax
call edi
mov dword [ebp - 0x10], esi
cmp dword [ebp - 4], 0
je 0x478ab0
push dword [ebp - 4]
call ebx
and dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], 0
je 0x478ac4
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x478d8e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
lea eax, [ebp - 4]
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 0x478e0d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x478dd5
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
call fcn.00478d8e
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x478e11
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x200
call edi
test eax, eax
je 0x478dbd
push dword [ebp - 4]
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
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x478e0d
Function at 0x478e1f
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
cmp ebx, edi
je 0x478e8c
lea eax, [ebp - 4]
push eax
push 0x28
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x478e8c
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x478e8c
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x478e8c
mov dword [ebp - 8], esi
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x478e9f
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x478ea6
push ebx
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x478eae
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5438cc]
push ebx
push esi
mov esi, 0x5438cc
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040121e
lea eax, [ebp - 8]
push eax
call fcn.0047821a
mov dword [esp], str.signs.ini
push dword [eax]
lea eax, [ebp - 4]
push 0x50c1b0
push eax
call fcn.0042a016
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00401239
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0x50c724
mov edi, str.Sign
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x478f68
push dword [ebp - 4]
push 0
push str.BuildNum
push edi
call esi
movzx eax, ax
test ax, ax
je 0x478f68
movzx eax, ax
push eax
movzx esi, bl
movzx dx, bh
movzx eax, si
push eax
movzx edx, dx
mov ecx, ebx
sar ecx, 0x10
movzx eax, dx
movzx ecx, cx
push eax
movzx eax, cx
push eax
push 0x51edfc
push dword [ebp + 8]
call fcn.0042a016
add esp, 0x18
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x478fb8
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.004014ce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x478fed
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x478fd8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x478fd8
lea eax, [ebp - 4]
call fcn.00496f12
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x479024
xor esi, esi
jmp 0x478fdb
push eax
call fcn.00478fb8
test eax, eax
pop ecx
je 0x479020
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x478fd8
call edi
cmp eax, ebx
jne 0x479020
jmp 0x478fd8

Function at 0x479191
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov esi, eax
call edi
push 0
push str.Shell_TrayWnd
mov edi, eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x479200
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, esi
jl 0x4791ed
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sub esi, 0xa
cmp dword [ebp - 8], edi
mov dword [ebx], esi
jl 0x47920a
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
jmp 0x479210
test eax, eax
jle 0x479200
mov ecx, dword [ebp + 8]
sub eax, dword [ecx]
sub eax, 0xa
mov dword [ebx], eax
sub edi, dword [ecx + 4]
jmp 0x47920d
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sub esi, 0xa
mov dword [ebx], esi
sub edi, dword [eax + 4]
mov dword [ebx + 4], edi
pop edi
pop esi
leave
ret

Function at 0x47960b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5438cc]
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push str.synctm.exe
push eax
call fcn.0047821a
pop ecx
lea ecx, [ebp - 8]
call fcn.0042a029
pop ecx
lea edi, [ebp - 4]
call fcn.0042a0a0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401239
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
test eax, eax
jne 0x47967a
lea eax, [esi - 0x10]
call fcn.00401239
mov eax, edi
pop edi
pop esi
leave
ret
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea ebx, [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.00464392
mov eax, dword [ebp - 4]
pop ecx
and eax, 0xffff0000
cmp eax, 0x7dc0000
pop ecx
pop ebx
jb 0x47966c
xor edi, edi
inc edi
jmp 0x47966c
Function at 0x479a3d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
push 0x228
xor esi, esi
lea eax, [ebp - 0x228]
push esi
push eax
mov dword [ebp - 0x22c], 0x22c
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x479a7e
xor eax, eax
pop edi
pop esi
leave
ret
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x479a9a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x479a7a
lea eax, [ebp - 0x208]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x479ac1
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
jmp 0x479a8b
mov esi, dword [ebp - 0x224]
jmp 0x479a8f

Function at 0x479ac9
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x10], ebp
mov dword [esp + 8], ebp
je 0x479ba3
cmp dword [esp + 0x14], ebp
je 0x479ba3
push esi
push dword [esp + 0x18]
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x479ba2
push edi
push 4
push 0x3000
push dword [esp + 0x20]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebp
je 0x479b7d
push ebp
push dword [esp + 0x1c]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x479b7d
push 0x51f050
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push ebp
push edi
push eax
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
cmp ebx, ebp
je 0x479b7d
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, ebp
je 0x479b8f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
je 0x479ba1
push 0x8000
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
ret
Function at 0x479cb5
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x4da47c
push 1
push edi
push 0x4da52c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x479d6f
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
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 0x4da53c
push eax
call dword [ecx]
test eax, eax
jl 0x479d57
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
call fcn.004014ce
lea eax, [ebp - 0xc]
call fcn.00496f12
mov esi, dword [ebp - 0xc]
push esi
call fcn.00478fb8
pop ecx
lea eax, [esi - 0x10]
call fcn.00401239
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
mov esi, 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]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp esi, edi
setge al
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x479d75
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5438cc]
push ebx
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.004015aa
push eax
xor esi, esi
push esi
push esi
push 0x19
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp dword [ebp - 4], esi
jne 0x479db4
xor eax, eax
jmp 0x479dbe
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 4]
call fcn.00401354
push dword [ebp - 4]
call fcn.00478fb8
lea esi, [ebp - 4]
call fcn.00478f7b
mov eax, esi
mov dword [esp], 0x51f084
push eax
call fcn.00407371
lea eax, [ebp - 8]
push eax
call fcn.0047821a
lea eax, [ebp - 8]
mov dword [esp], 0x50cd38
push eax
call fcn.00407371
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
push esi
push edi
call fcn.00479cb5
pop ecx
mov ebx, eax
pop ecx
lea eax, [edi - 0x10]
call fcn.00401239
lea eax, [esi - 0x10]
call fcn.00401239
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x479e26
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 8]
push 9
push eax
call fcn.004a808b
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
pop ecx
pop ecx
jne 0x479e4c
add eax, 0xfffffff0
call fcn.00401239
leave
ret
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call fcn.00496e9b
pop ecx
lea edi, [ebp - 0x28]
call fcn.0049f4cc
push str.klitedeskex.exe
push 0
lea eax, [ebp - 0xc]
call fcn.00496e16
pop ecx
lea ecx, [ebp - 4]
call fcn.0042a029
pop ecx
lea edi, [ebp - 0x20]
call fcn.0042a0a0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401239
mov ebx, dword [ebp - 8]
add ebx, 0xfffffff0
mov eax, ebx
call fcn.0042a0e1
add eax, 0x10
mov dword [ebp - 4], eax
mov esi, 0x51f094
push esi
lea eax, [ebp - 4]
push eax
call fcn.00407371
push 0x513684
lea eax, [ebp - 4]
push eax
call fcn.00407371
push dword [ebp - 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x479ee0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x479f2b
push str._sendtolitedesk
lea eax, [ebp - 0x18]
push eax
call fcn.0040127c
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.0040127c
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.0042a0a0
push esi
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x10], 2
call fcn.0040127c
push 0
lea eax, [ebp - 8]
lea esi, [ebp - 0x28]
call fcn.004a7d60
pop ecx
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
lea esi, [ebp - 0x28]
call fcn.0049f513
mov eax, ebx
call fcn.00401239
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x490c2e
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x490c24
cmp edi, 0x200000
ja 0x490c24
lea eax, [edi + 2]
push esi
push eax
call fcn.004ce6ea
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490c23
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x490c23
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x491d13
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov ebx, eax
mov eax, dword [0x5438cc]
mov ecx, 0x5438cc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], esi
je 0x491d77
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x491d77
cmp dword [ebp + 8], edi
jne 0x491d5c
mov ebx, 0x80070057
jmp 0x491d66
push dword [ebp + 8]
call fcn.00492248
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.00401239
xor eax, eax
cmp ebx, edi
setge al
jmp 0x491dd7
lea edi, [ebx + 4]
call fcn.0049150e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00490b96
test eax, eax
mov edi, dword [ebp - 8]
je 0x491dc1
test edi, edi
je 0x491dcc
push edi
lea eax, [ebp - 4]
push eax
call fcn.00407371
push 0xa
push 0xd
lea eax, [ebp - 4]
call fcn.00455883
mov esi, dword [ebp - 4]
push esi
push ebx
call fcn.00490d3a
mov dword [ebp - 0xc], 1
test edi, edi
je 0x491dcc
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [esi - 0x10]
call fcn.00401239
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x49205f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5438cc]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x5438cc
mov ecx, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x5438cc]
add esi, 0x10
mov ecx, edi
mov dword [ebp - 0xc], esi
call dword [eax + 0xc]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov edi, eax
add edi, 0x10
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x49211c
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00492139
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 8]
mov byte [ebp + 0xc], 0xff
mov byte [ebp + 0xd], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov esi, dword [ebp - 0xc]
je 0x492113
cmp dword [ebp - 4], 2
jne 0x492113
mov eax, dword [esi - 0xc]
push ebx
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push esi
push dword [ebp - 8]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x492113
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x492113
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
call fcn.00401239
lea eax, [esi - 0x10]
call fcn.00401239
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 8