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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18005c250
sub rsp, rax
mov rax, qword [0x18007d028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18004ebc4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180041edf
mov rax, rbp
jmp 0x180041fe7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7ea10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004ee54
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x7ea10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180041fe3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180041fe3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004ee54
test rax, rax
js 0x180041fe3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180041fe3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180041fd5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180041fd5
cmp byte [rcx], 0xd
jne 0x180041fbb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180041fca
cmp byte [rcx + 1], 0xa
jne 0x180041fca
inc rcx
jmp 0x180041fca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7d2d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180041f9d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180041fe7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005c0c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004f6c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18007ea10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18004f71f
cmp word [rdx], r13w
jne 0x18004f71f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004f724
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004f849
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004f86a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004f75d
mov rdx, r9
mov word [rbx], cx
jmp 0x18004f784
cmp r9, r8
jae 0x18004f794
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18004f73e
jmp 0x18004f849
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004f83e
cmp dword [rsp + 0x80], esi
je 0x18004f83e
lea r8, [0x18007ea10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004f816
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004f7e6
mov word [rbx], r13w
jmp 0x18004f846
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18004f7f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004f846
cmp word [rsp + 0x70], r13w
jne 0x18004f823
cmp rbx, r14
je 0x18004f7e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004ee5c
cmp word [rsp + 0x70], r13w
je 0x18004f849
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18007ea10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004f843
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004f849
Function at 0x1800538c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800538de
mov al, 1
jmp 0x18005393e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800538ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005393c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180056afc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005393c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005393c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005393c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005393e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005602c
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 0x18005605c
xor eax, eax
jmp 0x18005611f
mov rbp, rbx
cmp word [rax], si
je 0x180056081
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180056068
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180056064
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.180055f4c
movsxd r14, eax
test eax, eax
jne 0x1800560bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180056055
mov rcx, r14
call fcn.180051434
mov rdi, rax
test rax, rax
jne 0x1800560d8
xor ecx, ecx
call fcn.180050fd8
jmp 0x1800560b4
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.180055f4c
test eax, eax
jne 0x180056109
mov rcx, rdi
call fcn.180050fd8
jmp 0x180056113
xor ecx, ecx
call fcn.180050fd8
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 0x18005a85c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18004ee5c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18004ee5c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18005a9ac
cmp rax, 0xffffffffffffffff
je 0x18005a9ac
xor edi, edi
test rbp, rbp
jle 0x18005a957
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180053f44
mov rbx, rax
test rax, rax
jne 0x18005a8e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18005a94d
mov edx, 0x8000
mov ecx, r14d
call fcn.18005a6e0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800534c8
cmp eax, 0xffffffff
je 0x18005a92d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005a8f4
mov edx, r15d
mov ecx, r14d
call fcn.18005a6e0
jmp 0x18005a94d
cmp byte [rsi + 0x38], dil
je 0x18005a944
cmp dword [rsi + 0x34], 5
jne 0x18005a944
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18005a94d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180050fd8
jmp 0x18005a9c0
jns 0x18005a9c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18004ee5c
cmp rax, 0xffffffffffffffff
jne 0x18005a978
cmp byte [rsi + 0x30], dil
je 0x18005a9c0
mov edi, dword [rsi + 0x2c]
jmp 0x18005a9c0
mov ecx, r14d
call fcn.180056afc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18005a9c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18005a9c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18005a9b9
mov eax, dword [rsi + 0x2c]
jmp 0x18005a9be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18004ee5c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800014c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
movzx eax, byte [0x18000ab3c]
test eax, eax
jne 0x1800014d8
mov byte [0x18000ab3c], 1
jmp 0x1800014da
jmp 0x180001511
cmp dword [0x180006110], 0x1db0
je 0x1800014f2
cmp dword [0x180006110], 0x1db1
jne 0x1800014f9
call fcn.180001240
jmp 0x1800014fe
call fcn.180001370
mov rdx, qword [0x180006118]
lea rcx, str.PspTerminateThreadByPointer:__p_n
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x28
ret
Function at 0x180002000
Capabilities:
Create device object
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov dword [rsp + 0x110], 0
mov rcx, qword [rsp + 0x130]
lea rax, [0x1800016e0]
mov qword [rcx + 0x70], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001740]
mov qword [rcx + 0x80], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001610]
mov qword [rcx + 0xe0], rax
mov rcx, qword [rsp + 0x130]
lea rax, [0x180001790]
mov qword [rcx + 0x68], rax
lea rdx, str.DeviceBEIKESHOUHU
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x108]
mov qword [rsp + 0x30], r11
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x110], eax
cmp dword [rsp + 0x110], 0
jge 0x1800020d8
mov eax, dword [rsp + 0x110]
jmp 0x180002259
lea rdx, str.DosDevicesGlobalBEIKESHOUHU
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x110], eax
cmp dword [rsp + 0x110], 0
jge 0x18000212e
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x110]
jmp 0x180002259
lea rcx, str.BeiKeShouHu_Driver_loaded____n
call sub.ntoskrnl.exe_DbgPrint
call fcn.180001870
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xd0], 0x30
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x30], rax
lea rax, [0x180001e10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x1fffff
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
xor eax, eax
add rsp, 0x128
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140f55748
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f55752
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f5577b
pop rbp
sub rbp, 0x33
sub rbp, 0xf55748
sub rsp, 0x20
jmp 0x140f5579a
mov rax, 0xf55748
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffa4d3cdc7
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f557b9
jmp 0x140f557d0
invalid
Function at 0x7ff7d938df0c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, edx
mov rbx, rcx
test rcx, rcx
je 0x7ff7d938df7c
movsxd rax, dword [rcx + 0x3c]
xor r14d, r14d
mov edi, dword [rax + rcx + 0x88]
movsxd r12, dword [rax + rcx + 0x8c]
add rdi, rcx
mov ebp, dword [rdi + 0x20]
mov esi, dword [rdi + 0x24]
add rbp, rcx
add rsi, rcx
cmp dword [rdi + 0x18], r14d
jbe 0x7ff7d938df7c
mov ecx, dword [rbp]
or edx, 0xffffffff
add rcx, rbx
call fcn.7ff7d938d42c
cmp eax, r15d
je 0x7ff7d938df97
inc r14d
add rbp, 4
add rsi, 2
cmp r14d, dword [rdi + 0x18]
jb 0x7ff7d938df58
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [rsi]
test eax, eax
js 0x7ff7d938df7c
mov ecx, dword [rdi + 0x1c]
add rcx, rbx
mov r8d, dword [rcx + rax*4]
add r8, rbx
cmp r8, rdi
jbe 0x7ff7d938e061
lea rax, [rdi + r12]
cmp r8, rax
jae 0x7ff7d938e061
mov al, byte [r8]
xor edx, edx
cmp al, 0x2e
je 0x7ff7d938dfe4
lea r9, [rsp + 0x20]
mov rcx, r8
sub r9, r8
mov byte [r9 + rcx], al
inc rcx
inc edx
mov al, byte [rcx]
cmp al, 0x2e
jne 0x7ff7d938dfd5
lea ecx, [rdx + 1]
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0x2e
movsxd rax, ecx
movsxd rbx, ecx
mov byte [rsp + rax + 0x20], 0x64
inc ecx
add rbx, r8
movsxd rax, ecx
mov byte [rsp + rax + 0x20], 0x6c
lea eax, [rcx + 1]
xor ecx, ecx
cmp byte [rbx], 0x23
cdqe
mov dword [rsp + 0x70], ecx
mov word [rsp + rax + 0x20], 0x6c
jne 0x7ff7d938e045
inc rbx
mov al, byte [rbx]
test al, al
je 0x7ff7d938e040
lea ecx, [rcx + rcx*4]
movsx eax, al
inc rbx
lea ecx, [rcx - 0x18]
lea ecx, [rax + rcx*2]
mov al, byte [rbx]
test al, al
jne 0x7ff7d938e027
mov dword [rsp + 0x70], ecx
lea rbx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [0x7ff7d93a0f48]
mov rdx, rbx
mov rcx, rax
call qword [0x7ff7d93a0f40]
jmp 0x7ff7d938df7e
mov rax, r8
jmp 0x7ff7d938df7e

Function at 0x7ff7d938e06c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov ebp, ecx
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x7ff7d938e106
mov r15d, 0x3f
xor r14d, r14d
cmp word [rbx + 0x58], r15w
jae 0x7ff7d938e0fe
mov r8, qword [rbx + 0x60]
mov esi, r14d
mov rcx, r14
cmp word [r8], r14w
je 0x7ff7d938e0df
movsxd rax, esi
cmp rax, r15
jae 0x7ff7d938e0df
mov al, byte [r8 + rcx*2]
inc rcx
inc esi
mov byte [rsp + rcx + 0x1f], al
mov r8, qword [rbx + 0x60]
cmp word [r8 + rcx*2], r14w
jne 0x7ff7d938e0bf
mov byte [rsp + rcx + 0x20], r14b
lea rcx, [rsp + 0x20]
call fcn.7ff7d938dde8
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.7ff7d938d42c
cmp ebp, eax
je 0x7ff7d938e122
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x7ff7d938e0a8
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rax, qword [rbx + 0x30]
jmp 0x7ff7d938e108
Function at 0x7ff7d938ec5c
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
and dword [0x7ff7d93a3138], 0
mov edx, 0xd26f2a4
xor ecx, ecx
call fcn.7ff7d938e1fc
call rax
lea rcx, [0x7ff7d939f7e0]
xor dword [rcx], eax
lea rdx, [0x7ff7d939f824]
add rcx, 4
cmp rcx, rdx
jl 0x7ff7d938ec7c
add rsp, 0x28
ret

Function at 0x7ff7d9390a18
Capabilities:
Encode data using xor

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, 0x20
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
call fcn.7ff7d938d674
movsxd r14, eax
mov rcx, r14
call fcn.7ff7d938c934
cmp byte [rdi], 0
mov rcx, rbp
mov rsi, rax
je 0x7ff7d9390a74
mov rdx, rax
sub rdx, rdi
mov al, byte [rdi]
xor al, byte [rcx]
inc rcx
mov byte [rdx + rdi], al
inc rdi
cmp byte [rcx], 0
cmove rcx, rbp
cmp byte [rdi], 0
jne 0x7ff7d9390a5b
mov r8, rbx
mov edx, r14d
mov rcx, rsi
call fcn.7ff7d9390ad0
mov rcx, rsi
call fcn.7ff7d938cb9c
movsxd rdx, dword [rbx + 8]
mov rax, rdx
test edx, edx
jle 0x7ff7d9390aa9
mov rcx, qword [rbx]
cmp byte [rcx + rax - 1], 0x3d
jne 0x7ff7d9390aa9
dec rax
dec edx
test rax, rax
jg 0x7ff7d9390a98
mov rcx, rbx
call fcn.7ff7d938d9ac
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x7ff7d9393334
Capabilities:
Inspect section memory permissions

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, 0x20
movsxd rbp, dword [rcx + 0x3c]
mov r13d, edx
xor edx, edx
add rbp, rcx
mov r12, rcx
mov r15d, edx
movzx eax, word [rbp + 0x14]
cmp dx, word [rbp + 6]
jae 0x7ff7d9393459
lea r14, [rbp + 0x3c]
add r14, rax
mov ecx, dword [r14 - 0x14]
test r13d, r13d
jne 0x7ff7d9393416
mov eax, dword [r14]
lea esi, [r13 + 1]
and eax, 0xe0000000
cmp eax, 0x20000000
je 0x7ff7d93933ea
cmp eax, 0x40000000
je 0x7ff7d93933e3
cmp eax, 0x60000000
je 0x7ff7d93933dc
cmp eax, 0x80000000
je 0x7ff7d93933d5
cmp eax, 0xa0000000
je 0x7ff7d93933ce
cmp eax, 0xc0000000
je 0x7ff7d93933c7
cmp eax, 0xe0000000
jne 0x7ff7d93933ef
lea esi, [r13 + 0x40]
jmp 0x7ff7d93933ef
mov esi, 4
jmp 0x7ff7d93933ef
mov esi, 0x80
jmp 0x7ff7d93933ef
mov esi, 8
jmp 0x7ff7d93933ef
mov esi, 0x20
jmp 0x7ff7d93933ef
mov esi, 2
jmp 0x7ff7d93933ef
mov esi, 0x10
test dword [r14], 0x4000000
je 0x7ff7d93933fc
bts esi, 9
test ecx, ecx
jne 0x7ff7d939341d
test byte [r14], 0x40
je 0x7ff7d939340b
mov ecx, dword [rbp + 0x20]
jmp 0x7ff7d9393419
test byte [r14], 0x80
je 0x7ff7d9393445
mov ecx, dword [rbp + 0x24]
jmp 0x7ff7d9393419
mov esi, r13d
test ecx, ecx
je 0x7ff7d9393445
mov edi, dword [r14 - 0x18]
mov ebx, dword [r14 - 0x1c]
mov edx, 0x72d1864
xor ecx, ecx
add rdi, r12
call fcn.7ff7d938e1fc
lea r9, [rsp + 0x50]
mov r8d, esi
mov edx, ebx
mov rcx, rdi
call rax
xor edx, edx
movzx eax, word [rbp + 6]
inc r15d
add r14, 0x28
cmp r15d, eax
jl 0x7ff7d9393377
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x7ff7d9394f60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movsxd rbx, dword [rcx + 0x3c]
mov rbp, rcx
mov r14, r9
mov ecx, dword [rbx + rcx + 0x50]
mov r15, r8
mov rdi, rdx
mov qword [rdx], rcx
add rcx, 0x100
call fcn.7ff7d938c934
mov r8d, dword [rdi]
mov rdx, rbp
mov rcx, rax
mov rsi, rax
call fcn.7ff7d938cb2c
mov ecx, dword [rbx + rbp + 0xb0]
mov r9d, dword [rbx + rbp + 0xb4]
mov r8, r15
add rcx, rbp
mov rdx, rsi
sub r8, rbp
call fcn.7ff7d9393944
lea rcx, [rsp + 0x50]
mov edx, 4
call fcn.7ff7d938ec18
xor r8d, r8d
test qword [rdi], 0xfffffffffffffffc
jbe 0x7ff7d9395006
mov rdx, rsi
mov eax, dword [rsp + 0x50]
inc r8d
xor dword [rdx], eax
mov rcx, qword [rdi]
movsxd rax, r8d
shr rcx, 2
lea rdx, [rdx + 4]
cmp rax, rcx
jb 0x7ff7d9394fea
mov rax, r15
mov rdx, r15
sub rax, rbp
add qword [r14], rax
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x50]
mov r9, qword [r14]
mov r8d, dword [rdi]
add rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.7ff7d9394de4
mov rdx, qword [rdi]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rdx, r15
cdqe
mov qword [r14], rdx
add qword [rdi], rax
mov rax, rsi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x7ff7d9395414
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, [0x7ff7d939f460]
mov r8d, pe_nt_image_headers64
mov rdi, rcx
call fcn.7ff7d938cacc
xor r9d, r9d
mov r8d, r9d
mov ecx, r9d
mov rdx, qword [rdi]
mov al, byte [rdx + r8]
inc r8
xor byte [rdx + rcx + 2], al
cmp r8, 2
cmove r8, r9
inc rcx
cmp rcx, 0xc6
jl 0x7ff7d939543c
mov edx, dword [rdi + 8]
mov rax, qword [rdi]
mov rcx, rdi
movzx ebx, byte [rax + 2]
lea r8d, [rdx - 3]
sub edx, r8d
call fcn.7ff7d938cf14
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.7ff7d938cef4
Function at 0x7ff7d939ab34
Capabilities:
Create pipe
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
xor eax, eax
xor r15d, r15d
mov ebx, r8d
mov rsi, rcx
mov rdi, rdx
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x29]
xor edx, edx
mov dword [rbp - 0x61], 0x18
mov dword [rbp - 0x51], 1
mov qword [rbp - 0x59], r15
mov qword [rbp + 0x7f], r15
mov qword [rbp - 0x69], r15
call fcn.7ff7d938ced4
xor ecx, ecx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x39], rcx
lea rcx, [rbp + 0x7f]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x69]
xor r9d, r9d
mov dword [rbp - 0x29], 0x68
mov dword [rbp + 0x13], 1
mov word [rbp + 0x17], r15w
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x7ff7d939abd4
lea eax, [r15 + 1]
jmp 0x7ff7d939ac60
mov rax, qword [rbp - 0x69]
bts dword [rbp + 0x13], 8
xor r9d, r9d
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x2f], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x29]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov rdx, rsi
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x7ff7d939ac4a
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x49]
mov r9d, ebx
mov r8, rdi
call fcn.7ff7d939ac78
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x7ff7d939ac78
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r13
push r14
sub rsp, 0x440
mov rdi, rdx
lea rax, [rsp + 0x30]
mov ebp, r9d
mov r14, r8
mov rsi, rcx
xor ebx, ebx
and qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov rcx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x7ff7d939ad7c
mov r13d, 0x400
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x7ff7d939ad21
movsxd rax, ecx
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x40]
cmp rax, r13
cmova ecx, r13d
and qword [rsp + 0x20], 0
mov r8d, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, dword [rsp + 0x34]
lea r8, [rsp + 0x40]
mov edx, ebp
mov rcx, r14
call fcn.7ff7d9398a7c
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x34]
mov dword [rsp + 0x30], ecx
jne 0x7ff7d939acd7
jmp 0x7ff7d939ad53
test ebx, ebx
jne 0x7ff7d939ad3f
lea edx, [rbx + 0x64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x7ff7d939ad53
mov ebx, 0xa
jmp 0x7ff7d939ad53
mov eax, ebx
dec ebx
cmp eax, 1
je 0x7ff7d939ad7c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x7ff7d939accf
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rdi
ret