joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007d50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140007d71
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140007d9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007da0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007df9
test ecx, ecx
jle 0x140007dd9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007df9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007df9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
retf
sub al, 0x81
jge 0x14002b2b0
shl dword [rbx - 0x7e], 0x5b
sub dword [rax + rbx*2 - 0x75], edx
fadd qword [rdx + 0x3efaa276]
ficomp word [rbx + 0x71bfeb5c]
jno 0x14002b301
invalid
sub r12, qword [rbx]
sub edx, dword [rcx + 0x13]
lodsd eax, dword [rsi]
insb byte [rdi], dx
pushfq
xchg edx, eax
fdiv qword [rdx]
std
xchg ebp, eax
invalid
jno 0x14002b301
invalid
Function at 0x140007e20
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 0x140007e42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140007e51
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 0x140007e74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007e76
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007eb2
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 0x140007f4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007eed
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 0x140007f2e
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 0x140007f4e
cmp rbx, rax
ja 0x140007f00
test rbx, rbx
je 0x140007f4e
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
movabs al, byte [0xf5f101c54ab00cbb]
out 0xb1, eax
or edx, edi
and dword [rcx + 0x1c], 0xc9c90e8c
cmpsd dword [rsi], dword [rdi]
cmp esp, eax
rcr dword [rbx + rbx - 0x58], cl
cld
test dword [edx - 0x29ca86ca], 0xe0574c46
add eax, 0xc46fd454
xor eax, 0x574c46d6
push rdi
loopne 0x14002b2b1
push rsp
invalid
mov bh, 0x8d
out 0x6a, al
mov bh, cl
xchg edi, eax
mov ebx, edi
xor esi, dword [rbp + 0x50]
or edx, 0xffffffbd
push 0x68416a5b
jge 0x14002b2a8
invalid
div ebp
xchg ebx, eax
fnsave dword [rsi]
cmpsb byte [rsi], byte [rdi]
mov edx, 0xc9b9c882
xor al, 0x23
pop rsi
xchg ebx, eax
int1
jns 0x14002b2a5
xor ecx, ecx
cdq
jo 0x14002b282
in eax, dx
jb 0x14002b32d
jo 0x14002b28c
invalid
adc dword [rbp + rdx - 0x3865deee], edx
mov ch, 0x8d
invalid
Function at 0x140008380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400083ad
xor eax, eax
jmp 0x14000850a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400083d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400083d8
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 0x14000850a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400084fd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000841b
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 0x140008446
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 0x140008502
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 0x1400084b5
sub eax, 1
je 0x1400084b5
cmp eax, 2
jne 0x1400084fd
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 0x140008502
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400084e3
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 0x1400084fd
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140008502
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000d5b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140008b20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008bf5
cmp byte [rcx + 0x72], 0
je 0x140008bf5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140008bf1
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008bb6
sub eax, 1
je 0x140008bba
cmp eax, 2
jne 0x140008bf1
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d5b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008be8
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 0x140008bf1
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140008b9e
xor al, al
jmp 0x140008b9e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d5b0
add rsp, 0x60
pop rbx
ret

Function at 0x140008de0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008eb3
cmp byte [rcx + 0x71], 0
je 0x140008eb3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140008eaf
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 0x140008e74
sub eax, 1
je 0x140008e78
cmp eax, 2
jne 0x140008eaf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d5b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008ea6
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 0x140008eaf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140008e5c
xor al, al
jmp 0x140008e5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d5b0
add rsp, 0x60
pop rbx
ret
Function at 0x14000ce28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000ceac
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400107e0]
cmp byte [rcx + rax], 0
je 0x14000ceac
dec r8
sub rdx, 1
jne 0x14000ce92
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x2fc4c7860
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c8262
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ec108]
test eax, eax
je 0x2fc4c82fa
lea rax, [0x2fc4ec0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ec110]
mov qword [rbp - 8], rax
jmp 0x2fc4c82de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c82d2
cmp qword [rbp - 0x10], 0
je 0x2fc4c82d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c8298
lea rax, [0x2fc4ec0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c82fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c8400
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c8428
mov eax, 0
jmp 0x2fc4c8476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c8451
mov eax, 0
jmp 0x2fc4c8476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c8471
mov eax, 0
jmp 0x2fc4c8476
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c847c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c84fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c84f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c84f1
mov rax, qword [rbp - 8]
jmp 0x2fc4c850f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c84c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005cc8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x1402ccee0]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rdx, qword [rcx + 0x38]
lea r8, [0x1402311c0]
and qword [rbp + 8], 0
mov rbx, rcx
lea rcx, [rbp + 8]
call fcn.1401acfe0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140005e65
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.1401a8f2c
mov r9, qword [rbp + 8]
lea rcx, [0x1402cffc0]
mov esi, 1
mov edx, esi
lea r8d, [rsi + 0xf]
call fcn.1401ae3cc
mov rax, qword [0x1402cffc0]
cmp rax, qword [0x1402cda60]
jne 0x140005e5c
mov rax, qword [0x1402cffc8]
cmp rax, qword [0x1402cda68]
jne 0x140005e5c
mov rcx, qword [rbp + 8]
lea edx, [rsi - 0x15]
mov r8d, esi
call fcn.1401a8f2c
mov r9, qword [rbp + 8]
lea r8d, [rsi + 3]
mov edx, esi
lea rcx, [rbp]
call fcn.1401ae3cc
cmp rax, 4
jne 0x140005e5c
mov ecx, dword [rbp]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 8]
lea edx, [rsi - 5]
sub edx, eax
mov dword [rbp], eax
mov r8d, esi
call fcn.1401a8f2c
movsxd rdx, dword [rbp]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140005dcb
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401a62f0
sub rsp, rcx
mov r9d, esi
mov r8d, 8
lea rcx, [rsp + 0x20]
call fcn.140079034
mov rdx, rsi
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rax], rcx
mov rcx, rax
movsxd r8, dword [rbp]
mov r9, qword [rbp + 8]
call fcn.1401ae3cc
movsxd rcx, dword [rbp]
cmp rax, rcx
jne 0x140005e5c
mov rcx, qword [rbx + 0x38]
lea rdx, str..msh
and qword [rbp + 0x10], 0
call fcn.140002bf4
mov rdx, rax
lea r8, [0x140231b68]
lea rcx, [rbp + 0x10]
call fcn.1401acfe0
mov r9, qword [rbp + 0x10]
test r9, r9
je 0x140005e5c
movsxd r8, dword [rbp]
mov rdx, rsi
mov rcx, rdi
call fcn.1401acc60
mov rcx, qword [rbp + 0x10]
call fcn.1401a8b70
mov rcx, qword [rbp + 8]
call fcn.1401a8b70
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1401a5d00
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140006018
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor r9d, r9d
mov ecx, 0x788
xor r8d, r8d
xor edx, edx
call fcn.1400791e8
xor edx, edx
lea rcx, str.Shcore.dll
mov r8d, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x60], rax
test rax, rax
je 0x140006094
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x140006094
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x60], 0
mov ecx, 0x18
mov dword [rbx + 0x580], 4
call fcn.14007957c
mov rcx, rax
mov qword [rbx], rax
call fcn.14007fdc8
or edi, 0x18
mov qword [rbx + 0x30], rax
xor edx, edx
mov dword [rbx + 0x7c], edi
mov r8d, 0x800
lea rcx, str.Ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x1400060fa
lea rdx, str.GetHostNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140006141
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
lea rcx, [rbx + 0x80]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
test rdi, rdi
je 0x14000611a
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 0x140006192
cmp ecx, 0x7f
je 0x140006189
mov dword [rbx + 0x590], edx
jmp 0x14000619c
mov edx, 0x104
lea rcx, [rsp + 0x50]
call rax
test eax, eax
jne 0x14000610c
and qword [rsp + 0x38], 0
lea rax, [rbx + 0x80]
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 0x14000610c
and dword [rbx + 0x590], 0
jmp 0x14000619c
mov dword [rbx + 0x590], 3
mov rax, qword [rbx]
mov edx, reloc.WS2_32.dll_recv
test rax, rax
lea rcx, [rax + 0x574]
mov rax, rbx
cmove rcx, rdx
mov qword [rcx], rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401a5d00
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140008300
Capabilities:
Capture screenshot
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rdx, [rbp - 0x29]
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetIconInfo]
mov rcx, qword [rbp - 0x19]
lea r8, [rbp - 0x49]
lea edx, [rbx + 0x20]
call qword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x20
jne 0x1400084c4
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
mov eax, dword [rbp - 0x41]
cmp qword [rbp - 0x11], rbx
jne 0x14000837a
cdq
sub eax, edx
sar eax, 1
mov edx, dword [rbp - 0x45]
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, rsi
mov r15, rax
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
lea rcx, [rbp - 9]
mov r12, rax
lea r8d, [rdx + 0x2c]
call fcn.1401a72b0
mov eax, dword [rbp - 0x41]
mov dword [rbp - 9], 0x28
mov dword [rbp + 7], ebx
cmp qword [rbp - 0x11], rbx
jne 0x1400083c2
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], 3
mov r9, r14
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor edx, edx
mov dword [rsp + 0x28], eax
mov rcx, rsi
mov eax, dword [rbp - 0x45]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_DrawIconEx]
lea rax, [rbp - 9]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetDIBits]
mov ecx, dword [rbp + 0xb]
call fcn.1401ae494
mov r14, rax
test rax, rax
je 0x1400084ee
mov eax, dword [rbp - 0x41]
mov dword [rbp + 7], ebx
cmp qword [rbp - 0x11], rbx
jne 0x140008438
cdq
sub eax, edx
sar eax, 1
lea rcx, [rbp - 9]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rcx
mov r9d, eax
mov rcx, rdi
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.GDI32.dll_GetDIBits]
movsxd rax, dword [rbp + 0xb]
mov rdx, r14
sar rax, 2
mov r8, rbx
lea r9, [rax*4 + 3]
shr r9, 2
lea rcx, [r14 + rax*4]
cmp r14, rcx
cmova r9, rbx
test r9, r9
je 0x14000849a
imul ebx, ebx, 0x1000193
inc r8
xor ebx, dword [rdx]
lea rdx, [rdx + 4]
cmp r8, r9
jb 0x140008486
mov rcx, r14
call fcn.1401ad038
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401a5d00
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...meshcoreKVMWindowsinput.c
mov ebx, 0x56
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.14007f3d4
mov r8d, ebx
lea rdx, str...meshcoreKVMWindowsinput.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.1401a83f8
int3
Function at 0x1400086d0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov ebx, edx
mov dil, cl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14000875e
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, 1
movzx eax, dil
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], esi
cmp ebx, esi
jne 0x140008718
mov dword [rsp + 0x2c], 2
jmp 0x14000872f
cmp ebx, 3
jne 0x140008723
mov dword [rsp + 0x2c], ebx
jmp 0x14000872f
xor eax, eax
cmp ebx, 4
cmove eax, esi
mov dword [rsp + 0x2c], eax
and dword [rsp + 0x30], 0
xor edx, edx
movzx ecx, dil
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov word [rsp + 0x2a], ax
mov ecx, esi
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140009974
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x1402cfd00], 0
mov rbp, r9
mov ebx, edx
mov rdi, rcx
je 0x1400099f1
cmp edx, 2
jl 0x1400099db
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x1400099db
and qword [rsp + 0x28], 0
lea r8, [0x140008af8]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400099db
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402cfd00]
mov r8d, ebx
mov rdx, rdi
call fcn.140081728
mov eax, ebx
jmp 0x140009a16
xor esi, esi
jmp 0x140009a04
add esi, eax
mov edx, ebx
sub edx, esi
movsxd rcx, esi
add rcx, rdi
mov r9, rbp
lea r8, [0x1400017b0]
call fcn.140009234
test eax, eax
jne 0x1400099f5
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret