joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab700
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14012b050]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rbx, [rcx + 0x20]
lea r14, [0x1400ab910]
xorps xmm6, xmm6
lea r13, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r15, qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ab7ad
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0x18
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r8d, 8
mov r9d, 0xff
call r12
mov qword [rsi + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x1400ab809
test dil, 1
jne 0x1400ab7e0
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400ab7e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400ab7e2
mov ebp, eax
cmp eax, 0x217
je 0x1400ab7e2
jmp 0x1400ab87b
xor edi, edi
mov rbp, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rdx, r14
mov r8, rbp
call qword [rax + 0x20]
test eax, eax
je 0x1400ab750
mov rcx, rbp
call r15
jmp 0x1400ab750
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.140047ad0
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.140042890
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.14003f080
mov rcx, qword [rsi + 0x48]
mov rbx, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov edx, 1
mov r8, rax
xor r9d, r9d
call qword [rbx]
mov rcx, rdi
call fcn.140043590
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ba9f0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ebp, 0x3e5
jne 0x1400ab811
jmp 0x1400ab858
Function at 0x1400ae3e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
test r8, r8
je 0x1400ae523
xor r10d, r10d
cmp r8, 8
jb 0x1400ae4fa
mov r9, r8
and r9, 0xfffffffffffffff8
lea rax, [r9 - 8]
mov r10, rax
shr r10, 3
add r10, 1
test rax, rax
je 0x1400ae52b
mov r11, r10
and r11, 0xfffffffffffffffe
pxor xmm2, xmm2
xor eax, eax
pxor xmm0, xmm0
pxor xmm1, xmm1
nop dword [rax]
mov esi, dword [rdx + rax]
mov edi, dword [rdx + rax + 4]
xor esi, dword [rcx + rax]
xor edi, dword [rcx + rax + 4]
movd xmm3, esi
movd xmm4, edi
punpcklbw xmm3, xmm2
punpcklwd xmm3, xmm2
por xmm3, xmm0
punpcklbw xmm4, xmm2
punpcklwd xmm4, xmm2
por xmm4, xmm1
mov esi, dword [rdx + rax + 8]
mov edi, dword [rdx + rax + 0xc]
xor esi, dword [rcx + rax + 8]
movd xmm0, esi
xor edi, dword [rcx + rax + 0xc]
movd xmm1, edi
punpcklbw xmm0, xmm2
punpcklwd xmm0, xmm2
por xmm0, xmm3
punpcklbw xmm1, xmm2
punpcklwd xmm1, xmm2
por xmm1, xmm4
add rax, 0x10
add r11, 0xfffffffffffffffe
jne 0x1400ae430
test r10b, 1
je 0x1400ae4d0
mov edi, dword [rdx + rax]
xor edi, dword [rcx + rax]
mov esi, dword [rdx + rax + 4]
movd xmm2, edi
xor esi, dword [rcx + rax + 4]
movd xmm3, esi
pxor xmm4, xmm4
punpcklbw xmm2, xmm4
punpcklwd xmm2, xmm4
por xmm0, xmm2
punpcklbw xmm3, xmm4
punpcklwd xmm3, xmm4
por xmm1, xmm3
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd r10d, xmm0
cmp r9, r8
je 0x1400ae516
and r8d, 7
add rdx, r9
add rcx, r9
xor edi, edi
nop dword [rax]
movzx eax, byte [rdx + rdi]
xor al, byte [rcx + rdi]
movzx eax, al
or r10d, eax
add rdi, 1
cmp r8, rdi
jne 0x1400ae500
mov eax, 0x100
sub eax, r10d
shr eax, 8
jmp 0x1400ae528
mov eax, 1
pop rdi
pop rsi
ret
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
test r10b, 1
jne 0x1400ae49e
jmp 0x1400ae4d0
Function at 0x1400b8080
Capabilities:
Hash data using sha512

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
cmp ecx, 0x41
jb 0x1400b80a5
lea rcx, str.hashlen___ssh_blake2b.hlen
lea rdx, str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_blake2.c
mov r8d, pe_nt_image_headers64
call fcn.1400cb8ac
mov ecx, 1
mov edx, 0x108
xor r8d, r8d
call fcn.1400434f0
lea r8, [rax + 0xf8]
lea rdx, [0x1400fceb0]
mov qword [rax + 0xf8], rdx
mov dword [rax + 0x40], esi
lea rdx, [rax + 0xe0]
lea rcx, [0x1400b83e0]
mov qword [rax + 0xe0], rcx
mov qword [rax + 0xe8], 0
mov qword [rax + 0xf0], rdx
mov qword [rax + 0x100], rdx
movaps xmm0, xmmword [0x1400fcf10]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x1400fcf20]
movups xmmword [rax + 0x10], xmm0
movaps xmm0, xmmword [0x1400fcf30]
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x1400fcf40]
movups xmmword [rax + 0x30], xmm0
mov ecx, esi
movabs rdx, 0x6a09e667f2bdc908
xor rdx, rcx
mov qword [rax], rdx
xorps xmm0, xmm0
movups xmmword [rax + 0xc8], xmm0
mov qword [rax + 0xd8], 0
mov rax, r8
add rsp, 0x20
pop rsi
ret
Function at 0x1400ba880
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rdx]
bswap r8
xor r8, qword [rcx + 0x70]
mov qword [rcx + 0x70], r8
mov r9, qword [rdx + 8]
bswap r9
xor r9, qword [rcx + 0x78]
pxor xmm0, xmm0
xor r10d, r10d
mov edx, r9d
and edx, 1
mov rax, r9
shr rax, 1
mov qword [rcx + 0x78], rax
neg rdx
movdqu xmm1, xmmword [rcx + r10 + 0x90]
movq xmm2, rdx
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and eax, 1
shr r9, 2
mov qword [rcx + 0x78], r9
neg rax
movdqu xmm1, xmmword [rcx + r10 + 0xa0]
movq xmm0, rax
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r10, 0x20
cmp r10, 0x400
jne 0x1400ba8a0
xor r9d, r9d
nop dword [rax]
mov eax, r8d
and eax, 1
mov rdx, r8
shr rdx, 1
mov qword [rcx + 0x70], rdx
neg rax
movdqu xmm1, xmmword [rcx + r9 + 0x490]
movq xmm2, rax
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and edx, 1
shr r8, 2
mov qword [rcx + 0x70], r8
neg rdx
movdqu xmm1, xmmword [rcx + r9 + 0x4a0]
movq xmm0, rdx
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r9, 0x20
cmp r9, 0x400
jne 0x1400ba910
movdqu xmmword [rcx + 0x70], xmm0
ret

Function at 0x1400c8284
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c83d8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c8447
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c8447
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8447
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8447
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8447
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8447
cmp dword [rcx + 0xf8], 0
je 0x1400c8447
mov ecx, ebx
call fcn.1400c8304
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c856c
nop
cmp dword [rbp + 0x20], 0
je 0x1400c8495
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c83a4
int3
Function at 0x1400d0680
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400d069d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400d06f8
test al, 7
jne 0x1400d0690
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400d06b1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400d0722
test dh, dh
je 0x1400d071c
shr rdx, 0x10
test dl, dl
je 0x1400d0716
test dh, dh
je 0x1400d0710
shr rdx, 0x10
test dl, dl
je 0x1400d070a
test dh, dh
je 0x1400d0704
shr edx, 0x10
test dl, dl
je 0x1400d06fe
test dh, dh
jne 0x1400d06b1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400dad1c
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 0x1400dad4c
xor eax, eax
jmp 0x1400dae0f
mov rbp, rbx
cmp word [rax], si
je 0x1400dad71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400dad58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400dad54
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.1400dac6c
movsxd r14, eax
test eax, eax
jne 0x1400dadaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400dad45
mov rcx, r14
call fcn.1400d5070
mov rdi, rax
test rax, rax
jne 0x1400dadc8
xor ecx, ecx
call fcn.1400d44e4
jmp 0x1400dada4
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.1400dac6c
test eax, eax
jne 0x1400dadf9
mov rcx, rdi
call fcn.1400d44e4
jmp 0x1400dae03
xor ecx, ecx
call fcn.1400d44e4
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 0x1400dae2c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400daeb3
mov rsi, rbx
cmp word [rax], bp
je 0x1400dae72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400dae5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400dae58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d5070
mov rdi, rax
test rax, rax
je 0x1400daea0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bbc60
mov rbp, rdi
xor ecx, ecx
call fcn.1400d44e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dd3a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400dd3d2
call fcn.1400ca688
mov dword [rax], 0x16
call fcn.1400d45fc
jmp 0x1400dd4f1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400dd4f1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400dd4f1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400dd401
lock or dword [rcx + 0x14], 0x10
jmp 0x1400dd4f1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400dd415
call fcn.1400e2cd4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400d638c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400ddcdc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400dd4df
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400dd4aa
mov rcx, rsi
call fcn.1400d638c
cmp eax, edi
je 0x1400dd495
mov rcx, rsi
call fcn.1400d638c
cmp eax, 0xfffffffe
je 0x1400dd495
mov rcx, rsi
call fcn.1400d638c
movsxd rbx, eax
lea r14, [0x14012ff70]
mov rcx, rsi
sar rbx, 6
call fcn.1400d638c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400dd49c
lea rdx, [0x14012b2e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400dd4aa
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400dd4ce
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400dd4ce
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400dd4ce
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400dd4f4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400de518
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14012ff70]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400de576
cmp word [rdx], r12w
jne 0x1400de576
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400de57c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400de6d7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400de6b2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400de5b5
mov rcx, r9
jmp 0x1400de5d8
cmp r9, rdx
jae 0x1400de5ef
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400de599
jmp 0x1400de6d7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400de6ac
cmp dword [rsp + 0x80], edi
je 0x1400de6ac
mov rdx, r14
lea r11, [0x14012ff70]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400de685
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400de658
mov word [rbx], r12w
jmp 0x1400de6d3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400de661
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400de6d3
cmp word [rsp + 0x70], r12w
jne 0x1400de692
cmp rbx, rsi
je 0x1400de652
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400e554c
cmp word [rsp + 0x70], r12w
je 0x1400de6d7
mov word [rbx], r13w
jmp 0x1400de6d3
lea r11, [0x14012ff70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400de6cf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400de6d7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e5310
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400c2cbc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e539a
cmp byte [rbp - 0x21], r15b
je 0x1400e5395
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e53d0
call fcn.1400d20f8
test eax, eax
jne 0x1400e53bc
cmp byte [rbp - 0x21], r15b
je 0x1400e53b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e53d0
cmp byte [rbp - 0x21], r15b
je 0x1400e53cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d03d4
test eax, eax
jne 0x1400e5470
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c2cbc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e540f
cmp byte [rbp - 0x21], r15b
je 0x1400e5444
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e5444
call fcn.1400d20f8
test eax, eax
jne 0x1400e5430
cmp byte [rbp - 0x21], r15b
je 0x1400e5429
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e5444
cmp byte [rbp - 0x21], r15b
je 0x1400e5441
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d03d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e5470
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e5473
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e5481
mov rcx, rdi
call fcn.1400d44e4
cmp byte [rbp + 0x3f], r15b
je 0x1400e5490
mov rcx, qword [rbp + 0x27]
call fcn.1400d44e4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400e7cd0
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.1400e554c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e554c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e7e20
cmp rax, 0xffffffffffffffff
je 0x1400e7e20
xor edi, edi
test rbp, rbp
jle 0x1400e7dcb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d670c
mov rbx, rax
test rax, rax
jne 0x1400e7d58
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e7dc1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400cb428
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.1400dc74c
cmp eax, 0xffffffff
je 0x1400e7da1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e7d68
mov edx, r15d
mov ecx, r14d
call fcn.1400cb428
jmp 0x1400e7dc1
cmp byte [rsi + 0x38], dil
je 0x1400e7db8
cmp dword [rsi + 0x34], 5
jne 0x1400e7db8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400e7dc1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d44e4
jmp 0x1400e7e34
jns 0x1400e7e34
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e554c
cmp rax, 0xffffffffffffffff
jne 0x1400e7dec
cmp byte [rsi + 0x30], dil
je 0x1400e7e34
mov edi, dword [rsi + 0x2c]
jmp 0x1400e7e34
mov ecx, r14d
call fcn.1400db850
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e7e34
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 0x1400e7e34
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e7e2d
mov eax, dword [rsi + 0x2c]
jmp 0x1400e7e32
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e554c
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 0x140001094
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x85f8ac8
mov rbx, rcx
jne 0x1400010eb
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400010eb
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400010eb
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x1400010eb
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x1400010f0
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x1400010f8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
cmp dword [rcx], 0x85f8ac8
mov rbx, rcx
jne 0x1400011f6
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400011f6
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x1400011f6
mov rdi, qword [rsi + 0x28]
test rdi, rdi
jne 0x140001157
call fcn.140001030
mov edx, eax
mov rdi, qword [rdx + rsi]
mov rax, rdi
shr rax, 0x38
cmp al, 0x40
jne 0x140001195
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rsi, cr3
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test rsi, rsi
jne 0x140001198
mov rsi, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rsi
mov rdi, qword [rbx + 0x18]
call fcn.140001398
test rax, rax
je 0x1400011f6
and qword [rsp + 0x78], 0
mov ecx, eax
and ecx, 0xfff
mov edx, 0x1000
sub edx, ecx
mov r9d, 1
cmp edx, edi
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x10]
cmovl edi, edx
movsxd r8, edi
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400011fb
mov eax, 0xc0000001
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x417b80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417d0b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0083f710]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x417be5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x417bf4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x417c13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x417c23
cmp rbx, 0x1000
jae 0x417beb
jmp 0x417c8d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x417c35
xor edx, edx
jmp 0x417c84
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0083f710]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x417c19
jmp 0x417c08
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0083f710]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x005d655e]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x005d6be5]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x005da0cc]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS