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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140014aa1
xor eax, eax
jmp 0x140014beb
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140014ade
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x140014ade
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x140014beb
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140014be0
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140014b25
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140014b33
movzx ecx, di
jmp 0x140014b87
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
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_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140014ba0
sub eax, 1
je 0x140014ba0
cmp eax, 2
jne 0x140014be0
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140014be3
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140014bce
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140014be0
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014f10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140014fe5
cmp byte [rcx + 0x72], 0
je 0x140014fe5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140014fe1
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 0x140014fa6
sub eax, 1
je 0x140014faa
cmp eax, 2
jne 0x140014fe1
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140014fd8
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 0x140014fe1
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140014f8e
xor al, al
jmp 0x140014f8e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x60
pop rbx
ret
Function at 0x1400164c0
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r9, rcx
lea r8, str.Remapping_image_at_0x_IX_n
xor edx, edx
mov rdi, rcx
call fcn.140016eb0
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rbx, rax
test rax, rax
jne 0x140016510
mov r9, rdi
lea r8, str.RtlImageNtHeader_failed.__BaseAddress__0x_IX__n
mov edx, 2
call fcn.140016eb0
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
mov qword [rsp + 0x30], rsi
call fcn.140016620
mov esi, eax
test eax, eax
jne 0x140016546
lea r8, str.RmppVerifyPeSectionAlignment_failed._n
mov edx, 2
call fcn.1400122f0
mov eax, esi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, dword [rbx + 0x50]
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140016591
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.VirtualAlloc_failed:__u_n
mov edx, 2
mov r9d, eax
call fcn.140012580
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rsi
mov rcx, rbx
call fcn.140016920
lea rax, [0x1400169a0]
mov rcx, rsi
sub rax, rdi
add rax, rsi
call rax
mov ebx, eax
test eax, eax
jne 0x1400165bd
lea r8, str.RmppRemapImageRoutine_failed._n
jmp 0x1400165d2
mov rcx, rdi
call fcn.140016cf0
mov ebx, eax
test eax, eax
jne 0x1400165dc
lea r8, str.RmppValidateRemappedImageProtection_failed._n
mov edx, 2
call fcn.1400122f0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x14001660b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.VirtualFree_failed:__u_n
mov edx, 2
mov r9d, eax
call fcn.140012580
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140016c30
Capabilities:
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x48], eax
lea rax, [r11 - 0x20]
mov dword [rsp + 0x40], 0x400000
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x48], rax
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rdx
mov rdx, 0xffffffffffffffff
mov qword [r11 - 0x20], r8
lea r8, [r11 - 0x28]
mov qword [r11 - 0x18], r9
xor r9d, r9d
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x58], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov r9d, eax
test eax, eax
jns 0x140016cd7
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140017630
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x78
ret
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x78
ret

Function at 0x140016cf0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea r8, str.Validating_remapped_image_protection._n
xor edx, edx
mov rdi, rcx
call fcn.1400122f0
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
jne 0x140016d3c
mov r9, rdi
lea r8, str.RtlImageNtHeader_failed.__BaseAddress__0x_IX__n
mov edx, 2
call fcn.140016eb0
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
xor ebx, ebx
movzx ebp, word [rax + 0x14]
add rbp, rax
mov qword [rsp + 0x38], rsi
nop
movzx eax, bx
lea rcx, [rax + rax*4]
mov ecx, dword [rbp + rcx*8 + 0x24]
add rcx, rdi
call fcn.140016dc0
mov esi, eax
test eax, eax
je 0x140016d95
inc bx
cmp bx, 6
jb 0x140016d50
mov rcx, rdi
call fcn.140016dc0
mov ebx, eax
test eax, eax
jne 0x140016da8
lea r8, str.RmppValidateRemappedPeSectionProtection_failed._n
mov edx, 2
call fcn.1400122f0
mov eax, ebx
jmp 0x140016da8
lea r8, str.RmppValidateRemappedPeSectionProtection_failed._n
mov edx, 2
call fcn.1400122f0
mov eax, esi
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140016dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0
mov r8d, 0x30
lea rdx, [rsp + 0x38]
movups xmmword [rsp + 0x38], xmm0
mov rbx, rcx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140016e3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.VirtualQuery_failed:__u__BaseAddress__0x_IX__n
mov qword [rsp + 0x20], rbx
mov r9d, eax
mov edx, 2
call fcn.1400178c0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x70
pop rbx
ret
mov rdx, qword [rsp + 0x50]
lea r9, [rsp + 0x30]
mov eax, 0x40
mov r8d, 1
cmp dword [rsp + 0x5c], eax
mov rcx, rbx
cmovne r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140016e8b
mov ecx, dword [rsp + 0x30]
mov r9, rbx
mov dword [rsp + 0x20], ecx
call fcn.140017b50
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x70
pop rbx
ret
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x70
pop rbx
ret

Function at 0x1400193a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x40]
mov edx, 0x38
cmp eax, edx
mov r8d, 0x40
mov rbx, rcx
cmovb r8d, edx
mov byte [rax + rcx], 0x80
lea rcx, [rax + 1]
cmp rcx, r8
jae 0x1400193d7
sub r8, rcx
xor edx, edx
add rcx, rbx
call sub.VCRUNTIME140.dll_memset
cmp dword [rbx + 0x40], 0x38
jb 0x1400193f9
mov rcx, rbx
call fcn.140019170
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbx], xmm2
movups xmmword [rbx + 0x10], xmm2
movups xmmword [rbx + 0x20], xmm2
mov qword [rbx + 0x30], rax
mov eax, dword [rbx + 0x44]
mov ecx, dword [rbx + 0x40]
mov dword [rbx + 0x38], 0
lea edx, [rax + rcx*8]
mov rcx, rbx
mov eax, edx
mov dword [rbx + 0x44], edx
shr eax, 8
mov byte [rbx + 0x3e], al
mov eax, edx
mov byte [rbx + 0x3f], dl
shr eax, 0x10
shr edx, 0x18
mov byte [rbx + 0x3d], al
mov byte [rbx + 0x3c], dl
add rsp, 0x20
pop rbx
jmp fcn.140019170
Function at 0x140019780
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140019833
mov ecx, 0x18
call fcn.14001f070
xor ecx, ecx
lea r8, [0x1400198b0]
mov r9, rbx
xor edx, edx
mov dword [rax + 0x12], ecx
mov word [rax + 0x16], cx
mov qword [rax + 8], rcx
mov word [rax + 0x10], cx
mov qword [rbx + 0x18], rax
mov qword [rax], 0xffffffffffffffff
mov rax, qword [rbx + 0x18]
mov byte [rax + 0x10], cl
mov rax, qword [rbx + 0x18]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x18]
lea r8, str.Created_monitoring_thread_with_ID__d
xor edx, edx
mov qword [rcx], rax
mov r9, qword [rbx + 0x18]
mov r9d, dword [r9 + 8]
call fcn.140012580
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14001981d
test rcx, rcx
je 0x14001981d
mov byte [rax + 0x11], 1
add rsp, 0x30
pop rbx
ret
lea r8, str._Failed_to_create_monitor_thread____Detections::StartMonitor
mov edx, 2
add rsp, 0x30
pop rbx
jmp fcn.1400122f0
add rsp, 0x30
pop rbx
ret

Function at 0x14001aeb0
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [0x140031574]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 4
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbx, rax
test rax, rax
jne 0x14001af0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_create_shared_memory._Error_code:__lu_n
mov edx, 2
mov r9d, eax
call fcn.140012580
xor al, al
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x20], 4
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
jne 0x14001af59
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_map_view_of_file._Error_code_:___lu_n
mov edx, 2
mov r9d, eax
call fcn.140012580
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x30
pop rbx
ret
cmp dword [rax], 0x539
jne 0x14001af7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x30
pop rbx
ret
mov dword [rax], 0x539
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14001af90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x1400309b8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14001afd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_fetch_ntdll_module___StopAPCInjection._Error_code_:___lu_n
mov edx, 2
call fcn.140012580
jmp 0x14001b085
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x14001b002
lea r8, str.Failed_to_fetch_ntdll.Ordinal8_address___StopAPCInjection
mov edx, 2
call fcn.1400122f0
jmp 0x14001b085
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov edx, 1
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001b03f
mov r9, rbx
lea r8, str.Failed_to_call_VirtualProtect_on_Oridinal8_address___StopAPCInjection:__llX
mov edx, 1
call fcn.140016eb0
xor al, al
jmp 0x14001b087
mov byte [rbx], 0xc3
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x30
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001f050
add rsp, 0x30
pop rbx
ret
Function at 0x14001c350
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x140]
mov edx, 0x104
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x14001c3c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_retrieve_Windows_directory_path___Services::GetWindowsPath:__d_n
mov edx, 2
mov r9d, eax
call fcn.140012580
xorps xmm0, xmm0
lea rdx, [0x1400324e8]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
jmp 0x14001c43e
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
jne 0x14001c415
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_retrieve_volume_path_name___Services::GetWindowsPath:__d_n
mov edx, 2
mov r9d, eax
call fcn.140012580
xorps xmm0, xmm0
lea rdx, [0x1400324e8]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
jmp 0x14001c43e
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop
inc r8
cmp byte [rax + r8], dil
jne 0x14001c430
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140012910
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001f050
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x14001dac0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov r10, qword [rdx]
mov rbx, rdx
mov r11, rcx
test r10, r10
je 0x14001db3f
cmp qword [rcx + 8], 0xffffffffffffffff
jne 0x14001dae6
mov eax, 0xd
add rsp, 0x20
pop rbx
ret
mov r8d, dword [rdx + 8]
mov rdx, r10
mov qword [rsp + 0x30], rdi
call fcn.14001db70
mov rcx, qword [r11 + 8]
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rdx, r10
call qword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
mov edi, 8
cmp eax, dword [rbx + 8]
cmove edi, ecx
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001db25
call fcn.14001f0ac
mov edx, send
mov rcx, rbx
call fcn.14001f0ac
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov eax, send
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, edx
call fcn.14001dbb0
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14001dac0

Function at 0x14001db50
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov r10, qword [rdx]
mov rbx, rdx
mov r11, rcx
test r10, r10
je 0x14001db3f
cmp qword [rcx + 8], 0xffffffffffffffff
jne 0x14001dae6
mov eax, 0xd
add rsp, 0x20
pop rbx
ret
mov r8d, dword [rdx + 8]
mov rdx, r10
mov qword [rsp + 0x30], rdi
call fcn.14001db70
mov rcx, qword [r11 + 8]
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rdx, r10
call qword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
mov edi, 8
cmp eax, dword [rbx + 8]
cmove edi, ecx
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001db25
call fcn.14001f0ac
mov edx, send
mov rcx, rbx
call fcn.14001f0ac
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov eax, send
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, edx
call fcn.14001dbb0
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14001dac0

Function at 0x14001db70
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
jle 0x14001dba8
nop dword [rax + rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
xor cl, 0x90
lea eax, [rcx + 0x70]
sub cl, 0x70
test r9b, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [rdx - 1], cl
cmp r9d, r8d
jl 0x14001db80
ret
Function at 0x14001e040
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rbx, rcx
xor ebp, ebp
mov r14, rdx
mov edi, ebp
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
nop dword [rax]
mov rax, qword [rbx + 0x18]
cmp edi, 0x100
jge 0x14001e0f1
mov rdx, rbx
cmp rax, 7
jbe 0x14001e088
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x14001e09e
mov rsi, qword [rsi]
inc edi
jmp 0x14001e070
cmp qword [r14 + 0x18], 7
mov r8, r14
jbe 0x14001e0ab
mov r8, qword [r14]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rsi + 0x40]
inc rdx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx eax, word [r14 + 0x10]
mov rcx, rbx
add ax, ax
inc ax
mov word [rsi + 0x38], ax
movzx eax, word [r14 + 0x10]
add ax, ax
inc ax
mov word [rsi + 0x3a], ax
call fcn.140011700
mov rcx, r14
call fcn.140011700
mov al, 1
jmp 0x14001e184
cmp rax, 7
jbe 0x14001e128
mov rcx, qword [rbx]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x14001e123
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001e197
mov rcx, r8
call fcn.14001f0ac
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rdx, qword [r14 + 0x18]
cmp rdx, 7
jbe 0x14001e172
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001e16d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001e197
mov rcx, r8
call fcn.14001f0ac
mov qword [r14 + 0x10], rbp
xor al, al
mov qword [r14 + 0x18], 7
mov word [r14], bp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001e1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x14001e1d0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001e2cb
mov esi, dword [rax + 0x3c]
add rsi, rax
xor edi, edi
mov dword [rsp + 0x28], edi
lea r9, [rsp + 0x28]
mov edx, 4
mov r8d, 0x40
lea rcx, [rsi + 6]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001e25d
lea r8, str._VirtualProtect_failed___Process::ChangeNumberOfSections
mov edx, 2
call fcn.1400122f0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001e255
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14001e250
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001e343
mov rcx, r8
call fcn.14001f0ac
mov byte [rbx], 0
jmp 0x14001e318
mov dword [rsi + 6], 1
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov edx, 4
lea rcx, [rsi + 6]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001e28a
lea r8, str._VirtualProtect__2nd_call__failed___Process::ChangeNumberOfSections
jmp 0x14001e210
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001e2c4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001e2bf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001e343
mov rcx, r8
call fcn.14001f0ac
mov byte [rbx], 0
mov al, 1
jmp 0x14001e31a
lea r8, str._PIMAGE_DOS_HEADER_or_hInst_was_NULL___Process::ChangeNumberOfSections
mov edx, 2
call fcn.1400122f0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001e313
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001e30e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001e343
mov rcx, r8
call fcn.14001f0ac
xor edi, edi
mov byte [rbx], dil
xor al, al
mov qword [rbx + 0x18], send
mov qword [rbx + 0x10], rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14001f050
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001e350
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x14001e3e3
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001e3e3
cmp dword [rsp + 0x38], edi
je 0x14001e3df
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001e3c5
jmp 0x14001e3e3
mov esi, dword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x14001e3f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001f050
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001e420
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x238
xor ebp, ebp
mov ecx, 2
xor edx, edx
mov edi, ebp
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x14001e4de
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14001e4de
nop
cmp qword [rbx + 0x18], 7
mov r8, rbx
jbe 0x14001e49d
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14001e4c4
add rax, 2
test ecx, ecx
jne 0x14001e4b0
test edx, edx
mov rcx, rsi
lea rdx, [rsp + 0x20]
cmove edi, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x14001e490
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14001e522
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001e51d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001e55c
mov rcx, r8
call fcn.14001f0ac
mov qword [rbx + 0x10], rbp
mov eax, edi
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001f050
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3