joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002474
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
lea rax, [rdx - 0x10001]
xorps xmm0, xmm0
mov ebx, ecx
movabs rcx, 0x7ffffffefffe
mov r14, r9
mov rdi, rdx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
cmp rax, rcx
ja 0x1400025bb
mov edx, r8d
xor ecx, ecx
mov ebp, r8d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
jne 0x1400024ea
lea rcx, [0x140002fc0]
jmp 0x1400025c2
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140002a00
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140002528
lea rcx, [0x140002f90]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400025c7
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, rbp
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmCreateMdl]
mov rdi, rax
test rax, rax
je 0x140002596
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbx, rax
test rax, rax
je 0x140002588
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140002a00
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
xor ebx, ebx
jmp 0x14000258d
mov ebx, 0xc0000001
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x1400025cc
lea rcx, [0x140002fe0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400026a0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001421
Capabilities:
Allocate or change rwx memory
Create thread
Execute command
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x4b060
call fcn.14000abac
sub rsp, rax
lea rdx, str.D_KCLH
lea rsi, [rsp + 0x40]
mov r8d, 0x4b01c
mov rcx, rsi
call sub.msvcrt.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x1fffff
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rsp + 0x20], 0x40
mov r8d, 0x4b01c
mov rcx, rax
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
and qword [rsp + 0x20], 0
mov r9d, 0x4b01c
mov rcx, rdi
mov rdx, rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call sub.msvcrt.dll_system
nop
add rsp, 0x4b060
pop rbx
pop rdi
pop rsi
ret

Function at 0x140001dd0
Capabilities:
Parse credit card information

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, rdx
cmp rdx, r8
je 0x140001ece
mov rdi, rcx
movsx eax, byte [rsi]
cmp eax, 0x24
je 0x140001ec3
mov rbx, r8
cmp eax, 0x28
je 0x140001e1c
cmp eax, 0x5c
je 0x140001ea6
cmp eax, 0x5e
jne 0x140001ece
mov rcx, rdi
call fcn.1400023fa
jmp 0x140001ecb
lea rax, [rsi + 1]
cmp rax, rbx
je 0x140001ece
cmp byte [rax], 0x3f
jne 0x140001ece
lea rax, [rsi + 2]
cmp rax, rbx
je 0x140001ece
movsx eax, byte [rax]
cmp eax, 0x21
je 0x140001eec
cmp eax, 0x3d
jne 0x140001ece
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.1400024fa
mov eax, dword [rdi + 0x18]
mov dword [r14 + 0x18], eax
add rsi, 3
mov rcx, r14
mov rdx, rsi
mov r8, rbx
call fcn.14000165e
mov rsi, rax
lea rdx, [rsp + 0x20]
mov ebp, dword [rdx + 0x1c]
mov r9d, dword [rdi + 0x1c]
mov rcx, rdi
xor r8d, r8d
call fcn.14000251e
add dword [rdi + 0x1c], ebp
cmp rsi, rbx
je 0x140001ea1
cmp byte [rsi], 0x29
je 0x140001f39
call fcn.14000258e
lea rax, [rsi + 1]
cmp rax, rbx
je 0x140001ece
movzx eax, byte [rax]
cmp eax, 0x42
je 0x140001edc
cmp eax, 0x62
jne 0x140001ece
mov rcx, rdi
xor edx, edx
jmp 0x140001ee1
mov rcx, rdi
call fcn.14000244a
inc rsi
mov rax, rsi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
mov dl, 1
call fcn.14000249a
add rsi, 2
jmp 0x140001ece
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.1400024fa
mov eax, dword [rdi + 0x18]
mov dword [r14 + 0x18], eax
add rsi, 3
mov rcx, r14
mov rdx, rsi
mov r8, rbx
call fcn.14000165e
mov rsi, rax
lea rdx, [rsp + 0x20]
mov ebp, dword [rdx + 0x1c]
mov r9d, dword [rdi + 0x1c]
mov rcx, rdi
mov r8b, 1
call fcn.14000251e
add dword [rdi + 0x1c], ebp
cmp rsi, rbx
je 0x140001f48
cmp byte [rsi], 0x29
jne 0x140001f48
inc rsi
lea rcx, [rsp + 0x20]
call fcn.140001576
jmp 0x140001ece
call fcn.14000258e
jmp 0x140001f53
mov rsi, rax
lea rcx, [rsp + 0x20]
call fcn.140001576
mov rcx, rsi
call sub.libunwind.dll__Unwind_Resume
int3
Function at 0x14000a980
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.14000af00
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.14000af00
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x14000b020
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000b08c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000b08c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000b08c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000b08c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x14000b078
add rax, 0x28
dec edx
je 0x14000b08c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x14000b070
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x14000b070
jmp 0x14000b08e
xor eax, eax
ret

Function at 0x14000b090
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14000b0c5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14000b0c5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x14000b0c5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x14000b140
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000b16c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000b16c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000b16e
xor eax, eax
ret
Function at 0x140034ec4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r12, rcx
mov rbp, rdx
cmp rdx, r8
je 0x140034f77
cmp rsi, qword [rsp + 0x80]
je 0x140034f81
movzx r14d, word [rbx]
add rbx, 2
movzx r15d, word [rsi]
add rsi, 2
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x68], rbx
call fcn.1400348d4
mov rcx, rax
movzx edx, r14w
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
call qword [0x1400c51a0]
mov rcx, qword [rsp + 0x88]
movzx r14d, ax
call fcn.1400348d4
mov rcx, rax
movzx edx, r15w
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
call qword [0x1400c51a0]
cmp r14w, ax
jne 0x140034f88
cmp rbx, rdi
jne 0x140034f07
cmp rsi, qword [rsp + 0x80]
jne 0x140034f8e
lea rax, [rsp + 0x68]
jmp 0x140034fa7
mov qword [r12], rbp
jmp 0x140034fae
cmp byte [rsp + 0x90], 0
je 0x140034fa2
lea rax, [rsp + 0x68]
cmp rbx, rdi
je 0x140034fa7
lea rax, [rsp + 0x20]
mov rax, qword [rax]
mov qword [r12], rax
mov rax, r12
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400afd50
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140035b18
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x140114298], rbx
jne 0x140035ba3
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400d8938]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140035b98
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x140035b70
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140035b64
mov rbx, rax
mov r8, rbx
lea rcx, [0x140114288]
call fcn.140005bf4
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x140114288]
call fcn.140005d18
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [0x140114288]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400afd50
add rsp, 0x30
pop rbx
ret

Function at 0x14003b94c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
mov r9, qword [rdx + 0x10]
jb 0x14003b963
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x14003b993
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x14003b975
mov rax, rcx
mov edx, 0x1f31d
shr rax, 0x20
xor ecx, eax
btr ecx, 0x1f
call qword [sym.imp.msvcrt.dll_ldiv]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x14003b9cc
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret
Function at 0x14003bd24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r9
mov rbx, rdx
mov r13, rcx
mov r11, qword [rcx]
mov rax, qword [r11 + 8]
mov r14, r11
mov sil, 1
cmp byte [rax + 0x19], 0
jne 0x14003be0c
mov r12, qword [r9 + 0x10]
mov r14, rax
lea rcx, [rax + 0x20]
mov r15, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14003bd91
mov rcx, qword [rcx]
cmp qword [rdi + 0x18], 8
jb 0x14003bd9d
mov r8, qword [rdi]
jmp 0x14003bda0
mov r8, rdi
mov rdx, r15
cmp r12, r15
cmovb rdx, r12
test rdx, rdx
jmp 0x14003bdc9
movzx r9d, word [r8]
movzx r10d, word [rcx]
cmp r9w, r10w
jne 0x14003bdf0
add r8, 2
add rcx, 2
sub rdx, 1
jne 0x14003bdaf
xor ecx, ecx
xor esi, esi
cmp r12, r15
setne sil
mov edx, 0xffffffff
cmovb esi, edx
test ecx, ecx
cmovne esi, ecx
shr esi, 0x1f
test sil, sil
je 0x14003bdf9
mov rax, qword [rax]
jmp 0x14003bdfd
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x14003bdcd
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x14003bd7c
or r12d, edx
jmp 0x14003be10
or r12d, 0xffffffff
mov rax, r14
mov qword [rsp + 0x30], rax
test sil, sil
je 0x14003be66
cmp r14, qword [r11]
jne 0x14003be57
mov al, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r9, r14
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14003c3fc
mov rax, qword [rax]
mov qword [rbx], rax
mov byte [rbx + 8], 1
mov rax, rbx
jmp 0x14003bf17
lea rcx, [rsp + 0x30]
call fcn.1400135e0
mov rax, qword [rsp + 0x30]
lea rcx, [rax + 0x20]
mov r15, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x14003be7a
mov r8, qword [rdi]
jmp 0x14003be7d
mov r8, rdi
mov r11, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14003be8b
mov rcx, qword [rcx]
mov rdx, r15
cmp r11, r15
cmovb rdx, r11
test rdx, rdx
jmp 0x14003beb4
movzx r9d, word [rcx]
movzx r10d, word [r8]
cmp r9w, r10w
jne 0x14003beb8
add rcx, 2
add r8, 2
sub rdx, 1
jne 0x14003be9a
jmp 0x14003bec1
sbb edx, edx
and edx, 0xfffffffe
inc edx
jmp 0x14003bec3
xor edx, edx
xor ecx, ecx
cmp r11, r15
setne cl
cmovb ecx, r12d
test edx, edx
cmovne ecx, edx
shr ecx, 0x1f
test cl, cl
je 0x14003bf0d
mov al, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r9, r14
mov r8b, sil
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14003c3fc
mov rax, qword [rax]
mov qword [rbx], rax
mov byte [rbx + 8], 1
mov rax, rbx
jmp 0x14003bf17
mov qword [rbx], rax
mov byte [rbx + 8], 0
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400afd50
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x14003ffec
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x7c]
xor al, al
mov rbx, rcx
cmp edx, 0xffffffff
je 0x140040193
mov ecx, edx
cmp ecx, 0x7c
je 0x140040193
cmp ecx, 0x29
jne 0x140040035
cmp dword [rbx + 0x1c], 0
jne 0x140040193
cmp ecx, ecx
jne 0x140040035
test dword [rbx + 0x80], 0x10000000
je 0x1400401b4
cmp ecx, 0x2e
jne 0x140040055
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.1400402cc
mov rcx, rbx
call fcn.14003ff88
jmp 0x14004017b
cmp ecx, 0x5c
jne 0x1400400bc
mov rcx, rbx
call fcn.14003ff88
test byte [rbx + 0x80], 0x80
je 0x1400400af
cmp word [rbx + 0x78], 0x62
jne 0x14004008d
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.1400402cc
mov rcx, rbx
call fcn.14003ff88
jmp 0x140040183
cmp word [rbx + 0x78], 0x42
jne 0x1400400af
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400402cc
mov rax, qword [rbx + 0x48]
add rax, 0xc
xor dword [rax], 1
jmp 0x140040080
mov rcx, rbx
call fcn.140040708
jmp 0x14004017b
cmp ecx, 0x5b
jne 0x1400400e0
mov rcx, rbx
call fcn.14003ff88
mov rcx, rbx
call fcn.1400405a0
cmp dword [rbx + 0x7c], 0x5d
jne 0x14004019e
jmp 0x140040048
cmp ecx, 0x28
jne 0x140040104
mov rcx, rbx
call fcn.14003ff88
mov rcx, rbx
call fcn.140040874
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400401a9
jmp 0x14004016e
cmp ecx, 0x5e
jne 0x140040111
lea edx, [rcx - 0x5c]
jmp 0x140040077
cmp ecx, 0x24
jne 0x14004011e
lea edx, [rcx - 0x21]
jmp 0x140040077
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400401d5
cmp ecx, 0x3f
je 0x1400401d5
cmp ecx, 0x7b
je 0x1400401d5
cmp edx, 0x7d
jne 0x14004014d
test dword [rbx + 0x80], 0x10000000
je 0x1400401bf
cmp edx, 0x5d
jne 0x14004015e
test dword [rbx + 0x80], 0x10000000
je 0x1400401ca
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140040a60
mov dil, 1
mov rcx, rbx
call fcn.14003ff88
test dil, dil
je 0x140040183
mov rcx, rbx
call fcn.140040960
mov edx, dword [rbx + 0x7c]
mov al, 1
mov ecx, edx
cmp edx, 0xffffffff
jne 0x140040009
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 4
call fcn.14003fb4c
int3
mov edx, 5
call fcn.14003fb4c
int3
mov edx, 5
call fcn.14003fb4c
int3
mov edx, 6
call fcn.14003fb4c
int3
mov edx, 4
call fcn.14003fb4c
int3
mov edx, 0xa
call fcn.14003fb4c
int3
Function at 0x1400afd20
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
nop
ret

Function at 0x1400b0130
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400b017c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b0174
cmp dword [rcx + 0x3c], edx
jl 0x1400b0174
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400b0174
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400b017c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x18000b3d0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x18004b0d8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
mov byte [rsp + 0x80], 0
mov byte [rsp + 0x81], 0
mov byte [rsp + 0x82], 0
mov byte [rsp + 0x83], 0
mov byte [rsp + 0x84], 0
mov byte [rsp + 0x85], 5
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x18000b4b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
jmp 0x18000b4d9
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x18000b4d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp qword [rsp + 0x78], 0
je 0x18000b4f5
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x78], 0
cmp dword [rsp + 0x60], 0
je 0x18000b515
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x68], eax
lea rdx, [0x180049bd0]
lea rcx, [rsp + 0x68]
call fcn.180014f70
cmp dword [rsp + 0x88], 1
jne 0x18000b558
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.180002a60
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0xb8]
call fcn.1800036a0
mov rax, qword [rsp + 0xb0]
jmp 0x18000b59c
lea rdx, [0x180034659]
mov rcx, qword [rsp + 0xb0]
call fcn.180002ba0
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0xb8]
call fcn.1800036a0
mov rax, qword [rsp + 0xb0]
jmp 0x18000b59c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180014450
add rsp, 0xa8
ret
Function at 0x18000b7a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x18004b0d8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x18000b7dd
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18000b7e4
mov al, 1
jmp 0x18000b92c
call fcn.180005630
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.180005630
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.180005640
movzx eax, al
test eax, eax
je 0x18000b835
xor al, al
jmp 0x18000b92c
mov qword [rsp + 0x50], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.18000f200
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18000b89a
cmp dword [rsp + 0x30], 1
je 0x18000b8a6
cmp dword [rsp + 0x30], 3
je 0x18000b91a
jmp 0x18000b92a
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x18000b8f1
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.18001ad8c
cmp qword [rsp + 0x40], rax
je 0x18000b8f1
xor al, al
jmp 0x18000b92c
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18000b90b
mov dword [rsp + 0x34], 1
jmp 0x18000b913
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x18000b92c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18000b92c
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180014450
add rsp, 0x98
ret

Function at 0x18000cff0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18004b0d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x10
mov dword [rsp + 0x40], 0x10
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x18000d056
lea rdx, [0x180034653]
lea rcx, [rsp + 0x28]
call fcn.18000a760
lea rdx, [0x180049c28]
lea rcx, [rsp + 0x28]
call fcn.180014f70
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.180002ba0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180014450
add rsp, 0x68
ret
Function at 0x18000d090
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rax, qword [0x18004b0d8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x20], 0
movzx eax, byte [0x180034654]
mov byte [rsp + 0x30], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x24], 0x100
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.180002ba0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180014450
add rsp, 0x140
pop rdi
ret

Function at 0x18000f250
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18004b0d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x18000f284
xor eax, eax
jmp 0x18000f430
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18000f2ac
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.18000f450
jmp 0x18000f430
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.18000bb40
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x18000f348
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1800021f0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.18000d130
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.180005310
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.18000cc60
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x18000f420
mov rcx, qword [rsp + 0x70]
call fcn.18000c470
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x18000f3e8
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.18001a82c
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x18000f3e6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x18000f430
jmp 0x18000f36e
cmp qword [rsp + 0x40], 0
jbe 0x18000f420
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.18001a82c
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180014450
add rsp, 0x68
ret