joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073590
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x1400ad288]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14007361c
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0
cmp eax, 0xc0000011
je 0x140073655
cmp eax, 0x103
je 0x140073661
test eax, eax
js 0x14007363e
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp 0x140073655
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14007ca60
mov rcx, rax
call fcn.1400136a0
mov ecx, 7
int 0x29
ud2

Function at 0x1400736d0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x1400ad288]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140073763
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140073797
test eax, eax
js 0x140073777
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14007ca60
mov rcx, rax
call fcn.1400136a0
mov ecx, 7
int 0x29
ud2
Function at 0x140077ee0
Capabilities:
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r14d, r14d
mov ecx, ebx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140077fb5
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140077f40
mov esi, eax
cmp eax, 0x2726
jne 0x140077fa7
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140077f9f
mov rsi, rax
xor r14d, r14d
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x140077fb5
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rsi, rdi
jmp 0x140077faf
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov r14d, 1
mov rax, r14
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140077fd0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x218
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rbx, r8
jmp 0x140077ff5
cmp rbx, r14
ja 0x140078021
mov cl, 0x3a
mov rdx, rdi
mov r8, rbx
call fcn.1400820b0
cmp rax, 1
jne 0x14007801c
mov rbx, rdx
cmp rdx, r14
jae 0x140077ff0
cmp byte [rdi + rbx], 0x3a
jne 0x140077ff0
lea rcx, [rbx + 1]
jmp 0x14007802d
test rax, rax
jne 0x14007802d
lea rax, str.invalid_socket_address
jmp 0x1400780b6
sub r14, rcx
add rcx, rdi
mov rdx, r14
call fcn.140085d00
test al, 1
jne 0x1400780af
shr eax, 0x10
mov word [rsp + 0x36], ax
mov eax, dword [0x1400c6788]
cmp eax, 3
jne 0x140078147
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
ja 0x14007816a
lea r14, [rsp + 0x98]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.14009edf0
mov byte [rsp + rbx + 0x98], 0
inc rbx
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, rbx
call fcn.14008a930
cmp qword [rsp + 0x48], 0
je 0x1400780d1
lea rax, str.file_name_contained_an_unexpected_NUL_byte
jmp 0x1400780b6
lea rax, str.invalid_port_value
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x218
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
lea r9, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140078127
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14007813b
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x36]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1400780c1
lea rcx, [0x1400c6780]
call fcn.1400a3120
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
jbe 0x14007806d
lea rax, [0x1400ae138]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.1400a35b0
jmp 0x1400780c1
Function at 0x14008f0a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14008f0f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008f0f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008f0f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008f0f2
cmp dword [rcx + 0x84], 0xe
jbe 0x14008f0f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008f0f4
xor al, al
add rsp, 0x28
ret

Function at 0x1400950c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140094ebc
Function at 0x140098378
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400983a8
xor eax, eax
jmp 0x14009846b
mov rbp, rbx
cmp word [rax], si
je 0x1400983cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400983b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400983b0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140098298
movsxd r14, eax
test eax, eax
jne 0x14009840b
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400983a1
mov rcx, r14
call fcn.140095abc
mov rdi, rax
test rax, rax
jne 0x140098424
xor ecx, ecx
call fcn.140095b1c
jmp 0x140098400
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140098298
test eax, eax
jne 0x140098455
mov rcx, rdi
call fcn.140095b1c
jmp 0x14009845f
xor ecx, ecx
call fcn.140095b1c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14009bb70
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140097368
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14009bbfa
cmp byte [rbp - 0x21], r15b
je 0x14009bbf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009bc30
call fcn.140099a04
test eax, eax
jne 0x14009bc1c
cmp byte [rbp - 0x21], r15b
je 0x14009bc14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009bc30
cmp byte [rbp - 0x21], r15b
je 0x14009bc2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140096948
test eax, eax
jne 0x14009bcd0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140097368
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009bc6f
cmp byte [rbp - 0x21], r15b
je 0x14009bca4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14009bca4
call fcn.140099a04
test eax, eax
jne 0x14009bc90
cmp byte [rbp - 0x21], r15b
je 0x14009bc89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14009bca4
cmp byte [rbp - 0x21], r15b
je 0x14009bca1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140096948
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14009bcd0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14009bcd3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14009bce1
mov rcx, rdi
call fcn.140095b1c
cmp byte [rbp + 0x3f], r15b
je 0x14009bcf0
mov rcx, qword [rbp + 0x27]
call fcn.140095b1c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14009e870
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14009e898
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14009e898
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400a2d50
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x1400ab3c5]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400a2da5
mov rdi, rax
lea rdx, [0x1400ab3e6]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a2da5
mov rsi, rax
lea rdx, [0x1400ab3f4]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a2da5
mov r14, rax
xor edi, edi
jmp 0x1400a2e2d
lea rcx, [0x1400ab380]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400a2e99
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a2e99
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a2e99
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a2e99
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400a2e99
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x1400c66b0]
mov ecx, 0x18
mov edx, 8
call fcn.140044c10
test rax, rax
je 0x1400a2e9b
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1400c66f8], rbx
je 0x1400a2e8c
mov rsi, rax
cmp qword [rbx], 0
je 0x1400a2e76
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140044c20
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
mov ecx, 8
mov edx, 0x18
call fcn.140050130
int3
Function at 0x1800029b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800029d8
xor eax, eax
lea r8, [0x1800028f0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003d70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180003f90
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003e77
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003dd4
mov rax, qword [0x18000c008]
cmp qword [rsp + 0x20], rax
ja 0x180003dd4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003d96
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003e03
jmp 0x180003e77
cmp dword [rsp + 0x50], 0x10000
jne 0x180003e5a
cmp qword [rsp + 0x48], 0x10000
jb 0x180003e5a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003e48
mov rax, qword [rsp + 0x28]
jmp 0x180003e79
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003e72
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003f90
mov qword [rsp + 0x20], rax
jmp 0x180003d96
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003e80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180003fd0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003f83
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003edb
mov rax, qword [0x18000c008]
cmp qword [rsp + 0x20], rax
ja 0x180003edb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003e9d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003f0a
jmp 0x180003f83
cmp dword [rsp + 0x50], 0x10000
jne 0x180003f61
cmp qword [rsp + 0x48], 0x10000
jb 0x180003f61
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003f4f
mov rax, qword [rsp + 0x28]
jmp 0x180003f85
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003f7e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003fd0
mov qword [rsp + 0x20], rax
jmp 0x180003e9d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004020
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800045b0
mov qword [rsp + 0x28], 0
cmp qword [0x18000c388], 0
jne 0x180004068
cmp qword [0x18000c380], 0
je 0x180004068
mov rax, qword [0x18000c380]
mov qword [0x18000c388], rax
cmp qword [0x18000c388], 0
je 0x18000410e
mov rax, qword [0x18000c388]
cmp qword [rax + 0x10], 0
je 0x18000410e
mov rax, qword [0x18000c388]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000410e
mov rax, qword [0x18000c388]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000410e
mov rax, qword [0x18000c388]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800040d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800040db
xor eax, eax
jmp 0x180004289
mov rax, qword [0x18000c388]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004289
mov rax, qword [0x18000c380]
mov qword [0x18000c388], rax
jmp 0x180004130
mov rax, qword [0x18000c388]
mov rax, qword [rax + 8]
mov qword [0x18000c388], rax
cmp qword [0x18000c388], 0
je 0x18000417d
cmp qword [0x18000c388], 0
je 0x18000417b
mov rax, qword [0x18000c388]
cmp qword [rax + 0x10], 0
je 0x18000417b
mov rax, qword [0x18000c388]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000417b
mov rax, qword [0x18000c388]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000417b
jmp 0x1800040ac
jmp 0x18000411e
mov rcx, qword [rsp + 0x60]
call fcn.1800061e0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004290
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004287
mov rax, qword [rsp + 0x48]
mov qword [0x18000c388], rax
mov rax, qword [0x18000c388]
mov dword [rax], 0x52727464
mov rax, qword [0x18000c388]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000c388]
mov rcx, qword [0x18000c380]
mov qword [rax + 8], rcx
mov rax, qword [0x18000c388]
mov qword [0x18000c380], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000c388]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004238
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004272
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000422e
mov rax, qword [0x18000c388]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800040ac
xor eax, eax
add rsp, 0x58
ret
Function at 0x140006140
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140006174
mov eax, esi
lea ecx, [rax - 0x51]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x140006160
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140005960
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140006199
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140016c20
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140006213
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000620e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000620e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e208
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006220
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x140006254
mov eax, esi
lea ecx, [rax - 0x51]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x140006240
mov byte [r8 + 9], sil
add r8, 8
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140005960
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140006279
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140016c20
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400062f3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400062ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e208
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret