joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ba1d0
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 0x1400ba1f0
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 0x1400ba260
movdqu xmmword [rcx + 0x70], xmm0
ret

Function at 0x1400bac0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400bac56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400bac56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400bac56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400bac56
cmp dword [rcx + 0x84], 0xe
jbe 0x1400bac56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400bac58
xor al, al
add rsp, 0x28
ret

Function at 0x1400c7bd4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c7d28
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 0x1400c7d97
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400c7d97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c7d97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c7d97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c7d97
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c7d97
cmp dword [rcx + 0xf8], 0
je 0x1400c7d97
mov ecx, ebx
call fcn.1400c7c54
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.1400c7ebc
nop
cmp dword [rbp + 0x20], 0
je 0x1400c7de5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c7cf4
int3
Function at 0x1400da66c
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 0x1400da69c
xor eax, eax
jmp 0x1400da75f
mov rbp, rbx
cmp word [rax], si
je 0x1400da6c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400da6a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400da6a4
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.1400da5bc
movsxd r14, eax
test eax, eax
jne 0x1400da6ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
jmp 0x1400da695
mov rcx, r14
call fcn.1400d49c0
mov rdi, rax
test rax, rax
jne 0x1400da718
xor ecx, ecx
call fcn.1400d3e34
jmp 0x1400da6f4
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.1400da5bc
test eax, eax
jne 0x1400da749
mov rcx, rdi
call fcn.1400d3e34
jmp 0x1400da753
xor ecx, ecx
call fcn.1400d3e34
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 0x1400da77c
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 0x1400da803
mov rsi, rbx
cmp word [rax], bp
je 0x1400da7c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400da7ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400da7a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d49c0
mov rdi, rax
test rax, rax
je 0x1400da7f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bb5b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400d3e34
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 0x1400dde68
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, [0x14012ef70]
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 0x1400ddec6
cmp word [rdx], r12w
jne 0x1400ddec6
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400ddecc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400de027
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400de002
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400ddf05
mov rcx, r9
jmp 0x1400ddf28
cmp r9, rdx
jae 0x1400ddf3f
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 0x1400ddee9
jmp 0x1400de027
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 0x1400ddffc
cmp dword [rsp + 0x80], edi
je 0x1400ddffc
mov rdx, r14
lea r11, [0x14012ef70]
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 0x1400ddfd5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400ddfa8
mov word [rbx], r12w
jmp 0x1400de023
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 0x1400ddfb1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400de023
cmp word [rsp + 0x70], r12w
jne 0x1400ddfe2
cmp rbx, rsi
je 0x1400ddfa2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400e4e9c
cmp word [rsp + 0x70], r12w
je 0x1400de027
mov word [rbx], r13w
jmp 0x1400de023
lea r11, [0x14012ef70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400de01f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400de027
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 0x1400e4c60
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.1400c260c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e4cea
cmp byte [rbp - 0x21], r15b
je 0x1400e4ce5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e4d20
call fcn.1400d1a48
test eax, eax
jne 0x1400e4d0c
cmp byte [rbp - 0x21], r15b
je 0x1400e4d04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e4d20
cmp byte [rbp - 0x21], r15b
je 0x1400e4d1d
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.1400cfd24
test eax, eax
jne 0x1400e4dc0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c260c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e4d5f
cmp byte [rbp - 0x21], r15b
je 0x1400e4d94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e4d94
call fcn.1400d1a48
test eax, eax
jne 0x1400e4d80
cmp byte [rbp - 0x21], r15b
je 0x1400e4d79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e4d94
cmp byte [rbp - 0x21], r15b
je 0x1400e4d91
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.1400cfd24
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e4dc0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e4dc3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e4dd1
mov rcx, rdi
call fcn.1400d3e34
cmp byte [rbp + 0x3f], r15b
je 0x1400e4de0
mov rcx, qword [rbp + 0x27]
call fcn.1400d3e34
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 0x1400e7620
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.1400e4e9c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e4e9c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e7770
cmp rax, 0xffffffffffffffff
je 0x1400e7770
xor edi, edi
test rbp, rbp
jle 0x1400e771b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d605c
mov rbx, rax
test rax, rax
jne 0x1400e76a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e7711
mov edx, 0x8000
mov ecx, r14d
call fcn.1400cad78
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.1400dc09c
cmp eax, 0xffffffff
je 0x1400e76f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e76b8
mov edx, r15d
mov ecx, r14d
call fcn.1400cad78
jmp 0x1400e7711
cmp byte [rsi + 0x38], dil
je 0x1400e7708
cmp dword [rsi + 0x34], 5
jne 0x1400e7708
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400e7711
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d3e34
jmp 0x1400e7784
jns 0x1400e7784
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e4e9c
cmp rax, 0xffffffffffffffff
jne 0x1400e773c
cmp byte [rsi + 0x30], dil
je 0x1400e7784
mov edi, dword [rsi + 0x2c]
jmp 0x1400e7784
mov ecx, r14d
call fcn.1400db1a0
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x1400e7784
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 0x1400e7784
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e777d
mov eax, dword [rsi + 0x2c]
jmp 0x1400e7782
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e4e9c
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 0x18003f3a7
Capabilities:
Write file on windows

Disassembly:
jmp 0x1800898a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1801410f4]
call fcn.18004199a
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1800898f7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x180089a03
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x18008999c
cmp qword [rbp + 0x28], 0
jle 0x18008999c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x18008993c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.18004171f
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1800899f2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1800899f2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x18003f712
Capabilities:
Write file on windows

Disassembly:
jmp 0x18008a330
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x1800ee500]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1801411b6]
call fcn.18004199a
cmp qword [rbp + 0x150], 0
jne 0x18008a394
mov al, 1
jmp 0x18008a482
mov rax, qword [rbp + 0x140]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x18008a3c8
mov eax, dword [0x1800ee024]
add eax, 5
mov r8d, eax
lea rdx, str.D:_backupJar_INJ_racDiscordSDK_srcconnection_win.cpp
lea rcx, str.self
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
cmp qword [rbp + 8], 0
jne 0x18008a3d6
xor al, al
jmp 0x18008a482
mov rax, qword [rbp + 8]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x18008a3e8
xor al, al
jmp 0x18008a482
cmp qword [rbp + 0x148], 0
jne 0x18008a414
mov eax, dword [0x1800ee024]
add eax, 0xc
mov r8d, eax
lea rdx, str.D:_backupJar_INJ_racDiscordSDK_srcconnection_win.cpp
lea rcx, [0x1800d3a28]
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
cmp qword [rbp + 0x148], 0
jne 0x18008a422
xor al, al
jmp 0x18008a482
mov eax, dword [rbp + 0x150]
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x148]
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18008a471
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x44], eax
jne 0x18008a471
mov dword [rbp + 0x114], 1
jmp 0x18008a47b
mov dword [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1800d3850]
call fcn.1800411f2
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.180040397
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x18003fa23
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x18008ff50
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1801412be]
call fcn.18004199a
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x138
jne 0x18008ff8c
mov rcx, qword [rbp + 0x100]
call fcn.18003f6d1
jmp 0x18008ffa7
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jb 0x18008ffa7
mov rcx, qword [rbp + 0x100]
call fcn.18004046e
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov rax, qword [rcx + rax*8 + 8]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shr rax, 0x1d
mov rcx, qword [rbp + 0x100]
and rax, qword [rcx + 0x1388]
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rax, rcx
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shl rax, 0x25
movabs rcx, 0xfff7eee000000000
and rax, rcx
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shr rax, 0x2b
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x18004046e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x180092740
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1801412be]
call fcn.18004199a
mov qword [rbp + 8], 0x137
mov qword [rbp + 0x28], 0x9c
mov qword [rbp + 0x48], 0
jmp 0x180092784
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0x9c
jae 0x18009282d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
and rax, 1
test rax, rax
je 0x1800927ec
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1800927f7
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0x68]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor rax, qword [rcx + rdx*8 + 0xea8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x180092779
mov qword [rbp + 0x88], 0x9c
jmp 0x18009284b
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x137
jae 0x18009290c
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
and rax, 1
test rax, rax
je 0x1800928c2
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1800928cd
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0xa8]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor rax, qword [rcx + rdx*8 - 0x4d8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x18009283a
mov qword [rbp + 0xc8], 0x137
mov eax, 8
imul rax, rax, 0x26f
mov rcx, qword [rbp + 0x1e0]
mov rax, qword [rcx + rax + 8]
and rax, 0xffffffff80000000
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rdx + rcx + 8]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
and rax, 1
test rax, rax
je 0x18009297e
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x180092989
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0xe8]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov ecx, 8
imul rcx, rcx, 0x9b
mov rdx, qword [rbp + 0x1e0]
xor rax, qword [rdx + rcx + 8]
mov ecx, 8
imul rcx, rcx, 0x137
mov rdx, qword [rbp + 0x1e0]
mov qword [rdx + rcx + 8], rax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x1800404a5
Capabilities:
Read file on windows
Read pipe

Disassembly:
jmp 0x18008a0d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x1800ee500]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1801411b6]
call fcn.18004199a
cmp qword [rbp + 0x168], 0
jne 0x18008a14e
mov eax, dword [0x1800ee028]
inc eax
mov r8d, eax
lea rdx, str.D:_backupJar_INJ_racDiscordSDK_srcconnection_win.cpp
lea rcx, [0x1800d3a28]
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
cmp qword [rbp + 0x168], 0
jne 0x18008a15f
xor al, al
jmp 0x18008a27d
mov rax, qword [rbp + 0x160]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x18008a193
mov eax, dword [0x1800ee028]
add eax, 6
mov r8d, eax
lea rdx, str.D:_backupJar_INJ_racDiscordSDK_srcconnection_win.cpp
lea rcx, str.self
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
cmp qword [rbp + 8], 0
jne 0x18008a1a1
xor al, al
jmp 0x18008a27d
mov rax, qword [rbp + 8]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x18008a1b3
xor al, al
jmp 0x18008a27d
mov dword [rbp + 0x24], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18008a26f
mov eax, dword [rbp + 0x24]
cmp rax, qword [rbp + 0x170]
jb 0x18008a26d
mov eax, dword [rbp + 0x170]
mov dword [rbp + 0x44], eax
mov dword [rbp + 0x64], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x168]
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x18008a261
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0x44], eax
je 0x18008a25b
mov eax, dword [0x1800ee028]
add eax, 0x13
mov r8d, eax
lea rdx, str.D:_backupJar_INJ_racDiscordSDK_srcconnection_win.cpp
lea rcx, str.bytesToRead__bytesRead
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
mov al, 1
jmp 0x18008a27d
mov rcx, qword [rbp + 0x160]
call fcn.1800406c6
jmp 0x18008a27b
mov rcx, qword [rbp + 0x160]
call fcn.1800406c6
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1800d3920]
call fcn.1800411f2
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.180040397
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1800406e4
Capabilities:
Terminate process

Disassembly:
jmp 0x1800bb9a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret