joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400211b0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400177d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400177d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140021300
cmp rax, 0xffffffffffffffff
je 0x140021300
xor edi, edi
test rbp, rbp
jle 0x1400212ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140015898
mov rbx, rax
test rax, rax
jne 0x140021238
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400212a1
mov edx, 0x8000
mov ecx, r14d
call fcn.140010f44
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140014fa4
cmp eax, 0xffffffff
je 0x140021281
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140021248
mov edx, r15d
mov ecx, r14d
call fcn.140010f44
jmp 0x1400212a1
cmp byte [rsi + 0x38], dil
je 0x140021298
cmp dword [rsi + 0x34], 5
jne 0x140021298
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1400212a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400152ac
jmp 0x140021314
jns 0x140021314
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400177d0
cmp rax, 0xffffffffffffffff
jne 0x1400212cc
cmp byte [rsi + 0x30], dil
je 0x140021314
mov edi, dword [rsi + 0x2c]
jmp 0x140021314
mov ecx, r14d
call fcn.14001be24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140021314
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x140021314
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002130d
mov eax, dword [rsi + 0x2c]
jmp 0x140021312
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400177d0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140ba6108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ba628f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ba6139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba611f
add dl, dl
jne 0x140ba6146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba61a6
xor eax, eax
add dl, dl
jne 0x140ba6155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba625d
add dl, dl
jne 0x140ba6166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba6173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba6180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba618d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ba619a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ba612e
mov eax, 1
add dl, dl
jne 0x140ba61b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba61c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba61ab
sub eax, ebx
mov ebx, 1
jne 0x140ba61fc
mov ecx, 1
add dl, dl
jne 0x140ba61de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba61eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba61d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba612e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ba6218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba6225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba620d
cmp eax, 0x7d00
jae 0x140ba624b
cmp eax, 0x500
jb 0x140ba6246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba612e
cmp eax, 0x7f
ja 0x140ba624e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba612e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ba6282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ba612e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002c524
Capabilities:
Parse pe header

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

Function at 0x1400304a0
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 0x14003030b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003030b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003030b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003030b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003030b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003030b
cmp dword [rcx + 0xf8], 0
je 0x14003030b
mov ecx, ebx
call fcn.1400303bc
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.140030198
nop
cmp dword [rbp + 0x20], 0
je 0x140030359
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140030364
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003029c
Function at 0x140041018
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 0x14004109f
mov rsi, rbx
cmp word [rax], bp
je 0x14004105e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140041048
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140041044
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003e638
mov rdi, rax
test rax, rax
je 0x14004108c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140047940
mov rbp, rdi
xor ecx, ecx
call fcn.14003ca08
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 0x140044c14
Capabilities:
Get file size

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

Function at 0x1400471f0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
mov eax, 0x40
call fcn.140016e60
sub rsp, rax
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rdx, qword [rsp + 0x50]
lea r9d, [rbx + 0x10]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x40
pop rbx
ret
Function at 0x140004950
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x20
call fcn.140016e60
sub rsp, rax
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140004989
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400049b1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400049b3
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004a0c
test ecx, ecx
jle 0x1400049ec
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004a0c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004a0c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
or cl, byte [rsi - 1]
mov esi, 0x76651ec3
int3
Function at 0x140004a30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
mov eax, 0x20
call fcn.140016e60
sub rsp, rax
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004a6a
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140004a81
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004aa9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004aab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004add
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140004b75
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004b1b
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 rdi, 0xfff
jbe 0x140004b55
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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140004b96
cmp rdi, rax
ja 0x140004b24
test rbx, rbx
je 0x140004b75
mov r9, qword [rsi + 0x80]
mov r8, rdi
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 + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140004b78
xchg byte [rsi - 0x66b18701], ch
cdq
jns 0x140039c66
outsb dx, byte [rsi]
movsd dword [rdi], dword [rsi]
cmp eax, 0x161688b7
adc dword [rsi - 0x40], ebx
pop rdi
add dword [rbx], ecx
cmp esi, 0xffffffd1
jge fcn.140039bc3
int 0x5f
out 0x2d, eax
jge 0x140039c1f
psubw mm6, mm6
or eax, 0x36edd8f6
fsubr st(5)
invalid
invalid
adc dword [rbx + 0x7fe92c56], edi
sub al, 0xe6
invalid
Function at 0x140004fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x80
call fcn.140016e60
sub rsp, rax
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004ff3
xor eax, eax
jmp 0x140005148
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14000501e
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14000501e
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140005148
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000513b
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005061
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14000508c
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 0x140005140
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1400050fb
sub eax, 1
je 0x1400050fb
cmp eax, 2
jne 0x14000513b
movsx ecx, byte [rsp + 0x40]
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 0x140005140
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005129
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 0x14000513b
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140005140
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400153b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400067e0
Capabilities:
Write file on windows

Disassembly:
push rbx
mov eax, 0x60
call fcn.140016e60
sub rsp, rax
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400068bc
cmp byte [rcx + 0x71], 0
je 0x1400068bc
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400068b8
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 0x14000687d
sub eax, 1
je 0x140006881
cmp eax, 2
jne 0x1400068b8
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400153b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400068af
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 0x1400068b8
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140006865
xor al, al
jmp 0x140006865
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400153b0
add rsp, 0x60
pop rbx
ret
Function at 0x140001164
Capabilities:
Encode data using xor

Disassembly:
xor byte [rax - 0x7d], cl
shr dword [rax], 0x48
sub byte [rax - 0x7d], cl
clc
add eax, 0x244c8948
invalid
mov rcx, qword [rsp + 0x48]

Function at 0x14000157c
Capabilities:
Encode data using xor

Disassembly:
lea rax, str.shell32
lea rcx, str.shell32

Function at 0x140001c2c
Capabilities:
Get disk information

Disassembly:
loopne 0x140001c51
add byte [rax], al
mov ebx, 0x1390b125
wait
mov dword [rdx + 0x36], esi
wait
movabs byte [0xba14244489643924], al
and al, 0x39
mov dword fs:[rsp + 0x14], eax
invalid
Function at 0x140001230
Capabilities:
Delete service
Start service
Stop service
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
call fcn.140003720
xor ebp, ebp
test eax, eax
jne 0x14000129e
call fcn.1400037f0
lea r9, [rsp + 0x40]
lea rdx, [0x140022800]
mov r8d, 0xb540
mov rcx, rax
mov qword [rsp + 0x20], rbp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x140001298
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000136b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x88], rsi
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140001330
lea rdx, str.cpuz141
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
setne bpl
test ebp, ebp
je 0x140001330
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000131a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14000131a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140001363
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
test eax, eax
je 0x140001310
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call fcn.140003620
test eax, eax
je 0x140001357
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000135b
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
xor al, al
jmp 0x140001363
mov rcx, rdi
call fcn.140001100
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140003b30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140002580
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140002ae0
xor edx, edx
mov r8d, eax
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.140002c40
test al, al
je 0x1400025e1
mov rcx, rbx
call fcn.140002fd0
test al, al
jne 0x1400025dc
lea rcx, str._n_Failed_to_set_handle_access__n
call fcn.140004968
lea rcx, str._n_Failed_to_ElevateHande_access__n
call fcn.140004968
jmp 0x140002621
call fcn.140002d70
lea rcx, str.Handle:__d
mov edx, ebx
call fcn.140004968
lea rcx, str._n__ls:_ElevateHande_success__Here_We_go__n
mov rdx, rdi
call fcn.140004968
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140002621
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14001e678]
mov edx, eax
call fcn.1400048a4
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x140002850
Capabilities:
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [0x14002f340]
test al, 1
jne 0x14000288b
or eax, 1
lea rcx, [0x14001e7c8]
mov dword [0x14002f340], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov qword [0x14002f348], rax
mov eax, dword [0x14002f340]
jmp 0x140002892
mov rcx, qword [0x14002f348]
test al, 2
jne 0x1400028b4
or eax, 2
mov dword [0x14002f340], eax
call fcn.1400038b0
mov rcx, qword [0x14002f348]
mov qword [0x14002f338], rax
jmp 0x1400028bb
mov rax, qword [0x14002f338]
test rax, rax
je 0x1400028f5
test rcx, rcx
je 0x14000292e
lea rdx, str.PsInitialSystemProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
test rax, rax
jne 0x1400028df
add rsp, 0x48
ret
mov rax, qword [0x14002f338]
sub rax, qword [0x14002f348]
add rax, rcx
add rsp, 0x48
ret
lea rax, str.Could_not_find_the_system_base.
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
call fcn.140003b50
lea rax, vtable.std::runtime_error.0
lea rdx, [0x140020438]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140004fc8
int3
lea rax, str.Failed_to_load_ntoskrnl.exe
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
call fcn.140003b50
lea rax, vtable.std::runtime_error.0
lea rdx, [0x140020438]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140004fc8
int3