joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d5ca0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d6d80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d66a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d673a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d671e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6712
cmp qword [rbp - 0x10], 0
je 0x2fc4d6712
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d66d8
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d673b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6840
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6868
mov eax, 0
jmp 0x2fc4d68b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6891
mov eax, 0
jmp 0x2fc4d68b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d68b1
mov eax, 0
jmp 0x2fc4d68b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d68bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d693a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6931
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d6931
mov rax, qword [rbp - 8]
jmp 0x2fc4d694f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6904
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x9d49f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x9d49fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x9d4a0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x9d49f5
lea eax, [rcx + 1]
jmp 0x9d4a1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x9d4a2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x9d4a14
sub eax, 3
jb 0x9d4a4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x9d4a9d
sar eax, 1
movsxd rbp, eax
jb 0x9d4a84
jmp 0x9d4a5c
add ebx, ebx
jne 0x9d4a5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9d4a84
inc ecx
add ebx, ebx
jne 0x9d4a6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9d4a84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x9d4a7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x9d4a6c
add ecx, 2
jmp 0x9d4a89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.009d49b2
jmp 0x9d49fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x39ae00
mov dl, 0x5e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x9d4ae9
cmp rsi, rcx
jae 0x9d4af1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x9d4ad0
cmp al, 0x8f
ja 0x9d4ad0
cmp byte [rsi - 2], 0xf
je 0x9d4ad6
sub al, 0xe8
cmp al, 1
ja 0x9d4aba
cmp rsi, rcx
jae 0x9d4af1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x9d4ac0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x9d4af1
lodsb al, byte [rsi]
jmp 0x9d4ad0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5b8000]
mov eax, dword [rdi]
or eax, eax
je 0x9d4b4e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x639e64]
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 0x9d4afe
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 0x9d4b48
mov qword [rbx], rax
add rbx, 8
jmp 0x9d4b1e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x9d4b88
cmp al, 0xef
ja 0x9d4b7a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x9d4b5a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x9d4b69
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 + 0x22f]
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 0x9d4bdc
sub rsp, 0xffffffffffffff80
jmp 0x78ac70
Function at 0x140001020
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
lea rcx, section..text
mov qword [rax + 0x68], rcx
lea rcx, [0x1400010e0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x28
ret
Function at 0x140d59058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d591df
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 0x140d59089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d5906f
add dl, dl
jne 0x140d59096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d590f6
xor eax, eax
add dl, dl
jne 0x140d590a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d591ad
add dl, dl
jne 0x140d590b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d590c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d590d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d590dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d590ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d5907e
mov eax, 1
add dl, dl
jne 0x140d59106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d59113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d590fb
sub eax, ebx
mov ebx, 1
jne 0x140d5914c
mov ecx, 1
add dl, dl
jne 0x140d5912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d5913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d59123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d59168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d59175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d5915d
cmp eax, 0x7d00
jae 0x140d5919b
cmp eax, 0x500
jb 0x140d59196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5907e
cmp eax, 0x7f
ja 0x140d5919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d591d2
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 0x140d5907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d3900
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d49e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4302
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d439a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d437e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4372
cmp qword [rbp - 0x10], 0
je 0x2fc4d4372
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4338
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d439b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d44a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d44c8
mov eax, 0
jmp 0x2fc4d4516
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d44f1
mov eax, 0
jmp 0x2fc4d4516
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4511
mov eax, 0
jmp 0x2fc4d4516
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x401865
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.OmniMIDI
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x0041a278], rax
mov rcx, rax
test rax, rax
jne 0x40188f
lea rcx, str.KDMAPI_not_available._n
jmp 0x4018b2
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitializeKDMAPIStream
call rbx
mov qword [0x0041a270], rax
test rax, rax
jne 0x4018be
lea rcx, str.GetProcAddress_failed_for_KDMAPI_InitializeKDMAPIStream._n
call fcn.0040157c
xor eax, eax
jmp 0x4019ad
mov rcx, qword [0x0041a278]
lea rdx, str.SendDirectData
call rbx
lea rcx, str.GetProcAddress_failed_for_KDMAPI_SendDirectData._n
mov qword [0x0041a258], rax
test rax, rax
je 0x4018b2
mov rcx, qword [0x0041a278]
lea rdx, str.SendDirectLongData
call rbx
lea rcx, str.GetProcAddress_failed_for_KDMAPI_SendDirectLongData._n
mov qword [0x0041a250], rax
test rax, rax
je 0x4018b2
mov rcx, qword [0x0041a278]
lea rdx, str.PrepareLongData
call rbx
lea rcx, str.GetProcAddress_failed_for_KDMAPI_PrepareLongData._n
mov qword [0x0041a248], rax
test rax, rax
je 0x4018b2
mov rcx, qword [0x0041a278]
lea rdx, str.UnprepareLongData
call rbx
lea rcx, str.GetProcAddress_failed_for_KDMAPI_UnprepareLongData._n
mov qword [0x0041a240], rax
test rax, rax
je 0x4018b2
mov rcx, qword [0x0041a278]
lea rdx, str.TerminateKDMAPIStream
call rbx
lea rcx, str.GetProcAddress_failed_for_KDMAPI_TerminateKDMAPIStream._n
mov qword [0x0041a268], rax
test rax, rax
je 0x4018b2
mov rcx, qword [0x0041a278]
lea rdx, str.ResetKDMAPIStream
call rbx
lea rcx, str.GetProcAddress_failed_for_KDMAPI_ResetKDMAPIStream._n
mov qword [0x0041a260], rax
test rax, rax
je 0x4018b2
lea rcx, str.KDMAPI_FUNCTIONAL_n
call fcn.0040157c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x4019b3
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.winmm.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x0041a238], rax
mov rcx, rax
test rax, rax
jne 0x4019dd
lea rcx, str.WinMM_not_available._n
jmp 0x401a00
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.midiOutGetNumDevs
call rbx
mov qword [0x0041a230], rax
test rax, rax
jne 0x401a0c
lea rcx, str.GetProcAddress_failed_for_WinMM_midiOutGetNumDevs._n
call fcn.0040157c
xor eax, eax
jmp 0x401afb
mov rcx, qword [0x0041a238]
lea rdx, str.midiOutGetDevCapsW
call rbx
lea rcx, str.GetProcAddress_failed_for_WinMM_midiOutGetDevCapsW._n
mov qword [0x0041a228], rax
test rax, rax
je 0x401a00
mov rcx, qword [0x0041a238]
lea rdx, str.midiOutOpen
call rbx
lea rcx, str.GetProcAddress_failed_for_WinMM_midiOutOpen._n
mov qword [0x0041a220], rax
test rax, rax
je 0x401a00
mov rcx, qword [0x0041a238]
lea rdx, str.midiOutShortMsg
call rbx
lea rcx, str.GetProcAddress_failed_for_WinMM_midiOutShortMsg._n
mov qword [0x0041a218], rax
test rax, rax
je 0x401a00
mov rcx, qword [0x0041a238]
lea rdx, str.midiOutLongMsg
call rbx
lea rcx, str.GetProcAddress_failed_for_WinMM_midiOutLongMsg._n
mov qword [0x0041a210], rax
test rax, rax
je 0x401a00
mov rcx, qword [0x0041a238]
lea rdx, str.midiOutPrepareHeader
call rbx
lea rcx, str.GetProcAddress_failed_for_WinMM_midiOutPrepareHeader._n
mov qword [0x0041a208], rax
test rax, rax
je 0x401a00
mov rcx, qword [0x0041a238]
lea rdx, str.midiOutUnprepareHeader
call rbx
lea rcx, str.GetProcAddress_failed_for_WinMM_midiOutUnprepareHeader._n
mov qword [0x0041a200], rax
test rax, rax
je 0x401a00
lea rcx, str.WinMM_FUNCTIONAL_n
call fcn.0040157c
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x401d94
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
lea rdx, [0x0041669d]
mov dword [0x0041a1a0], r8d
mov qword [0x0041a180], rcx
call sub.msvcrt.dll_fopen
mov qword [0x0041a1b8], rax
test rax, rax
jne 0x401dce
lea rcx, str.Could_not_open_file_path
add rsp, 0x38
jmp 0x414250
mov r8d, dword [0x0041a1a0]
mov qword [rsp + 0x28], rax
mov rcx, r8
mov qword [rsp + 0x20], r8
call sub.msvcrt.dll_malloc
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, rax
mov qword [0x0041a1b0], rax
call sub.msvcrt.dll_fread
mov rdx, qword [0x0041a188]
add rdx, qword [0x0041a190]
add rdx, rax
mov qword [0x0041a1a8], rax
mov qword [0x0041a188], rdx
mov edx, dword [0x0041a1a0]
cmp rdx, rax
setne al
movzx eax, al
mov dword [0x0041a178], eax
add rsp, 0x38
ret
jmp qword [sym.imp.msvcrt.dll_perror]
Function at 0x401e3e
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
cmp dword [0x0041a178], 0
jne 0x401ed1
mov rdx, qword [0x0041a198]
mov rcx, qword [0x0041a1b8]
mov r8d, 1
add rdx, qword [0x0041a190]
mov qword [0x0041a190], rdx
sub edx, dword [0x0041a188]
call fcn.004046f0
mov r9, qword [0x0041a1b8]
mov edx, 1
mov r8d, dword [0x0041a1a0]
mov rcx, qword [0x0041a1b0]
call sub.msvcrt.dll_fread
mov rdx, qword [0x0041a190]
mov qword [0x0041a1a8], rax
add rdx, rax
mov qword [0x0041a188], rdx
mov edx, dword [0x0041a1a0]
cmp rdx, rax
setne al
movzx eax, al
mov dword [0x0041a178], eax
xor eax, eax
mov qword [0x0041a198], rax
add rsp, 0x28
ret

Function at 0x401ed6
Capabilities:
Read file on windows

Disassembly:
sub rcx, qword [0x0041a190]
cmp rcx, qword [0x0041a1a8]
mov qword [0x0041a198], rcx
jb 0x401ef2
jmp fcn.00401e3e
ret

Function at 0x401f3d
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov dword [0x0041a1a0], ecx
mov rcx, qword [0x0041a1b0]
call sub.msvcrt.dll_free
mov ecx, ebx
call sub.msvcrt.dll_malloc
mov qword [0x0041a1b0], rax
add rsp, 0x20
pop rbx
jmp fcn.00401e3e
Function at 0x4022e9
Capabilities:
Set console window title

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
movaps xmmword [rsp + 0x160], xmm6
call fcn.0040175a
movaps xmm6, xmm0
subsd xmm0, qword [0x0041a0f8]
cvttsd2si eax, xmm0
cmp eax, 0xf
jle 0x4024a2
movaps xmm2, xmm6
subsd xmm2, qword [0x0041a0f0]
cvttsd2si eax, xmm2
cmp eax, 0x3e7
jle 0x4023a9
mov eax, dword [0x0041a100]
cvtsd2ss xmm2, xmm2
divss xmm2, dword [0x00416bd0]
movss xmm1, dword [0x00416bd4]
cmp dword [0x00415044], 0
cvtsi2ss xmm0, rax
divss xmm2, xmm0
divss xmm1, xmm2
je 0x402374
cvtss2sd xmm3, xmm1
lea rcx, str._nFPS:__.10g
movq rdx, xmm3
movaps xmm1, xmm3
jmp 0x402394
movss xmm0, dword [0x00416bd8]
comiss xmm0, xmm1
jbe 0x402399
cvtss2sd xmm4, xmm1
lea rcx, str._nLag_detected__FPS:__.10g
movq rdx, xmm4
movaps xmm1, xmm4
call fcn.0040157c
xor eax, eax
movsd qword [0x0041a0f0], xmm6
mov dword [0x0041a100], eax
lea rbx, [rsp + 0x60]
mov rdx, qword [0x0041a148]
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x40
movsd qword [0x0041a0f8], xmm6
lea rsi, [rsp + 0x2c]
lea rbp, str._llu
rep stosd dword [rdi], eax
mov rcx, rbx
call sub.msvcrt.dll_strcat
lea rdx, str.__Notes:
mov rcx, rbx
call sub.msvcrt.dll_strcat
mov r8, qword [0x0041a108]
mov rdx, rbp
mov rcx, rsi
call fcn.0040164e
mov rcx, rsi
call fcn.00402267
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call sub.msvcrt.dll_strcat
mov rcx, rdi
call sub.msvcrt.dll_free
lea rdx, str.__Events:
mov rcx, rbx
call sub.msvcrt.dll_strcat
mov r8, qword [0x0041a110]
mov rdx, rbp
mov rcx, rsi
call fcn.0040164e
mov rcx, rsi
call fcn.00402267
mov rcx, rbx
mov rsi, rax
mov rdx, rax
call sub.msvcrt.dll_strcat
mov rcx, rsi
lea rsi, [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, str.__BPM:
mov rcx, rbx
call sub.msvcrt.dll_strcat
movsd xmm2, qword [0x00415030]
lea rdx, str._.10lg
mov rcx, rsi
movq r8, xmm2
call fcn.0040164e
mov rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcat
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x40322e
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str._clsclear
call sub.msvcrt.dll_system
lea rdx, str.v2.1.0_pre3
lea rcx, str.ConMIDI__s_n
add rsp, 0x28
jmp fcn.0040157c

Function at 0x4036f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00413bd0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00413bd0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x403760
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0041a324]
test esi, esi
mov rbx, rcx
jle 0x403890
mov rax, qword [0x0041a328]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x4037ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x403835
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x403790
mov rcx, rbx
call fcn.004041e0
test rax, rax
mov rdi, rax
je 0x4038b2
mov rax, qword [0x0041a328]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.00404320
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0041a328]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403897
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40382e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x403840
add dword [0x0041a324], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x0041a328]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40382e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004036f0
nop dword [rax]
xor esi, esi
jmp 0x4037b8
mov rax, qword [0x0041a328]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.004036f0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004036f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x403e50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x0041a380]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0041a360]
test rbx, rbx
je 0x403eac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x403ea3
test eax, eax
jne 0x403ea3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403e88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4041e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004179a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x404200
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x404208
ret
cmp word [r8 + 0x18], 0x20b
jne 0x404200
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x40425d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x404254
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x404200
add rax, 0x28
cmp rax, r9
jne 0x404240
xor eax, eax
ret

Function at 0x404260
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004179a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x40427f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x404288
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x40427f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x404320
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004179a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x40433f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x404348
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret