joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d7a8
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 0x14000d7d8
xor eax, eax
jmp 0x14000d89b
mov rbp, rbx
cmp word [rax], si
je 0x14000d7fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d7e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d7e0
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.14000d6c8
movsxd r14, eax
test eax, eax
jne 0x14000d83b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d7d1
mov rcx, r14
call fcn.140009f5c
mov rdi, rax
test rax, rax
jne 0x14000d854
xor ecx, ecx
call fcn.1400092e4
jmp 0x14000d830
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.14000d6c8
test eax, eax
jne 0x14000d885
mov rcx, rdi
call fcn.1400092e4
jmp 0x14000d88f
xor ecx, ecx
call fcn.1400092e4
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 0x140011bbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011bd2
mov al, 1
jmp 0x140011c32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011be3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011c30
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e0c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011c30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011c30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011c30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011c32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012c70
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.14000c798
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012cfa
cmp byte [rbp - 0x21], r15b
je 0x140012cf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012d30
call fcn.140009534
test eax, eax
jne 0x140012d1c
cmp byte [rbp - 0x21], r15b
je 0x140012d14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012d30
cmp byte [rbp - 0x21], r15b
je 0x140012d2d
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.14000bd78
test eax, eax
jne 0x140012dd0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c798
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012d6f
cmp byte [rbp - 0x21], r15b
je 0x140012da4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012da4
call fcn.140009534
test eax, eax
jne 0x140012d90
cmp byte [rbp - 0x21], r15b
je 0x140012d89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012da4
cmp byte [rbp - 0x21], r15b
je 0x140012da1
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.14000bd78
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012dd0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012dd3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012de1
mov rcx, rdi
call fcn.1400092e4
cmp byte [rbp + 0x3f], r15b
je 0x140012df0
mov rcx, qword [rbp + 0x27]
call fcn.1400092e4
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 0x140015360
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400154f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140013bb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140013bd0
xor al, al
jmp 0x140013c51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013be3
xor al, al
jmp 0x140013c51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140013c0d
xor al, al
jmp 0x140013c51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140013c21
xor al, al
jmp 0x140013c51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140013c33
xor al, al
jmp 0x140013c51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140013c4f
xor al, al
jmp 0x140013c51
mov al, 1
add rsp, 0x38
ret
Function at 0x18008d890
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18008d8c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18008d8b0
ret

Function at 0x180095950
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea r13d, [rcx - 6]
mov r15, r8
mov r14d, ecx
cmp ecx, r13d
jbe case.0x1800959b8.8
mov rbp, qword [rsp + 0xa8]
lea r12d, [rcx - 0x11f]
mov esi, dword [rsp + 0x90]
lea r8, [0x180000000]
xor ebx, ebx
mov r9d, 0xffff8000
mov r10d, 0x7fff
cmp r12d, 9
ja case.0x1800959b8.4
mov ecx, dword [r8 + r12*4 + 0x95b28]
add rcx, r8
jmp rcx
mov rcx, qword [rdx]
xor r9d, r9d
mov r8d, 0x120
lea rdx, [rsp + 0x38]
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 8]
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.18002b580
mov rbp, rax
test rax, rax
je 0x180095b18
mov dword [rax + 0x48], 0x400
mov rdx, qword [rsp + 0x98]
lea r8, [0x180000000]
mov r9d, 0xffff8000
mov r10d, 0x7fff
dec r14d
dec r12d
cmp r14d, r13d
ja 0x1800959a7
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp byte [r15 + rsi], bl
jne 0x180095a50
jmp case.0x1800959b8.4
mov rax, qword [rbp + 0x40]
lea rdx, [rsp + 0x90]
mov r9, r15
mov qword [rsp + 0x40], rax
mov r8d, 0x4e
mov dword [rsp + 0x90], esi
lea rcx, [rsp + 0x40]
call fcn.18006dad0
test eax, eax
je 0x180095a01
mov edi, 0xcc
cmp edi, 0xcc
je 0x180095abb
cmp edi, 0x3e28
je 0x180095ab1
cmp edi, 0x7b84
je case.0x1800959b8.8
jmp 0x180095ad4
mov qword [rsp + 0xa8], rbx
jmp 0x180095ad4
xor r9d, r9d
mov qword [rsp + 0x40], rbp
lea r8, [rsp + 0x40]
mov edx, 0x8e
xor ecx, ecx
call fcn.180080660
add edi, 0x3d5c
cmp edi, 0xb814
jbe 0x180095a93
jmp 0x180095a01
movsx ecx, word [rdx]
movsx eax, word [r15]
add ecx, eax
cmp ecx, r9d
jge 0x180095b03
mov word [rsp + 0xa8], r9w
jmp case.0x1800959b8.4
cmp ecx, r10d
cmovg cx, r10w
mov word [rsp + 0xa8], cx
jmp case.0x1800959b8.4
mov rax, rbx
jmp 0x180095a2f
mov rax, rbp
jmp 0x180095a2f
Function at 0x1800a6bf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov edi, dword [rsp + 0xa0]
mov rsi, rdx
imul eax, ecx, 0x450
mov ebp, ecx
movaps xmmword [rsp + 0x50], xmm6
mov dword [rsp + 0xb8], eax
cmp ecx, eax
ja 0x1800a6e87
mov r13, qword [rsp + 0xb0]
xorps xmm6, xmm6
mov r12, qword [rsp + 0xb0]
mov r15d, dword [rsp + 0xa0]
mov ebx, dword [rsp + 0xa0]
mov eax, 1
cmp ebp, 0x15a4
ja 0x1800a6d84
je 0x1800a6d7a
cmp ebp, 0x744
ja 0x1800a6d10
je 0x1800a6d04
mov eax, ebp
sub eax, 0x14
je 0x1800a6cc9
sub eax, 0x13
je 0x1800a6c9d
cmp eax, 0x5b
jne 0x1800a6e70
mov rax, qword [rsi]
mov r12, qword [rax + 0x88]
jmp 0x1800a6e70
movsx eax, byte [rsi]
xor r15d, r15d
test eax, eax
je 0x1800a6cc1
nop word [rax + rax]
imul r15d, r15d, 0x21
inc rsi
xor r15d, eax
movsx eax, byte [rsi]
test eax, eax
jne 0x1800a6cb0
inc rsi
jmp 0x1800a6e70
mov rax, qword [rsi]
lea rdx, [rsp + 0x40]
mov r8d, 0x125
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0xa
call fcn.180020ac0
mov rbx, rax
test eax, eax
jne 0x1800a6e89
jmp 0x1800a6e70
mov rax, qword [rsi]
mov r13, qword [rax + 0x58]
jmp 0x1800a6e70
mov eax, ebp
sub eax, 0xe2b
je 0x1800a6ea6
cmp eax, 0x49
jne 0x1800a6e70
mov rax, qword [r13 + 0x68]
lea rdx, [rsp + 0xb0]
mov r8d, 0x56
mov qword [rsp + 0xb0], rax
lea rcx, [0x180149790]
call fcn.18005f8f0
test eax, eax
je 0x1800a6e70
mov rax, qword [rsi]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xb0], rcx
mov ecx, 0xd7
call fcn.180053160
jmp 0x1800a6e89
mov word [r13 + 0x58], ax
jmp 0x1800a6e70
cmp ebp, 0x1cd4
je 0x1800a6e64
cmp ebp, 0x2404
je 0x1800a6e60
cmp ebp, 0x2b34
je 0x1800a6e87
cmp ebp, 0x2f3a
je 0x1800a6dcf
cmp ebp, 0x5df2
jne 0x1800a6e70
mov rax, qword [rsi]
mov qword [rax + 0x88], 0
jmp 0x1800a6e70
xor r14d, r14d
cmp dword [r12 + 0x18], r14d
jbe 0x1800a6e3e
mov qword [rsp + 0x40], r12
nop
lea r8, [rsp + 0xb0]
mov dword [rsp + 0xb0], r14d
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.18005d0a0
mov qword [rsp + 0xb0], rax
lea r8, [rsp + 0xb0]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x28], 0xf5
mov qword [rsp + 0x20], rax
call fcn.180007d90
inc r14d
cmp r14d, dword [r12 + 0x18]
jb 0x1800a6de0
xor r9d, r9d
mov qword [rsp + 0xb0], r12
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov ecx, 0xba
call fcn.180041190
jmp 0x1800a6e70
mov edi, ebx
jmp 0x1800a6e70
movss dword [r13 + 0x30], xmm6
movss dword [r13 + 0x34], xmm6
imul eax, dword [rsp + 0xa0], 0x5c
add ebp, eax
cmp ebp, dword [rsp + 0xb8]
jbe 0x1800a6c50
mov eax, edi
mov rbx, qword [rsp + 0xa8]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, r15d
jmp 0x1800a6e89
Function at 0x1800a6eb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, dword [rsp + 0x80]
lea r12d, [r8 - 8]
mov r14d, r8d
mov rsi, rdx
mov r13, rcx
cmp r8d, r12d
jbe case.0x1800a6f15.0
mov edi, dword [rsp + 0x80]
lea r15d, [r8 - 0xb4]
mov eax, dword [rsp + 0x80]
lea r8, [0x180000000]
mov ebp, dword [rsp + 0x80]
cmp r15d, 0x12
ja case.0x1800a6f15.3
mov edx, dword [r8 + r15*4 + 0xa7020]
add rdx, r8
jmp rdx
mov ebx, edi
jmp case.0x1800a6f15.3
mov ecx, 0xb5
cmp ecx, 0xb5
je 0x1800a6f4a
cmp ecx, 0x16b
jne 0x1800a6f50
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test eax, eax
jne 0x1800a6f35
xor ebx, ebx
add ecx, 0xb6
cmp ecx, 0x221
jb 0x1800a6f23
movsx ebp, word [r13]
movsx ecx, word [rsi]
add ebp, ecx
cmp ebp, 0x7fff
jl case.0x1800a6f15.3
mov eax, 0x7fff
jmp 0x1800a6f35
movzx eax, word [r13]
lea rdx, [rsp + 0x80]
xor r9d, r9d
mov word [rsp + 0x80], ax
xor ecx, ecx
lea r8d, [r9 + 4]
call fcn.180055730
mov rax, qword [rsi]
lea r9, [rsp + 0x80]
mov r8d, 0x4e
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x88]
mov dword [rsp + 0x88], 2
lea rcx, [rsp + 0x20]
call fcn.18006dad0
lea r8, [0x180000000]
jmp case.0x1800a6f15.3
movsx ecx, byte [rsi]
xor edi, edi
test ecx, ecx
je 0x1800a6ff2
imul edi, edi, 0x21
inc rsi
xor edi, ecx
movsx ecx, byte [rsi]
test ecx, ecx
jne 0x1800a6fe3
inc rsi
jmp case.0x1800a6f15.3
cmp ebp, 0xffff8000
jle 0x1800a7015
mov ebx, ebp
dec r14d
dec r15d
cmp r14d, r12d
ja 0x1800a6f00
jmp case.0x1800a6f15.0
mov eax, 0xffff8000
jmp 0x1800a6f35
Function at 0x1800b1974
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1800b1794
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800b1794
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800b1794
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800b1794
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800b1794
cmp dword [rcx + 0x84], 0xe
jbe 0x1800b1794
cmp dword [rcx + 0xf8], esi
je 0x1800b1794
mov ecx, r14d
call fcn.1800b18dc
mov ecx, 2
call fcn.1800ba700
nop
cmp byte [0x18016cfe0], 0
jne 0x1800b185e
mov r15d, 1
mov eax, r15d
xchg dword [0x18016cfd0], eax
test ebx, ebx
jne 0x1800b1807
mov rdi, qword [0x180163238]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x18016cfd8]
cmp rcx, rax
je 0x1800b17fe
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x1800d04c8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x18016d338]
jmp 0x1800b1813
cmp ebx, r15d
jne 0x1800b1819
lea rcx, [0x18016d350]
call fcn.1800bd7e0
nop
test ebx, ebx
jne 0x1800b1830
lea rdx, [0x1800d0588]
lea rcx, [0x1800d0568]
call fcn.1800bda38
lea rdx, [0x1800d0598]
lea rcx, [0x1800d0590]
call fcn.1800bda38
movzx eax, byte [0x18016cfe0]
test esi, esi
cmove eax, r15d
mov byte [0x18016cfe0], al
jmp 0x1800b185e
mov ecx, 2
call fcn.1800ba754
test esi, esi
jne 0x1800b1875
mov ecx, r14d
call fcn.1800b1890
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800b1724
Function at 0x1800c1fd4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800c1e74
call fcn.1800b0e24
mov dword [rax], 0x16
call fcn.1800b06f4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800c1e5c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800c1e5c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800c1ea6
lock or dword [rax + 0x14], 0x10
jmp 0x1800c1e5c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800c1ec3
mov rcx, qword [rbp + 0x10]
call fcn.1800cbde0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800c0af4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800c18ac
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800c1f1a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800c1e5c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800c1f86
mov rcx, qword [rbp + 0x10]
call fcn.1800c0af4
cmp eax, 0xffffffff
je 0x1800c1f6d
mov rcx, qword [rbp + 0x10]
call fcn.1800c0af4
cmp eax, 0xfffffffe
je 0x1800c1f6d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800c0af4
movsxd rdi, eax
lea rsi, [0x18016d550]
mov rcx, rbx
sar rdi, 6
call fcn.1800c0af4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800c1f74
lea rax, [0x1801636d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800c1f86
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800c1fbc
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800c1fb8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800c1fb8
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800c1e5f
jmp 0x1800c1e2c
Function at 0x140001088
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140018968]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor eax, eax
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x60], rax
mov rdi, rcx
xorps xmm0, xmm0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r14d, [rax + 0x68]
mov r8d, r14d
movups xmmword [rsp + 0x50], xmm0
call fcn.140010480
or dword [rbp - 0x54], 0x101
mov ecx, 0xfffffff5
mov dword [rsp + 0x70], r14d
xor r14d, r14d
mov word [rbp - 0x50], r14w
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov ecx, 0xfffffff4
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov ecx, 0xfffffff6
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov r9, rsi
mov qword [rsp + 0x20], rbx
lea r8, str._s__s
mov qword [rbp - 0x40], rax
mov edx, 0x100
lea rcx, [rbp - 0x20]
call fcn.140001008
test eax, eax
js 0x1400011d5
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x1400011ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400011d5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140003420
add rsp, 0x2f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001348
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx]
mov rsi, rcx
lea rcx, str.windir
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
xor ebp, ebp
mov edi, eax
test eax, eax
jne 0x14000139f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000148f
mov rcx, 0xffffffffffffffff
lea rbx, [rdi + 0x15]
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400035f4
mov qword [rsi], rax
test rax, rax
jne 0x1400013d0
mov ecx, 0x8007000e
jmp 0x14000148f
mov r8d, edi
lea rcx, str.windir
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140001380
mov r9, qword [rsi]
mov ecx, 0x7fffffff
cmp rcx, rbx
mov edx, 0x80070057
sbb eax, eax
and eax, edx
cmp rbx, rcx
ja 0x140001434
mov rcx, rbx
mov rax, r9
cmp word [rax], bp
je 0x14000141b
add rax, 2
sub rcx, 1
jne 0x14000140c
mov rax, rcx
neg rax
sbb eax, eax
not eax
and eax, edx
test rcx, rcx
je 0x140001434
mov rdx, rbx
sub rdx, rcx
jmp 0x140001437
mov rdx, rbp
test eax, eax
js 0x14000148d
mov r8, rbx
lea rcx, [r9 + rdx*2]
sub r8, rdx
je 0x14000147f
mov r9, r8
sub r9, rbx
add r9, 0x7ffffffe
add r9, rdx
lea rdx, str._system32logman.exe
sub rdx, rcx
test r9, r9
je 0x14000147f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14000147f
mov word [rcx], ax
dec r9
add rcx, 2
sub r8, 1
jne 0x140001461
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov ecx, ebp
mov rbx, qword [rsp + 0x30]
mov eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000288c
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x2c8]
sub rsp, 0x3c0
mov rax, qword [0x140018968]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
or qword [rsp + 0x20], 0xffffffffffffffff
mov esi, edx
mov rdi, rcx
test edx, edx
je 0x14000296e
xor edx, edx
lea rcx, [rbp + 0xf8]
mov r8d, 0x1b8
call fcn.140010480
lea rcx, [rbp + 0xf0]
mov qword [rbp + 0xf0], rdi
call qword [sym.imp.ADVAPI32.dll_OpenTraceW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x14000293b
mov rax, qword [0x140019fd0]
mov rbx, qword [rax + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov rcx, rbx
call fcn.14000194c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, dword [rsp + 0x20]
jmp 0x1400029cb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseTrace]
nop dword [rax + rax]
movzx eax, byte [rbp + 0x16c]
cmp al, 5
jae 0x140002968
mov rcx, qword [0x140019fd0]
mov rcx, qword [rcx + 0xd0]
jmp 0x140002aa5
xor ebx, ebx
cmp al, 5
jmp 0x1400029c6
xor edx, edx
lea rcx, [rbp + 0xf4]
mov r8d, 0x110
call fcn.140010480
lea rcx, [rbp + 0xf0]
mov dword [rbp + 0xf0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400029b6
mov rax, qword [0x140019fd0]
mov rbx, qword [rax + 0xd8]
jmp 0x140002910
mov eax, dword [rbp + 0xf4]
cmp eax, 5
jb 0x140002955
xor ebx, ebx
cmp eax, 5
sete bl
xor eax, eax
test eax, eax
jne 0x140002aac
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1c0
call fcn.140010480
test ebx, ebx
je 0x1400029fd
lea rax, [0x140002250]
mov qword [rbp + 0xd8], rax
mov eax, dword [rsp + 0x4c]
jmp 0x140002a17
lea rax, [0x140002530]
mov qword [rbp + 0xd8], rax
mov eax, dword [rsp + 0x4c]
bts eax, 0x1c
mov dword [rsp + 0x4c], eax
test esi, esi
je 0x140002a22
mov qword [rsp + 0x30], rdi
jmp 0x140002a3d
mov qword [rsp + 0x38], rdi
test ebx, ebx
je 0x140002a35
mov dword [rsp + 0x4c], 0x100
jmp 0x140002a3d
bts eax, 8
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenTraceW]
nop dword [rax + rax]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x140002a78
mov rax, qword [0x140019fd0]
mov rbx, qword [rax + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rbx
jmp 0x140002aa5
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ProcessTrace]
nop dword [rax + rax]
test eax, eax
je 0x140002aac
mov rcx, qword [0x140019fd0]
mov rcx, qword [rcx + 0xe0]
mov edx, eax
call fcn.14000194c
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x140002ac4
or rcx, 0xffffffffffffffff
call qword [sym.imp.ADVAPI32.dll_CloseTrace]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140003420
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret