joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400113f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140011412
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140011421
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140011444
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011446
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011482
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001151e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400114bd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400114fe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001151e
cmp rbx, rax
ja 0x1400114d0
test rbx, rbx
je 0x14001151e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov esp, 0xca37f483
sar edi, 1
xchg esi, eax
not byte [rdi + 0x68b96196]
test byte [0x184570373], 0xd7
invalid
Function at 0x140011940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003c180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001196d
xor eax, eax
jmp 0x140011ad9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400119a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400119a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140011ad9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140011acc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400119ea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140011a15
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140011ad1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140011a84
sub eax, 1
je 0x140011a84
cmp eax, 2
jne 0x140011acc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140011ad1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140011ab2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140011acc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140011ad1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002ede0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140011e70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003c180]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140011f43
cmp byte [rcx + 0x71], 0
je 0x140011f43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140011f3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140011f04
sub eax, 1
je 0x140011f08
cmp eax, 2
jne 0x140011f3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002ede0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140011f36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140011f3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140011eec
xor al, al
jmp 0x140011eec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002ede0
add rsp, 0x60
pop rbx
ret
Function at 0x14001ad20
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14003c180]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, r8
mov rbx, rcx
xor eax, eax
mov word [rbp - 9], ax
mov byte [rbp - 7], al
xor esi, esi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], rsi
lea ecx, [rax + 0x10]
call fcn.14002ee00
mov qword [rax + 8], rsi
mov qword [rbp - 1], rax
lea rcx, [rbp - 1]
mov qword [rax], rcx
mov word [rbp + 0x2f], si
mov qword [rbp + 0x35], rsi
mov qword [rbp + 0x3d], rsi
xor eax, eax
mov word [rbp + 0x32], ax
mov byte [rbp + 0x34], al
mov word [rbp + 0x35], ax
mov byte [rbp + 0x37], al
mov word [rbp + 0x38], ax
mov byte [rbp + 0x3a], al
mov word [rbp + 0x3b], ax
mov byte [rbp + 0x3d], al
mov word [rbp + 0x3e], ax
mov byte [rbp + 0x40], al
mov word [rbp + 0x41], ax
mov byte [rbp + 0x43], al
mov dword [rbp + 0x2b], esi
mov dword [rbp - 5], esi
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001b150
lea rax, [rbp - 9]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x31]
call fcn.14001c310
mov byte [rbp - 0x39], sil
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001be00
mov byte [rbp - 0x39], sil
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001bfb0
mov byte [rbp - 0x39], sil
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001c160
mov byte [rbp - 0x39], sil
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001be00
mov byte [rbp - 0x39], sil
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001bfb0
mov byte [rbp - 0x39], sil
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001c4d0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rdi
lea rax, str.SeDebugPrivilege
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14001cf00
test al, al
je 0x14001aeb3
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14001d0a0
mov byte [rbp + 0x2f], sil
test al, 1
je 0x14001aea9
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14001b150
lea rcx, [rbp - 9]
call fcn.1400079e0
nop
lea rcx, [rbp - 1]
call fcn.140005120
mov rcx, qword [rbp - 1]
mov qword [rbp - 1], rsi
mov edx, 0x10
call fcn.14002ee3c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002ede0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14002f9ec
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14027a590
sub rsp, rax
mov rax, qword [0x1402c1800]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1402761c2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14027616d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140276160
cmp rcx, 1
jb 0x14027621a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140276190
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140289e14
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140276150
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1402761f3
lea rcx, [rsp + 0x80]
call fcn.14028cc54
jmp 0x1402761f5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14027a5f0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14027ebe0
int3
Function at 0x14027a080
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402c1800]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14027a125
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14027a0dd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14027a0d0
cmp rcx, 1
jb 0x14027a156
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14027a0f3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140289e14
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14027a0c0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14027a5f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14027ebe0
int3
Function at 0x14027a260
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x1402c1800]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x1402d2d38]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x14027a2b0
lea rcx, [0x14029c6ec]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1402d2d38], rax
test rax, rax
je 0x14027a4ea
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x14027a3e6
test dl, dl
je 0x14027a382
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14027a32d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14027a320
cmp rcx, 1
jb 0x14027a4f0
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14027a350
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140289e14
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14027a310
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x14027a3cd
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14027a487
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14027a487
test dl, dl
je 0x14027a462
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14027a40d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14027a400
cmp rcx, 1
jb 0x14027a4e4
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14027a430
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140289e14
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14027a3f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14027a487
mov rcx, r14
call fcn.1400021c0
sub qword [r13], 1
jne 0x14027a498
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x14027a4a8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14027a5f0
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.14027ebe0
int3
call fcn.14027ebe0
int3
call fcn.14027ebe0
int3
Function at 0x14027afc0
Capabilities:
Parse pe header

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

Function at 0x140280458
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 0x1402802c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402802c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402802c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402802c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402802c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1402802c3
cmp dword [rcx + 0xf8], 0
je 0x1402802c3
mov ecx, ebx
call fcn.140280374
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.140280150
nop
cmp dword [rbp + 0x20], 0
je 0x140280311
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14028031c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140280254
Function at 0x140291ec0
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140291f47
mov rsi, rbx
cmp word [rax], bp
je 0x140291f06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140291ef0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140291eec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14028d440
mov rdi, rax
test rax, rax
je 0x140291f34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140298240
mov rbp, rdi
xor ecx, ecx
call fcn.14028df88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140295abc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140295ad2
mov al, 1
jmp 0x140295b32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140295ae3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140295b30
mov ecx, dword [rcx + 0x18]
nop
call fcn.140292664
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140295b30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140295b30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140295b30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140295b32
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140298020
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d6d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000d9da
mov ecx, 1
call fcn.14000d6d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
loope 0x140025cb7
invalid
je 0x140025d14
add byte [rsp + rax*2 - 0x7705c1ef], dl
in al, 0x6f
loopne 0x140025d0b
mov edi, 0x92f4fefc
push rax
fbld tbyte [rax]
mov esi, 0x3fceb873
or dword [rdx - 0x4b], edi
pop rdi
mov ch, 0x5f
lock and dh, byte [rsi + rsi*4 - 5]
jl 0x140025c83
out 0xd, eax
test eax, 0xdfb807b3
pushfq
push 0x3d2892ad
mov edi, es
test esp, 0xfeb3f6e1
lodsd eax, dword [rsi]
xchg edx, eax
sub byte [0x10cfa247a], bh
cmp eax, 0xccf7c78c
loope 0x140025ce6
mov bl, 0xfe
jb 0x140025ce9
cmp eax, 0x574fb005
sbb byte [rdi - 0x2b], bl
cwde
mov ah, 0xd2
imul byte [rax - 0x25]
jns 0x140025d27
stosd dword [rdi], eax
xor ebp, dword [rcx - 0x5a]
mov bh, 0x51
adc byte [rbx - 0xc], ah
fsubr qword [rbx + 0x21]
ja 0x140025d50
cmp esp, ebp
in eax, 0xef
out dx, eax
mov ebx, dword [rdi + riz]
jp 0x140025d16
xchg bh, bh
out 0xc9, eax
sbb edi, dword [0xc2d7d6aa]
cld
cld
sahf
cld
movabs eax, dword [0xf0ca8aa451fccb85]
jnp 0x140025d95
lahf
stc
xlatb
fisub dword [rsp + rcx*4]
invalid
in eax, dx
in al, 0x56
xor edx, dword [rcx + 0x485e70fb]
xchg edx, eax
mov ah, byte [rsi + 0x32]
jp 0x140025cd4
mov ebx, 0x161b433
invalid
mov cl, byte [rdx - 0x19c9750c]
or al, 0x7e
invalid
jle 0x140025dc6
fisttp word [rbp - 0x2d]
ror qword [rbx - 0x2dfa738c], cl
add al, 0x42
and dword [rsi + rdx*8 + 0x4e], ebx
invalid
invalid
int1
mov edi, 0xf54e5b8e
popfq
mov dword [rbx], 0x1d385663
ja 0x140025d8a
jmp 0x140025ded
imul ebx, dword ds:[rdi + 0x67a049f1], 0xffffffa2
movabs eax, dword [0xfea173bb8d606f34]
adc ecx, dword [rbp + 0x25]
and al, 0xda
in al, dx
jge 0x140025db3
add al, 0xe3
mov esp, dword [rdi + 0x71f13614]
jne 0x140025e45
invalid
cmp bl, dh
dec eax
jnp 0x140025e4e
in eax, dx
jo 0x140025e4f
push rbx
cmp al, 0xe1
int 0x5e
invalid
Function at 0x14000e6c0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
lea rdi, [rcx + 0x70]
lea rax, [0x14000e690]
mov qword [rcx + 0x68], rax
lea rdx, [0x140021c10]
lea rax, [0x14000e620]
mov ecx, 0x1c
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140021be0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 1
mov r9d, 0xad
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jns 0x14000e748
lfence
jmp 0x14000e77d
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
or dword [rax + 0x30], 0x10
mov rax, qword [rsp + 0x70]
or dword [rax + 0x30], 4
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
jns 0x14000e77b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14001402c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x28], 0
lea rdx, [0x140021c60]
and dword [rbp + 0x20], 0
lea rcx, [rbp - 0x40]
xorps xmm0, xmm0
xor bl, bl
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp - 0x28], 0
lea rax, [rbp - 0x40]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], 0x30
mov edx, 0x20019
mov dword [rbp - 0x18], 0x240
lea rcx, [rbp + 0x28]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14001413d
lea rdx, [0x140021cd0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea rdx, [rbp - 0x50]
lea r14d, [r9 + 1]
mov r8d, r14d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x1400140e5
cmp eax, 0x80000005
jne 0x14001413d
mov ecx, dword [rbp + 0x20]
mov edx, 0x200
call fcn.140001ab4
mov r8d, dword [rbp + 0x20]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140003b00
mov ecx, dword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, qword [rbp + 0x28]
mov r8d, r14d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
test rdi, rdi
je 0x14001413d
mov rcx, rdi
call fcn.140001000
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001414c
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret
Function at 0x140019518
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140015ac8.0]
mov rcx, qword [rax]
test cl, 1
je 0x140019544
mov edx, 0xc80
mov ecx, 0x32
add rsp, 0x28
jmp fcn.1400031ac
bt rcx, 0x37
jae 0x140019553
mov eax, dword [rax + 8]
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140021768