joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180118d9c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180118c3c
call fcn.180105124
mov dword [rax], 0x16
call fcn.180103f68
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180118c24
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180118c24
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180118c6e
lock or dword [rax + 0x14], 0x10
jmp 0x180118c24
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180118c8b
mov rcx, qword [rbp + 0x10]
call fcn.18011b7ac
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1801172d8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.180117f74
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180118ce2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180118c24
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180118d4e
mov rcx, qword [rbp + 0x10]
call fcn.1801172d8
cmp eax, 0xffffffff
je 0x180118d35
mov rcx, qword [rbp + 0x10]
call fcn.1801172d8
cmp eax, 0xfffffffe
je 0x180118d35
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1801172d8
movsxd rdi, eax
lea rsi, [0x1801a7ec0]
mov rcx, rbx
sar rdi, 6
call fcn.1801172d8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180118d3c
lea rax, [0x1801a3540]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180118d4e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180118d84
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180118d80
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180118d80
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180118c27
jmp 0x180118bf4
Function at 0x180127460
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x40]
call fcn.1801272f0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
je 0x1801274c8
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801274c8
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1801274e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801275b6
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
cmp qword [rax], rcx
je 0x180127595
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x180127578
mov rcx, qword [rsp + 0x48]
call fcn.180129200
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x180127566
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
jmp 0x180127576
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov qword [rax], rcx
jmp 0x180127588
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180127780
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x40]
call fcn.180129200
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x180127808
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp qword [rax], rcx
je 0x1801277ed
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801277ed
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov byte [rsp + 0x20], 1
mov edx, 0x14
mov rcx, qword [rsp + 0x28]
call fcn.180128060
movzx eax, al
test eax, eax
je 0x180127808
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180127e10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
mov edx, 1
mov rcx, rax
call fcn.1800326a0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180127fea
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x30]
test eax, eax
jne 0x180127f3a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
call qword [rax]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x28], rcx
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x180127eba
mov edx, 0x14
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call fcn.180128060
mov rax, qword [rsp + 0x60]
add rax, 8
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rdx, rax
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
call qword [rax + 8]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov dl, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x18]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180127f35
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
lea rdi, [rcx + 0x38]
mov rsi, rax
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x30], 1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
jmp 0x180127fd1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
cmp qword [rax + 0x18], rcx
jne 0x180127fd1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
cmp qword [rax + 0x28], rcx
jne 0x180127fd1
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 5
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180127fd1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
movzx eax, byte [rax]
cmp eax, 0xe9
jne 0x180127fd1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
mov rdi, rax
lea rsi, [rcx + 0x38]
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 8
mov rcx, qword [rsp + 0x38]
call fcn.1800dedc4
movzx eax, byte [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x180128060
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x78]
call fcn.1801279a0
nop
lea rcx, [rsp + 0x78]
call fcn.18000bb50
test rax, rax
jbe 0x180128228
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1801280e7
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x78]
call fcn.18000bc00
movzx eax, byte [rsp + 0x21]
jmp 0x180128240
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call fcn.18000bd10
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180127820
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180128228
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.180127bd0
movzx eax, al
test eax, eax
je 0x180128214
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
sub rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.180127b00
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180128214
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.1800fe6d0
test eax, eax
je 0x180128214
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180128214
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rdi, qword [rsp + 0xe0]
mov rsi, rax
mov rcx, qword [rsp + 0xe8]
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1800dedc4
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0x78]
call fcn.18000bc00
movzx eax, byte [rsp + 0x22]
add rsp, 0xc8
pop rdi
pop rsi
ret

Function at 0x180128320
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x18012833e
cmp qword [rsp + 0x48], 0
jne 0x180128340
jmp 0x1801283ad
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180128368
mov edx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x18012836a
jmp 0x1801283ad
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
cmp qword [rax], rcx
je 0x1801283ad
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801283ad
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
add rsp, 0x38
ret
Function at 0x180129130
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x10], 0
lea rcx, [0x1801ab150]
call fcn.18009a0b0
cmp qword [0x1801aa888], 0
jne 0x1801291ca
cmp qword [0x1801aa880], 0
jne 0x1801291ca
mov byte [0x1801aa890], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180128460]
xor edx, edx
xor ecx, ecx
call fcn.1801052a0
mov qword [0x1801aa880], rax
cmp qword [0x1801aa880], 0
je 0x1801291ca
mov edx, 0xfffffffe
mov rcx, qword [0x1801aa880]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rax, qword [0x1801aa888]
inc rax
mov qword [0x1801aa888], rax
lea rcx, [0x1801ab150]
call fcn.18009a0c0
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x140008c6b
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
mov ebx, ecx
add r11, 0x10
nop dword [rax + rax]
mov r11, qword [r11]
mov rcx, qword [r11 + 0x60]
test rcx, rcx
je 0x140008c8b
test ebx, ebx
je 0x140008ca4
call fcn.140008bfb
cmp eax, ebx
jne 0x140008c8b
mov rax, qword [r11 + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x14000fa44
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x218
xor edi, edi
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
mov byte [rax], al
add byte [rax], al

Function at 0x14000fce4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx

Function at 0x14000fcf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x48
xor eax, eax
mov rdi, qword [rsp + 0xb0]
mov r12, rcx
mov qword [rsp + 0xa8], r9
lea rcx, [rsp + 0x38]
nop word [rax + rax]
movzx r9d, byte [rdi + rax + 0x7c]
mov byte [rcx + rax], r9b
add rax, 1
cmp rax, 4
jne 0x14000fd14
xor eax, eax
add rcx, 4
nop word [rax + rax]
movzx r9d, byte [rdi + rax + 0xb8]
mov byte [rcx + rax], r9b
add rax, 1
cmp rax, 4
jne 0x14000fd34
lea ebp, [rdx - 8]
mov rbx, r12
xor r15d, r15d
xor r13d, r13d
xor r11d, r11d
xor r14d, r14d
lea r9, [r12 + 8]
lea rsi, [rsp + 0x37]
Function at 0x14000fe40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub r9, r12
mov eax, ebp
sub eax, r9d
je 0x14000fe54
test bh, bl
add byte [rax], al
invalid
sub eax, 1
xor ecx, ecx
jmp 0x14000fd94
lea rdx, [rcx + 1]
cmp rcx, rax
je 0x14000fe54
mov rcx, rdx
lea r10, [rbx + rcx]
mov edx, 1
movzx r9d, byte [rsi + rdx]
cmp byte [r10 + rdx], r9b
je 0x14000fdae
cmp r9b, 0x3f
jne 0x14000fd84
add rdx, 1
cmp rdx, 9
jne 0x14000fd9d
lea rbx, [rbx + rcx + 1]
test rbx, rbx
je 0x14000fe54
mov eax, dword [rbx]
lea r9, [rbx + 8]
mov r10d, eax
mov edx, eax
movzx ecx, ah
shl r10d, 0x18
shr edx, 0x18
add edx, r10d
mov r10d, ecx
shr eax, 8
shl r10d, 0x10
and eax, 0xff00
add r10d, edx
add r10d, eax
mov eax, dword [rdi + 0x3c]
cmp dword [rbx + 8], eax
je 0x14000fea4
test r11, r11
je 0x14000fd67
lea ecx, [r14 + r10]
mov eax, r14d
add rax, r11
cmp ecx, r13d
ja 0x14000ff24
lea r14d, [r10 - 1]
test r10d, r10d
je 0x14000fe3e
xor edx, edx
jmp 0x14000fe2b
mov rdx, r10
movzx r10d, byte [rbx + rdx + 8]
cmp r14, rdx
mov byte [rax + rdx], r10b
lea r10, [rdx + 1]
jne 0x14000fe28
sub r9, r12
mov eax, ebp
mov r14d, ecx
sub eax, r9d
jne 0x14000fd75
nop dword [rax + rax]
xor eax, eax
test r11, r11
je sym.libvlc.dll_libvlc_video_set_format
mov edx, dword [r15 + 8]
mov r9d, dword [r15 + 4]
test dl, 3
je 0x14000fe70
sub edx, 1
test dl, 3
jne 0x14000fe68
xor ecx, ecx
xor eax, eax
test edx, edx
je 0x14000fe87
xor dword [r11 + rax + 0x10], r9d
add ecx, 4
cmp ecx, edx
movsxd rax, ecx
jb 0x14000fe78
test r14d, r14d
mov qword [r8], r11
setne al
test r11, r11
jne 0x14000fe08
mov eax, dword [rbx + 0x10]
mov qword [rsp + 0x28], r9
mov ecx, 0x40
mov qword [rsp + 0xa0], r8
mov dword [rsp + 0x24], r10d
lea edx, [rax + 0x10]
mov rax, qword [rsp + 0xa8]
mov r13, rdx
call qword [rax + 0xc8]
mov r10d, dword [rsp + 0x24]
mov r11, rax
xor eax, eax
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0xa0]
lea ecx, [r10 - 1]
test r10d, r10d
jne 0x14000ff07
jmp 0x14000ff19
mov rax, rdx
movzx edx, byte [rbx + rax + 8]
cmp rcx, rax
mov byte [r11 + rax], dl
mov byte [rbx + rax], dl
mov byte [rbx + rax], dl
lea rdx, [rax + 1]
jne 0x14000ff04
add r14d, r10d
mov r15, r9
jmp 0x14000fd67
sub r13d, r14d
mov edx, 0
lea r10d, [r13 - 1]
jne 0x14000ff3a
jmp 0x14000fe5b
mov rdx, rcx
movzx ecx, byte [r9 + rdx]
cmp r10, rdx
mov byte [rax + rdx], cl
lea rcx, [rdx + 1]
jne 0x14000ff37
jmp 0x14000fe5b
Function at 0x140018770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140021b10]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x140018790
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.140018650
test eax, eax
je 0x140018788
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400187ed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400187e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140018788
add rdx, 0x28
cmp rdx, r9
jne 0x1400187d0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x180001790
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180583020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
test r8, r8
je 0x180001823
test rcx, rcx
jne 0x1800017df
lea r8d, [rcx + 0x4f]
lea rcx, [0x1800f7028]
lea rdx, str.C:UsersEtoShinya_source_reposMmintyDiscord_SDK_srcconnection_win.cpp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f15b0
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800017ca
test rdx, rdx
jne 0x180001802
lea r8d, [rdx + 0x56]
lea rdx, str.C:UsersEtoShinya_source_reposMmintyDiscord_SDK_srcconnection_win.cpp
lea rcx, [0x1800f7038]
jmp 0x1800017c4
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 0x1800017ca
cmp dword [rsp + 0x30], ebx
jne 0x1800017ca
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f15b0
add rsp, 0x40
pop rbx
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180583020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x180001884
lea r8d, [rdx + 0x62]
lea rdx, str.C:UsersEtoShinya_source_reposMmintyDiscord_SDK_srcconnection_win.cpp
lea rcx, [0x1800f7038]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor al, al
jmp 0x18000194c
test rbx, rbx
jne 0x1800018a8
lea r8d, [rbx + 0x67]
lea rdx, str.C:UsersEtoShinya_source_reposMmintyDiscord_SDK_srcconnection_win.cpp
lea rcx, [0x1800f7028]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor al, al
jmp 0x18000194c
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x78], rbp
cmp rcx, 0xffffffffffffffff
je 0x180001945
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 0x180001930
mov eax, dword [rsp + 0x30]
cmp rax, rdi
jb 0x180001945
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 0x180001930
cmp edi, dword [rsp + 0x34]
je 0x18000192c
lea r8d, [rbp + 0x74]
lea rdx, str.C:UsersEtoShinya_source_reposMmintyDiscord_SDK_srcconnection_win.cpp
lea rcx, str.bytesToRead__bytesRead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov al, 1
jmp 0x180001947
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbx], bpl
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f15b0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800038a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180003907
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1800038c2
mov ecx, dword [r10]
jmp 0x180003a16
cmp ecx, 0x270
jb 0x180003a16
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
lea rbx, [rbx + 8]
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4d8]
xor rcx, rdx
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x180003940
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
lea rbx, [rbx + 8]
xor r9, r8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rbx - 0xea8]
xor rcx, r9
mov r9, r8
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x180003991
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret