joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400050ab
Capabilities:
Set registry value

Disassembly:
jmp 0x14003bf80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rdx, rcx
xor edi, edi
movzx ecx, r9b
xor rcx, 1
sub rcx, 0x7fffffff
mov r8d, 0xf003f
call fcn.140003927
mov rbx, rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test eax, eax
jne 0x14003c019
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14003c001
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
lea ecx, [rdi + 4]
call fcn.1400013de
test rax, rax
je 0x14003c033
mov edx, esi
mov rcx, rax
call fcn.14000148d
mov rdi, rax
mov qword [rsp + 0x30], rdi
lea rdx, [0x14014f6b8]
lea rcx, [rsp + 0x30]
call fcn.1400071e9
int3

Function at 0x140005371
Capabilities:
Print debug messages

Disassembly:
jmp 0x140013170
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rcx + 0x30], 1
cmp qword [rcx], 0
je 0x140013268
cmp dword [rcx + 0x24], 0
jle 0x1400131a7
mov rax, qword [rcx + 0x28]
inc dword [rax + 0x10]
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400131a7
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0x3a98
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test eax, eax
je 0x140013258
lea rcx, [rsp + 0x30]
call fcn.140005a15
nop
cmp edi, 0x102
jne 0x1400131e0
lea rdx, str.Thread__p_does_not_exit_within__u_seconds.
mov edi, 0xf
jmp 0x1400131e7
lea rdx, str.Cant_wait_for_the_thread__p:_WaitForSingleObject_returned__08X.
mov r9d, edi
mov r8, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.14000192e
lea rdx, str._This_thread_will_be_terminated._n
lea rcx, [rsp + 0x30]
call fcn.140002455
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x14001324e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbx]
lea rdx, str.Cannot_terminate_the_thread__p:_error__u__n
lea rcx, [rsp + 0x30]
call fcn.14000192e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rsp + 0x30]
call fcn.140003080
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140005619
Capabilities:
Delete file

Disassembly:
jmp 0x14001dc50
push rbx
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp dword [rcx + 0x398], 0
movzx r14d, r8b
mov edi, edx
mov rbx, rcx
je 0x14001dc8a
mov eax, 3
jmp 0x14001de3d
mov eax, dword [rcx]
test eax, eax
jne 0x14001de3d
lea eax, [rdx - 0xac44]
cmp eax, 0x241bc
ja 0x14001de38
cmp r9d, 7
ja 0x14001de38
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14001de31
mov r8, qword [rbx + 0x28]
test r8, r8
je 0x14001de31
mov qword [rsp + 0x1a8], rbp
lea rdx, str._s_c_s__05X.ml_c
mov dword [rbx + 0x58], r9d
test r14b, r14b
mov qword [rsp + 0x168], rsi
mov ebp, 0x6e
mov qword [rsp + 0x160], r15
mov r15d, 0x72
mov eax, r15d
mov dword [rbx + 0x5c], edi
cmovne eax, ebp
mov byte [rbx + 0x60], r14b
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
lea r9d, [r15 - 0x43]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.1400062cb
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x68]
call fcn.1400038a0
test al, al
jne 0x14001dd3e
lea rcx, [rsp + 0x40]
call fcn.140002563
mov rax, qword [rbx + 0x20]
lea rdx, str._s_c_s__05X.ml_c
mov r8, qword [rbx + 0x28]
lea rcx, [rsp + 0x40]
test r14b, r14b
mov r9d, 0x2f
cmovne ebp, r15d
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.1400062cb
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x68]
call fcn.1400038a0
mov r15, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x1a8]
test al, al
jne 0x14001dd9d
lea rcx, [rsp + 0x40]
call fcn.140002563
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x68]
call fcn.1400038a0
mov rsi, qword [rsp + 0x168]
test al, al
jne 0x14001de2d
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ddcd
call fcn.140002ffe
mov qword [rbx + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140002a59
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14001dde7
mov eax, 4
jmp 0x14001de3d
mov rcx, qword [rbx + 0x28]
call fcn.140005786
lea rcx, [rbx + 0x1e0]
mov r8d, 0x55454752
lea rdx, [rsp + 0x40]
call fcn.140003b43
test al, al
jne 0x14001de12
mov eax, 8
jmp 0x14001de3d
lea rcx, [rbx + 0x358]
mov dword [rbx + 0x398], 2
mov edx, 1
call fcn.140006622
xor eax, eax
jmp 0x14001de3d
mov eax, 1
jmp 0x14001de3d
mov eax, 6
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140003b70
add rsp, 0x170
pop r14
pop rdi
pop rbx
ret

Function at 0x140005632
Capabilities:
Terminate process

Disassembly:
jmp 0x1400c62c8
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400c62e2
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140006307
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140005786
Capabilities:
Create directory

Disassembly:
jmp 0x14002f850
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rcx
test rcx, rcx
je 0x14002f8df
nop word [rax + rax]
mov edx, 0x2f
mov rcx, rdi
call fcn.1400014d8
test rax, rax
je 0x14002f88c
mov ecx, eax
lea rdi, [rax + 1]
sub ecx, ebx
jmp 0x14002f89e
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14002f893
xor edi, edi
test ecx, ecx
jle 0x14002f8da
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140004a3e
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14002f8d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002f8ec
lea rcx, [rsp + 0x30]
call fcn.140003080
test rdi, rdi
jne 0x14002f870
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rsp + 0x30]
call fcn.140003080
mov rbx, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x140005876
Capabilities:
Read file on windows

Disassembly:
jmp 0x140013990
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov ebx, r8d
test rcx, rcx
je 0x1400139ca
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400139ca
cmp dword [rsp + 0x40], ebx
jne 0x1400139ca
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140005899
Capabilities:
Clear file content

Disassembly:
jmp 0x140014380
sub rsp, 0x28
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14001439e
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14001439e
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1400059f7
Capabilities:
Write file on windows

Disassembly:
jmp 0x140014cc0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
lea r8, [rsp + 0x48]
xor r9d, r9d
mov rdi, rcx
mov rcx, qword [rbx + 8]
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140014d07
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140014cf5
xor esi, esi
lea r9, [rsp + 0x48]
mov rdx, rdi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014cf5
cmp dword [rsp + 0x48], 4
jne 0x140014cf5
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140014cf5
lea rdx, [rdi + 4]
mov dword [rsp + 0x48], esi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014cf5
cmp dword [rsp + 0x48], 4
jne 0x140014cf5
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140014cf5
lea rdx, [rdi + 8]
mov dword [rsp + 0x48], esi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014cf5
cmp dword [rsp + 0x48], 4
jne 0x140014cf5
lea rdx, [rdi + 0xc]
mov rcx, rbx
call fcn.14000438b
test al, al
je 0x140014cf5
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140005b00
Capabilities:
Write file on windows

Disassembly:
jmp 0x140014830
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov ebx, r8d
test rcx, rcx
je 0x14001486a
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001486a
cmp dword [rsp + 0x40], ebx
jne 0x14001486a
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140005ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400181f0
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor r15d, r15d
mov rbx, rcx
mov dword [rcx + 0x11c], r15d
mov edx, r15d
add rcx, 0x220
nop dword [rax + rax]
cmp byte [rcx - 0x204], r15b
je 0x140018256
movsxd rax, dword [rbx + 0x11c]
mov byte [rax + rbx + 0x120], dl
movzx eax, byte [rbx + 0x11c]
mov byte [rcx], al
inc dword [rbx + 0x11c]
mov ebp, dword [rbx + 0x11c]
inc edx
inc rcx
cmp edx, 0x100
jl 0x140018230
lea r14d, [rbp + 1]
mov ecx, ebp
mov edx, ebp
test r14d, r14d
js 0x140018294
lea r8d, [r14 + 1]
xor edx, edx
shl r8, 2
lea rcx, [rbx + 0x37c]
call fcn.1400052ae
mov ecx, dword [rbx + 0x11c]
mov edx, ecx
mov r8d, r15d
mov r10d, r15d
mov eax, r15d
test ecx, ecx
jle 0x1400182bc
lea rcx, [rsp + 0x20]
nop word [rax + rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, edx
jl 0x1400182b0
mov esi, r15d
cmp dword [rbx + 0x374], r15d
jl 0x14001844d
mov qword [rsp + 0x168], rdi
mov r9, r15
movzx edi, byte [rsp + 0x20]
mov qword [rsp + 0x170], r12
mov r12d, 1
nop word [rax + rax]
mov rax, qword [rbx + 0x360]
mov r11d, r15d
movsxd rcx, esi
movsxd rdx, dword [rax + rcx*4]
mov rax, qword [rbx + 0x350]
movzx ecx, byte [rdx + rax - 1]
movzx edx, byte [rcx + rbx + 0x220]
cmp dl, dil
je 0x140018338
nop word [rax + rax]
inc r11d
movzx ecx, dil
movsxd rax, r11d
movzx edi, byte [rsp + rax + 0x20]
mov byte [rsp + rax + 0x20], cl
cmp dl, dil
jne 0x140018320
mov byte [rsp + 0x20], dil
test r11d, r11d
jne 0x140018347
inc r8d
jmp 0x1400183c6
test r8d, r8d
jle 0x1400183a6
dec r8d
nop
mov ecx, r8d
and ecx, r12d
je 0x140018377
cmp ecx, r12d
jne 0x14001838f
mov rax, qword [rbx + 0x330]
inc r10d
mov word [rax + r9*2], r12w
inc r9
inc dword [rbx + 0x380]
jmp 0x14001838f
mov rax, qword [rbx + 0x330]
inc r10d
mov word [rax + r9*2], r15w
inc r9
inc dword [rbx + 0x37c]
cmp r8d, 2
jl 0x1400183a3
lea eax, [r8 - 2]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
jmp 0x140018350
mov r8d, r15d
mov rax, qword [rbx + 0x330]
lea ecx, [r11 + 1]
inc r10d
mov word [rax + r9*2], cx
inc r9
movsxd rax, r11d
inc dword [rbx + rax*4 + 0x380]
inc esi
cmp esi, dword [rbx + 0x374]
jle 0x1400182f0
mov rdi, qword [rsp + 0x168]
test r8d, r8d
jle 0x140018445
movsxd rax, r10d
dec r8d
lea r9, [rax + rax]
nop dword [rax + rax]
mov ecx, r8d
and ecx, r12d
je 0x140018418
cmp ecx, r12d
jne 0x140018431
mov rax, qword [rbx + 0x330]
inc r10d
mov word [r9 + rax], r12w
add r9, 2
inc dword [rbx + 0x380]
jmp 0x140018431
mov rax, qword [rbx + 0x330]
inc r10d
mov word [r9 + rax], r15w
add r9, 2
inc dword [rbx + 0x37c]
cmp r8d, 2
jl 0x140018445
lea eax, [r8 - 2]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
jmp 0x1400183f0
mov r12, qword [rsp + 0x170]
mov rax, qword [rbx + 0x330]
movsxd rcx, r10d
mov word [rax + rcx*2], r14w
movsxd rax, ebp
inc dword [rbx + rax*4 + 0x380]
lea eax, [r10 + 1]
mov dword [rbx + 0x378], eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140003b70
add rsp, 0x130
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005ca4
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400267e0
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x430], rax
call fcn.14000308a
lea rbx, [rsp + 0x468]
mov edi, dword [rax]
call fcn.140001366
mov r9, qword [rsp + 0x460]
lea rdx, [rsp + 0x30]
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x28], rbx
mov r8, rsi
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
or rcx, 1
call fcn.14000380f
mov ecx, edi
mov ebx, eax
call fcn.140004fe8
mov r9, rax
lea rcx, [rsp + 0x30]
test ebx, ebx
lea rdx, str._error__d:__s_n
mov r8d, edi
cmovs ebx, esi
movsxd rax, ebx
add rcx, rax
call fcn.1400062cb
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140003b70
add rsp, 0x440
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000627b
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x140012dd0
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140012dfc
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
test rax, rax
mov qword [rbx], rax
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x14000648d
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002df50
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov r8d, 4
add rdx, 0x108
mov rsi, rcx
call fcn.140005b00
test al, al
jne 0x14002df8b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, dword [rdi + 0x108]
test r8d, r8d
je 0x14002dfb5
mov rdx, qword [rdi + 0x100]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140005b00
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140006523
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400973c4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1401256f8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1401256f0]
call fcn.140096e3c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140097404
call qword [0x140186020]
jmp 0x14009740a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006843
Capabilities:
Read file on windows

Disassembly:
jmp 0x140013890
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400138cd
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
lea r8d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400138cd
cmp dword [rsp + 0x40], 4
jne 0x1400138cd
mov al, 1
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret

Function at 0x140006848
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400d05c4
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 0x1400d038f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d038f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d038f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d038f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d038f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d038f
cmp dword [rcx + 0xf8], 0
je 0x1400d038f
mov ecx, ebx
call fcn.1400d0508
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.1400d0080
nop
cmp dword [rbp + 0x20], 0
je 0x1400d03dd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d0418
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400d0320

Function at 0x140006988
Capabilities:
Read file on windows

Disassembly:
jmp 0x140013a70
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov ebx, r8d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140013aae
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013aae
cmp dword [rsp + 0x40], ebx
jne 0x140013aae
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140006a73
Capabilities:
Set registry value

Disassembly:
jmp 0x14003beb0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rdx, rcx
movzx ecx, byte [rsp + 0x70]
xor rcx, 1
sub rcx, 0x7fffffff
mov r8d, 0xf003f
call fcn.140003927
mov rbx, rax
xor dil, dil
test r14, r14
jne 0x14003bf01
test rsi, rsi
jne 0x14003bf25
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9d, 3
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete dil
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, dil
jmp 0x14003bf3a
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140007009
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14003b380
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov r12, rcx
xor esi, esi
mov dword [rsp + 0x38], esi
mov rdx, r9
call fcn.140006587
mov dword [rsp + 0x38], 1
movzx ecx, byte [rsp + 0xd0]
xor rcx, 1
sub rcx, 0x7fffffff
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x14003b54e
mov r13, qword [rsp + 0x48]
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x30], esi
mov dword [rsp + 0xd0], esi
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
jne 0x14003b4b6
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x14003b57f
mov eax, dword [rsp + 0xd0]
test eax, eax
je 0x14003b51a
mov ecx, eax
call fcn.14000376f
mov rdi, rax
test rax, rax
je 0x14003b5ae
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
je 0x14003b501
mov edx, 1
mov rcx, rdi
call fcn.140005943
jmp 0x14003b5b2
cmp eax, 2
jne 0x14003b5b2
test r14, r14
je 0x14003b51a
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x14003b4d0
lea rcx, [rbx + 1]
call fcn.14000376f
mov rdi, rax
test rax, rax
je 0x14003b5b2
mov r8, rbx
mov rdx, r14
mov rcx, rax
call fcn.1400026a3
mov byte [rdi + rbx], 0
mov rdx, rdi
mov rcx, r12
call fcn.140006cd5
mov edx, 1
mov rcx, rdi
call fcn.140005943
nop
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14003b52e
mov rax, r12
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea ecx, [rsi + 4]
call fcn.1400013de
test rax, rax
je 0x14003b568
mov edx, ebx
mov rcx, rax
call fcn.14000148d
mov rsi, rax
mov qword [rsp + 0x40], rsi
lea rdx, [0x14014f6b8]
lea rcx, [rsp + 0x40]
call fcn.1400071e9
nop
lea ecx, [r15 + 4]
call fcn.1400013de
test rax, rax
je 0x14003b598
mov rcx, rax
call fcn.140006519
mov rsi, rax
mov qword [rsp + 0x50], rsi
lea rdx, [0x14014f740]
lea rcx, [rsp + 0x50]
call fcn.1400071e9
lea r15d, [rax + 0xe]
mov ecx, 4
call fcn.1400013de
test rax, rax
je 0x14003b5cf
mov edx, r15d
mov rcx, rax
call fcn.14000148d
mov rsi, rax
mov qword [rsp + 0x58], rsi
lea rdx, [0x14014f6b8]
lea rcx, [rsp + 0x58]
call fcn.1400071e9
int3

Function at 0x140007108
Capabilities:
Get disk size

Disassembly:
jmp 0x140040210
sub rsp, 0x28
xor r9d, r9d
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x140040237
add rsp, 0x28
ret
mov rax, qword [rsp + 0x38]
add rax, 0xfffff
shr rax, 0x14
add rsp, 0x28
ret
Function at 0x1400121b0
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400121b0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov esi, r8d
mov qword [rcx + 0x408], rbx
lea rax, vtable.MusicLab::CXFileReadBuff.0
mov qword [rcx], rax
mov rbp, rdx
mov qword [rcx + 0x410], rbx
mov rdi, rcx
mov qword [rcx + 0x418], rbx
mov qword [rcx + 0x420], rbx
test r8d, r8d
je 0x140012301
test rdx, rdx
je 0x140012301
cmp esi, 0x400
ja 0x140012212
lea rax, [rcx + 8]
jmp 0x14001221a
mov rcx, rsi
call fcn.1400044da
mov qword [rdi + 0x408], rax
cmp qword [rbp + 8], rbx
je 0x14001223b
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14001223b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rdi + 0x410], rbp
lea r8, [rsp + 0x50]
mov rcx, qword [rbp + 8]
mov r9d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
mov rcx, rbx
cmovne rcx, qword [rsp + 0x50]
mov qword [rdi + 0x418], rcx
mov rdx, qword [rdi + 0x408]
test rdx, rdx
je 0x1400122b8
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400122b8
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400122b8
cmp dword [rsp + 0x60], esi
jne 0x1400122b8
mov dword [rdi + 0x420], esi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdi + 0x410]
test rax, rax
je 0x1400122e0
cmp qword [rax + 8], rbx
je 0x1400122d9
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400122d9
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov qword [rdi + 0x410], rbx
mov rcx, qword [rdi + 0x408]
test rcx, rcx
je 0x140012301
lea rax, [rdi + 8]
cmp rcx, rax
je 0x1400122fa
call fcn.140002ffe
mov qword [rdi + 0x408], rbx
mov rbx, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret