joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001704
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400070a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400070a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001752
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000174a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001839
inc ebx
add rax, 0x28
jmp 0x14000172a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001771
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400070a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 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
jne 0x1400017d3
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001833
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001833
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 0x140001833
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400070a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001c60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001cac
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001ca6
test eax, eax
jne 0x140001ca6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001c7e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001e60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001e83
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001e83
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140001e84
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001ebe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001eb5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001ec0
inc r8d
add rax, 0x28
jmp 0x140001e9c
xor eax, eax
ret

Function at 0x140001f31
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004370]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001f5d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014510
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014530
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014543
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001456d
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014581
xor al, al
jmp 0x1400145b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014593
xor al, al
jmp 0x1400145b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145af
xor al, al
jmp 0x1400145b1
mov al, 1
add rsp, 0x38
ret
Function at 0x141734058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1417341df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141734089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14173406f
add dl, dl
jne 0x141734096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417340f6
xor eax, eax
add dl, dl
jne 0x1417340a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417341ad
add dl, dl
jne 0x1417340b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417340c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417340d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417340dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417340ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14173407e
mov eax, 1
add dl, dl
jne 0x141734106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141734113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417340fb
sub eax, ebx
mov ebx, 1
jne 0x14173414c
mov ecx, 1
add dl, dl
jne 0x14173412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14173413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141734123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14173407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141734168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141734175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14173415d
cmp eax, 0x7d00
jae 0x14173419b
cmp eax, 0x500
jb 0x141734196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14173407e
cmp eax, 0x7f
ja 0x14173419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14173407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417341d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14173407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400012c0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r12d, r12d
mov r13, rdx
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov qword [rsp + 0x60], rcx
mov r15, qword [rcx]
cmp r15, rcx
je 0x1400014d0
mov edx, 0x20b
mov r8d, 0x5a4d
nop dword [rax]
cmp qword [r15 + 0x60], 0
je 0x140001488
mov rsi, qword [r15 + 0x30]
test rsi, rsi
je 0x140001488
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 0x88]
add r14, rsi
cmp word [rsi], r8w
jne 0x1400014ad
cmp word [rax + rsi + 0x18], dx
jne 0x140001356
cmp dword [rax + rsi + 0x8c], 0
jbe 0x140001488
mov ebp, dword [r14 + 0x18]
xor edi, edi
test ebp, ebp
je 0x140001483
mov ebx, dword [r14 + 0x20]
add rbx, rsi
nop dword [rax + rax]
mov r11d, dword [rbx]
xor r10d, r10d
add r11, rsi
mov eax, 0xeb0e1278
movzx r9d, byte [r11]
test r9b, r9b
je 0x140001443
mov ebp, 0xeb0e1278
movzx r8d, r9b
sub r9b, 0x41
cmp r9b, 0x19
lea ecx, [r8 + 0x20]
movzx edx, cl
cmova edx, r8d
movsx r8d, dl
cmp eax, r8d
jne 0x1400013b4
xor ecx, ecx
jmp 0x1400013d9
movd xmm0, r8d
movd xmm2, eax
movdqa xmm1, xmm0
pandn xmm1, xmmword [0x140007b80]
pand xmm1, xmm2
pandn xmm2, xmm0
por xmm1, xmm2
movd ecx, xmm1
lea eax, [r10 - 0x14f1ed88]
imul eax, r8d
add eax, ecx
mov ecx, r10d
test r10d, r10d
cmove ecx, ebp
movd xmm0, eax
pshufd xmm0, xmm0, 0
movd eax, xmm0
cmp ecx, ebp
jne 0x140001404
xor ecx, ecx
jmp 0x140001428
movd xmm1, ecx
movd xmm2, ebp
movdqa xmm0, xmm1
pandn xmm0, xmmword [0x140007b80]
pand xmm0, xmm2
pandn xmm2, xmm1
por xmm0, xmm2
movd ecx, xmm0
imul eax, ecx
inc r10d
movzx r9d, byte [r10 + r11]
add eax, r8d
test r9b, r9b
jne 0x140001390
mov ebp, dword [r14 + 0x18]
mov ecx, eax
cmp r13, rcx
je 0x14000145a
inc edi
add rbx, 4
cmp edi, ebp
jb 0x140001370
jmp 0x140001473
mov eax, dword [r14 + 0x24]
mov ecx, dword [r14 + 0x1c]
add rax, rsi
add rcx, rsi
movzx edx, word [rax + rdi*2]
mov r12d, dword [rcx + rdx*4]
add r12, rsi
mov rcx, qword [rsp + 0x60]
mov r8d, 0x5a4d
mov edx, 0x20b
test r12, r12
jne 0x140001495
mov r15, qword [r15]
cmp r15, rcx
je 0x1400014d0
jmp 0x140001310
mov rbx, qword [rsp + 0x68]
mov rax, r12
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.DOS_header_e_magic_mismatch
lea rcx, [rsp + 0x70]
call fcn.1400012b0
lea rdx, [0x1400091a0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Cannot_find_desired_export.
lea rcx, [rsp + 0x70]
call fcn.1400012b0
lea rdx, [0x1400091a0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140004170
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000419d
xor eax, eax
jmp 0x140004309
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400041d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400041d7
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 0x140004309
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400042fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000421a
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 0x140004245
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 0x140004301
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 0x1400042b4
sub eax, 1
je 0x1400042b4
cmp eax, 2
jne 0x1400042fc
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 0x140004301
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400042e2
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 0x1400042fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004301
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005740
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400046a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004773
cmp byte [rcx + 0x71], 0
je 0x140004773
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000476f
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 0x140004734
sub eax, 1
je 0x140004738
cmp eax, 2
jne 0x14000476f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005740
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004766
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 0x14000476f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000471c
xor al, al
jmp 0x14000471c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005740
add rsp, 0x60
pop rbx
ret

Function at 0x1400060dc
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400055d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400055e0]
mov dword [rax], 1
mov rax, qword [0x1400055f0]
mov dword [rax], 1
mov rax, qword [0x140005570]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400055c0]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400056a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140005680]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140005520]
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 [sym._matherr]
call sym.__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 0x140001524
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0xf0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0xd0]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0xd0], 0x70
mov dword [rbp - 0xcc], 0x40
mov qword [rbp - 0xc8], 0
lea rax, [rbp - 0x5b]
lea rdx, [rbp - 0x56]
mov rcx, rax
call sym.ExecuteCommandHidden_char_const_::lambda__1::operator_____const
lea rax, [rbp - 0x5b]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax + 4]
test al, al
setne al
test al, al
je 0x140001609
mov rax, qword [rbp - 8]
mov rdx, qword [rbp - 8]
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], 0
jmp 0x140001602
mov eax, dword [rbp - 0x24]
cdqe
mov rdx, qword [rbp - 0x20]
add rax, rdx
movzx r8d, byte [rax]
mov edx, dword [rbp - 0x24]
movsxd rax, edx
imul rax, rax, 0x51eb851f
shr rax, 0x20
sar eax, 4
mov ecx, edx
sar ecx, 0x1f
sub eax, ecx
imul ecx, eax, 0x32
mov eax, edx
sub eax, ecx
add eax, 0x32
xor eax, r8d
mov rcx, qword [rbp - 0x18]
mov edx, dword [rbp - 0x24]
movsxd rdx, edx
mov byte [rcx + rdx], al
add dword [rbp - 0x24], 1
cmp dword [rbp - 0x24], 4
jle 0x1400015b9
nop
lea rax, [rbp - 0x5b]
mov qword [rbp - 0xc0], rax
lea rax, [rbp - 0x4d]
mov rcx, rax
call sym.ExecuteCommandHidden_char_const_::lambda__2::operator_____const
mov qword [rbp - 0x55], rax
lea rax, [rbp - 0x55]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
movzx eax, byte [rax + 7]
test al, al
setne al
test al, al
je 0x1400016ae
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x4c], 0
jmp 0x1400016a7
mov eax, dword [rbp - 0x4c]
cdqe
mov rdx, qword [rbp - 0x48]
add rax, rdx
movzx r8d, byte [rax]
mov edx, dword [rbp - 0x4c]
movsxd rax, edx
imul rax, rax, 0x51eb851f
shr rax, 0x20
sar eax, 4
mov ecx, edx
sar ecx, 0x1f
sub eax, ecx
imul ecx, eax, 0x32
mov eax, edx
sub eax, ecx
add eax, 0x32
xor eax, r8d
mov rcx, qword [rbp - 0x40]
mov edx, dword [rbp - 0x4c]
movsxd rdx, edx
mov byte [rcx + rdx], al
add dword [rbp - 0x4c], 1
cmp dword [rbp - 0x4c], 7
jle 0x14000165e
nop
lea rax, [rbp - 0x55]
mov qword [rbp - 0xb8], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0xb0], rax
mov qword [rbp - 0xa8], 0
mov dword [rbp - 0xa0], 0
mov qword [rbp - 0x98], 0
lea rax, [rbp - 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
mov rax, qword [rbp - 0x68]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xf8
pop rdi
pop rbp
ret
Function at 0x1400028c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002930
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
test esi, esi
mov rbx, rcx
jle 0x140002a60
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000297b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002a05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002960
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002a82
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002a67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400029fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002a10
add dword [0x140008094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140008098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400029fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002988
mov rax, qword [0x140008098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000304c
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 0x140003043
test rsi, rsi
je 0x140003043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003028
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]