joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14027e380
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov r14d, r8d
mov rsi, r9
mov rbp, rcx
sar r14d, 4
test r8b, 0xf
je 0x14027e3aa
mov eax, 1
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x50], rbx
lea rcx, [0x1403fdbcc]
mov rax, rdx
sub rax, rcx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r15
test al, 3
jne 0x14027e438
mov rax, r9
sub rax, rcx
test al, 3
jne 0x14027e438
test r14d, r14d
je 0x14027e4ee
mov r15, qword [rsp + 0x70]
lea rbx, [rdx + 8]
nop word [rax + rax]
movups xmm0, xmmword [rbp]
lea rdx, [rbx - 8]
mov r8, r15
mov rcx, rbp
movups xmmword [rsp + 0x20], xmm0
call fcn.140001a00
mov eax, dword [rsi]
xor dword [rbx - 8], eax
mov eax, dword [rsi + 4]
movups xmm0, xmmword [rsp + 0x20]
xor dword [rbx - 4], eax
mov eax, dword [rsi + 8]
add rbp, 0x10
xor dword [rbx], eax
mov eax, dword [rsi + 0xc]
lea rbx, [rbx + 0x10]
xor dword [rbx - 0xc], eax
movups xmmword [rsi], xmm0
dec r14d
jne 0x14027e3f0
jmp 0x14027e4ee
test r14d, r14d
je 0x14027e4ee
mov r15, qword [rsp + 0x70]
sub rbp, rdx
lea rdi, [rdx + 2]
add rbp, 0xfffffffffffffffe
movups xmm0, xmmword [rdi + rbp]
lea rcx, [rdi + rbp]
lea rdx, [rdi - 2]
mov r8, r15
movups xmmword [rsp + 0x20], xmm0
call fcn.140001a00
movzx eax, byte [rsi]
movups xmm0, xmmword [rsp + 0x20]
xor byte [rdi - 2], al
movzx eax, byte [rsi + 1]
lea rdi, [rdi + 0x10]
xor byte [rdi - 0x11], al
movzx eax, byte [rsi + 2]
xor byte [rdi - 0x10], al
movzx eax, byte [rsi + 3]
xor byte [rdi - 0xf], al
movzx eax, byte [rsi + 4]
xor byte [rdi - 0xe], al
movzx eax, byte [rsi + 5]
xor byte [rdi - 0xd], al
movzx eax, byte [rsi + 6]
xor byte [rdi - 0xc], al
movzx eax, byte [rsi + 7]
xor byte [rdi - 0xb], al
movzx eax, byte [rsi + 8]
xor byte [rdi - 0xa], al
movzx eax, byte [rsi + 9]
xor byte [rdi - 9], al
movzx eax, byte [rsi + 0xa]
xor byte [rdi - 8], al
movzx eax, byte [rsi + 0xb]
xor byte [rdi - 7], al
movzx eax, byte [rsi + 0xc]
xor byte [rdi - 6], al
movzx eax, byte [rsi + 0xd]
xor byte [rdi - 5], al
movzx eax, byte [rsi + 0xe]
xor byte [rdi - 4], al
movzx eax, byte [rsi + 0xf]
xor byte [rdi - 3], al
movups xmmword [rsi], xmm0
dec r14d
jne 0x14027e451
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14028c3d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
mov rbx, rcx
bts edx, 8
nop
mov ecx, edx
mov eax, edx
add edx, edx
shr ecx, 7
shr rax, 8
movzx r10d, word [rbx + rax*2]
and ecx, 1
neg ecx
shr r10, 4
sar rcx, 4
and ecx, 0x7f
xor r10, rcx
add r11d, dword [r8 + r10*4]
cmp edx, 0x10000
jb 0x14028c3e0
mov rbx, qword [rsp + 8]
mov eax, r11d
ret

Function at 0x14028c420
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10d, 0x100
xor ebx, ebx
mov r11d, r8d
or edx, r10d
mov rdi, rcx
nop dword [rax + rax]
add r11d, r11d
mov r8d, edx
mov ecx, edx
shr ecx, 7
shr r8d, 8
mov eax, r10d
and ecx, 1
and eax, r11d
add edx, edx
neg ecx
add eax, r10d
sar rcx, 4
add r8d, eax
movzx r8d, word [rdi + r8*2]
and ecx, 0x7f
shr r8, 4
xor r8, rcx
mov ecx, edx
add ebx, dword [r9 + r8*4]
xor ecx, r11d
not ecx
and r10d, ecx
cmp edx, 0x10000
jb 0x14028c440
mov rdi, qword [rsp + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 8]
ret
Function at 0x14028c7a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r11, qword [rsp + 0x48]
movzx r10d, word [rcx]
mov ebp, r8d
movzx r8d, word [rcx + 2]
mov eax, r10d
xor r10, 0x7f0
shr rax, 4
shr r10, 4
mov r13, r9
mov r14d, dword [r11 + rax*4]
mov eax, r8d
xor r8, 0x7f0
shr rax, 4
shr r8, 4
mov r15d, edx
mov r12d, dword [r11 + rax*4]
mov eax, dword [r11 + r8*4]
mov rbx, rcx
add eax, dword [r11 + r10*4]
add r12d, dword [r11 + r10*4]
xor r9d, r9d
mov dword [rsp + 0x48], eax
mov rsi, r13
nop dword [rax + rax]
cmp r9d, ebp
jae 0x14028c981
mov r8d, r9d
xor r10d, r10d
or r8d, 8
cmp r8d, 1
je 0x14028c872
lea edi, [r15*8]
mov ecx, r8d
mov eax, r8d
shr r8d, 1
and ecx, 1
shr rax, 1
neg ecx
add rax, rdi
movzx edx, word [rbx + rax*2 + 4]
sar rcx, 4
shr rdx, 4
and ecx, 0x7f
xor rdx, rcx
add r10d, dword [r11 + rdx*4]
cmp r8d, 1
jne 0x14028c841
lea eax, [r10 + r14]
inc r9d
add rsi, 4
mov dword [rsi - 4], eax
cmp r9d, 8
jb 0x14028c820
cmp r9d, 0x10
jae 0x14028c90c
lea r14, [r9*4]
lea esi, [r9 - 8]
add r14, r13
nop
cmp r9d, ebp
jae 0x14028c981
mov r8d, esi
xor r10d, r10d
or r8d, 8
cmp r8d, 1
je 0x14028c8f5
lea edi, [r15*8]
mov ecx, r8d
mov eax, r8d
shr r8d, 1
and ecx, 1
shr rax, 1
neg ecx
add rax, rdi
movzx edx, word [rbx + rax*2 + 0x104]
sar rcx, 4
shr rdx, 4
and ecx, 0x7f
xor rdx, rcx
add r10d, dword [r11 + rdx*4]
cmp r8d, 1
jne 0x14028c8c1
lea eax, [r10 + r12]
inc r9d
add r14, 4
mov dword [r14 - 4], eax
inc esi
cmp r9d, 0x10
jb 0x14028c8a0
cmp r9d, ebp
jae 0x14028c981
lea rdi, [r9*4]
lea r10d, [r9 - 0x10]
add rdi, r13
sub ebp, r9d
mov esi, ebp
mov ebp, dword [rsp + 0x48]
nop dword [rax]
mov eax, r10d
xor r9d, r9d
bts eax, 8
cmp eax, 1
je 0x14028c96e
nop
mov edx, eax
mov ecx, eax
shr eax, 1
and edx, 1
shr rcx, 1
movzx r8d, word [rbx + rcx*2 + 0x204]
neg edx
sar rdx, 4
shr r8, 4
and edx, 0x7f
xor r8, rdx
add r9d, dword [r11 + r8*4]
cmp eax, 1
jne 0x14028c940
lea eax, [r9 + rbp]
add rdi, 4
inc r10d
mov dword [rdi - 4], eax
dec rsi
jne 0x14028c930
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x14028e920
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rsi, rcx
xor r11d, r11d
lea rdi, [rcx + 0x33b84]
nop dword [rax]
xor r9d, r9d
mov r10d, r11d
lea eax, [r9 + 1]
lea ebx, [rax + 3]
nop dword [rax]
mov ecx, eax
mov r8d, r10d
add eax, eax
movzx edx, word [rsi + rcx*2 + 0x3422c]
and r8d, 1
shr r10d, 1
mov ecx, r8d
shr rdx, 4
or eax, r8d
neg ecx
sar rcx, 4
and ecx, 0x7f
xor rdx, rcx
add r9d, dword [rsi + rdx*4 + 0x324d4]
dec ebx
jne 0x14028e950
inc r11d
mov dword [rdi], r9d
add rdi, 4
cmp r11d, 0x10
jb 0x14028e940
mov rdi, qword [rsp + 0x18]
mov dword [rsi + 0x33bc4], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x14028e9b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r12d, 4
mov r10, rcx
lea rbp, [rcx + 0x304d8]
mov edi, r12d
lea rsi, [rsp + 0x10]
nop dword [rax]
movzx edx, byte [rbp]
xor ebx, ebx
mov r11d, edi
mov r9d, edx
mov eax, edx
lea r8d, [rbx + 1]
and eax, 1
shr r9d, 1
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
sub r11d, eax
test r9d, r9d
je 0x14028ea71
mov r14d, edx
mov r15d, eax
mov eax, r8d
mov edx, r11d
add r8d, r8d
sub rax, r14
and edx, 1
shr r11d, 1
add rax, r15
or r8d, edx
movzx ecx, word [r10 + rax*2 + 0x34146]
mov eax, edx
neg eax
shr rcx, 4
sar rax, 4
and eax, 0x7f
xor rcx, rax
add ebx, dword [r10 + rcx*4 + 0x324d4]
dec r9d
jne 0x14028ea31
inc edi
mov dword [rsi], ebx
inc rbp
add rsi, r12
cmp edi, 0x80
jb 0x14028ea00
lea rsi, [rsp]
lea rbx, [r10 + 0x32f84]
lea rdi, [r10 + 0x33f48]
sub rsi, r10
lea r14, [r10 + 0x3338c]
sub rsi, 0x33384
nop word [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x33bc8], r11d
jbe 0x14028eb0e
nop dword [rax]
mov eax, r11d
xor r9d, r9d
or eax, 0x40
cmp eax, 1
je 0x14028eafe
nop
mov edx, eax
mov ecx, eax
shr eax, 1
and edx, 1
shr rcx, 1
movzx r8d, word [rdi + rcx*2]
neg edx
sar rdx, 4
shr r8, 4
and edx, 0x7f
xor r8, rdx
add r9d, dword [r10 + r8*4 + 0x324d4]
cmp eax, 1
jne 0x14028ead0
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x33bc8]
jb 0x14028eac0
mov edx, 0xe
cmp dword [r10 + 0x33bc8], edx
jbe 0x14028eb3d
nop dword [rax]
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
inc edx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx], eax
cmp edx, dword [r10 + 0x33bc8]
jb 0x14028eb20
mov eax, dword [rbx]
lea r8, [r10 + 0x304d8]
lea rdx, [r14 + 8]
mov dword [r14 - 8], eax
mov eax, dword [rbx + 4]
mov r9d, 0x7c
mov dword [r14 - 4], eax
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov eax, dword [rbx + 0xc]
mov dword [r14 + 4], eax
nop dword [rax + rax]
movzx eax, byte [r8]
lea rdx, [rdx + 4]
lea r8, [r8 + 1]
mov ecx, dword [rbx + rax*4]
add ecx, dword [rdx + rsi - 4]
mov dword [rdx - 4], ecx
dec r9
jne 0x14028eb70
sub rdi, 0xffffffffffffff80
add rbx, 0x100
add r14, 0x200
sub rsi, 0x200
dec r12
jne 0x14028eab0
mov dword [r10 + 0x3d340], r12d
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14028fcd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov dword [rcx + 0x3c], 0x20
mov qword [rcx + 0x68], 1
mov qword [rcx + 0x60], 4
lea r8, [rcx + 0x84]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x28], rax
nop dword [rax + rax]
mov edx, eax
mov ecx, eax
inc eax
shr ecx, 1
and edx, 1
lea r8, [r8 + 4]
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x14028fd00
ret
Function at 0x140293be0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x48], rdi
jne 0x140293c6e
lea rax, [rsp + 0x30]
mov r9, rcx
lea r8, [0x1402944f0]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140293c6e
lea rcx, [rbx + 0x80]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0xb0], edi
jne 0x140293c56
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
inc dword [rbx + 0xb0]
lea rcx, [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x58]
cmp qword [rbx + 0x48], rdi
setne al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140294500
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, qword [rdi + 0x40]
lea r14, [rdi + 0x28]
mov qword [rsp + 0x68], rdx
mov rbp, rax
mov qword [rsp + 0x60], rax
xor r15d, r15d
cmp qword [rdi + 0x20], 8
jb 0x140294562
mov rcx, qword [rdi + 8]
jmp 0x140294566
lea rcx, [rdi + 8]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x3e8
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1402945b6
mov rcx, qword [rdi + 0x40]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140294627
xor eax, eax
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1402945fd
lea rdx, [rsp + 0x60]
lea ecx, [rax + 2]
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x14029461e
mov rdx, rbx
mov rcx, rdi
call fcn.140295110
test al, al
jne 0x140294555
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140294555
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [rdi + 0xb0]
jne 0x140294649
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140295110
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov rbp, rcx
mov ecx, 0x80
call fcn.14029806c
mov rbx, rax
mov qword [rsp + 0x38], rax
xor edi, edi
test rax, rax
je 0x140295179
xor edx, edx
mov r8d, 0x80
mov rcx, rax
call fcn.1402a04b0
mov rcx, rbx
call fcn.140294f40
mov rbx, rax
jmp 0x14029517c
mov rbx, rdi
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x1402951f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1402951ba
mov r8, qword [rbx]
lea edx, [rax + 1]
mov rcx, rbx
call qword [r8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
setne al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140295400
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov r14, rdx
mov rbp, rcx
lea edx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
xor dil, dil
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r8d, dword [r14 + 0x18]
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rbp + 0x10]
mov rsi, rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1402954b7
cmp eax, 0x3e5
jne 0x1402954eb
mov rax, qword [rbp + 0x18]
lea rdx, [rsp + 0x58]
lea ecx, [rbx + 2]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1402954eb
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1402954eb
mov edx, dword [rsp + 0x50]
cmp edx, dword [r14 + 0x18]
jne 0x1402954eb
lea rcx, str.PipeConneciton:_Message_sent___d_bytes_._r_n
call fcn.140298d38
mov dil, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14029bc30
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14029ba98
Function at 0x140003b00
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140003b3d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140003c9c
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140003c3c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140003c9c
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140003bb0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140002620
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x140003c7b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140003c7b
call fcn.140002e00
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140003c62
mov rcx, r14
call fcn.140002e00
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x14007b900
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rbx, r8
mov r14d, r9d
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x50], rcx
mov byte [rbp - 0x5c], 0
lea rcx, [0x1403887b0]
call fcn.14032fcc0
mov qword [rbp - 0x68], rax
mov byte [rbp - 0x60], 0
lea rcx, [0x1403887b0]
call fcn.14032fcc0
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x58], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x7c], rcx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x84], rdx
mov r8, rbx
mov qword [rbp - 0x8c], r8
mov r9d, r14d
mov dword [rbp - 0x74], r9d
lea rcx, [rbp - 0xb8]
call fcn.140006ca0
mov rcx, qword [rbp - 0x7c]
mov rdx, qword [rbp - 0x84]
mov r8, qword [rbp - 0x8c]
mov r9d, dword [rbp - 0x74]
call sub.KERNEL32.dll_CreatePipe
mov ebx, eax
lea rcx, [rbp - 0xb8]
call fcn.140006cf0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x3c], 1
mov rcx, qword [rbp - 0x50]
mov byte [rbp - 0x5c], 1
mov rax, qword [rbp - 0x68]
mov qword [rax + 8], rcx
mov rcx, qword [rbp - 0x48]
mov byte [rbp - 0x60], 1
mov r8, qword [rbp - 0x70]
mov qword [r8 + 8], rcx
test ebx, ebx
setne bl
movzx ebx, bl
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call fcn.140006a90
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x70]
call fcn.140006a90
nop
call fcn.14000375d
mov dword [rax + 0xd8], esi
movzx eax, bl
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14012d280
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.140006ca0
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140006cf0
test ebx, ebx
jne 0x14012d2f4
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x14012d31b
lea rcx, [0x1403ab258]
call fcn.140006810
mov rbx, rax
mov rcx, rbx
call fcn.14015d320
mov rcx, rbx
call fcn.140006e00
lea rcx, [0x1403aa940]
call fcn.140006810
mov rbx, rax
mov rcx, rbx
call fcn.140157cc0
mov rcx, rbx
call fcn.140006e00
int3

Function at 0x14012d7a0
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x14012d7bd
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.1401dd1c0
mov ecx, eax
test ecx, ecx
jne 0x14012d84a
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.1401dd160
mov ecx, eax
lea rdx, [0x14033fdc0]
call fcn.1401aa5c0
mov rcx, rax
call fcn.140006e00
int3