joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015780
Capabilities:
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp byte [0x140027402], 0
mov esi, r9d
mov rdi, rdx
mov rbx, rcx
je 0x1400157b9
call fcn.140014868
jmp 0x140015856
test r8, r8
je 0x1400157ce
mov rdx, r8
call fcn.140015b4c
test eax, eax
js 0x140015856
test sil, 1
jne 0x1400157fa
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call fcn.1400152f8
test eax, eax
js 0x140015856
cmp byte [rsp + 0x30], 1
je 0x1400157fa
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
jmp 0x1400157af
movzx r11d, word [rdi]
lea rcx, [rsp + 0x64]
mov r8, qword [rdi + 8]
mov edx, 0x1ec
and qword [rsp + 0x58], 0
mov dword [rsp + 0x60], r11d
mov byte [rsp + 0x50], 1
call fcn.14000c820
test eax, eax
js 0x140015856
lea r9d, [r11 + 0x18]
mov dword [rsp + 0x20], 0xa
lea r8, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140015856
mov rcx, rbx
call fcn.140015878
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015b4c
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov qword [rax + 0x10], rdx
lea rdx, [rax - 0x18]
mov dword [rax - 0x28], 0x14
mov r9d, 8
lea r8, [rax + 0x10]
mov rdi, rcx
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140015bb3
mov r9d, 8
mov qword [rsp + 0x60], rbx
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], 0x13
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140015f48
Capabilities:
Delete registry value
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1f8]
sub rsp, 0x2f0
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
and qword [rsp + 0x60], 0
lea rax, [0x140027270]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x4021
xor ebx, ebx
mov qword [rbp - 0x58], rax
and qword [rbp - 0x60], rbx
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x68]
mov dword [rbp - 0x68], 0x30
mov edx, 0x100001
mov dword [rbp - 0x50], 0x40
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x1400160ea
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0x8a8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400160ea
lea rdx, str.SMSS_PFRO.tmp
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov byte [rsp + 0x50], 1
jmp 0x140016098
test eax, eax
js 0x1400160ea
lea rsi, [rbx + 0x8a8]
mov rdi, rbx
cmp rbx, rsi
jae 0x140016093
mov r9, qword [0x140027278]
lea rax, [rdi + 0xc]
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x20a
lea rcx, [rbp - 0x30]
call fcn.140004384
test eax, eax
js 0x140016084
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.140016668
cmp dword [rdi], 0
je 0x140016093
mov eax, dword [rdi]
add rdi, rax
cmp rdi, rsi
jb 0x14001603e
mov byte [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x78]
mov dword [rsp + 0x38], 0xc
xor r8d, r8d
mov dword [rsp + 0x30], 0x8a8
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
nop dword [rax + rax]
cmp eax, 0xc000000f
jne 0x140016027
lea r8, str.ClearTempFiles
mov ecx, 2
lea rdx, str.Session_Manager
call qword [sym.imp.ntdll.dll_RtlDeleteRegistryValue]
nop dword [rax + rax]
test rbx, rbx
je 0x14001612c
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140016142
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140010a60
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140016668
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 0x21], 0
lea r8, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rbp - 9], rcx
xor eax, eax
mov dword [rbp - 0x19], 0x30
and qword [rbp - 0x11], rax
lea rcx, [rbp - 0x21]
mov edx, 0x110100
mov qword [rbp + 0x47], rax
movups xmmword [rbp + 0x27], xmm0
xor edi, edi
mov dword [rbp - 1], 0x40
movups xmmword [rbp + 0x37], xmm0
movdqu xmmword [rbp + 7], xmm0
call fcn.140016e08
mov ebx, eax
test eax, eax
js 0x140016774
mov rcx, qword [rbp - 0x21]
lea r9d, [rdi + 1]
lea r8, [rbp - 0x29]
mov byte [rbp - 0x29], 1
lea rdx, [rbp + 0x17]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140016774
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtQueryAttributesFile]
nop dword [rax + rax]
test eax, eax
js 0x140016774
mov rax, qword [rbp + 0x47]
test al, 1
je 0x140016778
mov rcx, qword [rbp - 0x21]
and eax, 0xfffffffe
mov edx, eax
call fcn.1400172d0
mov ebx, eax
test eax, eax
js 0x140016774
mov rcx, qword [rbp - 0x21]
lea r8, [rbp - 0x29]
mov edi, 1
mov dword [rsp + 0x20], 0xd
mov r9d, edi
mov byte [rbp - 0x29], dil
lea rdx, [rbp + 0x17]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140016774
xor edi, edi
xor ebx, ebx
mov rax, qword [rbp + 0x47]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14001679c
test edi, edi
je 0x140016790
mov edx, eax
call fcn.1400172d0
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140010a60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140016bc8
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r12d, r12d
mov r15d, r8d
cmp qword [0x140026e10], r12
mov rsi, rdx
mov r14, rcx
mov ebx, 0x30
jne 0x140016d06
mov dword [rsp + 0x50], r12d
lea rax, [0x140019ca0]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x78]
mov dword [rsp + 0x40], 0x64
lea r8, [rbp - 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [0x140026e10]
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
mov dword [rsp + 0x28], r12d
mov edx, 0x120002
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x50], 0x40
mov qword [rbp - 0x58], rax
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
test eax, eax
jns 0x140016c8d
mov qword [0x140026e10], r12
xor al, al
jmp 0x140016ddf
mov rcx, qword [0x140026e10]
lea r8, [rbp - 0x28]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov rcx, qword [0x140026e10]
test eax, eax
jns 0x140016ccf
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x140016c7f
mov rax, qword [rbp - 0x20]
lea r8, [rbp - 0x80]
mov r9d, 8
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x140016d06
mov rcx, qword [0x140026e10]
jmp 0x140016cc1
lea rcx, [rbp - 0x38]
call fcn.1400167c8
cmp word [rsi], r12w
lea r11, [0x140019c90]
movsx eax, word [rbp - 0x2e]
lea rdi, [rbp - 0x10]
movsx ecx, word [rbp - 0x30]
cmovne r11, rsi
movsx edx, word [rbp - 0x32]
mov esi, 0x200
movsx r8d, word [rbp - 0x38]
movsx r9d, word [rbp - 0x34]
movsx r10d, word [rbp - 0x36]
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x58], eax
lea rax, str._d__d__d__d:_d:_d___PFRO_Error:__wZ___wZ__0x_x_r_n
mov dword [rsp + 0x50], ecx
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edx
mov edx, esi
mov dword [rsp + 0x40], r8d
xor r8d, r8d
mov dword [rsp + 0x38], r9d
lea r9, [rbp - 0x80]
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call fcn.140015c2c
test eax, eax
jns 0x140016d9c
lea rdi, str.Error_logging_PFRO_error
jmp 0x140016da3
mov rbx, rsi
sub rbx, qword [rbp - 0x80]
mov rcx, qword [0x140026e10]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
test eax, eax
setns al
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x300
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140016e08
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x28], 0x204020
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 3
mov rbx, rcx
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x140016e91
mov rcx, qword [rbx]
lea r8, [rsp + 0x68]
mov r9d, 8
mov dword [rsp + 0x20], 0x23
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140016e8f
test dword [rsp + 0x68], 0x400
je 0x140016e8f
test dword [rsp + 0x6c], 0x20000000
jne 0x140016e8f
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
and qword [rbx], 0
mov eax, 0xc00000d8
jmp 0x140016e91
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140016ea0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rsp + 0x34], 0
lea r9, [rsp + 0x20]
mov r8d, 0x14
mov dword [rsp + 0x28], 0x41435049
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x30], 0x54504257
lea ecx, [r8 + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
cmp eax, 0xc0000023
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x58
ret

Function at 0x140016f14
Capabilities:
Access peb ldr_data
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
movzx ebx, word [rcx]
mov rsi, rcx
mov rcx, qword gs:[0x60]
add ebx, 0x1a
mov r14d, r8d
mov ebp, ebx
mov r15, rdx
mov r8d, ebx
mov edx, dword [0x1400278a8]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140016f6e
mov ebx, 0xc0000017
jmp 0x140016fe0
mov r8, rbp
xor edx, edx
mov rcx, rdi
call sub.ntdll.dll_memset
test r14d, r14d
lea rcx, [rdi + 0x14]
setne al
and qword [rdi + 8], 0
mov byte [rdi], al
movzx eax, word [rsi]
mov dword [rdi + 0x10], eax
mov r8d, eax
mov rdx, qword [rsi + 8]
call sub.ntdll.dll_memcpy
mov r9d, ebx
mov dword [rsp + 0x20], 0xa
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400172d0
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x60], edx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea r9d, [rax + 0x28]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
cmovns eax, ecx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x78
ret

Function at 0x1400179ac
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov ebx, r8d
lea r9, [rsp + 0x68]
mov r8b, 1
mov edi, edx
mov rsi, rcx
mov dl, r8b
mov ecx, 0x13
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
cmp eax, 0xc000007c
jne 0x140017a00
xor r8d, r8d
lea r9, [rsp + 0x68]
mov dl, 1
lea ecx, [r8 + 0x13]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8d, edi
mov edx, ebx
mov dword [rsp + 0x20], 6
mov ecx, 0xc000021a
call qword [sym.imp.ntdll.dll_NtRaiseHardError]
nop dword [rax + rax]
mov edx, eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140017a54
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x60]
mov rbx, rcx
cmp byte [rax + 2], 1
jne 0x140017a91
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x60
pop rbx
ret
lea rdx, str.Unhandled_Exception_in_Session_Manager
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov edx, 1
movsxd rax, dword [rcx]
mov qword [rsp + 0x38], rax
lea r8d, [rdx + 3]
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x48], rax
call fcn.1400179ac
int3
Function at 0x1400018e0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4a8
movaps xmmword [rsp + 0x490], xmm6
mov ecx, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r15, qword [rax + 0x20]
lea r9, [rax + 0x20]
xor eax, eax
lea r13, [rsp + 0x160]
mov rdi, r13
rep stosq qword [rdi], rax
cmp r9, r15
je 0x140001a46
mov qword [rsp + 0x48], r9
mov r12, qword [sym.imp.msvcrt.dll_strcpy_s]
xor r14d, r14d
lea rsi, [rsp + 0x50]
lea rbx, [rsp + 0x380]
lea rbp, [rsp + 0x270]
movq xmm6, qword [section..rdata]
nop word [rax + rax]
mov rax, r14
mov ecx, 0x20
mov rdi, rsi
xor edx, edx
rep stosq qword [rdi], rax
mov ecx, 0x20
mov r9d, 0xffffffff
mov dword [rdi], 0
mov rdi, r13
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov r8, qword [r15 + 0x40]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, rbx
mov edx, 0x104
mov rcx, r13
movzx eax, word [0x140046008]
movq qword [rsp + 0x380], xmm6
mov word [rsp + 0x388], ax
call r12
mov r8, r13
mov edx, 0x104
mov rcx, rbp
call r12
mov edx, 0x104
mov r8, rsi
mov rcx, rbx
call r12
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__strlwr]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__strlwr]
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140001a38
mov rax, qword [r15 + 0x20]
movaps xmm6, xmmword [rsp + 0x490]
add rsp, 0x4a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [r15]
cmp qword [rsp + 0x48], r15
jne 0x140001960
xor eax, eax
jmp 0x140001a16

Function at 0x140001a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call fcn.1400018e0
mov rsi, rax
test rax, rax
je 0x140001b5b
mov rcx, rbx
call fcn.1400015b0
mov ebp, eax
movsxd rax, dword [rsi + 0x3c]
mov r13d, dword [rsi + rax + 0x88]
add r13, rsi
mov edi, dword [r13 + 0x18]
mov eax, dword [r13 + 0x20]
test edi, edi
je 0x140001b70
add rdi, rdi
xor r14d, r14d
lea r12, [rsi + rax]
jmp 0x140001aed
add r14, 2
cmp r14, rdi
je 0x140001b70
mov ecx, dword [r12 + r14*2]
add rcx, rsi
call fcn.1400015b0
cmp eax, ebp
jne 0x140001ae0
mov eax, dword [r13 + 0x24]
lea rdx, [rsi + r14]
movzx edx, word [rdx + rax]
mov eax, dword [r13 + 0x1c]
lea rdx, [rsi + rdx*4]
mov ebx, dword [rdx + rax]
xor eax, eax
add rbx, rsi
jmp 0x140001b2a
add rax, 1
cmp rax, 0x20
je 0x140001ae0
cmp byte [rbx + rax], 0xf
jne 0x140001b20
cmp byte [rbx + rax + 1], 5
jne 0x140001b20
movzx r15d, word [rbx + rax - 2]
test r15w, r15w
je 0x140001ae0
mov ecx, 0x10
call fcn.140043aa0
mov qword [rax], rbx
mov rsi, rax
mov dword [rax + 8], ebp
mov word [rax + 0xc], r15w
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x140001b5b
Function at 0x140001b80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
push rbx
sub rsp, 0x48
mov ecx, pe_nt_image_headers64
call fcn.140043aa0
mov ecx, 0x10
lea rbx, [rsp + 0x20]
movdqa xmm0, xmmword [str.NtAllocateVirtualMemory]
mov rdx, rax
mov rdi, rax
xor eax, eax
rep stosq qword [rdi], rax
mov rax, qword [0x140046020]
mov rcx, rbx
mov qword [0x1401b1040], rdx
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
call fcn.140001a80
movdqa xmm0, xmmword [str.NtProtectVirtualNtCreateThreadExNtWriteFNtClose]
mov rcx, rbx
mov dword [rsp + 0x30], 0x6f6d654d
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov byte [rsp + 0x36], 0
mov rax, qword [0x1401b1040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax], r8
mov qword [rax + 8], r9
mov eax, 0x7972
mov word [rsp + 0x34], ax
call fcn.140001a80
movdqa xmm0, xmmword [0x140046040]
mov rcx, rbx
mov byte [rsp + 0x30], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x1401b1040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x10], r8
mov qword [rax + 0x18], r9
call fcn.140001a80
mov rcx, rbx
mov byte [rsp + 0x2c], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov dword [rsp + 0x28], 0x656c6946
mov rax, qword [0x1401b1040]
mov qword [rax + 0x20], r8
mov qword [rax + 0x28], r9
mov rax, qword [0x140046040]
mov qword [rsp + 0x20], rax
call fcn.140001a80
mov rcx, rbx
mov dword [rsp + 0x28], 0x656c69
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x1401b1040]
mov qword [rax + 0x30], r8
mov qword [rax + 0x38], r9
mov rax, qword [0x140046050]
mov qword [rsp + 0x20], rax
call fcn.140001a80
mov rcx, rbx
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x1401b1040]
mov qword [rax + 0x40], r8
mov qword [rax + 0x48], r9
mov rax, qword [0x140046058]
mov qword [rsp + 0x20], rax
call fcn.140001a80
movdqa xmm0, xmmword [str.NtWaitForSingleO:]
mov rcx, rbx
mov edx, 0x74
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov word [rsp + 0x34], dx
mov rax, qword [0x1401b1040]
mov dword [rsp + 0x30], 0x63656a62
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x50], r8
mov qword [rax + 0x58], r9
call fcn.140001a80
mov rcx, qword [rax]
mov rbx, qword [rax + 8]
mov rax, qword [0x1401b1040]
mov qword [rax + 0x70], rcx
mov qword [rax + 0x78], rbx
add rsp, 0x48
pop rbx
pop rdi
ret
Function at 0x1400187c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.1400209a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400209a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140018830
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401b10c4]
mov rbx, rcx
test esi, esi
jle 0x140018960
mov rax, qword [0x1401b10c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001887b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140018905
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140018860
mov rcx, rbx
call fcn.140019360
mov rdi, rax
test rax, rax
je 0x140018982
mov rax, qword [0x1401b10c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400194a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401b10c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140018967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400188fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140018910
add dword [0x1401b10c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401b10c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400188fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400187c0
nop dword [rax]
xor esi, esi
jmp 0x140018888
mov rax, qword [0x1401b10c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400187c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400187c0
nop
nop word cs:[rax + rax]
nop dword [rax]