joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012bf8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov eax, r9d
mov esi, r9d
mov r13d, r8d
and al, 3
mov r14, rdx
mov edx, 0xc0000000
neg al
mov r12, rcx
sbb ebp, ebp
and qword [rsp + 0x30], 0
xor r9d, r9d
and ebp, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
add ebp, 1
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x180012cbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov ebx, eax
jne 0x180012cb5
test sil, 4
je 0x180012cb5
mov rcx, qword [0x1800298a0]
lea edx, [rax + 0x44]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180012cb0
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x180012c55
jmp 0x180012cb5
mov ebx, 0x5b4
cmp rdi, 0xffffffffffffffff
je 0x180012d13
mov r9d, 2
test r9b, sil
je 0x180012cd4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, r13d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180012d02
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x180012d0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800131d8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov ebx, 8
mov dword [rsp + 0x78], 0x104
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180029648]
xor edx, edx
mov r8d, 0x208
mov esi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800133b3
mov rcx, qword [0x180029648]
lea r8d, [rsi + rsi + 0xa]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
mov qword [rsp + 0x30], rax
je 0x18001339c
mov rcx, qword [0x180029648]
xor edx, edx
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18001338a
mov rdx, qword [rsp + 0x60]
lea r8, [0x18002ca98]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
jne 0x1800132a2
lea ebx, [rax + 4]
jmp 0x180013378
xor ebx, ebx
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x18001334d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x20]
lea ebp, [rax + rcx + 2]
cmp dword [rsp + 0x78], ebp
jae 0x1800132fb
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180029648]
lea r8d, [rbp + rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180013364
mov dword [rsp + 0x78], ebp
mov rdx, qword [rsp + 0x60]
lea r8, [rsi + 0x2c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [rsi], 0x10
mov rcx, rdi
je 0x18001333d
mov ebp, dword [rsp + 0x70]
mov edx, 1
mov r8d, ebp
call fcn.1800131d8
test eax, eax
mov ebx, eax
jne 0x180013373
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18001334d
test ebp, ebp
jmp 0x18001334b
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001334d
cmp dword [rsp + 0x70], eax
je 0x18001336b
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180013373
jmp 0x1800132a4
mov ebx, 8
jmp 0x180013373
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x180029648]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180029648]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1800133b3
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180013414
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov edi, eax
je 0x180013496
mov rcx, qword [0x180029648]
lea r8d, [rax + 0xf]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800134b4
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x18001349b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
lea r8d, [rsi + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x18001349b
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x18002c3a4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1800134b4
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1800134b4
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800135b8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
and dword [rax + 8], 0
xor esi, esi
test rcx, rcx
mov rbp, rdx
mov rbx, rcx
mov edi, 8
je 0x18001365b
mov rax, qword [rdx + 0x30]
movabs r13, 0x8000000000000000
test qword [rax + 8], r13
jne 0x180013602
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov esi, eax
je 0x18001365b
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], rbx
test qword [rcx + 8], r13
jne 0x180013638
lea ecx, [rdi - 2]
mov byte [rcx + rbx], 0x7e
jmp 0x180013645
movabs rax, 0x4000000000000000
or qword [rbx], rax
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180013eb8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [rsp + 0x48]
call fcn.1800134c8
test eax, eax
mov ebx, eax
jne 0x180013fbd
and dword [rsp + 0x40], eax
mov rax, qword [rsi + 0x10]
mov rdi, qword [rsp + 0x48]
mov ebx, 8
mov qword [rdi + 0x28], rax
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x40]
lea r8d, [rbx + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180013f9f
mov rax, qword [rsi + 8]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, qword [rax]
mov qword [rdi + 0x10], rcx
mov rax, qword [rsi + 8]
mov qword [rdi + 0x18], rax
mov rax, qword [rsi + 8]
mov rcx, qword [rax]
mov qword [rdi + 0x20], rcx
mov rcx, qword [rsi + 8]
mov rax, qword [rdi + 0x28]
mov qword [rcx], rax
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [rdi + 0x38], 0x101
lea rcx, [0x180029980]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180029970]
lea rax, [0x180029970]
mov qword [rdi], r11
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
lea rcx, [0x180029980]
mov qword [0x180029970], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x20]
xor ebx, ebx
mov qword [rsi + 0x20], r11
jmp 0x180013fbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
je 0x180013fbd
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180013fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
and dword [rax + 0x10], edi
movzx r12d, byte [rcx + 0x38]
mov eax, r12d
sub eax, 1
je 0x180014053
sub eax, 1
je 0x18001400d
cmp eax, 6
jne 0x180014116
jmp 0x1800140af
mov rsi, qword [rcx + 0x28]
cmp word [rsi], 0x25ff
jne 0x180014053
lea r9, [rsp + 0x38]
mov edx, 0xe
lea r8d, [rdx + 0x32]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180014053
mov rax, qword [rbx + 0x10]
mov qword [rsi + 6], rax
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov edx, 0xe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x38]
mov esi, 8
lea r8d, [rsi + 0x38]
mov rdx, rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800140a7
cmp r12d, 1
jne 0x180014085
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
jmp 0x18001408e
mov rcx, qword [rbx + 0x18]
mov eax, dword [rbx + 0x20]
mov dword [rcx], eax
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1800140af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
bt dword [rbx + 0x38], 9
jae 0x180014111
cmp qword [rbx + 0x40], 0
je 0x180014111
mov rcx, qword [rbx + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180014111
mov rdx, qword [rbx + 0x30]
mov rdx, qword [rdx + 8]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
btr dword [rbx + 0x38], 8
jmp 0x18001411a
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x180014324
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x180029930]
lea rbp, [0x180029930]
jmp 0x1800143d2
mov rsi, rbx
mov rbx, qword [rbx]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rdi, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x180014396
lea rcx, [0x18002c84e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18002cefa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800143c0
mov rcx, rdi
call rax
jmp 0x1800143c0
cmp qword [0x180029928], 0
je 0x1800143c0
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov r8, rdi
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x180029648]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180029648]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rbx, rbp
jne 0x18001434b
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001459c
Capabilities:
Enumerate pe sections
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rbp, rcx
xor ebx, ebx
call fcn.1800152c0
cmp eax, ebx
jne 0x1800146e0
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call fcn.1800161a0
cmp rax, rbx
mov r11, rax
je 0x1800146cc
movsxd r9, dword [rbp + 0x3c]
sub r11d, ebp
add r9, rbp
movzx ecx, word [r9 + 0x14]
movzx r10d, word [r9 + 6]
lea r8, [rcx + r9 + 0x18]
cmp r11d, dword [r8 + 0xc]
jb 0x18001461a
mov ecx, dword [r9 + 0x3c]
mov eax, dword [r8 + 0x10]
lea edx, [rax + rcx - 1]
lea eax, [rcx - 1]
not eax
and edx, eax
add edx, dword [r8 + 0xc]
cmp r11d, edx
jb 0x18001462c
add r8, 0x28
add r10w, 0xffff
je 0x1800146cc
jmp 0x1800145f8
mov edi, dword [r8 + 0x14]
sub edi, dword [r8 + 0xc]
add edi, r11d
je 0x1800146cc
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1800146cc
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x1800146c3
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1800146c3
cmp dword [rsp + 0x80], 4
jne 0x1800146c3
mov ebx, dword [rsp + 0x88]
add rbx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x180029648]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001497c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x500
mov rsi, rcx
mov r12d, r8d
mov rdi, rdx
lea rcx, [rsp + 0x38]
xor ebx, ebx
xor edx, edx
mov r8d, 0x4c8
mov qword [rsp + 0x30], rbx
call sub.ntdll.dll_memset
mov r11d, dword [0x180029874]
cmp dword [rsi + 0x10], r11d
je 0x180014aaf
mov rcx, qword [rsi]
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x318
mov dword [rsp + 0x60], 0x100003
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp rax, rbx
mov rbp, rax
je 0x180014abe
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtGetContextThread]
cmp eax, ebx
jge 0x180014a12
lea ecx, [rbx + 5]
jmp 0x180014ac6
mov rax, qword [rsp + 0x128]
lea rdx, [0x18001d650]
test r12b, 0x10
mov qword [rdi], rax
lea rax, [rbp + 0x218]
lea rcx, [rdi + 0x218]
mov qword [rsp + 0x128], rax
lea rax, [0x18001d679]
mov r8d, 0x100
cmovne rdx, rax
mov qword [rsp + 0xa8], rbp
call sub.ntdll.dll_memcpy
lea rax, [rdi + 0x18]
cmp qword [rdi + 0x10], rax
jne 0x180014a6e
lea rax, [rbp + 0x18]
mov qword [rdi + 0x10], rax
mov rcx, qword [rsi]
lea rax, [rsp + 0x520]
mov r9d, 0x318
mov r8, rdi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, ebx
je 0x180014abe
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtSetContextThread]
mov ecx, 5
cmp eax, ebx
cmovl ebx, ecx
jmp 0x180014aba
mov rcx, qword [rdi + 0x10]
call qword [rdi + 8]
cmp eax, ebx
je 0x180014abe
mov ecx, ebx
jmp 0x180014ac6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r11, [rsp + 0x500]
mov eax, ecx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180014ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor r12d, r12d
mov qword [rax - 0x48], r12
xor ebx, ebx
lea r14d, [r12 + 2]
lea r9, [rax + 0x20]
xor r8d, r8d
xor edx, edx
call fcn.1800146f0
mov edi, dword [rsp + 0x98]
mov esi, edi
mov rdx, rdi
xor ecx, ecx
lea r9d, [r12 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
je 0x180014ba2
lea r9, [rsp + 0x98]
mov r8d, edi
mov rdx, r13
mov rcx, r15
call fcn.1800146f0
test eax, eax
jne 0x180014b9b
mov edi, dword [rsp + 0x98]
cmp esi, edi
jae 0x180014ba2
mov esi, edi
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rdi
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
jne 0x180014b44
jmp 0x180014ba2
mov edi, dword [rsp + 0x98]
test r13, r13
je 0x180014c47
cmp esi, edi
jb 0x180014c47
lea rdi, [r13 + 8]
xor esi, esi
cmp dword [r13], ebx
jbe 0x180014c28
movzx eax, word [rdi + 0x1e]
lea r15, [rax + rdi + 0x20]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x180014c25
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180014c25
mov dx, 0x2e
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrChrA]
test rax, rax
je 0x180014c0e
mov byte [rax], bl
mov rdx, qword [rsp + 0x88]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180014c20
add rdi, 0x120
add esi, 1
cmp esi, dword [r13]
jae 0x180014c28
jmp 0x180014bbf
xor r14d, r14d
jmp 0x180014c2d
xor r14d, r14d
test r14d, r14d
jne 0x180014c36
mov rsi, qword [rdi + 8]
mov edi, dword [rdi + 0x10]
jmp 0x180014c5c
mov edi, dword [rsp + 0x98]
mov rsi, qword [rsp + 0x98]
jmp 0x180014c5c
mov r14d, 8
mov edi, dword [rsp + 0x98]
mov rsi, qword [rsp + 0x98]
test r13, r13
je 0x180014c72
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14d, r14d
jne 0x180014d11
mov edx, edi
xor ecx, ecx
lea r9d, [r14 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x180014d11
mov r13, rax
mov r14, rsi
sub r14, rax
mov r15, qword [rsp + 0x80]
lea rdx, [r14 + r13]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000
mov r8, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add r13, 0x1000
add edi, 0xfffff000
jne 0x180014cb0
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
call fcn.1800161a0
test rax, rax
je 0x180014d02
mov r12d, dword [rax]
add r12, rsi
mov qword [rsp + 0x30], r12
jmp 0x180014d11
test rbx, rbx
je 0x180014d27
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180014d3c
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
and dword [rsp + 0x68], 0
mov r14, rcx
mov rcx, qword [0x180029648]
mov r12, r8
mov r13, rdx
mov esi, 0x1000
xor edx, edx
mov r8, rsi
mov edi, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180014e11
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
mov ebp, eax
je 0x180014ddb
mov eax, dword [rsp + 0x68]
cmp esi, eax
ja 0x180014ddf
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180029648]
add esi, 0x1000
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x180014d88
mov eax, dword [rsp + 0x68]
test rbx, rbx
je 0x180014e11
test ebp, ebp
je 0x180014df7
shr eax, 3
mov qword [r13], rbx
xor edi, edi
mov dword [r12], eax
jmp 0x180014e11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180014fa4
Capabilities:
Allocate or change rwx memory
Check os version
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rbp, rcx
lea rcx, [0x18002c02e]
mov r13, r9
mov r12d, r8d
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, qword [0x1800298a8]
mov r14, rax
test rbx, rbx
jne 0x180015013
lea rcx, [0x18002c02e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18002cfaa]
mov rcx, rax
call fcn.18001459c
test rax, rax
mov rbx, rax
je 0x180015013
mov qword [0x1800298a8], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1800150d0
test r12b, 1
je 0x1800150d0
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x100
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
mov rsi, rax
je 0x1800150c4
and qword [rsp + 0x48], rdi
lea rax, [rsp + 0x48]
lea r8, [0x180014f98]
mov r9d, 0x100
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800150c4
lea rax, [rsp + 0x40]
mov r9, rsi
xor edx, edx
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], edi
and qword [rsp + 0x20], rdi
mov r8d, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
mov rsi, rax
je 0x1800150c4
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800150d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, eax
jne 0x18001510d
test r12b, 8
lea rdx, [0x18002c02e]
mov rcx, rbp
je 0x1800150fa
lea r8, [rsp + 0x48]
call fcn.180014e2c
test eax, eax
mov edi, eax
jne 0x18001510d
sub rbx, r14
add rbx, qword [rsp + 0x48]
jmp 0x180015109
lea r8, [0x18002cfaa]
call fcn.180014ae0
mov rbx, rax
mov qword [r13], rbx
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x180015130
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov rcx, rdx
mov ebx, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
lea rdx, [0x18002cfaa]
mov r8d, ebx
mov rcx, rdi
mov esi, eax
call fcn.180014fa4
test eax, eax
jne 0x18001523c
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov ebx, 4
lea r8, [rsp + 0x40]
mov r9, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180015241
add esi, 1
mov r9d, 0x3000
xor edx, edx
mov rcx, rdi
mov r8, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
mov rbx, rax
je 0x180015241
lea rax, [rsp + 0x40]
mov r9, rsi
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180015241
mov r9, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
mov r8d, 0x1000
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
mov rbx, rax
je 0x180015241
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, 0xffffffff
jne 0x180015247
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1800153c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov r9d, 1
mov rbx, rcx
call fcn.180012d2c
xor esi, esi
cmp eax, esi
jne 0x18001540e
mov eax, dword [rsp + 0x60]
lea rdx, [0x18002c5b6]
mov r9, rdi
mov dword [rsp + 0x28], eax
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
cmovg eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret