joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006390
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.14000d470
sub rsp, rax
mov r14d, edx
mov r15, rcx
mov rsi, qword [rbp + 0x1418]
xor r12d, r12d
mov word [rbp + 0x3c0], r12w
mov byte [rbp - 0x40], r12b
mov rbx, qword [rbp + 0x1420]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.140001990
mov edi, eax
mov dword [rsp + 0x20], 3
mov ecx, r12d
mov eax, 8
cmp byte [rbx + 8], cl
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, 1
lock xadd dword [0x1400155b0], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, str.D:projectsToothTraypackagesMicrosoft.Windows.ImplementationLibrary.1.0.230202.1includewil_resource.h
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], edi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r15
mov qword [rsp + 0x68], r12
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400155a0]
test rax, rax
je 0x140006483
call rax
mov qword [rbp - 0x60], rax
jmp 0x140006487
mov qword [rbp - 0x60], r12
mov rax, qword [0x140015520]
test rax, rax
je 0x14000649a
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015550]
test rax, rax
je 0x1400064b7
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015548]
test rax, rax
je 0x1400064ca
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015578]
test rax, rax
je 0x1400064e4
test byte [rsp + 0x24], 2
jne 0x1400064e4
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r12d
jl 0x140006501
mov dword [rsp + 0x28], 0x8000ffff
mov ecx, 0x8000ffff
call fcn.140001bc0
mov dword [rsp + 0x2c], eax
cmp byte [0x140015508], r12b
jne 0x14000652f
mov rax, qword [0x1400154f8]
test rax, rax
je 0x14000651e
call rax
movzx r12d, al
jmp 0x14000652a
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r12b
test r12d, r12d
je 0x140006536
test byte [rsp + 0x24], 2
je 0x140006559
mov rax, qword [0x140015510]
test rax, rax
je 0x1400065af
cmp byte [0x140015530], 0
jne 0x1400065af
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x1400065af
mov rax, qword [0x140015510]
test rax, rax
je 0x140006582
cmp byte [0x140015530], 0
jne 0x140006582
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x1400065a2
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140001490
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x1400065bf
cmp byte [0x140015518], 0
je 0x1400065ce
mov rax, qword [0x140015560]
test rax, rax
je 0x1400065ce
call rax
nop
lea rcx, [rsp + 0x20]
call fcn.140002f00
int3
Function at 0x140006870
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400076f0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.14000d470
sub rsp, rax
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov r8, qword [rbp + 0x1430]
mov ecx, dword [r8]
mov dword [rsp + 0x28], ecx
mov eax, dword [r8 + 4]
mov dword [rsp + 0x2c], eax
call fcn.140001950
mov ebx, eax
mov edx, 1
mov dword [rsp + 0x20], edx
mov ecx, r15d
mov eax, 8
cmp byte [r8 + 8], cl
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
lock xadd dword [0x1400155b0], edx
inc edx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x14000e8ec]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rsp + 0x68], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400155a0]
test rax, rax
je 0x1400077eb
call rax
mov qword [rbp - 0x60], rax
jmp 0x1400077ef
mov qword [rbp - 0x60], r15
mov rax, qword [0x140015520]
test rax, rax
je 0x140007802
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015550]
test rax, rax
je 0x14000781f
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015548]
test rax, rax
je 0x140007832
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015578]
test rax, rax
je 0x14000784c
test byte [rsp + 0x24], 2
jne 0x14000784c
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r15d
jge 0x14000795c
cmp byte [0x140015508], r15b
jne 0x140007885
mov rax, qword [0x1400154f8]
test rax, rax
je 0x140007874
call rax
movzx r15d, al
jmp 0x140007880
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r15b
test r15d, r15d
je 0x14000788c
test byte [rsp + 0x24], 2
je 0x1400078af
mov rax, qword [0x140015510]
test rax, rax
je 0x140007905
cmp byte [0x140015530], 0
jne 0x140007905
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x140007905
mov rax, qword [0x140015510]
test rax, rax
je 0x1400078d8
cmp byte [0x140015530], 0
jne 0x1400078d8
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x1400078f8
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140001490
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x140007915
cmp byte [0x140015518], 0
je 0x140007924
mov rax, qword [0x140015560]
test rax, rax
je 0x140007924
call rax
nop
test byte [rsp + 0x24], 1
jne 0x140007951
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.14000c5d0
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140002f00
nop
call fcn.1400031d0
nop
int3
Function at 0x1400076f0
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400076f0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.14000d470
sub rsp, rax
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov r8, qword [rbp + 0x1430]
mov ecx, dword [r8]
mov dword [rsp + 0x28], ecx
mov eax, dword [r8 + 4]
mov dword [rsp + 0x2c], eax
call fcn.140001950
mov ebx, eax
mov edx, 1
mov dword [rsp + 0x20], edx
mov ecx, r15d
mov eax, 8
cmp byte [r8 + 8], cl
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
lock xadd dword [0x1400155b0], edx
inc edx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x14000e8ec]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rsp + 0x68], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400155a0]
test rax, rax
je 0x1400077eb
call rax
mov qword [rbp - 0x60], rax
jmp 0x1400077ef
mov qword [rbp - 0x60], r15
mov rax, qword [0x140015520]
test rax, rax
je 0x140007802
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015550]
test rax, rax
je 0x14000781f
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015548]
test rax, rax
je 0x140007832
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140015578]
test rax, rax
je 0x14000784c
test byte [rsp + 0x24], 2
jne 0x14000784c
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r15d
jge 0x14000795c
cmp byte [0x140015508], r15b
jne 0x140007885
mov rax, qword [0x1400154f8]
test rax, rax
je 0x140007874
call rax
movzx r15d, al
jmp 0x140007880
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r15b
test r15d, r15d
je 0x14000788c
test byte [rsp + 0x24], 2
je 0x1400078af
mov rax, qword [0x140015510]
test rax, rax
je 0x140007905
cmp byte [0x140015530], 0
jne 0x140007905
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x140007905
mov rax, qword [0x140015510]
test rax, rax
je 0x1400078d8
cmp byte [0x140015530], 0
jne 0x1400078d8
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x1400078f8
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140001490
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x140007915
cmp byte [0x140015518], 0
je 0x140007924
mov rax, qword [0x140015560]
test rax, rax
je 0x140007924
call rax
nop
test byte [rsp + 0x24], 1
jne 0x140007951
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.14000c5d0
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140002f00
nop
call fcn.1400031d0
nop
int3
Function at 0x140008440
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x60
xor edi, edi
mov dword [rax + 8], edi
xorps xmm0, xmm0
movups xmmword [rax - 0x28], xmm0
mov qword [rax - 0x18], rdi
mov qword [rax - 0x10], 7
mov word [rax - 0x28], di
mov dword [rax + 8], 2
mov r8d, dword [rcx + 0x78]
mov eax, r8d
and al, 0x22
cmp al, 2
je 0x1400084a9
mov rax, qword [rcx + 0x48]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400084a9
mov rax, qword [rcx + 0x28]
mov r9, qword [rax]
mov qword [rsp + 0x20], rdx
lea rax, [rcx + 0x70]
lea rcx, [rsp + 0x20]
cmp rdx, qword [rax]
cmovb rcx, rax
mov rdx, qword [rcx]
jmp 0x1400084cd
test r8b, 4
jne 0x140008507
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008507
mov rax, qword [rcx + 0x20]
mov r9, qword [rax]
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
lea rdx, [rdx + rcx*2]
sub rdx, r9
mov rax, r9
sar rdx, 1
test rax, rax
je 0x140008507
lea rcx, [rsp + 0x40]
cmp rdx, 7
ja 0x140008501
mov qword [rsp + 0x50], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x40], di
jmp 0x140008507
call fcn.140008970
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140008563
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000855e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000855e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c9f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14000c360
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14000c395
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140006140
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000c4d6
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14000c450
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14000c4c5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000c48d
mov r10, qword [rdx]
cmp r10, rax
je 0x14000c487
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14000c4c5
cmp r9, rdx
je 0x14000c4a1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14000c4e7
cmp r9, rdx
jne 0x14000c492
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14000c400
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000c4c5

Function at 0x14000d020
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d06a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d06a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d06a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d06a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d06a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d06c
xor al, al
add rsp, 0x28
ret
Function at 0x1807f4268
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1807f43ef
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1807f4299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807f427f
add dl, dl
jne 0x1807f42a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807f4306
xor eax, eax
add dl, dl
jne 0x1807f42b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807f43bd
add dl, dl
jne 0x1807f42c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807f42d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807f42e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807f42ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807f42fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1807f428e
mov eax, 1
add dl, dl
jne 0x1807f4316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807f4323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807f430b
sub eax, ebx
mov ebx, 1
jne 0x1807f435c
mov ecx, 1
add dl, dl
jne 0x1807f433e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807f434b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807f4333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807f428e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1807f4378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807f4385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807f436d
cmp eax, 0x7d00
jae 0x1807f43ab
cmp eax, 0x500
jb 0x1807f43a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807f428e
cmp eax, 0x7f
ja 0x1807f43ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807f428e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807f43e2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1807f428e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001c380
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140428080]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x58]
lea rcx, str._pipediscord_ipc_0
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WLDAP32.dll_Ordinal_46
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], reloc.WS2_32.dll_setsockopt
mov eax, 2
imul rax, rax, 0x15
mov ecx, Ordinal_50
mov word [rsp + rax + 0x58], cx
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x14001c432
mov rax, qword [rsp + 0x48]
mov byte [rax], 1
mov al, 1
jmp 0x14001c4ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 2
jne 0x14001c47c
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rsp + rax + 0x58]
cmp eax, 0x39
jge 0x14001c47a
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rsp + rax + 0x58]
inc ax
mov ecx, 2
imul rcx, rcx, 0x15
mov word [rsp + rcx + 0x58], ax
jmp 0x14001c3e2
jmp 0x14001c4a3
cmp dword [rsp + 0x40], 0xe7
jne 0x14001c4a3
mov edx, 0x2710
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x14001c49e
xor al, al
jmp 0x14001c4ac
jmp 0x14001c3e2
xor al, al
jmp 0x14001c4ac
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140158b00
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x14001c510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jne 0x14001c532
mov al, 1
jmp 0x14001c5c1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14001c548
xor al, al
jmp 0x14001c5c1
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x14001c558
xor al, al
jmp 0x14001c5c1
cmp qword [rsp + 0x68], 0
jne 0x14001c564
xor al, al
jmp 0x14001c5c1
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x14001c5b4
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jne 0x14001c5b4
mov dword [rsp + 0x38], 1
jmp 0x14001c5bc
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x14001c5d0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x68], 0
jne 0x14001c5f2
xor al, al
jmp 0x14001c6b9
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14001c60b
xor al, al
jmp 0x14001c6b9
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x14001c61e
xor al, al
jmp 0x14001c6b9
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14001c6ad
mov eax, dword [rsp + 0x30]
cmp rax, qword [rsp + 0x70]
jb 0x14001c6ab
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x14001c6a1
mov al, 1
jmp 0x14001c6b9
mov rcx, qword [rsp + 0x60]
call fcn.14001c4d0
jmp 0x14001c6b7
mov rcx, qword [rsp + 0x60]
call fcn.14001c4d0
xor al, al
add rsp, 0x58
ret

Function at 0x14001ca20
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x14001cad5
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax]
test eax, eax
je 0x14001cad5
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14001cacb
mov eax, dword [rsp + 0x50]
jmp 0x14001cb35
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x58], 0
je 0x14001cb31
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x58], rax
je 0x14001cb31
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x14001cf60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xaf8
mov rax, qword [0x140428080]
xor rax, rsp
mov qword [rsp + 0xae0], rax
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0xb00]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0xb08]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14001d031
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
mov rcx, rax
call fcn.14001c7e0
jmp 0x14001d138
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401760c0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 0
jne 0x14001d085
cmp dword [rsp + 0x38], 1
jae 0x14001d0a4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.14001c7e0
jmp 0x14001d138
mov eax, dword [rsp + 0x38]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x30], 0
jmp 0x14001d0ca
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x30], eax
jae 0x14001d0f8
mov eax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0xd0]
cmp eax, 0x2f
jne 0x14001d0f6
mov eax, dword [rsp + 0x30]
mov ecx, 0x5c
mov word [rsp + rax*2 + 0xd0], cx
jmp 0x14001d0c0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
lea r8, [0x140176100]
mov edx, 0x800
lea rcx, [rsp + 0x2e0]
call fcn.14001c830
lea rdx, [rsp + 0x2e0]
lea rcx, [rsp + 0x90]
call fcn.14001cb40
mov rcx, qword [rsp + 0xae0]
xor rcx, rsp
call fcn.140158b00
add rsp, 0xaf8
ret