joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011d0c0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18030e7e0], eax
je 0x18011d0db
mov eax, 0x10dd
jmp 0x18011d200
mov rax, qword [0x18030e7f8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18011d185
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18011d150
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18011d150
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18011bd10
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x38]
call fcn.18011f9bc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18011d0e7
mov qword [0x18030e7f8], 0
call fcn.18011c770
mov rax, qword [0x18030e7f0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18011d1e9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.18011f9bc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18011d1a1
mov qword [0x18030e7f0], 0
mov dword [0x18030e7e0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18011d730
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18030e7e4], 0
je 0x18011d74d
mov eax, dword [0x18030e7e4]
jmp 0x18011d813
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18011d760
xor eax, eax
jmp 0x18011d813
mov ecx, reloc.WS2_32.dll_recv
call fcn.18011fa9c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18011d7ce
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18011d7b3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.18011f9bc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18030e7e4], eax
mov qword [0x18030e7e8], 0
mov eax, dword [rsp + 0x20]
jmp 0x18011d813
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18011d7e8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18011d789
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18030e7f0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18030e7f0], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x18011ed8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18011ee10
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x18011ee10
dec r8
sub rdx, 1
jne 0x18011edf6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18011f66c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.18011eefc
mov ebx, eax
test eax, eax
jne 0x18011f69c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x18011f6ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18011f6f6
test al, 0x10
je 0x18011f6f6
bt eax, 0xa
jae 0x18011f6ef
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.18011f710
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x18011f6eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x18011f6eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x18011f6f6
and dword [rsp + 0x3c], 0
jmp 0x18011f6fb
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001c50
Capabilities:
Parse pe header

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

Function at 0x14002f200
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002f20d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002f21d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002f205
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002f235
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002f222
sub eax, 3
jb 0x14002f24f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002f286
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002f276
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002f274
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002f263
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002f1c2
jmp 0x14002f20d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002f2d2
cmp rsi, rcx
jae 0x14002f2da
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002f2b9
cmp al, 0x8f
ja 0x14002f2b9
cmp byte [rsi - 2], 0xf
je 0x14002f2bf
sub al, 0xe8
cmp al, 1
ja 0x14002f2a3
cmp rsi, rcx
jae 0x14002f2da
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002f2a9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002f2da
lodsb al, byte [rsi]
jmp 0x14002f2b9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2d000]
mov eax, dword [rdi]
or eax, eax
je 0x14002f343
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x33614]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002f2e7
jns 0x14002f31c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14002f326
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002f33d
mov qword [rbx], rax
add rbx, 8
jmp 0x14002f307
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002f39b
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0
Function at 0x180014ab0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x180014ad1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x180014afe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180014b00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180014b59
test ecx, ecx
jle 0x180014b39
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180014b59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180014b59
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
invalid
Function at 0x180014b80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180014ba2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180014bb1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180014bd4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180014bd6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180014c12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180014cae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180014c4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x180014c8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x180014cae
cmp rbx, rax
ja 0x180014c60
test rbx, rbx
je 0x180014cae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
invalid
Function at 0x1800150b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1802d4040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800150dd
xor eax, eax
jmp 0x180015249
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180015117
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180015117
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180015249
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18001523c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18001515a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180015185
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180015241
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800151f4
sub eax, 1
je 0x1800151f4
cmp eax, 2
jne 0x18001523c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180015241
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180015222
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18001523c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180015241
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180118530
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180015700
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1802d4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800157d3
cmp byte [rcx + 0x71], 0
je 0x1800157d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800157cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180015794
sub eax, 1
je 0x180015798
cmp eax, 2
jne 0x1800157cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180118530
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800157c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1800157cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18001577c
xor al, al
jmp 0x18001577c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180118530
add rsp, 0x60
pop rbx
ret
Function at 0x18004cdd0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rcx
add rcx, 0x578
lea rdx, [rbx + 0x4a0]
call fcn.180066c10
lea rcx, [rbx + 0x5a0]
lea rdx, [rbx + 0x2d8]
call fcn.180066c10
lea rcx, [rbx + 0x5c8]
call fcn.180066b90
test al, al
je 0x18004ce8e
cmp byte [rbx + 0x528], 0
je 0x18004ce8e
cmp byte [rbx + 0x4e0], 0
jne 0x18004ce8e
lea rcx, [rbx + 0x4e8]
call fcn.180031420
mov rbx, rax
lea rdx, str.enabled
lea rcx, [rsp + 0x40]
call fcn.180015450
nop
lea rdx, str.functions:Settings:fastExit
lea rcx, [rsp + 0x20]
call fcn.180015450
nop
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18003d310
nop
lea rcx, [rsp + 0x20]
call fcn.180015440
nop
lea rcx, [rsp + 0x40]
call fcn.180015440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp byte [rbx + 0x318], 0
je 0x18004cea4
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, 5
jmp 0x18004ceac
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [rbx + 0x1f8], 0
je 0x18004cf8a
mov edi, 0x306f
mov eax, 0x306b
cmp byte [rbx + 0x240], 0
cmovne edi, eax
mov rax, qword [0x1802d75c8]
test rax, rax
jne 0x18004cf03
mov r8d, 0x10b6
lea rdx, str.C:UsersEtoShinya_source_reposMminty_apiimguiImGuiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x1802d75c8]
mov rax, qword [rax + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 8]
call fcn.180088f80
mov r8d, edi
xor edx, edx
lea rcx, str.FPS
call fcn.180085dd0
mov rax, qword [0x1802d75c8]
test rax, rax
jne 0x18004cf52
mov r8d, 0x10b6
lea rdx, str.C:UsersEtoShinya_source_reposMminty_apiimguiImGuiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x1802d75c8]
movss xmm6, dword [rax + 0xd4]
cvtps2pd xmm6, xmm6
lea rcx, str.FPS_TITLE
call fcn.180062640
movaps xmm2, xmm6
movq r8, xmm6
mov rdx, rax
lea rcx, str._s:__.1f
call fcn.1800b8300
call fcn.180089020
call fcn.180088400
mov rbx, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rdi
ret
Function at 0x18004cff0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1802d4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
test r8, r8
je 0x18004d083
test rcx, rcx
jne 0x18004d03f
lea r8d, [rcx + 0x4f]
lea rcx, [0x18029d400]
lea rdx, str.C:UsersEtoShinya_source_reposMminty_apidiscord_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.180118530
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18004d02a
test rdx, rdx
jne 0x18004d062
lea r8d, [rdx + 0x56]
lea rdx, str.C:UsersEtoShinya_source_reposMminty_apidiscord_srcconnection_win.cpp
lea rcx, [0x18029d3f0]
jmp 0x18004d024
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 0x18004d02a
cmp dword [rsp + 0x30], ebx
jne 0x18004d02a
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180118530
add rsp, 0x40
pop rbx
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1802d4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18004d0e4
lea r8d, [rdx + 0x62]
lea rdx, str.C:UsersEtoShinya_source_reposMminty_apidiscord_srcconnection_win.cpp
lea rcx, [0x18029d3f0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor al, al
jmp 0x18004d1ac
test rbx, rbx
jne 0x18004d108
lea r8d, [rbx + 0x67]
lea rdx, str.C:UsersEtoShinya_source_reposMminty_apidiscord_srcconnection_win.cpp
lea rcx, [0x18029d400]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor al, al
jmp 0x18004d1ac
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x78], rbp
cmp rcx, 0xffffffffffffffff
je 0x18004d1a5
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 0x18004d190
mov eax, dword [rsp + 0x30]
cmp rax, rdi
jb 0x18004d1a5
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 0x18004d190
cmp edi, dword [rsp + 0x34]
je 0x18004d18c
lea r8d, [rbp + 0x74]
lea rdx, str.C:UsersEtoShinya_source_reposMminty_apidiscord_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 0x18004d1a7
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.180118530
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x18004f0d0
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 0x18004f137
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 0x18004f0f2
mov ecx, dword [r10]
jmp 0x18004f246
cmp ecx, 0x270
jb 0x18004f246
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 0x18004f170
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 0x18004f1c1
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