joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100181b1
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0x8000
call dword [sym.imp.MSVCRT.dll_malloc]
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100181d4
xor eax, eax
jmp 0x10018294
push esi
push edi
mov edi, 0x80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call esi
push ebx
push edi
push 1
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call esi
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp esi, 0xffffffff
je 0x10018276
cmp eax, 0xffffffff
je 0x1001826f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 8], eax
mov dword [ebp + 8], ebx
jbe 0x1001826f
lea eax, [ebp + 8]
push ebx
push eax
push 0x8000
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001826f
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.1001819a
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push ebx
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001826f
add edi, dword [ebp + 8]
cmp edi, dword [ebp - 8]
jb 0x1001822a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0xffffffff
pop edi
pop esi
je 0x10018287
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 1
pop eax
pop ebx
leave
ret 8

Function at 0x10018599
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 0x104
push 0x10072a61
mov dword [ebp - 8], ebx
call fcn.100184ac
test eax, eax
je 0x1001866a
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x1001866a
push str.WinExec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x10072a51], eax
je 0x1001866a
push 0x40
mov esi, 0x115
push 0x3000
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
je 0x1001866a
push ebx
push esi
push 0x10072a50
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1001866a
push ebx
lea eax, [edi + 0x11]
push ebx
push eax
push edi
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001865a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
push 0x8000
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10019030
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov al, byte [0x10078b14]
push edi
mov dword [ebp - 0x10], ecx
push 0x40
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.360ss.dat
lea eax, [ebp - 0x114]
push 0x104
push eax
push dword [0x10078af4]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.10016dbe
add esp, 0x10
lea eax, [ebp - 0x114]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x100190a4
xor eax, eax
jmp 0x10019139
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
cmp esi, edi
je 0x1001912b
lea eax, [ebp - 8]
push edi
push eax
push ebx
push esi
mov dword [ebp - 8], edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019123
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebp - 8]
imul ecx, ecx, 0x4c
add ecx, 0x34
cmp eax, ecx
jne 0x10019123
cmp dword [esi + 8], 1
jne 0x10019123
lea ebx, [eax - 0x34]
lea edi, [esi + 0x34]
push 0x10072c28
push ebx
push edi
push edi
call fcn.1000d281
push ebx
push edi
call fcn.1000b586
add esp, 0x18
cmp eax, dword [esi + 0x30]
jne 0x10019123
push dword [esi + 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 1
push edi
call fcn.1001913c
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x10019189
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov al, byte [0x10078b14]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x148], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.360ss.dat
lea eax, [ebp - 0x148]
push 0x104
push eax
push dword [0x10078af4]
call fcn.10016dbe
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
call fcn.1000a646
xor eax, eax
push eax
push eax
push 2
push eax
push 1
lea eax, [ebp - 0x148]
pop ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10019209
xor eax, eax
jmp 0x100192c8
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x3c], ebx
test ecx, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0xb
je 0x1001922f
mov eax, dword [esi + 0x10]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x18], eax
imul eax, eax, 0x4c
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10019276
mov ecx, dword [esi + 0x10]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x10019276
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x1001926f
push 0x4c
push eax
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [ebp - 0xc], 0x4c
inc ebx
jmp 0x10019247
push dword [ebp - 8]
push edi
call fcn.1000b586
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
lea eax, [ebp - 0x44]
push 0x34
push eax
push dword [ebp - 4]
call esi
push 0x10072c28
push dword [ebp - 8]
push edi
push edi
call fcn.1000d24a
add esp, 0x10
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001999e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
movzx eax, word [ecx + 0x14]
push edi
lea esi, [eax + ecx + 0x18]
cmp ebx, dword [esi + 0xc]
lea edx, [esi + 0xc]
jae 0x100199bf
mov eax, ebx
jmp 0x100199fe
movzx edi, word [ecx + 6]
xor eax, eax
test edi, edi
jbe 0x100199fb
mov dword [ebp + 0xc], edx
lea edx, [eax + 1]
cmp edx, edi
mov dword [ebp - 4], edx
jne 0x100199db
mov edx, dword [ecx + 0x50]
jmp 0x100199e1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x28]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0xc]
cmp ebx, dword [edx]
jb 0x100199f0
cmp ebx, dword [ebp + 0x10]
jb 0x10019a03
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], 0x28
cmp eax, edi
jb 0x100199cc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov eax, dword [esi + eax*8 + 0x14]
sub eax, dword [ecx + 0xc]
add eax, ebx
jmp 0x100199fe

Function at 0x10019c48
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x10054380
call fcn.10052270
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x10019c66
push 1
pop eax
jmp 0x10019d1c
mov eax, dword [0x10070040]
push edi
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 4], ebx
push eax
call fcn.10019ba7
test eax, eax
je 0x10019d0d
mov edi, dword [ebp - 0x10]
push edi
call fcn.1000dbea
test eax, eax
pop ecx
je 0x10019c9d
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x10019d0d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SmartUploadCreate
push eax
call edi
push str.SmartUploadClose
mov dword [esi + 0xc], eax
push dword [esi + 4]
call edi
push str.SmartUploadWithExtInfo
mov dword [esi + 0x10], eax
push dword [esi + 4]
call edi
push str.SmartUploadCancel
mov dword [esi + 0x14], eax
push dword [esi + 4]
call edi
push str.SmartUploadGetError
mov dword [esi + 0x18], eax
push dword [esi + 4]
call edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 0x1c], eax
je 0x10019d06
cmp dword [esi + 0x10], ebx
je 0x10019d06
cmp dword [esi + 0x18], ebx
je 0x10019d06
cmp dword [esi + 0x14], ebx
je 0x10019d06
cmp eax, ebx
je 0x10019d06
push 1
pop ebx
jmp 0x10019d0d
mov ecx, esi
call fcn.10019d2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000349d
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1001a0a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x1001a0b5
xor eax, eax
jmp 0x1001a100
push ebx
call fcn.1000a646
test eax, eax
je 0x1001a0c4
push 1
pop eax
jmp 0x1001a100
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.100522c0
mov edi, esp
push esi
push edi
xor eax, eax
push 0xffffffffffffffff
push ebx
push eax
push eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.1001a7b0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1001a108
Capabilities:
Check if file exists
Delete directory
Set file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x1001a115
xor eax, eax
pop edi
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x1001a15e
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x1001a15e
push 4
push eax
push edi
call fcn.1000a736
test eax, eax
je 0x1001a15e
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1001a15e
mov ecx, dword [esp + 0x14]
push 1
call fcn.100085ea
mov eax, ebx
pop esi
pop ebx
pop edi
ret

Function at 0x1001a876
Capabilities:
Get disk information

Disassembly:
call fcn.10016ce9
test eax, eax
je 0x1001a898
call fcn.1001aa26
call fcn.1001ae9e
call fcn.1001ae9f
call fcn.1001b057
jmp fcn.1001b186
ret
Function at 0x1001aec4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001b052
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x1800
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1001b052
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x1c], 0x800
push eax
lea eax, [ebp - 0x20]
push esi
push eax
push str.List
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1001b04a
and dword [ebp - 0x14], eax
and dword [ebp - 0xc], eax
cmp byte [esi], al
mov edi, esi
lea ebx, [esi + 0x800]
mov dword [ebp - 8], 1
je 0x1001b04a
push edi
call sub.MSVCRT.dll_strlen
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
pop ecx
mov dword [ebp - 0x10], eax
je 0x1001afc3
push str.System_Reserved
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1001af8c
mov dword [ebp - 4], 1
push str.Boot_Bus_Extender
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1001afa5
mov dword [ebp - 4], 1
push str.System_Bus_Extender
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1001afca
and dword [ebp - 8], eax
mov dword [ebp - 4], 1
jmp 0x1001afca
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x1001b011
push edi
push ebx
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0x10]
pop ecx
add dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
pop ecx
lea ebx, [ebx + eax + 1]
je 0x1001b011
lea eax, [esi + 0x1000]
push edi
push eax
mov dword [ebp - 0x14], 1
call sub.MSVCRT.dll_strcat
lea eax, [esi + 0x1000]
push 0x1007012c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
mov eax, dword [ebp - 0x10]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x1001af5f
cmp dword [ebp - 0x14], 0
je 0x1001b04a
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea eax, [esi + 0x800]
push eax
push 7
push str.List
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001b057
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, 0x10054498
call fcn.10052270
sub esp, 0x210
push esi
push edi
call fcn.10016ca5
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
je 0x1001b08a
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerCLSID871C5380_42A0_1069_A2EA_08002B30309D
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
jmp 0x1001b0ee
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIcons
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.1001b23c
test eax, eax
jne 0x1001b0db
lea eax, [ebp - 0x14]
push 4
push eax
mov edi, str.871C5380_42A0_1069_A2EA_08002B30309D
push 4
push edi
push str.NewStartPanel
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push edi
push str.ClassicStartMenu
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x1001b0ee
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [0x10078b14]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.10016eff
pop ecx
lea eax, [ebp - 0x21c]
pop ecx
push eax
push str.__sInternet_Exploreriexplore.exe_
lea eax, [ebp - 0x118]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 0x10078b14
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push SysReAllocString
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1001b27a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100544d8
call fcn.10052270
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x14], esi
mov dword [esi + 4], eax
mov dword [esi], 0x1005d594
mov cl, byte [ebp - 0xd]
mov dword [ebp - 4], eax
mov byte [esi + 8], cl
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [0x10070040]
lea ebx, [esi + 0x18]
mov byte [ebp - 4], 1
mov dword [ebx], eax
mov eax, dword [0x10070040]
mov byte [ebp - 4], 2
mov dword [esi + 0x1c], eax
mov eax, dword [0x10070040]
mov byte [ebp - 4], 3
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 4
mov dword [esi], 0x1005dce4
mov al, byte [0x10078b14]
push 0x40
mov byte [ebp - 0x118], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x118]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.100036ad
lea eax, [ebp - 0x118]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
lea ecx, [esi + 0x1c]
push eax
call fcn.100036ad
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1001bb02
Capabilities:
Terminate process

Disassembly:
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [esp + 0xc]
cmp eax, esi
jne 0x1001bb19
push 1
pop eax
jmp 0x1001bb4c
call fcn.10016ba4
test eax, eax
push esi
push edi
je 0x1001bb28
push 1
jmp 0x1001bb2d
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x1001bb4a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x1001c19c
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1001c1a8
xor eax, eax
jmp 0x1001c1ba
push dword [esp + 8]
push dword [esp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
ret 8
Function at 0x1001d051
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov ebx, ecx
mov esi, 0x104
push edi
push esi
lea edi, [ebx + 0x108]
push 0
push edi
mov dword [ebx], 0x1005dd04
call sub.MSVCRT.dll_memset
lea eax, [ebx + 0x20c]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebx + 4]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebx + 0x310]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x30
and dword [ebx + 0x414], 0
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
call fcn.10016fff
test eax, eax
pop ecx
je 0x1001d1dc
and byte [ebp - 0x104], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x108]
push eax
push str.CLSID_s
lea eax, [ebp - 0x104]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x104]
push eax
push SysReAllocString
call fcn.100216c0
add esp, 0x18
test eax, eax
je 0x1001d1dc
push 1
lea eax, [ebx + 0x20c]
pop ecx
mov edi, 0x10078b14
push eax
push ecx
lea eax, [ebp - 0x104]
push edi
push eax
push SysReAllocString
mov dword [ebx + 0x414], ecx
call fcn.1002145e
add esp, 0x14
lea eax, [ebx + 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1001d162
lea eax, [ebx + 0x20c]
push eax
call fcn.1001deb1
pop ecx
push esi
lea eax, [ebp - 0x104]
push str.InprocServer32
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatA]
lea eax, [ebx + 4]
push eax
push 1
lea eax, [ebp - 0x104]
push edi
push eax
push SysReAllocString
call fcn.1002145e
and byte [ebp - 0x208], 0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x207]
push 0x40
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push esi
lea edi, [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x208]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebx + 5], 0x3a
je 0x1001d1dc
xor eax, eax
push eax
push edi
push esi
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4
Function at 0x1001d55d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.___
push edi
mov dword [ebp - 0xc], 1
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x1001d58c
add esi, 4
jmp 0x1001d5be
mov esi, dword [sym.imp.MSVCRT.dll__mbsnbicmp]
push 7
push str.file:__
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x1001d5a8
lea esi, [edi + 7]
jmp 0x1001d5be
push 6
push str.res:__
push edi
call esi
add esp, 0xc
lea esi, [edi + 6]
test eax, eax
je 0x1001d5be
mov esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
inc eax
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
lea eax, [ebp - 0x110]
push eax
call fcn.1001db0e
cmp byte [ebp - 0x110], 0x22
pop ecx
lea esi, [ebp - 0x110]
jne 0x1001d67c
and dword [ebp - 0xc], 0
cmp byte [ebp - 0x10f], 0
lea eax, [ebp - 0x10f]
lea esi, [ebp - 0x10f]
mov dword [ebp - 4], eax
je 0x1001d627
mov al, byte [ebp - 0x10f]
cmp al, 0x22
je 0x1001d627
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001d61b
push 0
mov al, byte [esi]
push dword [ebp + 0xc]
and byte [esi], 0
mov byte [ebp + 0xb], al
push 0x104
push str..exe
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
mov dword [ebp - 8], eax
je 0x1001d66c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001d666
test al, 0x10
je 0x1001d666
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x1001d6ad
mov al, byte [ebp + 0xb]
test al, al
je 0x1001d69e
cmp dword [ebp - 0xc], 0
je 0x1001d69e
mov byte [esi], al
inc esi
lea eax, [ebp - 0x110]
mov dword [ebp - 4], eax
mov al, byte [esi]
test al, al
je 0x1001d627
cmp al, 0x20
je 0x1001d627
cmp al, 9
je 0x1001d627
cmp al, 0x2f
je 0x1001d627
cmp al, 0x2c
je 0x1001d627
inc esi
jmp 0x1001d685
push dword [ebp - 4]
call edi
inc eax
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001d6d9
and byte [eax], 0
mov al, byte [ebp + 0xb]
test al, al
je 0x1001d6d9
cmp al, 0x22
mov byte [esi], al
jne 0x1001d6c5
inc esi
push esi
call edi
inc eax
push eax
push esi
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call fcn.1001d73f
pop ecx
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0xc]
call fcn.1001d70e
pop ecx
lea eax, [ebp - 0x110]
pop ecx
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0xc]
call ebx
xor eax, eax
pop edi
cmp dword [ebp - 8], eax
pop esi
pop ebx
setne al
leave
ret