joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007cc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e820
sub rsp, rax
lea r8, str._s
mov edx, 0x1000
lea r14, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r14
call fcn.140007c80
cmp eax, 0xfff
jg 0x140007e28
lea rsi, [rsp + 0x30]
lea ebx, [rax - 1]
mov r12d, 0x1000
mov rcx, r14
mov rdx, rsi
sub r12d, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140007e28
movsxd rax, ebx
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x5c]
lea rbp, [0x140012e5a]
lea rax, [r14 + rax*2]
lea r15, [0x140012e5e]
mov qword [rsp + 0x20], rax
movsxd rax, r12d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007dc0
mov rdx, r15
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007dc0
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
lea r8, [0x140012e64]
call fcn.140007c80
cmp eax, r12d
jge 0x140007dc0
mov eax, dword [rsp + 0x30]
mov rcx, r14
test al, 0x10
je 0x140007e08
test ah, 4
je 0x140007db9
cmp dword [rsp + 0x54], 0xa000000c
je 0x140007e20
call fcn.140007cc0
nop
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007d63
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007d63
jmp 0x140007dcc
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007dc0
mov eax, 0xffffffff
jmp 0x140007dee

Function at 0x1400080c0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000e820
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140008ea0
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008138
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008138
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140008da0
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x140008bf0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e820
sub rsp, rax
mov rbp, rcx
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140008c40
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x140008c58
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, r12d
mov edx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, rax
test rax, rax
je 0x140008c40
mov r9, rbx
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140008ca0
mov rcx, rdi
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea r14, [rsp + 0x2040]
lea rcx, [rbp + 0x2022]
mov r8d, 0x1000
mov rdx, r14
call fcn.140008ea0
test rax, rax
je 0x140008c82
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
je 0x140008c82
mov rbx, rdi
mov r15, rdi
lea rbp, [rsp + 0x40]
xor r13d, r13d
lea r12d, [rax*8]
add r12, rdi
nop dword [rax]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008d33
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140008d33
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rdi + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x140008cf8
test r13d, r13d
jle 0x140008c82
movsxd r13, r13d
lea r14, [rdi + r13*8]
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140008d65
add rbx, 8
cmp r14, rbx
je 0x140008c82
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008d58
xor r12d, r12d
jmp 0x140008d8e
cmp r12d, 0x20
je 0x140008d58
add r12d, 1
mov rcx, qword [rbx]
call r13
test eax, eax
jne 0x140008d88
jmp 0x140008d58
Function at 0x14000da60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000ee10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000dad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001d394]
mov rbx, rcx
test esi, esi
jle 0x14000dc00
mov rax, qword [0x14001d398]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000db1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000dba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000db00
mov rcx, rbx
call fcn.14000e540
mov rdi, rax
test rax, rax
je 0x14000dc22
mov rax, qword [0x14001d398]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e680
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001d398]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000dc07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000db9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000dbb0
add dword [0x14001d394], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001d398]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000db9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000da60
nop dword [rax]
xor esi, esi
jmp 0x14000db28
mov rax, qword [0x14001d398]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000da60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000da60
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000e1b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001d400]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001d3e0]
test rbx, rbx
je 0x14000e20c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000e203
test eax, eax
jne 0x14000e203
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e1e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000e540
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140016e60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e560
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e568
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e560
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e5bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000e5b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e560
add rax, 0x28
cmp rax, r9
jne 0x14000e5a0
xor eax, eax
ret

Function at 0x14000e5c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140016e60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000e5df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e5e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e5df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000e680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140016e60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e69f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000e6a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor r11d, r11d
mov word [rsp + 0x10], r8w
mov r9, rcx
movsxd r10, edx
movzx r8d, r11w
test edx, edx
jle 0x1400045cb
mov edx, 1
nop dword [rax]
cmp dx, r8w
jne 0x1400045a9
mov r8d, r11d
movzx ecx, byte [r9]
movzx eax, r8w
inc r9
movzx eax, byte [rsp + rax*2 + 0x10]
add cl, 0x20
inc r8w
xor al, cl
dec r10
mov byte [r9 - 1], al
jne 0x1400045a0
repz ret
Function at 0x140009243
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1407441d0]
jne 0x1400062aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400062a6
repz ret
ror rcx, 0x10
jmp 0x14000919c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1407478b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1407479a8]
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 0x140009221
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, [0x1407478b0]
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 0x140009243
mov rax, qword [rsp + 0x88]
mov qword [0x1407479a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140747948], rax
mov rax, qword [0x1407479a8]
mov qword [0x140747820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140747930], rax
mov dword [0x140747810], 0xc0000409
mov dword [0x140747814], 1
mov rax, qword [0x1407441d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1407441d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1407478a8], eax
mov ecx, 1
call fcn.14000d9e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400126f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1407478a8], 0
jne 0x1400092ca
mov ecx, 1
call fcn.14000d9e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14000bca8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000bb18
Function at 0x14000ffe0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1407441d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000b56c
xor ebx, ebx
cmp qword [0x1407487e8], rbx
mov rdi, rax
jne 0x1400100f3
lea rcx, [0x140014000]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400101ca
lea rdx, [0x140013ff0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400101ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140013fe0]
mov rcx, rsi
mov qword [0x1407487e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140013fc8]
mov rcx, rsi
mov qword [0x1407487f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1407487f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140748808], rax
test rax, rax
je 0x1400100ea
lea rdx, [0x140013f90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140748800], rax
jmp 0x1400100fa
mov rax, qword [0x140748800]
jmp 0x140010101
mov rax, qword [0x140748800]
mov r11, qword [0x140748808]
cmp rax, rdi
je 0x140010168
cmp r11, rdi
je 0x140010168
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140748808]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140010168
test rax, rax
je 0x140010168
call rsi
test rax, rax
je 0x140010162
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140010162
test byte [rsp + 0x40], 1
jne 0x140010168
bts ebp, 0x15
jmp 0x1400101a8
mov rcx, qword [0x1407487f0]
cmp rcx, rdi
je 0x1400101a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400101a8
call rax
mov rbx, rax
test rax, rax
je 0x1400101a8
mov rcx, qword [0x1407487f8]
cmp rcx, rdi
je 0x1400101a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400101a8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1407487e8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400101ca
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400101cc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006290
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003b00
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, rdx
mov rdi, rcx
call fcn.14009f5c0
xor r14d, r14d
test eax, eax
je 0x140003b43
cmp qword [rdi - 0x10], r14
jbe 0x140003b3b
lea rbx, [rdi + 0x18]
add rbx, qword [rdi - 0x18]
jmp 0x140003b3e
mov rbx, r14
mov rbx, qword [rbx]
jmp 0x140003b46
mov rbx, r14
test rdi, rdi
jne 0x140003b50
mov rax, r14
jmp 0x140003b5d
mov edx, 0xfffc
mov rcx, rdi
call fcn.1401e2fdc
test rbx, rbx
je 0x140003bf1
cmp dword [rbx + 0x50], r14d
je 0x140003bf1
lea r8, [0x140266d34]
mov rdx, rax
mov rcx, rdi
call fcn.1400a8018
lea rsi, [0x1403103a0]
mov ecx, 0x8000
mov rdx, rsi
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x38], r14
mov r8, rsi
mov qword [rsp + 0x30], r14
mov r9d, eax
lea r14, [0x14030e3a0]
mov dword [rsp + 0x28], 0x1000
xor edx, edx
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, ebx
lea r8, [0x140266d38]
add rax, rdi
mov ebx, 0x10000
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r9, r14
mov rcx, rsi
call fcn.140001138
jmp 0x140003c11
mov ebx, 0x10000
lea rsi, [0x1403103a0]
mov edx, ebx
lea r8, [0x1402663dc]
mov rcx, rsi
mov r9, rdi
call fcn.140001138
mov rdx, rbx
mov rcx, rsi
call fcn.1401e2fdc
cmp byte [rbp], 0x2e
mov rdx, rax
mov rcx, rsi
jne 0x140003c36
lea r8, [0x140266d40]
call fcn.1400a8018
jmp 0x140003c44
lea r8, [0x140266d34]
call fcn.1400a8018
inc eax
movsxd rcx, eax
lea r8, [0x1402663dc]
sub rbx, rcx
mov r9, rbp
mov rdx, rbx
add rcx, rsi
call fcn.140001138
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140008ed8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x38], 0
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x140008eff
and qword [rdx], 0
mov r8, qword [rcx + 0x38]
lea r12, [0x14030c3a0]
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x1402670cc]
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.1401e07f0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400090ce
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.1401e115c
mov r9, qword [rbp + 0x38]
lea rcx, [0x14030f3a0]
mov r8d, reloc.WS2_32.dll_recv
lea r15d, [r8 - 0xf]
mov edx, r15d
call fcn.1401e35a8
mov rax, qword [0x14030f3a0]
cmp rax, qword [0x140302a50]
jne 0x1400090c5
mov rax, qword [0x14030f3a8]
cmp rax, qword [0x140302a58]
jne 0x1400090c5
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 0x15]
mov r8d, r15d
call fcn.1401e115c
mov r9, qword [rbp + 0x38]
lea r8d, [r15 + 3]
mov edx, r15d
lea rcx, [rbp + 0x30]
call fcn.1401e35a8
cmp rax, 4
jne 0x1400090c5
mov ecx, dword [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 5]
sub edx, eax
mov dword [rbp + 0x30], eax
mov r8d, r15d
call fcn.1401e115c
movsxd rdx, dword [rbp + 0x30]
mov eax, 0xffffffff
mov rcx, rdx
cmp rdx, rax
jae 0x140009015
cmp rax, rdx
je 0x140009015
mov eax, 0xffffffe7
cmp rdx, rax
jae 0x140009015
add rcx, 0x18
call fcn.1401e3670
mov edx, dword [rbp + 0x30]
jmp 0x140009017
xor eax, eax
movsxd rdx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call fcn.14009f390
mov rdi, rax
test rbx, rbx
je 0x140009033
mov qword [rbx], rax
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov r9, qword [rbp + 0x38]
mov rcx, rdi
call fcn.1401e35a8
movsxd rcx, dword [rbp + 0x30]
cmp rax, rcx
jne 0x1400090c5
test rbx, rbx
jne 0x1400090c5
mov rcx, qword [rsi + 0x38]
lea rdx, str..msh
and qword [rbp + 0x40], rbx
call fcn.140003b00
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x1000
mov r8, rax
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140268ec0]
mov rdx, r12
lea rcx, [rbp + 0x40]
call fcn.1401e07f0
mov r9, qword [rbp + 0x40]
test r9, r9
je 0x1400090bd
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov rcx, rdi
call fcn.1401e1f94
mov rcx, qword [rbp + 0x40]
call fcn.1401e0da0
mov rcx, rdi
call fcn.14009f478
mov rcx, qword [rbp + 0x38]
call fcn.1401e0da0
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009284
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140301ed0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor r9d, r9d
mov ecx, 0xe00
xor r8d, r8d
xor edx, edx
call fcn.14009f674
xor edx, edx
lea rcx, str.Shcore.dll
mov r8d, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x140009303
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x140009303
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x78], 0
mov ecx, 0x18
mov dword [rbx + 0xb9c], 4
call fcn.14009ffc8
mov rcx, rax
mov qword [rbx], rax
call fcn.1400a9800
or edi, 0x118
mov qword [rbx + 0x30], rax
xor edx, edx
mov dword [rbx + 0x298], edi
mov r8d, 0x800
lea rcx, str.Ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x14000936f
lea rdx, str.GetHostNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400093b6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
lea rcx, [rbx + 0x29c]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
test rdi, rdi
je 0x14000938f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx edx, byte [rsp + 0x41]
mov ecx, edx
sub ecx, 0x80
je 0x140009407
cmp ecx, 0x7f
je 0x1400093fe
mov dword [rbx + 0xbac], edx
jmp 0x140009411
mov edx, 0x104
lea rcx, [rsp + 0x50]
call rax
test eax, eax
jne 0x140009381
and qword [rsp + 0x38], 0
lea rax, [rbx + 0x29c]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 0xff
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140009381
and dword [rbx + 0xbac], 0
jmp 0x140009411
mov dword [rbx + 0xbac], 3
mov rax, qword [rbx]
mov edx, reloc.WS2_32.dll_recv
test rax, rax
lea rcx, [rax + 0x9c8]
mov rax, rbx
cmove rcx, rdx
mov qword [rcx], rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401d9840
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14000fd50
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, r9
cmp qword [0x14030b068], rbx
mov edi, edx
mov rsi, rcx
je 0x14000fe0f
cmp edx, 2
jl 0x14000fdbf
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x14000fdbf
mov qword [rsp + 0x28], rbx
lea r8, [0x14000ebb8]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000fdbf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14030b068]
mov r8d, edi
mov rdx, rsi
call fcn.1400ab544
mov rax, qword [0x14030adc8]
test rax, rax
je 0x14000fde1
mov rbx, qword [rax + 8]
movzx ecx, word [rsi]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea r9, str.KVM__Master_:_Write_Input__Type___u_
mov edx, 0x100
mov dword [rsp + 0x20], eax
mov r8d, 4
mov rcx, rbx
call fcn.1400aba58
mov eax, edi
jmp 0x14000fe34
mov ebp, ebx
jmp 0x14000fe22
add ebp, eax
mov edx, edi
sub edx, ebp
movsxd rcx, ebp
add rcx, rsi
mov r9, r14
lea r8, [0x140001b1c]
call fcn.14000f418
test eax, eax
jne 0x14000fe13
mov eax, ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret