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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov r14, rdx
mov r12, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x130], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0xe0]
mov qword [rdi + 8], r15
lea r13, [rcx + 0x60]
lea rsi, [rcx + 0x58]
lea rbx, [rcx + 0x54]
mov ebp, dword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rdi], 1
mov dword [rdi + 4], eax
mov dword [rdi + 8], ebp
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], r13
movups xmm0, xmmword [r12 + 0x20]
movups xmmword [rdi + 0x28], xmm0
xor ebx, ebx
mov qword [rdi + 0x48], rbx
xorps xmm0, xmm0
movups xmmword [rdi + 0x38], xmm0
lea r9, [rsp + 0x90]
mov qword [r9 + 8], r15
mov qword [r9], rbx
mov dword [r9 + 8], ebx
movups xmmword [r9 + 0x10], xmm0
movups xmmword [r9 + 0x20], xmm0
movups xmmword [r9 + 0x30], xmm0
movups xmmword [r9 + 0x40], xmm0
lea rax, [rsp + 0x8c]
mov dword [rax], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x50
mov rcx, r14
mov rdx, rdi
mov r8d, 0x50
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x14015eea3
xor ebx, ebx
cmp dword [rsp + 0x90], 2
jne 0x14015eea3
cmp dword [rsp + 0x94], 0
je 0x14015eea3
cmp qword [rsp + 0xc8], 0
je 0x14015eea3
cmp qword [rsp + 0xd0], 0
je 0x14015eea3
cmp qword [rsp + 0xd8], 0
je 0x14015eea3
lea rdx, [rsp + 0x38]
mov qword [rdx + 8], r15
mov dword [rdx + 8], 0
xorps xmm0, xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
mov qword [rdx], 3
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x8c]
mov rcx, r14
mov r8d, 0x50
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14015ee9e
mov rcx, qword [rsp + 0xc8]
mov qword [r12 + 0x38], rcx
mov rcx, qword [rsp + 0xd0]
mov qword [r12 + 0x40], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [r12 + 0x48], rcx
mov ecx, dword [rsp + 0x94]
mov dword [r12 + 0x50], ecx
test eax, eax
setne bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401a4270
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14015f4a0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.1401653e0
lea rax, [0x1402318c8]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14], rax
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov rbx, rax
mov rdi, qword [rdi]
call r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14015f575
mov rbx, qword [rsp + 0x40]
cmp qword [rsi + 0x10], rbx
je 0x14015f575
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x10]
inc rax
cmp rax, 2
jb 0x14015f55a
call fcn.1400c5840
mov rcx, qword [rsi + 0x10]
call fcn.1400e21b0
mov qword [rsi + 0x10], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14015f56d
mov qword [rsi + 0x10], rbx
call fcn.1400c5840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a4270
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14015f5a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call fcn.1401653e0
lea rax, [0x1402318c8]
mov qword [rsi], rax
mov rbx, qword [rdi]
mov qword [rsi + 0x10], 0
test rbx, rbx
je 0x14015f612
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x10]
inc rax
cmp rax, 2
jb 0x14015f5f7
call fcn.1400c5840
mov rcx, qword [rsi + 0x10]
call fcn.1400e21b0
mov qword [rsi + 0x10], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14015f60a
mov qword [rsi + 0x10], rbx
call fcn.1400c5840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14016cd40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, 0x4df
cmp byte [rcx + 0x6c], 0
je 0x14016cd7c
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a4270
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rbx, rdx
mov rsi, rcx
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
test rbx, rbx
je 0x14016cdcd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x14016cde0
lea r8, [rsp + 0x38]
mov rcx, rdi
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14016ce8f
mov rdi, qword [rsp + 0x38]
cmp qword [rsi + 0x48], rdi
je 0x14016ce3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x48]
inc rax
cmp rax, 2
jb 0x14016ce1e
call fcn.1400c5840
mov rcx, qword [rsi + 0x48]
call fcn.1400e21b0
mov qword [rsi + 0x48], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14016ce31
mov qword [rsi + 0x48], rdi
call fcn.1400c5840
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x48]
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x10], r14
movaps xmm0, xmmword [0x140232ef0]
movaps xmmword [rbx], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140123980
cmp byte [rbx], 0
je 0x14016ce9c
lea rcx, [rsi + 0x50]
lea rbx, [rsp + 0x40]
mov rdx, rbx
call fcn.14016ceb0
mov byte [rsi + 0x6c], 1
xor edi, edi
cmp byte [rbx], 0
je 0x14016cd63
lea rcx, [rsp + 0x48]
call fcn.1400c9770
jmp 0x14016cd63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14016cd63
mov edi, 0x3f0
jmp 0x14016cd63
Function at 0x14016d450
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [rcx + 0x6c], 0
je 0x14016d4a7
mov rbx, rdx
lea rdx, [rsp + 0x40]
mov qword [rdx], 0
call fcn.14016cf80
test eax, eax
je 0x14016d4c6
mov esi, eax
mov rdi, qword [rsp + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14016d4ac
call fcn.1400c5840
mov rcx, rdi
call fcn.1400e21b0
jmp 0x14016d4ac
mov esi, 0x3f0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 2
xor esi, esi
mov rcx, rdi
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14016d55e
mov rbp, qword [rsp + 0x38]
cmp qword [rbx], rbp
je 0x14016d48e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jb 0x14016d53e
call fcn.1400c5840
mov rcx, qword [rbx]
call fcn.1400e21b0
mov qword [rbx], 0
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14016d550
mov qword [rbx], rbp
call fcn.1400c5840
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14016d48e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016d48e

Function at 0x14016ffb0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rax, [rcx + 8]
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx], rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x18], 0
test rax, rax
je 0x14017002e
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jb 0x140170013
call fcn.1400c5840
mov rcx, qword [rsi + 0x18]
call fcn.1400e21b0
mov qword [rsi + 0x18], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140170026
mov qword [rsi + 0x18], rdi
call fcn.1400c5840
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140172d40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400c33c0
xor eax, eax
mov qword [rsi + 0x18], rax
mov rdi, qword [r12]
mov qword [r12], rax
lea rbp, [rdi + 1]
cmp rbp, 2
jb 0x140172d7e
call fcn.1400c5840
cmp qword [rsi + 0x18], rdi
je 0x140172dc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jb 0x140172db0
call fcn.1400c5840
mov rcx, qword [rsi + 0x18]
call fcn.1400e21b0
mov qword [rsi + 0x18], 0
cmp rbp, 2
jb 0x140172dbf
mov qword [rsi + 0x18], rdi
call fcn.1400c5840
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov qword [rsi + 0x20], rax
mov rdi, qword [rbx]
mov qword [rbx], rax
lea rbp, [rdi + 1]
cmp rbp, 2
jb 0x140172de3
call fcn.1400c5840
mov r15, qword [rsp + 0x90]
cmp qword [rsi + 0x20], rdi
je 0x140172e35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jb 0x140172e1d
call fcn.1400c5840
mov rcx, qword [rsi + 0x20]
call fcn.1400e21b0
mov qword [rsi + 0x20], 0
cmp rbp, 2
jb 0x140172e2c
mov qword [rsi + 0x20], rdi
call fcn.1400c5840
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x98]
xor eax, eax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], r14
mov qword [rsi + 0x38], rax
movabs rax, 0xfffffffe00000000
and rax, r15
cmp rax, qword [0x140362e48]
jne 0x140172e69
mov rcx, r15
call fcn.1400c98c0
mov qword [rsi + 0x40], r15
lea rcx, [rsi + 0x58]
xorps xmm0, xmm0
movups xmmword [rsi + 0x48], xmm0
mov rdx, rbp
call fcn.1401948a0
mov rax, qword [rbx]
inc rax
cmp rax, 2
jb 0x140172ea0
call fcn.1400c5840
mov rcx, qword [rbx]
call fcn.1400e21b0
mov qword [rbx], 0
mov rax, qword [r12]
inc rax
cmp rax, 2
jb 0x140172ec3
call fcn.1400c5840
mov rcx, qword [r12]
call fcn.1400e21b0
mov qword [r12], 0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140172ee0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400e23f0
test al, al
je 0x140172f0f
mov rcx, qword [rsi]
mov edx, gethostbyname
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x140172f30
mov rcx, rdi
call fcn.140194af0
mov rcx, rdi
call fcn.1401a2ea8
mov rbx, qword [rsi + 0x58]
test rbx, rbx
je 0x140172f65
mov rdi, qword [rsi + 0x60]
cmp rdi, rbx
je 0x140172f59
add rdi, 0xffffffffffffffe8
mov rcx, rdi
call fcn.1400ca720
cmp rdi, rbx
jne 0x140172f42
mov rcx, qword [rsi + 0x58]
jmp 0x140172f5c
mov rcx, rbx
mov qword [rsi + 0x60], rbx
call fcn.1401a2ea8
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
je 0x140172f7b
call fcn.1401a0150
mov rcx, qword [rsi + 0x40]
movabs rax, 0xfffffffe00000000
and rax, rcx
cmp rax, qword [0x140362e48]
jne 0x140172f9a
call fcn.1400c99e0
mov rdi, qword [rsi + 0x38]
xorps xmm0, xmm0
movups xmmword [rsi + 0x38], xmm0
test rdi, rdi
je 0x140172fba
mov rcx, rdi
call fcn.140194af0
mov rcx, rdi
call fcn.1401a2ea8
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jb 0x140172fdd
call fcn.1400c5840
mov rcx, qword [rsi + 0x28]
call fcn.1400e21b0
mov qword [rsi + 0x28], 0
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jb 0x140173000
call fcn.1400c5840
mov rcx, qword [rsi + 0x20]
call fcn.1400e21b0
mov qword [rsi + 0x20], 0
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jb 0x140173023
call fcn.1400c5840
mov rcx, qword [rsi + 0x18]
call fcn.1400e21b0
mov qword [rsi + 0x18], 0
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400e2350
Function at 0x1401739d0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400e23f0
test al, al
je 0x1401739f2
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret
Function at 0x14018a700
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x1403976d0]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14018a789
lea rcx, [0x1403976c8]
call fcn.1400d8da0
test rax, rax
jne 0x14018a776
mov ecx, 4
call fcn.1401a2e6c
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x1403976c8]
mov rcx, rbx
call fcn.1400d8da0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400d8de0
test rsi, rsi
je 0x14018a776
mov rcx, rsi
call fcn.1401a2ea8
lea rcx, [0x1403976c8]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400d8da0
lea rcx, [0x1403976d0]
call fcn.1401a2fc0
cmp dword [0x1403976d0], 0xffffffff
jne 0x14018a728
mov qword [0x1403976c8], 0
lea rcx, [0x1403976c8]
lea rdx, [0x140060ac0]
call fcn.1400d8e30
lea rcx, [0x1403976d0]
call fcn.1401a3058
jmp 0x14018a728

Function at 0x14018c070
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14016cbb0
mov rcx, rax
xor edx, edx
add rsp, 0x28
jmp fcn.1400d8de0
Function at 0x14018dec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov dword [r12], 0xaaaaaaaa
mov qword [rsp + 0x20], r12
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14018df6e
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r15, qword [rbp]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14018df6e
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x14018df70
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140192530
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov r15, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
test dl, dl
je 0x1401925bd
lea rax, [0x140196270]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rsi, [0x140350350]
lea r8, str.NtMapViewOfSection
mov rcx, r15
mov rdx, rsi
mov r9d, 1
call fcn.140191a70
lea rax, [0x1401962e0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, r15
mov rdx, rsi
mov r9d, 1
call fcn.140191a70
jmp 0x1401925c8
cmp qword [r15 + 0x18], 0
je 0x140192783
mov rax, qword [r15]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, qword [r15 + 0x18]
shl r13, 6
lea rbx, [r13 + 0x60]
cmp rbx, 0x10001
jae 0x1401927ab
mov r12, rax
lea rsi, [rsp + 0x40]
mov dword [rsi], 0xaaaaaaaa
mov ebp, 0x10000
sub ebp, ebx
mov rcx, rsi
call fcn.140196250
movzx edi, word [rsp + 0x40]
mov dword [rsp + 0x40], edi
cmp ebp, edi
jb 0x14019261b
mov ecx, 0x800
mov eax, 0x1000
mov edx, 0x800
mov rbp, rax
shr rdx, 1
mov rax, rcx
cmp rcx, rbx
mov rcx, rdx
jae 0x14019263f
neg ebp
and edi, ebp
mov eax, edi
and eax, 0xf000
add r12, rax
add r13, 0x105f
and r13, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov rdx, r12
mov r8, r13
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x1401927ae
mov r12, rax
and edi, 0xfff
add r12, rdi
movaps xmm0, xmmword [0x140232ef0]
lea rsi, [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x50], xmm0
movups xmmword [rsi + 0x40], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi], rbx
mov dword [rsi + 0x18], 0
mov qword [rsi + 8], 0x20
lea rcx, [0x140397740]
mov r8d, 0xd8
xor edx, edx
call fcn.1401a64a0
mov rcx, r15
mov rdx, r12
mov r8, rbx
mov r9, rsi
call fcn.1401928e0
mov esi, eax
test eax, eax
jne 0x140192785
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x40]
mov r9d, 0x20
mov rcx, r14
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, 0x2a
test eax, eax
je 0x140192785
cmp qword [rsp + 0x38], 0x20
jne 0x140192785
lea rax, [rsp + 0x34]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, r12
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r15]
lea rdx, str.g_originals
lea r8, [0x140397740]
mov r9d, 0xd8
call fcn.140173470
mov esi, eax
jmp 0x140192785
xor esi, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
int3
Function at 0x140193c40
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, qword [rsp + 0xc8]
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140193d35
mov edi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp byte [r8 + 0x17], 0
jns 0x140193ca5
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, eax
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x140193d1f
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x40]
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [r15]
jmp 0x140193d26
mov rbx, 0xffffffffffffffff
mov qword [r14], rbx
xor eax, eax
cmp rbx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140194f60
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r12, r9
mov r15, r8
mov rdi, rdx
mov r14, rcx
xor ebx, ebx
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
cmp qword [rdi], rax
je 0x140194fdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x140194fbc
call fcn.1400c5840
mov rcx, qword [rdi]
call fcn.1400e21b0
mov qword [rdi], 0
mov rax, rsi
inc rax
cmp rax, 2
jb 0x140194fd0
mov qword [rdi], rsi
call fcn.1400c5840
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rdi]
mov rdi, qword [r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x100002
mov rcx, rax
mov rdx, rsi
mov r8, rdi
mov r9, r12
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1401950a9
mov rsi, qword [rsp + 0xa0]
xor ebp, ebp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
cmp qword [r15], rax
je 0x140195078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jb 0x140195059
call fcn.1400c5840
mov rcx, qword [r15]
call fcn.1400e21b0
mov qword [r15], 0
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14019506d
mov qword [r15], rdi
call fcn.1400c5840
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [r15]
mov rbx, qword [r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x100002
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
mov eax, ebx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140196250
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret

Function at 0x14019da90
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14019db28
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14019db50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov eax, dword [0x14036ed58]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14019db91
lea rcx, [0x14036ed50]
xor edx, edx
test bl, bl
cmovne rdx, rcx
add rsp, 0x20
pop rbx
jmp fcn.1400d8de0
lea rcx, [0x14036ed58]
call fcn.1401a2fc0
cmp dword [0x14036ed58], 0xffffffff
jne 0x14019db78
mov qword [0x14036ed50], 0
lea rcx, [0x14036ed50]
xor edx, edx
call fcn.1400d8e30
lea rcx, [0x14036ed58]
call fcn.1401a3058
jmp 0x14019db78

Function at 0x14019de30
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebp, edx
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, pe_nt_image_headers64
call fcn.1401a2e6c
mov rdi, rax
mov rcx, rax
xor edx, edx
call fcn.140103840
mov qword [rsi], rdi
mov ecx, 0x88
call fcn.1401a2e6c
mov rbx, rax
lea rdx, [0x14023552d]
mov rcx, rax
call fcn.14010d5f0
lea rax, fcn.1400794b0
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
and bpl, 1
xorps xmm0, xmm0
movups xmmword [rbx + 0x18], xmm0
movups xmmword [rbx + 0x28], xmm0
mov byte [rbx + 0x38], bpl
mov word [rbx + 0x39], 0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], 0
movups xmm0, xmmword [0x140243950]
movups xmmword [rbx + 0x78], xmm0
mov eax, dword [0x14036edf8]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14019df1b
lock inc dword [0x14036ede8]
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140103980
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401a4270
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14036edf8]
call fcn.1401a2fc0
cmp dword [0x14036edf8], 0xffffffff
jne 0x14019dee9
lea rax, [0x140231320]
mov qword [0x14036edf0], rax
lea rbp, [0x14036edf0]
call fcn.1400e7d90
lea r8, str.MojoMessages
mov rcx, rax
mov rdx, rbp
xor r9d, r9d
call fcn.1400e7f20
lea rcx, [0x14036edf8]
call fcn.1401a3058
jmp 0x14019dee9