joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055b00
Capabilities:
Get disk information

Disassembly:
push rbp
push r14
sub rsp, 0x48
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov r14, rcx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140055c89
lea edx, [rax + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x140055c89
mov qword [rsp + 0x70], rbx
xor edx, edx
mov qword [rsp + 0x78], rsi
mov r8d, 0x104
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
lea r15, [0x140460920]
mov rcx, r15
call fcn.14027b2c0
xor edx, edx
lea rcx, [0x140460710]
mov r8d, 0x104
call fcn.14027b2c0
mov rdx, r15
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x140055c2b
cmp word [0x140460920], 0
je 0x140055c2b
xor r12d, r12d
lea rdi, [0x140460922]
mov ebx, r12d
mov rax, r15
nop dword [rax]
movzx eax, word [rax]
lea rdx, [0x140460710]
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
movzx eax, word [rdi]
mov r8d, 0x104
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r12w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140055c37
lea rcx, [0x140460710]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
lea rdx, [0x140460710]
mov r8, rsi
mov rcx, r14
call fcn.1402804bc
test eax, eax
je 0x140055c67
add rbx, 4
add rdi, 8
cmp word [r15 + rbx*2], r12w
lea rax, [r15 + rbx*2]
jne 0x140055bc0
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x48
pop r14
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r14 + rsi*2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x140055c39
xor eax, eax
jmp 0x140055c52

Function at 0x140055c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test rcx, rcx
je 0x140055d40
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140055cc0
test rax, rax
je 0x140055d40
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140055d40
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x140055d40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x140055cfc
mov eax, 1
jmp 0x140055d42
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14027b2c0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x20]
call fcn.140055c90
test eax, eax
jne 0x140055cf5
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x240
pop rbx
ret
Function at 0x140055f50
Capabilities:
Check if file exists
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
mov ebx, ebp
mov dword [rsp + 0x40], ebp
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140056096
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], Ordinal_133
mov edx, 0x80000000
mov rcx, rdi
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140055fbf
xor eax, eax
jmp 0x140056091
mov ecx, 0xa00000
call fcn.14012a2dc
xor edx, edx
mov r8d, 0xa00000
mov rcx, rax
mov rdi, rax
call fcn.14027b2c0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0xa00000
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140056079
mov qword [rsp + 0x80], r14
lea r14, [0x140322e00]
nop dword [rax + rax]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140056071
not ebx
jle 0x14005604f
mov r8, rdi
mov r9d, eax
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8]
lea r8, [r8 + 1]
mov eax, ebx
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [r14 + rdx*4]
xor ebx, eax
sub r9, 1
jne 0x140056030
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0xa00000
mov rdx, rdi
mov rcx, rsi
not ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140056010
mov r14, qword [rsp + 0x80]
test rdi, rdi
je 0x140056086
mov rcx, rdi
call fcn.14012a2d4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400560b0
Capabilities:
Get common file path
Query environment variable
Set current directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x4a0
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov qword [r11 + 0x10], rbx
xor edi, edi
mov rbx, rcx
mov qword [r11 + 0x20], rsi
lea rcx, [r11 - 0x228]
mov qword [rsp + 0x20], rdi
xor edx, edx
mov r8d, 0x208
call fcn.14027b2c0
lea rdx, [rsp + 0x280]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x50], 3
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov rsi, rax
test rax, rax
je 0x1400561d1
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400561c8
xor r8d, r8d
mov qword [rsp + 0x4c0], rbp
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x1400561c0
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
lea r8, [rbp*2]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.14027b2c0
mov r8d, ebp
lea rcx, [rsp + 0x70]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbp, qword [rsp + 0x4c0]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rsi, qword [rsp + 0x4c8]
mov rbx, qword [rsp + 0x4b8]
test eax, eax
js 0x140056200
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140056200
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rax, rdi
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x4a0
pop rdi
ret

Function at 0x14005cc30
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [0x14045d5d8]
test rax, rax
jne 0x14005cc94
lea ecx, [rax + 1]
mov qword [rsp + 0x60], rbx
call fcn.14012a618
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov ecx, 0x40
add eax, eax
mov qword [0x14045d5d8], rbx
cmp eax, ecx
cmovae eax, ecx
mov dword [0x14045d5a4], eax
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
ret
Function at 0x14005cd20
Capabilities:
Delete file
Get file size

Disassembly:
push rbx
push rsi
sub rsp, 0x68
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rbx, rdx
test rdx, rdx
je 0x14005cee3
test r8, r8
je 0x14005cee3
mov qword [rsp + 0x60], rdi
call fcn.14012ed90
mov rdi, rax
test rax, rax
je 0x14005cebd
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], Ordinal_133
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 4
mov rcx, rsi
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14005cedf
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 1
jbe 0x14005cdee
mov r8d, dword [rsp + 0x40]
mov edx, 0x75a4
shl r8, 0x20
mov rcx, rdi
mov eax, eax
add r8, rax
mov qword [rsp + 0x48], r8
call fcn.1401331d0
mov edx, dword [rsp + 0x48]
lea r8, [rsp + 0x4c]
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x40]
call fcn.1401331d0
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x51]
call fcn.1401331d0
mov edx, 0x63
mov rcx, rdi
lea r8d, [rdx - 0x62]
call fcn.1401331d0
mov r8, rbx
mov edx, 0x2712
mov rcx, rdi
call fcn.1401331d0
lea r8, [0x14005ccb0]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.1401331d0
mov r8, rbp
mov edx, 0x2711
mov rcx, rdi
call fcn.1401331d0
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x2b]
call fcn.1401331d0
mov edx, reloc.WS2_32.dll_gethostbyname
mov rcx, rdi
lea r8d, [rdx - 0x33]
call fcn.1401331d0
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rdi
lea r8d, [rdx + 0x28]
call fcn.1401331d0
mov edx, reloc.WS2_32.dll_send
mov rcx, rdi
lea r8d, [rdx + 0xb]
call fcn.1401331d0
mov rcx, rdi
call fcn.14012ede0
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14012ed70
test ebx, ebx
jne 0x14005ced6
lea eax, [rbx + 1]
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
pop rsi
pop rbx
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x14005ceb5
xor eax, eax
jmp 0x14005cec2
Function at 0x14005dca0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov r11, rsp
push rbx
push rbp
push r12
push r14
sub rsp, 0x58
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov qword [r11 + 8], rsi
mov esi, r14d
mov qword [r11 - 0x48], r14
mov ebp, r14d
mov dword [r11 - 0x38], r14d
mov qword [r11 - 0x28], r15
mov r12, rdx
call fcn.14005dc00
mov r15d, eax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x14005ddab
mov qword [rsp + 0x90], rdi
mov edi, r14d
cmp dword [rsp + 0x40], r14d
jbe 0x14005dd98
nop dword [rax + rax]
mov eax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x30]
cmp qword [rax + rcx*8 + 8], r14
lea rbx, [rax + rcx*8]
je 0x14005dd90
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005dd90
mov edx, reloc.WS2_32.dll_shutdown
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
je 0x14005dd90
test esi, esi
jne 0x14005dd70
cmp dword [rbx], r14d
jne 0x14005dd70
mov rdx, qword [rbx + 8]
lea rcx, str.lsass.exe
call fcn.14027c4d8
test eax, eax
jne 0x14005dd70
mov esi, dword [rbx + 4]
jmp 0x14005dd90
test ebp, ebp
jne 0x14005dd90
cmp r15d, dword [rbx]
jne 0x14005dd90
mov rdx, qword [rbx + 8]
lea rcx, [0x140323708]
call fcn.14027c4d8
test eax, eax
jne 0x14005dd90
mov ebp, dword [rbx + 4]
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x14005dd20
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rdi, qword [rsp + 0x90]
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, qword [rsp + 0x50]
mov rbx, rax
mov rsi, qword [rsp + 0x80]
test rax, rax
jne 0x14005dde8
mov r8d, ebp
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14005de41
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], r14
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14005de38
mov rcx, qword [rsp + 0x38]
mov r9d, 1
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x38]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x58
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x14005dff0
Capabilities:
Query service status
Start service

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14005e19d
test rcx, rcx
je 0x14005e19d
mov qword [rsp + 0x88], rsi
xor eax, eax
mov qword [rdx], rax
xor esi, esi
xor edx, edx
mov qword [rsp + 0x50], r12
xor ecx, ecx
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
je 0x14005e196
lea r8d, [rsi + 0x14]
mov qword [rsp + 0x48], r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x14005e160
mov qword [rsp + 0x80], rbp
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], r15
lea r9d, [rsi + 0x24]
mov r8, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x30], esi
mov rcx, r14
mov r15d, esi
mov edi, esi
xor bpl, bpl
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14005e148
nop word [rax + rax]
mov eax, dword [rbx + 4]
cmp eax, 1
jne 0x14005e0d4
test bpl, bpl
jne 0x14005e13c
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14005e148
mov bpl, 1
jmp 0x14005e114
add eax, 0xfffffffe
cmp eax, 1
ja 0x14005e148
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
test rdi, rdi
jne 0x14005e100
mov r15d, dword [rbx + 0x14]
xor edx, edx
mov ecx, 0xfa
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x14005e114
cmp dword [rbx + 0x14], r15d
ja 0x14005e111
mov eax, dword [rbx + 0x18]
sub rcx, rdi
cmp rcx, rax
ja 0x14005e143
mov rdi, rsi
lea rax, [rsp + 0x30]
mov r9d, Ordinal_41
mov r8, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14005e0b0
jmp 0x14005e148
mov esi, 1
jmp 0x14005e148
mov esi, 0x5b4
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x80]
jmp 0x14005e165
mov esi, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x58
pop rdi
pop rbx
ret
mov eax, 1
jmp 0x14005e175
mov eax, 0x80070057
jmp 0x14005e182
Function at 0x14005ec50
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov esi, ecx
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x410
call fcn.14027b2c0
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x410
call fcn.14027b2c0
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x410
mov rdi, rax
call fcn.14012a2dc
xor edx, edx
mov r8d, 0x410
mov rcx, rax
mov rbx, rax
call fcn.14027b2c0
mov r9d, 0x104
mov r8, rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x14005ecfc
test rbx, rbx
je 0x14005ecfc
mov rcx, rbx
call fcn.14012a2d4
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
jne 0x14005ee93
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14005ee93
mov ecx, 0x420
call fcn.14012a2dc
xor edx, edx
mov r8d, 0x420
mov rcx, rax
mov rdi, rax
call fcn.14027b2c0
mov rcx, qword gs:[0x58]
mov eax, Ordinal_27
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140461098], ecx
jle 0x14005eda8
lea rcx, [0x140461098]
call fcn.14012a4bc
cmp dword [0x140461098], 0xffffffff
jne 0x14005eda8
lea rcx, [0x140323b78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140323b50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140461098]
mov qword [0x140461090], rax
call fcn.14012a45c
mov rax, qword [0x140461090]
test rax, rax
je 0x14005ede9
lea rcx, [rsp + 0x30]
mov r9d, 0x420
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov rcx, rsi
mov edx, reloc.WLDAP32.dll_Ordinal_27
call rax
test eax, eax
js 0x14005ede9
movzx r8d, word [rdi]
lea rcx, [rsp + 0x40]
mov rdx, qword [rdi + 8]
call fcn.140278ed0
jmp 0x14005ee05
mov r8d, 0x208
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x14005ee93
test rdi, rdi
je 0x14005ee12
mov rcx, rdi
call fcn.14012a2d4
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x40]
call fcn.140055b00
test eax, eax
je 0x14005ee8a
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x450]
mov rax, rdx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14005ee40
add eax, eax
mov ecx, eax
add rcx, 2
mov dword [rsp + 0x30], eax
cmovb rcx, rdx
call fcn.140280918
mov r8d, dword [rsp + 0x30]
xor edx, edx
add r8, 2
mov rcx, rax
mov rbx, rax
call fcn.14027b2c0
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x450]
mov rcx, rbx
call fcn.140278ed0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.14012a2b0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14005efb0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor r14d, r14d
mov edi, r8d
mov rbp, rdx
mov dword [rsp + 0x68], r14d
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
mov ebx, r9d
lea r8d, [r14 + 0x68]
call fcn.14027b2c0
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
lea r15d, [r14 + 1]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
test ebx, ebx
jne 0x14005f02b
mov word [rsp + 0xb0], r14w
mov dword [rsp + 0xac], r15d
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14005f09b
cmp edi, r15d
jb 0x14005f083
mov rcx, qword [rsp + 0x50]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
cmove ebx, r15d
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
cmovne ebx, r15d
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14005f190
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edi, edi
lea rcx, [rsp + 0x70]
mov rbx, rdx
mov dword [rsp + 0x68], edi
xor edx, edx
lea r8d, [rdi + 0x68]
call fcn.14027b2c0
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov rdx, rbx
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14005f262
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
mov edi, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14005f262
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [rsp + 0x60]
call fcn.14005f0d0
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
cmovne ebx, edi
mov eax, ebx
jmp 0x14005f264
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret
Function at 0x14005f600
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
xor ebx, ebx
call fcn.14027b2c0
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14005f6d7
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x28], eax
je 0x14005f6c5
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x4c]
call fcn.14027c4d8
test eax, eax
jne 0x14005f6c5
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14005f6c0
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f670
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14005f710
Capabilities:
Check if file exists
Enumerate processes
Terminate process

Disassembly:
push rsi
sub rsp, 0x270
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.14027b2c0
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14005f86f
mov qword [rsp + 0x288], rbp
mov ebp, 1
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x290], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x28], eax
je 0x14005f841
lea rdx, str.explorer.exe
xor edi, edi
lea rcx, [rsp + 0x4c]
call fcn.14027c4d8
test eax, eax
je 0x14005f816
mov ecx, dword [rsp + 0x28]
call fcn.14005f530
test eax, eax
jne 0x14005f816
mov ecx, dword [rsp + 0x28]
call fcn.14005ec50
mov rbx, rax
test rax, rax
je 0x14005f841
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005f841
xor r8d, r8d
lea rdx, [0x140323de0]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14005f80a
mov rcx, rbx
call fcn.14004d490
test eax, eax
cmove edi, ebp
mov rcx, rbx
call fcn.14012a2d4
test edi, edi
je 0x14005f841
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14005f841
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f794
mov rdi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x270
pop rsi
ret