joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041c8c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rdx
cmp qword [rdx + 0x20], 8
jb 0x140041cb4
mov rdx, qword [rdx + 8]
jmp 0x140041cb8
add rdx, 8
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x140041d3f
mov r9b, 1
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400407d4
nop
cmp qword [rax + 0x20], 0x10
jb 0x140041d01
mov r8, qword [rax + 8]
jmp 0x140041d05
lea r8, [rax + 8]
mov r9d, edi
lea rdx, str.RegSetValueEx___failed:_value___s____i_
lea rcx, [rsp + 0x60]
call fcn.1400432dc
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1400058ac
lea rdx, [0x14005df10]
lea rcx, [rsp + 0x88]
call fcn.14002f6a0
nop
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret

Function at 0x140041d5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x140
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, r9d
mov rbx, rdx
mov dword [rax + 0x20], r9d
cmp qword [rdx + 0x20], 8
jb 0x140041d8f
mov rdx, qword [rdx + 8]
jmp 0x140041d93
add rdx, 8
lea rax, [rsp + 0x168]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [rsp + 0x168], esi
je 0x140041eb8
mov r9b, 1
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call fcn.1400407d4
nop
cmp qword [rax + 0x20], 0x10
jb 0x140041de7
mov r8, qword [rax + 8]
jmp 0x140041deb
lea r8, [rax + 8]
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x20], eax
mov r9d, esi
lea rdx, str.Size_mismatch:_value___s__expected__i_found__i
lea rcx, [rsp + 0x118]
call fcn.1400432dc
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005764
nop
lea rax, vtable.replay::registry2::size_mismatch.0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xe0], 0
je 0x140041e4d
mov r8d, 1
lea rdx, [0x1400517a0]
lea rcx, [rsp + 0xc8]
call fcn.140004810
mov qword [rsp + 0x50], 0xf
and qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov r8d, 0xd
lea rdx, str.size_mismatch
lea rcx, [rsp + 0x30]
call fcn.140004980
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc8]
call fcn.1400046d0
nop
cmp qword [rsp + 0x50], 0x10
jb 0x140041ea6
mov rcx, qword [rsp + 0x38]
call fcn.14001bf18
nop
lea rdx, [0x14005dff0]
lea rcx, [rsp + 0x60]
call fcn.14002f6a0
nop
test eax, eax
je 0x140041f1b
mov r9b, 1
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x118]
call fcn.1400407d4
nop
cmp qword [rax + 0x20], 0x10
jb 0x140041ee0
mov r8, qword [rax + 8]
jmp 0x140041ee4
lea r8, [rax + 8]
mov r9d, edi
lea rdx, str.RegQueryValueEx___failed:_value___s____i_
lea rcx, [rsp + 0xf0]
call fcn.1400432dc
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400058ac
lea rdx, [0x14005df10]
lea rcx, [rsp + 0x60]
call fcn.14002f6a0
nop
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400420fc
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x10090
call fcn.140043d90
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400610b0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], ebp
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
mov rdx, rdi
call fcn.140041c2c
mov edx, dword [rsp + 0x24]
shr rdx, 1
lea r12d, [rbp + 7]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.140005a8c
nop
mov r9d, dword [rsp + 0x20]
lea r8d, [rbp + 1]
mov rdx, rdi
mov rcx, rbx
call fcn.140041f3c
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x24]
mov rdx, rdi
mov rcx, rbx
call fcn.140041d5c
or rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x70]
cmp rcx, rbp
je 0x140042211
lea rbx, [rcx - 1]
cmp rcx, rbx
ja 0x1400421d2
call fcn.1400404a4
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
cmp word [rax + rbx*2], bp
jne 0x140042211
lea rdx, [rcx - 1]
cmp rdx, rcx
ja 0x140042201
mov r8, rdi
lea rcx, [rsp + 0x58]
call fcn.140004cf0
jmp 0x140042211
xor r8d, r8d
sub rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140005c68
cmp dword [rsp + 0x20], 2
jne 0x14004228b
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov r8d, 0x8000
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8d, [rax - 1]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.140004b80
nop
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400044d0
nop
cmp qword [rsp + 0x48], 8
jb 0x14004228b
mov rcx, qword [rsp + 0x30]
call fcn.14001bf18
mov qword [rsi + 0x20], r12
mov qword [rsi + 0x18], rbp
mov word [rsi + 8], bp
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400044d0
nop
cmp qword [rsp + 0x78], 8
jb 0x1400422bd
mov rcx, qword [rsp + 0x60]
call fcn.14001bf18
mov rax, rsi
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002c2c0
add rsp, 0x10090
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180001f10
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180037060]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp edx, 1
jne 0x18000204a
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x30]
call fcn.180007d40
lea rcx, [rsp + 0x30]
call fcn.180003040
nop
lea rcx, [rsp + 0x30]
call fcn.180003350
mov ecx, 0x7b
xor r9d, r9d
lea rax, [0x180039890]
nop word [rax + rax]
xor byte [rax], cl
add ecx, 0x7b
inc r9d
lea rax, [rax + 1]
cmp r9d, 0x412f8
jb 0x180001f70
mov edx, 0x412f8
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [0x18007ab90]
mov rbx, rax
mov r8d, 0x412f8
lea rdx, [0x180039890]
mov rcx, rax
call fcn.180007670
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [0x18007ab98]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x40]
call fcn.180002cd0
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xe0]
call fcn.180005134
nop
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800056b0
add rsp, 0x150
pop rbx
ret
Function at 0x180002540
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180002562
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1800025dc
mov rdi, r14
mov rcx, rbx
call fcn.180003970
test rax, rax
jle 0x1800025b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180007670
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800025cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800025d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180002576
sub r14, rdi
jmp 0x1800026bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800025f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800025f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002627
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180007670
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800026bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180002662
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000269d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18000d714
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800026bc
cmp rbp, rax
ja 0x180002670
test rbp, rbp
je 0x1800026bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18000d714
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x18001503c
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 0x18001506e
call fcn.18000ea14
mov dword [rax], 0x16
call fcn.18000c108
jmp 0x18001518d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18001518d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18001518d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18001509d
lock or dword [rcx + 0x14], 0x10
jmp 0x18001518d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800150b1
call fcn.180015654
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180015014
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180017428
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18001517b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180015146
mov rcx, rsi
call fcn.180015014
cmp eax, edi
je 0x180015131
mov rcx, rsi
call fcn.180015014
cmp eax, 0xfffffffe
je 0x180015131
mov rcx, rsi
call fcn.180015014
movsxd rbx, eax
lea r14, [0x180039120]
mov rcx, rsi
sar rbx, 6
call fcn.180015014
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180015138
lea rdx, [0x180037400]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180015146
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18001516a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18001516a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18001516a
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 0x180015190
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 0x180016bb0
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.180005f40
sub rsp, rax
mov rax, qword [0x180037060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180015014
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180016bff
mov rax, rbp
jmp 0x180016d07
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 + 0x39120]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800167f4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x39120]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180016d03
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 0x180016d03
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800167f4
test rax, rax
js 0x180016d03
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180016d03
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180016cf5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180016cf5
cmp byte [rcx], 0xd
jne 0x180016cdb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180016cea
cmp byte [rcx + 1], 0xa
jne 0x180016cea
inc rcx
jmp 0x180016cea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x37450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180016cbd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180016d07
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800056b0
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 0x180016f7c
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, [0x180039120]
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 0x180016fda
cmp word [rdx], r12w
jne 0x180016fda
or byte [rax + r8*8 + 0x38], cl
jmp 0x180016fe0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18001713b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180017116
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180017019
mov rcx, r9
jmp 0x18001703c
cmp r9, rdx
jae 0x180017053
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 0x180016ffd
jmp 0x18001713b
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 0x180017110
cmp dword [rsp + 0x80], edi
je 0x180017110
mov rdx, r14
lea r11, [0x180039120]
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 0x1800170e9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800170bc
mov word [rbx], r12w
jmp 0x180017137
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 0x1800170c5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180017137
cmp word [rsp + 0x70], r12w
jne 0x1800170f6
cmp rbx, rsi
je 0x1800170b6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800167fc
cmp word [rsp + 0x70], r12w
je 0x18001713b
mov word [rbx], r13w
jmp 0x180017137
lea r11, [0x180039120]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180017133
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18001713b
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 0x18001c51c
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 0x18001c54c
xor eax, eax
jmp 0x18001c60f
mov rbp, rbx
cmp word [rax], si
je 0x18001c571
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001c558
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001c554
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.18001ac64
movsxd r14, eax
test eax, eax
jne 0x18001c5af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001c545
mov rcx, r14
call fcn.1800187a8
mov rdi, rax
test rax, rax
jne 0x18001c5c8
xor ecx, ecx
call fcn.18001302c
jmp 0x18001c5a4
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.18001ac64
test eax, eax
jne 0x18001c5f9
mov rcx, rdi
call fcn.18001302c
jmp 0x18001c603
xor ecx, ecx
call fcn.18001302c
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 0x180022250
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.1800167fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800167fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800223a0
cmp rax, 0xffffffffffffffff
je 0x1800223a0
xor edi, edi
test rbp, rbp
jle 0x18002234b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800164cc
mov rbx, rax
test rax, rax
jne 0x1800222d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180022341
mov edx, 0x8000
mov ecx, r14d
call fcn.1800220d8
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.1800161bc
cmp eax, 0xffffffff
je 0x180022321
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800222e8
mov edx, r15d
mov ecx, r14d
call fcn.1800220d8
jmp 0x180022341
cmp byte [rsi + 0x38], dil
je 0x180022338
cmp dword [rsi + 0x34], 5
jne 0x180022338
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180022341
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001302c
jmp 0x1800223b4
jns 0x1800223b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800167fc
cmp rax, 0xffffffffffffffff
jne 0x18002236c
cmp byte [rsi + 0x30], dil
je 0x1800223b4
mov edi, dword [rsi + 0x2c]
jmp 0x1800223b4
mov ecx, r14d
call fcn.18001f6e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800223b4
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 0x1800223b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800223ad
mov eax, dword [rsi + 0x2c]
jmp 0x1800223b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800167fc
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 0x14002f8c8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400454b0], eax
call fcn.1400300e0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x1400454b0], 0
jne case.default.0x14002f91e
mov ecx, 1
call fcn.1400300e0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
lea edx, [rdi - 0x7e9b2fe2]
pop rbp
jnp 0x140076c69
sbb al, 0x20
push 0xffffffffffffffb2
invalid
adc al, 0xd9
cmpsb byte [rsi], byte [rdi]
mov eax, 0x7f558bee
fxtract
movsb byte [rdi], byte [rsi]
jbe 0x140076c60
js 0x140076c59
scasd eax, dword [rdi]
jp 0x140076c42
xchg rdi, rax
popfq
mov ah, 0xc3
invalid
int3
mov eax, 0xe50258f8
mov ecx, 0xed1b2885
sub byte [rbx], bl
in eax, dx
jo 0x140076bf5
invalid
pop rbp
invalid
Function at 0x140002280
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov eax, dword [0x140091fa8]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x140091fac]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x140091f90]
mov word [rsp + 0x6c], ax
mov eax, Ordinal_50
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x140091fa0]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140002372
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140002326
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x140002385
inc ax
mov word [rsp + 0x6a], ax
jmp 0x140002341
cmp eax, 0xe7
jne 0x140002385
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140002385
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140002306
mov byte [rbx], 1
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov rbx, qword [rsp + 0x80]
xor al, al
add rsp, 0x70
pop rdi
ret

Function at 0x1400023a0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140002461
test rcx, rcx
je 0x140002461
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140002461
xor ebp, ebp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14000244c
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x140002461
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x140002435
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140002230
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002470
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
test r8, r8
jne 0x140002486
mov al, 1
add rsp, 0x30
pop rbx
ret
test rcx, rcx
je 0x1400024bb
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400024bb
test rdx, rdx
je 0x1400024bb
xor eax, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1400024bb
cmp dword [rsp + 0x50], ebx
je 0x14000247e
xor al, al
add rsp, 0x30
pop rbx
ret