joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004060
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005f980]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.140011350
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14001f690
lea rcx, [rsp + 0x20]
test r14, r14
je 0x140004123
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x140004111
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 [rsi], 1
jne 0x140004143
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140004143
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140004143
mov rcx, rbp
call fcn.1400034e0
sub qword [rdi], 1
jne 0x140004153
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x140004163
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140024300
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001f740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x14001f804
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x14001f760
not eax
ret
Function at 0x140024cd0
Capabilities:
Parse pe header

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

Function at 0x14002a0e4
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 0x140029f43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029f43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029f43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029f43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029f43
cmp dword [rcx + 0x84], 0xe
jbe 0x140029f43
cmp dword [rcx + 0xf8], 0
je 0x140029f43
mov ecx, ebx
call fcn.14002a000
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.140029dd0
nop
cmp dword [rbp + 0x20], 0
je 0x140029f91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140029f9c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140029ed4
Function at 0x14003bc04
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 0x14003bc8b
mov rsi, rbx
cmp word [rax], bp
je 0x14003bc4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003bc34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003bc30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140036b0c
mov rdi, rax
test rax, rax
je 0x14003bc78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140041f10
mov rbp, rdi
xor ecx, ecx
call fcn.140037a1c
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 0x140041cf0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405510]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405520]
mov dword [rax], 1
mov rax, qword [0x00405530]
mov dword [rax], 1
mov rax, qword [0x00405500]
mov dword [rax], 1
mov rax, qword [0x004053c0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004054f0]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004054b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00405350]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x1d8], 0xffffffffffffffff
je 0x401647
mov dword [rbp + 0xa0], 0x130
lea rax, [rbp + 0xa0]
mov rcx, qword [rbp + 0x1d8]
mov rdx, rax
call sym.Process32First
test eax, eax
sete al
test al, al
je 0x4015c5
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x401648
mov ecx, dword [rbp + 0xa8]
lea rax, [rbp + 0xa0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x60]
mov r9d, ecx
mov r8, rdx
lea rdx, str.PROCESS_NAME:__s__PID:__lu_
mov rcx, rax
call sym.int_sprintf_s_256ull__char_____256ull___char_const__::_
lea rax, [rbp - 0x60]
mov rdx, rax
mov rcx, qword [sym.imp.libstdc_6.dll_std::wcout]
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____char_const_
mov rdx, qword [0x00405360]
mov rcx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
lea rax, [rbp + 0xa0]
mov rcx, qword [rbp + 0x1d8]
mov rdx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
je 0x401632
jmp 0x4015c5
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x401648
nop
add rsp, 0x260
pop rbp
ret
Function at 0x401651
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xe0], rax
cmp qword [rbp + 0xe0], 0xffffffffffffffff
jne 0x401692
mov eax, 0
jmp 0x40179d
mov dword [rbp - 0x60], 0x130
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xe0]
mov rdx, rax
call sym.Process32First
test eax, eax
sete al
test al, al
je 0x4016d2
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x40179d
mov byte [rbp + 0xef], 0
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0x100]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
sete al
test al, al
je 0x401762
mov eax, dword [rbp - 0x58]
mov r8d, eax
mov edx, 0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
je 0x401762
mov rax, qword [rbp + 0xd8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
test eax, eax
setne al
test al, al
je 0x40174f
mov byte [rbp + 0xef], 1
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xe0]
mov rdx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
je 0x401783
jmp 0x4016d9
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
movzx eax, byte [rbp + 0xef]
add rsp, 0x170
pop rbp
ret

Function at 0x4017a6
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call sym.ListRunningProcesses__
lea rax, str.COM_Surogate.exe
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.TerminateProcessByName_char_const_
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x402970
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402980
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402990
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4029d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4029c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4029d3
add rax, 0x28
cmp rax, r9
jne 0x4029b4
xor eax, eax
ret

Function at 0x402a70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402add
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402add
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402add
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402ad4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402adf
add rax, 0x28
cmp rax, r9
jne 0x402ac0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402be0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053c0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402c00
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bf8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c64
add rax, 0x28
cmp rax, r9
jne 0x402c40
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402c80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004053c0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402cee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402cee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402cee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402ce5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402cf5
add rcx, 0x28
cmp rcx, rax
jne 0x402cd0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402d08
jmp 0x402cee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402d16
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402cee
test r9d, r9d
jg 0x402d00
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403100
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov eax, 0x5a4d
mov rdi, rdx
mov r11, rcx
cmp word [rcx], ax
jne 0x140002663
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
jne 0x140002663
mov edx, 0x20b
mov eax, 0x88
cmp word [r8 + 0x18], dx
mov ecx, 0x78
cmovne eax, ecx
xor r10d, r10d
mov ebp, dword [rax + r8]
mov r15d, dword [r11 + rbp + 0x1c]
lea r14, [r11 + rbp]
mov r12d, dword [r14 + 0x24]
add r15, r11
mov esi, dword [r14 + 0x20]
add r12, r11
mov r9d, dword [r14 + 0x18]
add rsi, r11
sub r9d, 1
mov r13d, dword [rax + r8 + 4]
js 0x140002663
nop dword [rax + rax]
lea r8d, [r9 + r10]
mov rax, rdi
sar r8d, 1
movsxd rbx, r8d
mov edx, dword [rsi + rbx*4]
add rdx, r11
sub rdx, rdi
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x140002649
inc rax
test cl, cl
jne 0x140002636
xor eax, eax
jmp 0x14000264e
sbb eax, eax
or eax, 1
test eax, eax
jns 0x140002658
lea r9d, [r8 - 1]
jmp 0x14000265e
jle 0x140002682
lea r10d, [r8 + 1]
cmp r9d, r10d
jge 0x140002620
xor eax, eax
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
cmp r9d, r10d
jl 0x140002663
cmp r8d, dword [r14 + 0x14]
jge 0x140002663
movzx eax, word [r12 + rbx*2]
mov ecx, dword [r15 + rax*4]
cmp ecx, ebp
jb 0x1400026a3
mov eax, r13d
add eax, ebp
cmp ecx, eax
jb 0x140002663
lea rax, [r11 + rcx]
jmp 0x140002665
Function at 0x1400029d0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov qword [rcx], 0
lea rdx, [rsp + 0x30]
mov eax, dword [0x14008d0c8]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [0x14008d0c0]
mov rdi, rcx
mov dword [rsp + 0x38], eax
mov esi, 0x23f0
movzx eax, byte [0x14008d0cc]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x3c], al
mov eax, dword [str.CI.dll]
mov dword [rbp + 0x190], eax
movzx eax, word [0x14008d0d4]
mov word [rbp + 0x194], ax
movzx eax, byte [0x14008d0d6]
mov byte [rbp + 0x196], al
movsd qword [rsp + 0x30], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rbp + 0x190]
cmp word [rcx + 0x120], si
lea rcx, [rsp + 0x50]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.140003720
lea r9, [rsp + 0x40]
xor edx, edx
lea r8, [rbp + 0x198]
lea rcx, [rsp + 0x50]
call fcn.1400026b0
mov ebx, eax
test eax, eax
jns 0x140002ac2
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140002970
mov eax, ebx
add rsp, 0x268
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword gs:[0x30]
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], si
jb 0x140002b37
lea rcx, [rbp + 0x190]
call fcn.140002dc0
mov ebx, eax
test eax, eax
jns 0x140002b04
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140002970
jmp 0x140002bf0
mov rdx, qword [rbp + 0x1a0]
lea r8, [rbp + 0x1a8]
mov rcx, qword [rbp + 0x198]
call fcn.140002f70
test eax, eax
je 0x140002beb
mov rax, qword [rbp + 0x1a8]
xor ebx, ebx
mov qword [rdi], rax
jmp 0x140002bf0
lea rcx, [rsp + 0x30]
call fcn.140002dc0
mov ebx, eax
test eax, eax
js 0x140002bf0
mov r11, qword [rsp + 0x40]
xor r10d, r10d
xor r9d, r9d
test r11, r11
je 0x140002bdf
mov rbx, qword [rbp + 0x198]
lea rsi, [0x14008d004]
nop dword [rax]
mov r8, r9
xor edx, edx
sub r8, rsi
mov rax, rsi
add r8, rbx
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x140002b8d
test cl, cl
jne 0x140002bdb
inc edx
inc rax
cmp edx, 4
jb 0x140002b80
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, r10
inc r9
mov r10, rax
cmp r9, r11
jb 0x140002b70
test rax, rax
je 0x140002bdf
movsxd rcx, dword [rax + rbx + 4]
mov rbx, qword [rbp + 0x1a0]
add rcx, rax
add rbx, 8
add rbx, rcx
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.140002970
mov qword [rdi], rbx
xor ebx, ebx
jmp 0x140002bf0
xor cl, cl
jmp 0x140002b99
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140002970
mov ebx, 0xc0000225
mov rdx, qword [rbp + 0x198]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x268
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002c20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rdx
mov rbx, rcx
call fcn.140002d10
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140002cfa
lea r8, [0x14008d148]
mov dword [rsp + 0x260], 1
mov edx, 5
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rdi
lea rcx, [rsp + 0x30]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002c90
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x30]
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140002cfa
lea rax, [rsp + 0x260]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x140002dc0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
push rsi
push r14
sub rsp, 0x158
mov r14, rdx
mov qword [rdx], 0
mov rsi, rcx
mov dword [rax + 0x10], 0
xor edx, edx
lea r9, [rax + 0x10]
mov ecx, reloc.WS2_32.dll_inet_addr
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140002f5f
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x178]
mov qword [rsp + 0x180], rbp
add r8, r8
mov qword [rsp + 0x150], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x178]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebp, eax
test eax, eax
js 0x140002f31
mov qword [rsp + 0x170], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140002f29
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rcx, rcx, 0x128
mov edx, 2
add rcx, 8
add rcx, rdi
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140002e90
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rsi
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140002f1f
inc ebx
cmp ebx, dword [rdi]
jb 0x140002e72
jmp 0x140002f29
mov rax, qword [rsp + 0x30]
xor ebp, ebp
mov qword [r14], rax
mov rbx, qword [rsp + 0x170]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x150]
mov eax, ebp
mov rbp, qword [rsp + 0x180]
add rsp, 0x158
pop r14
pop rsi
ret