joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fff60
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400fff8c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 8
jb 0x1400fffdc
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fffd7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fffd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
cmp ebx, 0xffffffff
jne 0x140100001
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret

Function at 0x140100020
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140100057
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov qword [rbx], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140100070
Capabilities:
Delete directory

Disassembly:
jmp 0x140100070
push rbx
sub rsp, 0x50
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x14010009c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x1401000ef
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401000ea
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401000ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test bl, bl
je 0x140100113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret

Function at 0x140100290
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401002c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov qword [rbx], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d50
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 0x140011267
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400117c0
push rbp
push rsi
push rdi
sub rsp, 0x3e0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x8c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3a8], rax
lea rcx, [0x1400210a2]
call fcn.140011375
lea rax, [rbp + 0x10]
lea rcx, [0x140019c30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1cd
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x1f8], rax
mov r8d, 0x1cd
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x1f8]
call fcn.1400111ae
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x1f8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x218], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140019c00]
call fcn.140011307
mov eax, edi
mov rcx, qword [rbp + 0x3a8]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x3b0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400140a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400140c0
xor al, al
jmp 0x140014141
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400140d3
xor al, al
jmp 0x140014141
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 0x1400140fd
xor al, al
jmp 0x140014141
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014111
xor al, al
jmp 0x140014141
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014123
xor al, al
jmp 0x140014141
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001413f
xor al, al
jmp 0x140014141
mov al, 1
add rsp, 0x38
ret
Function at 0x1400f8bf0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
sub rsp, 0x78
mov rax, qword [0x1403fad18]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 0xc8]
mov r12, r8
mov rbp, rcx
cmp byte [rax + 0x278], 0
jne 0x1400f8c27
mov eax, 0xffffffb1
jmp 0x1400f8dad
mov qword [rsp + 0x98], rsi
mov rsi, qword [rsp + 0xb0]
cmp rsi, 0x40
jbe 0x1400f8c47
mov eax, 0xffffffd7
jmp 0x1400f8da5
cmp rsi, 0x20
jae 0x1400f8c57
mov eax, 0xfffffffe
jmp 0x1400f8da5
movzx eax, byte [rax + 0x279]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa8], rdi
mov byte [r8], al
mov rax, qword [rcx + 0xc8]
mov qword [rsp + 0x70], r13
movzx ecx, byte [rax + 0x27a]
mov edi, 8
xor r13d, r13d
mov byte [r8 + 1], cl
mov rax, qword [rbp + 0xc8]
mov ebx, edi
movzx ecx, byte [rax + 0x27b]
mov byte [r8 + 2], cl
mov rax, qword [rbp + 0xc8]
movzx ecx, byte [rax + 0x27c]
mov byte [r8 + 3], cl
mov rax, qword [rbp + 0xc8]
movzx ecx, byte [rax + 0x27d]
mov byte [r8 + 4], cl
mov rax, qword [rbp + 0xc8]
movzx ecx, byte [rax + 0x27e]
mov byte [r8 + 5], cl
mov rax, qword [rbp + 0xc8]
movzx ecx, byte [rax + 0x27f]
mov byte [r8 + 6], cl
mov rax, qword [rbp + 0xc8]
movzx ecx, byte [rax + 0x280]
mov byte [r8 + 7], cl
test r9, r9
je 0x1400f8d3b
sub r8, rdx
mov eax, edi
cmp rax, rsi
jae 0x1400f8d3b
mov rax, qword [rbp + 0xc8]
mov ecx, ebx
inc ebx
movzx ecx, byte [rcx + rax + 0x279]
xor cl, byte [rdx]
cmp ebx, 0x40
cmovae ebx, r13d
inc edi
mov byte [r8 + rdx + 8], cl
lea ecx, [rdi - 8]
inc rdx
cmp rcx, r9
jb 0x1400f8d06
mov eax, edi
cmp rax, rsi
jae 0x1400f8d8e
mov rdx, rsi
lea rcx, [rsp + 0x20]
sub rdx, rax
call qword [sym.imp.BstkRT.dll_RTRandBytes]
movsxd rdx, edi
lea r8, [rsp + 0x20]
add rdx, r12
nop
mov rax, qword [rbp + 0xc8]
mov ecx, ebx
inc ebx
movzx ecx, byte [rcx + rax + 0x279]
xor cl, byte [r8]
cmp ebx, 0x40
cmovae ebx, r13d
inc edi
mov byte [rdx], cl
mov eax, edi
inc rdx
inc r8
cmp rax, rsi
jb 0x1400f8d60
mov r13, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x90]
xor eax, eax
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14015fe00
add rsp, 0x78
pop r12
pop rbp
ret
Function at 0x1400f8dd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x20
mov r10, qword [rcx + 0xc8]
mov rsi, r9
mov r12, r8
cmp byte [r10 + 0x278], 0
mov rbp, rdx
mov r13, rcx
jne 0x1400f8e0f
mov eax, 0xffffffb1
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rsi
ret
cmp r9, 0x20
jae 0x1400f8e29
mov eax, 0xfffffffe
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov rdx, r8
mov edi, r14d
mov ebx, r14d
nop word [rax + rax]
mov eax, ebx
movzx ecx, byte [rax + r10 + 0x279]
cmp byte [rdx], cl
jne 0x1400f8ec0
inc edi
inc rdx
inc ebx
cmp edi, 8
jb 0x1400f8e50
mov r8, r9
mov edx, 0xff
mov rcx, rbp
call sub.MSVCR100.dll_memset
mov eax, edi
movsxd r11, edi
cmp rax, rsi
jae 0x1400f8ebc
lea rdx, [r11 + r12]
nop dword [rax]
mov rax, qword [r13 + 0xc8]
movzx ecx, byte [rbx + rax + 0x279]
inc ebx
xor cl, byte [rdx]
cmp ebx, 0x40
cmovae ebx, r14d
inc edi
mov byte [rbp], cl
mov eax, edi
inc rdx
inc rbp
cmp rax, rsi
jb 0x1400f8e90
xor eax, eax
jmp 0x1400f8ec5
mov eax, 0xfffffffd
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rsi
ret
Function at 0x1401563f0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x140156418
add rsp, 0x30
pop rdi
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [0x1401563e0]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
test rax, rax
setne al
add rsp, 0x30
pop rdi
ret
Function at 0x140157590
Capabilities:
Connect pipe

Disassembly:
sub rsp, 0x28
movzx eax, byte [rcx + 8]
test al, 1
je 0x1401575d6
test al, 2
je 0x1401575d6
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1401575cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1401575cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401575cf
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
xor eax, eax
add rsp, 0x28
ret
mov eax, 0xffffffea
add rsp, 0x28
ret

Function at 0x140157690
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test rdx, rdx
je 0x140157723
test r8, r8
je 0x140157723
test byte [rcx + 8], 1
jne 0x1401576b8
mov eax, 0xffffffea
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401576f2
mov eax, dword [rsp + 0x48]
cmp rax, rdi
je 0x140157716
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14015770c
or ebx, 0xffffffff
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, 0xfffffffe
add rsp, 0x30
pop rdi
ret

Function at 0x140157730
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test rdx, rdx
je 0x1401577c3
test r8, r8
je 0x1401577c3
test byte [rcx + 8], 1
jne 0x140157758
mov eax, 0xffffffea
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140157792
mov eax, dword [rsp + 0x48]
cmp rax, rdi
je 0x1401577b6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401577ac
or ebx, 0xffffffff
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, 0xfffffffe
add rsp, 0x30
pop rdi
ret

Function at 0x1401577d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x38
test byte [rcx + 8], 1
jne 0x1401577e9
mov eax, 0xffffffea
add rsp, 0x38
ret
mov rcx, qword [rcx + 0x18]
xor eax, eax
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea r8d, [rax + 8]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140157820
mov eax, dword [rsp + 0x50]
sub eax, 8
neg eax
sbb eax, eax
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140157832
or eax, 0xffffffff
add rsp, 0x38
ret
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
add rsp, 0x38
ret
Function at 0x140157870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
test byte [rcx + 8], 1
mov rsi, rdx
mov rbx, rcx
jne 0x140157896
mov eax, 0xffffffea
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rdi
mov rdi, qword [rdx + 0x10]
test rdi, rdi
jne 0x1401578bc
or rdx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp fcn.1401577d0
mov rdx, rdi
call fcn.1401577d0
test eax, eax
js 0x1401578df
mov rcx, rsi
call qword [sym.imp.BstkRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, rdi
mov rcx, rbx
mov rdx, rax
call fcn.140157690
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x140157990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
test byte [rcx + 8], 1
mov rbx, rdx
mov rdi, rcx
jne 0x1401579b6
mov eax, 0xffffffea
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x48], rsi
xor esi, esi
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea r8d, [rsi + 8]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140157a01
cmp dword [rsp + 0x40], 8
je 0x140157a17
or eax, 0xffffffff
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401579ee
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
test eax, eax
js 0x140157a79
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xffffffffffffffff
jne 0x140157a4f
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140157a3d
call qword [sym.imp.BstkRT.dll_RTStrFree]
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
inc rdx
mov rcx, rbx
call qword [sym.imp.BstkRT.dll_public:_void___cdecl_RTCString::reserve_unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, qword [rbx + 8]
mov rax, qword [rsp + 0x50]
mov byte [rax + rcx], sil
mov r8, qword [rsp + 0x50]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call fcn.140157730
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140157ad0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x50], edi
test byte [rbx + 8], 1
je 0x140157b78
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140157b29
cmp dword [rsp + 0x48], 4
je 0x140157b3f
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140157b1b
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
test eax, eax
js 0x140157b7d
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x140157b6b
cmp edx, 0x64
je 0x140157b54
lea eax, [rdx - 0x66]
cmp eax, 4
ja 0x140157b1b
mov rcx, rbx
call fcn.14015cfa0
test eax, eax
jns 0x140157ae3
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, 0xffffffea
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140157b90
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140157c95
test byte [rcx + 8], 1
je 0x140157bc8
mov eax, 0xffffffea
jmp 0x140157c9a
mov r8, rdx
lea rdx, str..pipe_s
lea rcx, [rsp + 0x48]
call fcn.140002240
nop
mov rcx, rax
call qword [sym.imp.BstkRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1401e6130
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.BstkRT.dll_public_virtual:_void___cdecl_RTCString::destructor_void____ptr64]
mov rcx, qword [0x140321df0]
mov rax, qword [rsp + 0x88]
test rax, rax
cmovne rcx, rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
lea r9d, [rax + 1]
xor r8d, r8d
mov edx, 0x80003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140157c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140157c64
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
or byte [rbx + 8], 3
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rcx, [rbx + 0x20]
mov rdx, rdi
call qword [sym.imp.BstkRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_char_const____ptr64____ptr64]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140157c91
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x140157c9a
mov eax, 0xfffffffe
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14015a3c0
Capabilities:
Get local ipv4 addresses
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x40]
mov rsi, rdx
mov rdi, rcx
test rax, rax
jne 0x14015a3e9
mov eax, 0x80004005
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14015a43d
mov ecx, 0x200010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x14015a4dc
mov dword [rsp + 0x20], ebx
lea r9, str.HostDnsServiceWin:_failed_to_open_key_TcpipParameters__error__d__n
mov rcx, rax
jmp 0x14015a4cc
xor ebx, ebx
nop
xor ecx, ecx
cmp rbx, 2
jne 0x14015a455
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
jmp 0x14015a465
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
test rax, rax
je 0x14015a4a5
mov rax, qword [rdi + 0x40]
inc rbx
mov qword [rax + rbx*8 + 8], r11
cmp rbx, 3
jb 0x14015a440
mov rdx, rsi
mov rcx, rdi
call fcn.140058fa0
test eax, eax
js 0x14015a4e1
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140159520
mov ecx, 0x200010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rbx, rax
test rax, rax
je 0x14015a4dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.HostDnsServiceWin:_failed_to_create_event__error__d__n
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov r8d, 0x20
lea edx, [r8 - 0x10]
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14015c070
Capabilities:
Get routing table

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdx, str.C:_virtualbox_srcVBoxMain_src_serverwinNetIf_win.cpp
mov ecx, 0x4b0
mov dword [rsp + 0x30], 0x4b0
or edi, 0xffffffff
call qword [sym.imp.BstkRT.dll_RTMemAllocTag]
lea rdx, [rsp + 0x30]
mov rcx, rax
xor r8d, r8d
mov rbx, rax
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x14015c0d1
mov rcx, rbx
call qword [sym.imp.BstkRT.dll_RTMemFree]
mov ecx, dword [rsp + 0x30]
lea rdx, str.C:_virtualbox_srcVBoxMain_src_serverwinNetIf_win.cpp
call qword [sym.imp.BstkRT.dll_RTMemAllocTag]
mov rbx, rax
test rax, rax
je 0x14015c112
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbx
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x14015c109
mov edx, dword [rbx]
test edx, edx
je 0x14015c109
lea rcx, [rbx + 4]
nop
cmp dword [rcx], 0
je 0x14015c101
inc eax
add rcx, 0x38
cmp eax, edx
jb 0x14015c0f0
jmp 0x14015c109
imul rax, rax, 0x38
mov edi, dword [rax + rbx + 0x14]
mov rcx, rbx
call qword [sym.imp.BstkRT.dll_RTMemFree]
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14015c3d0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub rsp, 0x178
mov rax, qword [0x1403fad18]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14015c4b5
cmp dword [rsp + 0x44], 6
jb 0x14015c4b5
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14015c493
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.EnableLUA
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [rsp + 0x30], 1
sete al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14015fe00
add rsp, 0x178
ret
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14015fe00
add rsp, 0x178
ret
Function at 0x1401605d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1403fad18]
jne 0x14015fe1a
rol rcx, 0x10
test cx, 0xffff
jne 0x14015fe16
repz ret
ror rcx, 0x10
jmp 0x140160530
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1403fce00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1403fcef8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401605b5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1403fce00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1401605d7
mov rax, qword [rsp + 0x88]
mov qword [0x1403fcef8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1403fce98], rax
mov rax, qword [0x1403fcef8]
mov qword [0x1403fcd70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1403fce80], rax
mov dword [0x1403fcd60], 0xc0000409
mov dword [0x1403fcd64], 1
mov rax, qword [0x1403fad18]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1403fad20]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1403fcdf8], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1402e8670]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1403fcdf8], 0
jne 0x14016065e
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret