joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026490
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, [0x140068750]
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 0x1400264e7
cmp word [rdx], r13w
jne 0x1400264e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400264ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026611
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140026632
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140026525
mov rdx, r9
mov word [rbx], cx
jmp 0x14002654c
cmp r9, r8
jae 0x14002655c
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 0x140026506
jmp 0x140026611
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 0x140026606
cmp dword [rsp + 0x80], esi
je 0x140026606
lea r8, [0x140068750]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400265de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400265ae
mov word [rbx], r13w
jmp 0x14002660e
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 0x1400265bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002660e
cmp word [rsp + 0x70], r13w
jne 0x1400265eb
cmp rbx, r14
je 0x1400265a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400270f8
cmp word [rsp + 0x70], r13w
je 0x140026611
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, [0x140068750]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002660b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026611
Function at 0x14002a794
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 0x14002a7c4
xor eax, eax
jmp 0x14002a887
mov rbp, rbx
cmp word [rax], si
je 0x14002a7e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a7d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a7cc
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.140028d94
movsxd r14, eax
test eax, eax
jne 0x14002a827
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a7bd
mov rcx, r14
call fcn.14002122c
mov rdi, rax
test rax, rax
jne 0x14002a840
xor ecx, ecx
call fcn.1400211f0
jmp 0x14002a81c
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.140028d94
test eax, eax
jne 0x14002a871
mov rcx, rdi
call fcn.1400211f0
jmp 0x14002a87b
xor ecx, ecx
call fcn.1400211f0
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 0x14002d750
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140020ba4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002d7f1
cmp ebx, dword [rsp + 0x30]
je 0x14002d7ea
test esi, esi
je 0x14002d7ea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002d7c5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002d7d2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002d7af
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002d7d6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002d7f3
mov eax, 1
jmp 0x14002d7f3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003206c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001c12c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400320f6
cmp byte [rbp - 0x21], r15b
je 0x1400320f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003212c
call fcn.140024b80
test eax, eax
jne 0x140032118
cmp byte [rbp - 0x21], r15b
je 0x140032110
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003212c
cmp byte [rbp - 0x21], r15b
je 0x140032129
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001ca4c
test eax, eax
jne 0x1400321cc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001c12c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003216b
cmp byte [rbp - 0x21], r15b
je 0x1400321a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400321a0
call fcn.140024b80
test eax, eax
jne 0x14003218c
cmp byte [rbp - 0x21], r15b
je 0x140032185
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400321a0
cmp byte [rbp - 0x21], r15b
je 0x14003219d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001ca4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400321cc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400321cf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400321dd
mov rcx, rdi
call fcn.1400211f0
cmp byte [rbp + 0x3f], r15b
je 0x1400321ec
mov rcx, qword [rbp + 0x27]
call fcn.1400211f0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140032ff0
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.1400270f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400270f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140033140
cmp rax, 0xffffffffffffffff
je 0x140033140
xor edi, edi
test rbp, rbp
jle 0x1400330eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140021178
mov rbx, rax
test rax, rax
jne 0x140033078
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400330e1
mov edx, 0x8000
mov ecx, r14d
call fcn.14001dafc
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.14002320c
cmp eax, 0xffffffff
je 0x1400330c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140033088
mov edx, r15d
mov ecx, r14d
call fcn.14001dafc
jmp 0x1400330e1
cmp byte [rsi + 0x38], dil
je 0x1400330d8
cmp dword [rsi + 0x34], 5
jne 0x1400330d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400330e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400211f0
jmp 0x140033154
jns 0x140033154
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400270f8
cmp rax, 0xffffffffffffffff
jne 0x14003310c
cmp byte [rsi + 0x30], dil
je 0x140033154
mov edi, dword [rsi + 0x2c]
jmp 0x140033154
mov ecx, r14d
call fcn.14002b1fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140033154
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 0x140033154
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003314d
mov eax, dword [rsi + 0x2c]
jmp 0x140033152
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400270f8
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 0x140033960
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140033988
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140033988
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001ef4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
nop dword [rax + rax]
lea rax, [rsp + 0x90]
mov edx, 0x105
sub rbx, rax
lea rcx, [rsp + 0x90]
xor edi, edi
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x140001f6a
movzx eax, word [rbx + rcx]
test ax, ax
je 0x140001f6a
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001f48
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x140002084
movzx eax, word [rsp + 0x90]
lea rcx, [rsp + 0x90]
jmp 0x140001fa0
lea rbx, [rcx + 2]
cmp ax, 0x3a
je 0x140001fa7
movzx eax, word [rbx]
mov rcx, rbx
test ax, ax
jne 0x140001f90
jmp 0x140001fce
mov word [rcx], di
cmp word [rbx], di
je 0x140001fce
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140001fd6
lea rbx, [rsp + 0x90]
lea rax, [rsp + 0x30]
mov edx, 0x29
sub rbx, rax
lea rcx, [rsp + 0x30]
lea rax, [rdx + 0x7fffffd5]
test rax, rax
je 0x14000200a
movzx eax, word [rbx + rcx]
test ax, ax
je 0x14000200a
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001fe8
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x140002084
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_IIDFromString]
nop dword [rax + rax]
test eax, eax
js 0x140002084
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
nop dword [rax + rax]
test eax, eax
js 0x140002084
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_com_private_l1_1_0.dll_CoRegisterSurrogateEx]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001340
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
Function at 0x21bff8800
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.21c000500
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.21c000500
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x21bff9202
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x21c02b528]
test eax, eax
je 0x21bff929a
lea rax, [0x21c02b500]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x21c02b530]
mov qword [rbp - 8], rax
jmp 0x21bff927e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x21bff9272
cmp qword [rbp - 0x10], 0
je 0x21bff9272
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x21bff9238
lea rax, [0x21c02b500]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x21bff929b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x21bff93a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x21bff93c8
mov eax, 0
jmp 0x21bff9416
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x21bff93f1
mov eax, 0
jmp 0x21bff9416
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x21bff9411
mov eax, 0
jmp 0x21bff9416
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x21bff941c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x21bff949a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x21bff9491
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x21bff9491
mov rax, qword [rbp - 8]
jmp 0x21bff94af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x21bff9464
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x6a2413d0
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0xa0], 0x94
lea rax, [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
mov eax, dword [rbp - 0x9c]
cmp eax, 6
jne 0x6a241415
mov eax, dword [rbp - 0x98]
cmp eax, 1
jne 0x6a241415
mov eax, 1
jmp 0x6a24141a
mov eax, 0
add rsp, 0xc0
pop rbp
ret

Function at 0x6a241423
Capabilities:
Get system firmware table

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x3a8], 0x400
lea rax, [rbp - 0x60]
mov r9d, 0x400
mov r8, rax
mov edx, 0
mov ecx, 0x52534d42
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call rax
mov dword [rbp + 0x3a4], eax
cmp dword [rbp + 0x3a4], 0
jne 0x6a241476
mov eax, 1
jmp 0x6a24151f
mov dword [rbp + 0x3ac], 0
mov eax, dword [rbp + 0x3a4]
sub eax, 8
cmp dword [rbp + 0x3ac], eax
jae 0x6a24151a
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 6
lea rdx, str.VMware
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x6a241507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 0xa
lea rdx, str.VirtualBox
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x6a241507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 7
lea rdx, str.Hyper_V
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x6a24150e
mov eax, 1
jmp 0x6a24151f
add dword [rbp + 0x3ac], 1
jmp 0x6a241480
mov eax, 0
add rsp, 0x430
pop rbp
ret
Function at 0x6a241528
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x250], rcx
mov dword [rbp + 0x258], edx
lea rax, [rbp + 0xe0]
mov rdx, rax
lea rcx, str.2.ann_d7018127_7beb_41a6_8af2_7fb2c87ed0ed.
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0xffffffffffffffff
jne 0x6a24157a
mov eax, 0
jmp 0x6a2416e4
lea rax, [rbp - 0x30]
mov word [rax], 0x5c2e
mov byte [rax + 2], 0
lea rax, [rbp + 0xe0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0xffffffffffffffff
jne 0x6a241606
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov eax, 0
jmp 0x6a2416e4
mov edx, dword [rbp + 0x258]
lea rcx, [rbp - 0x34]
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
cmp dword [rbp + 0x224], 0
jne 0x6a241675
mov eax, 0
jmp 0x6a2416e4
mov dword [rbp + 0x23c], 0
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x23c], eax
jge 0x6a2416df
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xd
je 0x6a2416be
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
jne 0x6a2416d6
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
mov byte [rax], 0
jmp 0x6a2416df
add dword [rbp + 0x23c], 1
jmp 0x6a24167f
mov eax, 1
add rsp, 0x2c0
pop rbp
ret
Function at 0x6a241a0d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x10]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x6a241acd
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe0
pop rbp
ret
Function at 0x6a241b15
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x930
lea rbp, [rsp + 0x80]
call fcn.6a2413d0
test al, al
je 0x6a241b3c
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
movzx eax, byte [0x6a244010]
test al, al
je 0x6a241b57
call fcn.6a241423
test al, al
je 0x6a241b57
mov eax, 1
jmp 0x6a241b5c
mov eax, 0
test al, al
je 0x6a241b6e
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x7a0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0x7a0]
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_strrchr
add rax, 1
lea rdx, str.rundll32.exe
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x6a241bc5
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x3a0]
mov edx, 0x400
mov rcx, rax
call fcn.6a241528
test eax, eax
sete al
test al, al
je 0x6a241bf0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x400
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x8a8], rax
cmp qword [rbp + 0x8a8], 0
jne 0x6a241c2f
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp + 0x3a0]
mov rcx, rax
call fcn.6a2416ed
mov dword [rbp + 0x8a4], eax
cmp dword [rbp + 0x8a4], 0
je 0x6a241c64
mov eax, dword [rbp + 0x8a4]
cdqe
cmp rax, 0x3ff
jbe 0x6a241c96
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov eax, dword [rbp + 0x8a4]
movsxd rcx, eax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x8a4]
cdqe
mov byte [rbp + rax - 0x60], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.6a241a0d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop

Function at 0x6a2420c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.6a243360
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.6a243360
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]