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

Disassembly:
sub r8, rdx
je 0x180011738
movabs r10, 0xcbf29ce484222325
movabs rcx, 0x100000001b3
cmp r8, 8
jb 0x18001170f
mov rax, r8
shr rax, 3
xor r9d, r9d
nop word cs:[rax + rax]
movzx r11d, byte [rdx + r9*8]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 1]
xor r10, r11
imul r10, rcx
movzx r11d, byte [rdx + r9*8 + 2]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 3]
xor r10, r11
imul r10, rcx
movzx r11d, byte [rdx + r9*8 + 4]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 5]
xor r10, r11
imul r10, rcx
movzx r11d, byte [rdx + r9*8 + 6]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 7]
xor r10, r11
imul r10, rcx
inc r9
cmp rax, r9
jne 0x1800116a0
mov r9, r8
and r9, 0xfffffffffffffff8
cmp r9, r8
jne 0x180011720
mov rax, r10
ret
movzx eax, byte [rdx + r9]
xor rax, r10
imul rax, rcx
inc r9
mov r10, rax
cmp r8, r9
jne 0x180011720
ret
mov eax, 0x84222325
ret
Function at 0x18001c458
Capabilities:
Read file on windows

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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18001c486
xor eax, eax
jmp 0x18001c56c
cmp qword [rcx + 0x68], 0
je 0x18001c497
call fcn.18001bbd4
jmp 0x18001c56c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18001c4ae
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001c4b0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001c4e2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180042fb0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18001c566
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18001c519
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18001c542
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180028c74
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18001c566
cmp rsi, rbx
ja 0x18001c520
test rsi, rsi
je 0x18001c566
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180028c74
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800267c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1800268c0
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 0x18002692f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002692f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002692f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002692f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002692f
cmp dword [rcx + 0x84], 0xe
jbe 0x18002692f
cmp dword [rcx + 0xf8], 0
je 0x18002692f
mov ecx, ebx
call fcn.1800267f8
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.180026a54
nop
cmp dword [rbp + 0x20], 0
je 0x18002697d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002688c
int3
Function at 0x1800268c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1800268c0
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 0x18002692f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002692f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002692f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002692f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002692f
cmp dword [rcx + 0x84], 0xe
jbe 0x18002692f
cmp dword [rcx + 0xf8], 0
je 0x18002692f
mov ecx, ebx
call fcn.1800267f8
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.180026a54
nop
cmp dword [rbp + 0x20], 0
je 0x18002697d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002688c
int3

Function at 0x18002ba20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002ba48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002ba48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180035d20
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.18001eb80
sub rsp, rax
mov rax, qword [0x18005d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180034d68
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180035d6f
mov rax, rbp
jmp 0x180035e77
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 + 0x602d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180035a50
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x602d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180035e73
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 0x180035e73
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180035a50
test rax, rax
js 0x180035e73
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180035e73
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180035e65
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180035e65
cmp byte [rcx], 0xd
jne 0x180035e4b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180035e5a
cmp byte [rcx + 1], 0xa
jne 0x180035e5a
inc rcx
jmp 0x180035e5a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5db60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180035e2d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180035e77
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18001dd80
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 0x180036208
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 0x180036238
xor eax, eax
jmp 0x1800362fb
mov rbp, rbx
cmp word [rax], si
je 0x18003625d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180036244
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180036240
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.18002f0d4
movsxd r14, eax
test eax, eax
jne 0x18003629b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180036231
mov rcx, r14
call fcn.18002efe4
mov rdi, rax
test rax, rax
jne 0x1800362b4
xor ecx, ecx
call fcn.18002efa8
jmp 0x180036290
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.18002f0d4
test eax, eax
jne 0x1800362e5
mov rcx, rdi
call fcn.18002efa8
jmp 0x1800362ef
xor ecx, ecx
call fcn.18002efa8
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 0x180037938
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003794e
mov al, 1
jmp 0x1800379ae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003795f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800379ac
mov ecx, dword [rcx + 0x18]
nop
call fcn.18003d204
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800379ac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800379ac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800379ac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800379ae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800382e4
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, [0x1800602d0]
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 0x18003833b
cmp word [rdx], r13w
jne 0x18003833b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180038340
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180038465
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180038486
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180038379
mov rdx, r9
mov word [rbx], cx
jmp 0x1800383a0
cmp r9, r8
jae 0x1800383b0
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 0x18003835a
jmp 0x180038465
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 0x18003845a
cmp dword [rsp + 0x80], esi
je 0x18003845a
lea r8, [0x1800602d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180038432
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180038402
mov word [rbx], r13w
jmp 0x180038462
mov ecx, recv
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 0x18003840f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180038462
cmp word [rsp + 0x70], r13w
jne 0x18003843f
cmp rbx, r14
je 0x1800383fc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800359ac
cmp word [rsp + 0x70], r13w
je 0x180038465
mov ecx, recv
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, [0x1800602d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003845f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180038465
Function at 0x18003cd90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18002f214
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18003ce31
cmp ebx, dword [rsp + 0x30]
je 0x18003ce2a
test esi, esi
je 0x18003ce2a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18003ce05
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003ce12
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18003cdef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003ce16
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18003ce33
mov eax, 1
jmp 0x18003ce33
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003f8a4
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.180020310
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18003f92e
cmp byte [rbp - 0x21], r15b
je 0x18003f929
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18003f964
call fcn.1800314b8
test eax, eax
jne 0x18003f950
cmp byte [rbp - 0x21], r15b
je 0x18003f948
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18003f964
cmp byte [rbp - 0x21], r15b
je 0x18003f961
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.1800203ac
test eax, eax
jne 0x18003fa04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180020310
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18003f9a3
cmp byte [rbp - 0x21], r15b
je 0x18003f9d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18003f9d8
call fcn.1800314b8
test eax, eax
jne 0x18003f9c4
cmp byte [rbp - 0x21], r15b
je 0x18003f9bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18003f9d8
cmp byte [rbp - 0x21], r15b
je 0x18003f9d5
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.1800203ac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18003fa04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18003fa07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18003fa15
mov rcx, rdi
call fcn.18002efa8
cmp byte [rbp + 0x3f], r15b
je 0x18003fa24
mov rcx, qword [rbp + 0x27]
call fcn.18002efa8
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 0x140816058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408161df
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 0x140816089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14081606f
add dl, dl
jne 0x140816096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408160f6
xor eax, eax
add dl, dl
jne 0x1408160a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408161ad
add dl, dl
jne 0x1408160b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408160c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408160d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408160dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408160ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14081607e
mov eax, 1
add dl, dl
jne 0x140816106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140816113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408160fb
sub eax, ebx
mov ebx, 1
jne 0x14081614c
mov ecx, 1
add dl, dl
jne 0x14081612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14081613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140816123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140816168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140816175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14081615d
cmp eax, 0x7d00
jae 0x14081619b
cmp eax, 0x500
jb 0x140816196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081607e
cmp eax, 0x7f
ja 0x14081619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408161d2
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 0x14081607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001e80
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14022dbc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x1400c9210]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x1400c9214]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x1400c91f8]
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 [0x1400c9208]
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 0x140001f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140001f38
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x140001fa7
inc ax
mov word [rsp + 0x6a], ax
jmp 0x140001f53
cmp eax, 0xe7
jne 0x140001fa7
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140001fa7
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 0x140001f18
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400c3920
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x140001f89

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14022dbc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140002060
test rcx, rcx
je 0x140002060
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140002060
xor ebp, ebp
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x30], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14000204b
mov eax, dword [rsp + 0x30]
cmp rax, rdi
jb 0x140002060
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x34]
mov r8d, edi
mov dword [rsp + 0x34], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x140002041
jmp 0x140002062
mov rcx, rbx
call fcn.140001e30
jmp 0x140002060
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c3920
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002080
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14022dbc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
test r8, r8
jne 0x1400020b2
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c3920
add rsp, 0x40
pop rbx
ret
test rcx, rcx
je 0x1400020e7
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400020e7
test rdx, rdx
je 0x1400020e7
xor eax, eax
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1400020e7
cmp dword [rsp + 0x30], ebx
je 0x14000209d
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c3920
add rsp, 0x40
pop rbx
ret
Function at 0x1400025e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x14022dbc0]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002693
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
jmp 0x140002759
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x38], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002747
mov ecx, dword [rsp + 0x38]
cmp ecx, 1
jb 0x140002747
shr ecx, 1
je 0x140002705
lea rax, [rsp + 0xc0]
cmp word [rax], 0x2f
jne 0x1400026fb
mov word [rax], 0x5c
add rax, 2
sub rcx, 1
jne 0x1400026f0
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2d0]
call fcn.140002470
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.140002100
jmp 0x140002761
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.140002790
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.1400c3920
add rsp, 0xae0
pop rbx
ret