joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026360
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov ebx, 0x800
mov r14d, 0x100
mov ecx, ebx
call fcn.140011b24
xor r15d, r15d
mov rdi, rax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, ebx
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140026437
mov esi, r14d
mov ebx, dword [rsp + 0x20]
lea rcx, [rsi*8]
cmp rbx, rcx
jbe 0x14002647d
mov rcx, rdi
call fcn.140011630
add r14d, r14d
mov rcx, 0xffffffffffffffff
mov esi, r14d
mov eax, 8
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.140011b24
mov rdi, rax
mov dword [rsp + 0x20], r15d
lea ebx, [r14*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, ebx
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x1400263cb
lea rdx, str.Failed_to_get_module_info_n
mov ecx, 2
call fcn.1400085cc
mov rcx, rdi
call fcn.140011630
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140011610
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
shr ebx, 3
lea rdx, str._d_modules:_n
mov r8d, ebx
mov ecx, 2
call fcn.1400085cc
mov ebp, r15d
test ebx, ebx
je 0x140026448
mov r14, rdi
test ebp, ebp
je 0x1400264a7
mov rsi, qword [r14]
jmp 0x1400264b2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov r8d, 0x105
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
add rcx, rcx
cmp rcx, 0x20a
jae 0x140026523
mov word [rsp + rcx + 0x30], r15w
lea r8, str.__p_
lea rcx, [rsp + 0x240]
mov r9, rsi
mov edx, 0x100
call fcn.14000350c
lea r9, [rsp + 0x30]
mov ecx, 2
lea r8, [rsp + 0x240]
lea rdx, str.Module__s:__s_n
call fcn.1400085cc
inc ebp
add r14, 8
cmp ebp, ebx
jb 0x14002649e
jmp 0x140026448
call fcn.140011740
int3
Function at 0x140028730
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rbx, qword [rbp + 0x450]
mov r15, rdx
movsxd rsi, r8d
lea rdx, str.mkdir__s___nul_2_1
mov r8, qword [0x140061410]
mov r14, rcx
lea rcx, [rsp + 0x70]
mov rdi, r9
call fcn.14002840c
xor r12d, r12d
test eax, eax
jns 0x1400287a9
lea rdx, str.fatal_error_C1511:_too_long_or_ill_formed_repro_capture_directory_path_n
lea ecx, [r12 + 1]
call fcn.1400085cc
lea ecx, [r12 + 4]
call fcn.14000d040
int3
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
mov rcx, qword [0x140061410]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
test eax, eax
jne 0x140028929
movzx eax, word [rsp + 0x3e]
test ax, ax
je 0x140028929
bt ax, 0xe
jae 0x140028929
mov rax, qword [rbx + 0x38]
lea r8, [0x14002fa1c]
mov r9, rbx
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.1400080d0
mov r8, qword [0x140061410]
lea rax, str..rsp
lea r9, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea rdx, str._s_s_s
lea rcx, [rsp + 0x70]
call fcn.14002840c
lea r8, [0x14004cd04]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140028873
lea rdx, str.fatal_error_C1511:_unable_to_create_c1xx.rsp_in_repro_capture_directory_n
mov ecx, 1
call fcn.1400085cc
mov ecx, 4
call fcn.14000d040
int3
mov rax, qword [rdi]
mov rbx, rdi
test rax, rax
je 0x14002889b
mov r8, rax
lea rdx, [0x14002ffa0]
call fcn.1400298c8
mov rcx, qword [rsp + 0x30]
lea rbx, [rbx + 8]
mov rax, qword [rbx]
jmp 0x140028879
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x140061410]
lea rax, [0x1400544c4]
lea r9, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea rdx, str._s_s_s
lea rcx, [rsp + 0x70]
call fcn.14002840c
lea rcx, [0x1400544cc]
mov qword [rdi + rsi*8 + 0x18], r12
mov qword [rdi + rsi*8], rcx
mov r8, r15
lea rcx, [0x1400544d8]
mov qword [rsp + 0x20], rdi
mov qword [rdi + rsi*8 + 8], rcx
mov rdx, r14
lea rcx, [rsp + 0x70]
mov qword [rdi + rsi*8 + 0x10], rcx
xor ecx, ecx
mov r9, qword [r14 + 8]
call fcn.140006fc0
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140011610
add rsp, 0x4f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.fatal_error_C1511:_repro_capture_directory_could_not_be_created_n
mov ecx, 1
call fcn.1400085cc
mov ecx, 4
call fcn.14000d040
int3
Function at 0x140029a70
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rdi, rdx
mov rbx, r8
xor edx, edx
mov rsi, rcx
lea rcx, [rbp - 0x15]
lea r8d, [rdx + 0x64]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
mov dword [rbp - 0x19], 0x68
lea rcx, [rbp + 0x7f]
call fcn.14002990c
mov rbx, qword [rbp + 0x7f]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rbx
and qword [rsp + 0x38], 0
mov rcx, rdi
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140029b06
or dword [rsi + 4], 0xffffffff
mov byte [rsi], al
jmp 0x140029b4e
mov rcx, qword [rbp - 0x31]
or edx, 0xffffffff
or dword [rbp - 0x35], 0xffffffff
mov byte [rbp - 0x39], 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140029b33
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rbp + 0x7f]
mov dword [rbp - 0x35], eax
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x39]
mov qword [rsi], rax
test rbx, rbx
je 0x140029b5b
mov rcx, rbx
call fcn.140011630
lea r11, [rsp + 0xe0]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140029b78
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r15, r8
mov r12, rdx
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r13d, r13d
mov esi, eax
test eax, eax
jne 0x140029bd5
or r14, 0xffffffffffffffff
mov byte [rdi], r13b
mov dword [rdi + 4], r14d
jmp 0x140029c9f
mov eax, 2
mov r14, 0xffffffffffffffff
mul rsi
cmovo rax, r14
mov rcx, rax
call fcn.140011b24
mov r8d, esi
lea rcx, str.PATH
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rsi - 1]
cmp eax, ecx
je 0x140029c1f
mov byte [rdi], r13b
mov dword [rdi + 4], r14d
test rbx, rbx
je 0x140029c9f
jmp 0x140029c97
movzx ebp, word [rbx]
mov rcx, rbx
mov rsi, rbx
jmp 0x140029c37
cmp bp, 0x3b
je 0x140029c3c
add rsi, 2
movzx ebp, word [rsi]
test bp, bp
jne 0x140029c2a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], r13
mov r9d, 0x104
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rsi], r13w
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_SearchPathW]
dec eax
cmp eax, 0x102
jbe 0x140029c87
add rsi, 2
mov rcx, rsi
test bp, bp
je 0x140029c7e
movzx ebp, word [rsi]
test bp, bp
jne 0x140029c2a
mov byte [rdi], r13b
mov dword [rdi + 4], r14d
jmp 0x140029c97
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140029a70
mov rcx, rbx
call fcn.140011630
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140011610
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140029f18
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
cmp dword [0x1400614d0], edi
mov r14d, edi
jne 0x14002a169
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r12d, [rdi + 1]
test eax, eax
je 0x140029f64
mov r13d, edi
jmp 0x140029f8a
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov rcx, rax
call fcn.140008590
test eax, eax
je 0x140029f81
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
jmp 0x140029f87
call qword [sym.imp.KERNEL32.dll_GetACP]
mov r13d, eax
mov r15d, edi
mov esi, r12d
mov ebx, r12d
lea eax, [rsi + 0xa]
lea ecx, [rax + rax*4]
lea eax, [r15 + rcx*4]
imul ecx, eax, 0x32
add ecx, ebx
call fcn.14000cef4
mov rbp, rax
cmp word [rax], di
je 0x14002a0c7
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rbp + rcx*2], di
jne 0x140029fba
movzx r12d, word [rbp + rcx*2 - 2]
test r13d, r13d
jne 0x140029fe0
mov rdi, rax
xor eax, eax
inc rdi
cmp word [rbp + rdi*2], ax
jne 0x140029fd4
jmp 0x14002a007
mov qword [rsp + 0x38], rdi
mov r9d, eax
mov qword [rsp + 0x30], rdi
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, r13d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [rax - 1]
cmp edi, 0x28
jg 0x14002a070
cmp r12w, 0xa
je 0x14002a070
mov r12d, 1
mov rdx, rbp
mov ecx, r12d
call fcn.1400085cc
test r14d, r14d
jne 0x14002a04d
cmp edi, 0x28
jge 0x14002a061
lea eax, [r12 + 0x27]
sub eax, edi
mov edi, eax
lea rdx, [0x14002ffa8]
mov ecx, r12d
call fcn.1400085cc
sub rdi, r12
jne 0x14002a037
jmp 0x14002a061
lea rdx, [0x14003000c]
mov ecx, r12d
call fcn.1400085cc
call fcn.14002a188
xor edi, edi
test r14d, r14d
mov eax, edi
sete al
mov r14d, eax
jmp 0x14002a0b1
xor edi, edi
lea r12d, [rdi + 1]
test r14d, r14d
je 0x14002a092
lea rdx, [0x14003000c]
mov ecx, r12d
mov r14d, edi
call fcn.1400085cc
call fcn.14002a188
mov rdx, rbp
mov ecx, r12d
call fcn.1400085cc
lea rdx, [0x14003000c]
mov ecx, r12d
call fcn.1400085cc
call fcn.14002a188
cmp ebx, r12d
jne 0x14002a0c7
cmp esi, r12d
jne 0x14002a0c7
call fcn.14002a188
inc ebx
jmp 0x140029f93
add ebx, r12d
cmp ebx, 0x32
jne 0x140029f93
cmp esi, r12d
jne 0x14002a0e0
lea esi, [rbx - 0x30]
jmp 0x140029f90
cmp esi, 2
jne 0x14002a0ef
mov esi, 3
jmp 0x140029f90
lea rdx, [0x14003000c]
mov ecx, r12d
mov esi, r12d
call fcn.1400085cc
call fcn.14002a188
test r14d, r14d
je 0x14002a122
lea rdx, [0x14003000c]
mov ecx, r12d
mov r14d, edi
call fcn.1400085cc
call fcn.14002a188
add r15d, r12d
cmp r15d, 9
jl 0x140029f90
jne 0x14002a14b
call fcn.1400021f8
test al, al
jne 0x140029f90
call fcn.140001ec0
test al, al
jne 0x140029f90
test byte [0x1400614c0], 0x80
je 0x14002a160
lea rdx, [0x140030aa8]
call fcn.140027598
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002e088
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
and qword [r11 - 0x38], 0
lea rax, [r11 + 8]
and qword [r11 + 8], 0
lea rdx, str.SoftwareMicrosoftVSCommon15.0SQM_vctip14.29.30148.0
mov qword [r11 - 0x40], rax
xor r9d, r9d
and qword [r11 - 0x48], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x20206
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14002e0fb
mov r8d, eax
lea rdx, str.RegCreateKeyEx
lea rcx, [rsp + 0x50]
call fcn.14002e184
lea rdx, [0x1400584e8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rbx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rsp + 0x80]
lea rdx, str.LastCrash
mov qword [rsp + 0x88], rax
mov r9d, 0xb
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002e16e
mov r8d, eax
lea rdx, str.RegSetValueEx
lea rcx, [rsp + 0x50]
call fcn.14002e184
lea rdx, [0x1400584e8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
test rbx, rbx
je 0x14002e17c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x70
pop rbx
ret
Function at 0x140001cf0
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 0x140001d18
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 0x140001d3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001d40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001d99
test ecx, ecx
jle 0x140001d79
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 0x140001d99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001d99
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 0x140001dc0
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 0x140001de2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001df8
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 0x140001e14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001e16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001e52
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 0x140001eee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001e8d
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 0x140001ece
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 0x140001eee
cmp rbx, rax
ja 0x140001ea0
test rbx, rbx
je 0x140001eee
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
Function at 0x140002320
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000234d
xor eax, eax
jmp 0x1400024aa
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140002378
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140002378
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400024aa
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000249d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400023bb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1400023e6
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 0x1400024a2
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 0x140002455
sub eax, 1
je 0x140002455
cmp eax, 2
jne 0x14000249d
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 0x1400024a2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002483
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 0x14000249d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400024a2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004650
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002ad0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002ba3
cmp byte [rcx + 0x71], 0
je 0x140002ba3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002b9f
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 0x140002b64
sub eax, 1
je 0x140002b68
cmp eax, 2
jne 0x140002b9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004650
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002b96
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 0x140002b9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002b4c
xor al, al
jmp 0x140002b4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004650
add rsp, 0x60
pop rbx
ret
Function at 0x140004fe4
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400ba750]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400ba760]
mov dword [rax], 1
mov rax, qword [0x1400ba770]
mov dword [rax], 1
mov rax, qword [0x1400ba740]
mov dword [rax], 1
mov rax, qword [0x1400ba5f0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400ba730]
mov dword [0x1400e000c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400ba6f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400ba6d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400b9a20]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400018d6
Capabilities:
Create pipe

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 0x30], 0x18
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x28], 0
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
sete al
test al, al
je 0x140001952
lea rdx, str.Failed
mov rcx, qword [str._I_v_]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 0
jmp 0x140001995
lea rax, [rbp - 0xa0]
mov edx, 0x68
mov rcx, rax
call dbg.RtlSecureZeroMemory
lea rax, [rbp - 0xc0]
mov edx, 0x18
mov rcx, rax
call dbg.RtlSecureZeroMemory
mov dword [rbp - 0xa0], 0x68
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x50], rax
mov eax, dword [rbp - 0x64]
or ah, 1
mov dword [rbp - 0x64], eax
add rsp, 0xe0
pop rbp
ret
Function at 0x14000199e
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 1
mov edx, 0
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
lea rax, [rbp - 1]
mov rcx, rax
call fcn.140064fa0
mov eax, dword [rbp - 8]
mov edx, eax
lea rax, [rbp - 1]
mov r9, rax
mov r8d, 0
mov rcx, qword [rbp + 0x20]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____unsigned_long_long__char__std::allocator_char__const_
lea rax, [rbp - 1]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov edx, 0
mov rcx, qword [rbp + 0x20]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator___unsigned_long_long_
mov rbx, rax
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8d, 1
mov edx, 0
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
jmp 0x140001ab4
mov rax, qword [rbp + 0x20]
add rsp, 0x58
pop rbx
pop rbp
ret