joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011083
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110c1
cmp word [rcx], 0x5a4d
jne 0x1400110c1
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110c1
call fcn.1400075e9
mov rcx, qword [0x140065d90]
mov rbx, rax
call fcn.140015270
cmp byte [rax], 0
jne 0x1400110c1
cmp dword [rbx], 0x4550
je 0x1400110c3
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140014340
Capabilities:
Write file on windows

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

Function at 0x1400143b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14006bb14]
mov rbx, rcx
test esi, esi
jle 0x1400144e0
mov rax, qword [0x14006bb18]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400143fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014485
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400143e0
mov rcx, rbx
call fcn.140014e00
mov rdi, rax
test rax, rax
je 0x140014502
mov rax, qword [0x14006bb18]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014f40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14006bb18]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400144e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001447e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014490
add dword [0x14006bb14], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14006bb18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001447e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014340
nop dword [rax]
xor esi, esi
jmp 0x140014408
mov rax, qword [0x14006bb18]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140014340
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140014340
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140014a70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14006bb80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14006bb60]
test rbx, rbx
je 0x140014acc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014ac3
test rsi, rsi
je 0x140014ac3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014aa8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x140065da0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014e20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014e28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014e20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014e7d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140014e74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014e20
add rax, 0x28
cmp rax, r9
jne 0x140014e60
xor eax, eax
ret

Function at 0x140014e80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140065da0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014ea8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140014f40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140065da0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014f5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014f68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140015210
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x14006bc00], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14006bc08], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140015260
lea rdx, [0x140015120]
mov ecx, eax
mov dword [0x14006bbf8], eax
call fcn.14001abd0
test eax, eax
jne 0x140015268
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140015257
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140015270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140065d30]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x1400152a8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140015310
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140015320
mov esi, dword [0x14006bbf8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140015390
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x1400153d8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140015297
mov rcx, rbx
call fcn.140015170
mov qword [rsi + r12*8 + 8], rax
jmp 0x140015297
call fcn.140015170
mov qword [rbx + 0x10], rax
jmp 0x140015297
mov r10d, dword [rsi]
test r10d, r10d
je 0x14001543a
mov r9d, dword [0x14001b560]
test r9d, r9d
je 0x140015468
lock add dword [0x14006bc00], 1
jne 0x14001549c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140015447
mov eax, dword [rsi]
test eax, eax
je 0x1400152b1
lock sub dword [0x14006bc00], 1
js 0x1400152b1
mov rcx, qword [0x14006bc08]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400152b1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x1400154c3
mov qword [rax], rdi
mov ecx, dword [0x14006bbf8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400152eb
call r13
jmp 0x1400152eb
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x1400154c3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x1400153b3
call fcn.140015210
mov dword [0x14001b560], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14001533c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x1400152b1
mov rax, qword [0x14006bbf0]
lea r12, [rax + 1]
mov qword [0x14006bbf0], r12
mov qword [rbx + 0x10], r12
jmp 0x140015357
lock add dword [0x14001b564], 1
je 0x140015421
mov r8d, dword [0x14001b560]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14001b560]
test r8d, r8d
jne 0x140015430
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140015490
jmp 0x140015430
mov rcx, qword [0x14006bc08]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001534a
lock sub dword [0x14006bc00], 1
jmp 0x14001534a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x1400154e0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x1400154ea
mov qword [rcx + 8], r8
test r9, r9
je 0x1400154f4
cmp qword [rcx], rdx
je 0x1400154f8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14000b844
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b640
Function at 0x14000e500
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 0x14000e530
xor eax, eax
jmp 0x14000e5f3
mov rbp, rbx
cmp word [rax], si
je 0x14000e555
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e53c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e538
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.14000e420
movsxd r14, eax
test eax, eax
jne 0x14000e593
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e529
mov rcx, r14
call fcn.14000f3dc
mov rdi, rax
test rax, rax
jne 0x14000e5ac
xor ecx, ecx
call fcn.14000ca80
jmp 0x14000e588
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.14000e420
test eax, eax
jne 0x14000e5dd
mov rcx, rdi
call fcn.14000ca80
jmp 0x14000e5e7
xor ecx, ecx
call fcn.14000ca80
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 0x140011a70
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.14000d4f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140011afa
cmp byte [rbp - 0x21], r15b
je 0x140011af5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140011b30
call fcn.14000fbec
test eax, eax
jne 0x140011b1c
cmp byte [rbp - 0x21], r15b
je 0x140011b14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140011b30
cmp byte [rbp - 0x21], r15b
je 0x140011b2d
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.14000cad0
test eax, eax
jne 0x140011bd0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d4f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140011b6f
cmp byte [rbp - 0x21], r15b
je 0x140011ba4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140011ba4
call fcn.14000fbec
test eax, eax
jne 0x140011b90
cmp byte [rbp - 0x21], r15b
je 0x140011b89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140011ba4
cmp byte [rbp - 0x21], r15b
je 0x140011ba1
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.14000cad0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140011bd0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140011bd3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140011be1
mov rcx, rdi
call fcn.14000ca80
cmp byte [rbp + 0x3f], r15b
je 0x140011bf0
mov rcx, qword [rbp + 0x27]
call fcn.14000ca80
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 0x180003230
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x3a8]
sub rsp, 0x490
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800380b0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r15, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp byte [rcx + 0x4f4], 0
jne 0x180003483
call fcn.180004b50
xor edx, edx
test eax, eax
je 0x1800033ee
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.18000dff0
cmp qword [rbx + 0x18], 8
jb 0x1800032ae
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180001c50
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.18000dff0
cmp qword [rdi + 0x18], 8
jb 0x1800032db
mov rdx, qword [rdi]
jmp 0x1800032de
mov rdx, rdi
lea rcx, [rbp + 0x170]
call fcn.180001c50
cmp qword [rdi + 0x10], 0
jne 0x180003303
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1800034b0
jmp 0x180003483
mov qword [rsp + 0x58], 7
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
lea r8d, [rbx + 1]
lea rdx, [0x180023734]
lea rcx, [rsp + 0x40]
call fcn.1800019d0
cmp word [rsp + 0x60], bx
jne 0x180003339
mov r8d, ebx
jmp 0x18000334d
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180003342
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180001720
mov r8d, 2
lea rdx, [0x180023738]
lea rcx, [rsp + 0x40]
call fcn.180001720
cmp word [rbp + 0x170], 0
je 0x18000339a
lea rax, [rbp + 0x170]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003390
mov r8, rbx
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.180001720
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1800034b0
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180003483
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.180001b20
jmp 0x180003483
mov byte [rsi + 0x4f4], 1
mov r8d, 0x104
lea rcx, [rsi + 0xe0]
call fcn.18000dff0
cmp qword [rbx + 0x18], 8
jb 0x180003411
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsi + 0xe0]
call fcn.180001c50
xor edx, edx
mov r8d, 0x104
lea rcx, [rsi + 0x2e8]
call fcn.18000dff0
cmp qword [rdi + 0x18], 8
jb 0x18000343e
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsi + 0x2e8]
call fcn.180001c50
mov eax, dword [r15]
mov dword [rsi + 0x4f0], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r9, rsi
lea r8, [0x180003550]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.18000b090
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800034b0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
mov rbx, rdx
lea rcx, [rsp + 0x70]
xor edx, edx
lea r8d, [rdx + 0x68]
call fcn.18000dff0
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov rdx, rbx
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18000353c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xe0
pop rbx
ret
Function at 0x180003a00
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800380b0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r15, rcx
test rdx, rdx
jne 0x180003a4b
xor eax, eax
jmp 0x180003be0
mov qword [rsp + 0x60], 7
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [rdx], bx
jne 0x180003a6a
mov r8d, ebx
jmp 0x180003a7a
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], bx
jne 0x180003a70
lea rcx, [rsp + 0x48]
call fcn.1800019d0
nop
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.180004be0
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x70]
call fcn.18000dff0
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180003bc1
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180003bb7
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
cmp word [rbp - 0x64], 0
jne 0x180003af7
mov r8, rbx
jmp 0x180003b0b
lea rax, [rbp - 0x64]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180003b00
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x28]
call fcn.1800019d0
nop
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.180004be0
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x40]
cmp rdi, 8
cmovae rcx, r14
mov r9, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
call fcn.1800014e0
test eax, eax
je 0x180003b8b
cmp rdi, 8
jb 0x180003b79
lea r8, [rdi + 1]
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.180001b20
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
jmp 0x180003ad0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x78]
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x180003bc1
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.180001b20
jmp 0x180003bc1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x180003bde
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180001b20
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.18000b090
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180004b50
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub rsp, 0x188
mov rax, qword [0x1800380b0]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x11c
call fcn.18000dff0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x54], 5
jg 0x180004bc4
cmp dword [rsp + 0x58], 2
jg 0x180004bc4
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18000b090
add rsp, 0x188
ret
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18000b090
add rsp, 0x188
ret
Function at 0x180006470
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18000649e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180007bc0
cmp byte [0x180039198], 0
jne 0x1800064e9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800064d9
lea rdx, [0x180023c80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180039190], rax
mov byte [0x180039198], 1
jmp 0x1800064f0
mov rax, qword [0x180039190]
mov byte [0x180039198], 1
jmp 0x1800064f0
mov rax, qword [0x180039190]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18000650f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180007c34
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180007c56
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180007c56
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180007c56
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180007a70
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800380b0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.1800075d0
mov ebx, eax
test eax, eax
jne 0x180007b87
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180007b61
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180007a70
mov ebx, eax
test eax, eax
jne 0x180007b87
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180007b10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180007b76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.180006470
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180007b97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000b090
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret