joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d3eec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d3f6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3f61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3f61
mov rax, qword [rbp - 8]
jmp 0x2fc4d3f7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3f34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140cbb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140cbb1df
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 0x140cbb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cbb06f
add dl, dl
jne 0x140cbb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cbb0f6
xor eax, eax
add dl, dl
jne 0x140cbb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cbb1ad
add dl, dl
jne 0x140cbb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cbb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cbb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cbb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cbb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cbb07e
mov eax, 1
add dl, dl
jne 0x140cbb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cbb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cbb0fb
sub eax, ebx
mov ebx, 1
jne 0x140cbb14c
mov ecx, 1
add dl, dl
jne 0x140cbb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cbb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cbb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cbb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cbb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cbb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cbb15d
cmp eax, 0x7d00
jae 0x140cbb19b
cmp eax, 0x500
jb 0x140cbb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cbb07e
cmp eax, 0x7f
ja 0x140cbb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cbb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cbb1d2
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 0x140cbb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d3020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4100
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3a22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3aba
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3a9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3a92
cmp qword [rbp - 0x10], 0
je 0x2fc4d3a92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3a58
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3abb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3bc0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3be8
mov eax, 0
jmp 0x2fc4d3c36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3c11
mov eax, 0
jmp 0x2fc4d3c36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3c31
mov eax, 0
jmp 0x2fc4d3c36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140001500
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x220
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp - 0x40]
lea rdx, [0x140004028]
mov ecx, 0x39
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1cd
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x198], 0
jne 0x140001590
lea rax, str.VirtualAlloc_failed
mov rcx, rax
call sym.perror
mov ecx, 1
call sym.exit
movabs rax, 0x81706f5e4d3ceb11
movabs rdx, 0x9f8e7d6c5b4a392
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov dword [rbp - 0x50], 0x5cab5cab
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x40]
mov r9d, 0x14
mov r8, rdx
mov edx, 0x1cd
mov rcx, rax
call sym.xor_llyy
mov rax, qword [rbp + 0x198]
mov rdx, rax
lea rax, [rbp - 0x40]
mov ecx, 0x1cd
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x198]
mov r9d, 0x14
mov r8, rdx
mov edx, 0x1cd
mov rcx, rax
call sym.xor_llyy
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x190]
mov rcx, rax
call sym.executeCode
mov rax, qword [rbp + 0x198]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
test eax, eax
jne 0x1400016a5
lea rax, str.VirtualFree_failed
mov rcx, rax
call sym.perror
mov ecx, 1
call sym.exit
mov eax, 0
add rsp, 0x220
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001980
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 0x1400019f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001b20
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ac5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a20
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b42
mov rax, qword [0x140007098]
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 [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001abe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ad0
add dword [0x140007094], 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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001abe
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 0x140001a48
mov rax, qword [0x140007098]
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 0x1400020b0
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 0x14000210c
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 0x140002103
test rsi, rsi
je 0x140002103
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020e8
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 0x140002320
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002338
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002340
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002350
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 0x14000239d
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 0x140002394
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000239f
add rax, 0x28
cmp rax, r9
jne 0x140002380
xor eax, eax
ret

Function at 0x1400023a0
Capabilities:
Parse pe header

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

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

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004590]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400024df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400024e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400024df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002500
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004590]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002520
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002528
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002520
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002570
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002567
test rcx, rcx
je 0x140002520
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002558
xor eax, eax
ret
Function at 0x140002580
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140004590]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002672
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002680
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002672
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002672
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002672
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 0x1400026d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400026c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002707
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026de
test ecx, ecx
jg 0x1400026f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140005630]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140005640]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140008008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400055a0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400029d0
mov rcx, qword [0x1400056c0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140005620]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400027e0
mov ebx, dword [0x140008028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140008020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140008020], rbp
call fcn.1400025e0
mov rax, qword [0x1400055b0]
mov r8, qword [0x140008018]
mov ecx, dword [0x140008028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140008020]
call fcn.140003a30
mov ecx, dword [0x14000800c]
mov dword [0x140008010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140008008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140005640]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140003780
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140005660]
mov rcx, qword [0x140005650]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140008010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140005680]
mov rcx, qword [0x140005670]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x1400055d0]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001450
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx]
mov rax, qword [rax - 0x18]
mov rsi, qword [rcx + rax + 0xf0]
mov rbx, rcx
test rsi, rsi
je 0x1400014ba
cmp byte [rsi + 0x38], 0
je 0x140001490
movsx edx, byte [rsi + 0x43]
mov rcx, rbx
call fcn.140002520
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140002518
mov rcx, rsi
call fcn.140002528
mov rax, qword [rsi]
mov edx, 0xa
lea rcx, [0x140003a20]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001477
mov rcx, rsi
call rax
movsx edx, al
jmp 0x140001477
call fcn.1400024e0
nop

Function at 0x1400014c0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov qword [rsp + 0xb0], rcx
mov rbp, rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
movzx edx, word [rax + 6]
movzx ecx, word [rax + 0x14]
test dx, dx
je 0x140001618
lea r15, [rax + rcx + 0x18]
lea rcx, [rax + rcx + 0x40]
mov rbx, qword [sym.imp.libstdc_6.dll_std::cout]
lea eax, [rdx - 1]
lea rsi, [rsp + 0x30]
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x20], rax
lea rax, [0x140003a20]
mov qword [rsp + 0x28], rax
jmp 0x140001563
movsx edx, byte [r14 + 0x43]
mov rcx, r12
call fcn.140002520
mov rcx, rax
call fcn.140002518
mov rax, qword [rbp]
cmp qword [rsp + 0x30], rax
je 0x140001640
add r15, 0x28
cmp qword [rsp + 0x20], r15
je 0x140001618
movdqu xmm1, xmmword [r15]
mov rcx, rsi
movups xmmword [rsp + 0x30], xmm1
movdqu xmm2, xmmword [r15 + 0x10]
mov edi, dword [rsp + 0x3c]
mov r13d, dword [rsp + 0x38]
movups xmmword [rsp + 0x40], xmm2
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0x50], rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rsi
mov rcx, rbx
mov r8, rax
call fcn.1400024e8
mov r8d, 1
lea rdx, section..rdata
mov rcx, rbx
call fcn.1400024e8
mov edx, edi
mov rcx, rbx
call fcn.140002500
mov r12, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov r14, qword [r12 + rax + 0xf0]
test r14, r14
je 0x140001658
cmp byte [r14 + 0x38], 0
jne 0x140001530
mov rcx, r14
call fcn.140002528
mov rax, qword [r14]
mov rcx, qword [rsp + 0x28]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001535
mov rcx, r14
call rax
movsx edx, al
jmp 0x140001535
mov rax, qword [rsp + 0xb0]
pxor xmm0, xmm0
mov qword [rax + 0x10], 0
movups xmmword [rax], xmm0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0xb0]
mov qword [rax], rsi
mov esi, r13d
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
jmp 0x14000162f
call fcn.1400024e0
nop
nop
Function at 0x1400027f0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400035f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140002860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
mov rbx, rcx
test esi, esi
jle 0x140002990
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400028ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002890
mov rcx, rbx
call fcn.1400032d0
mov rdi, rax
test rax, rax
je 0x1400029b2
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 fcn.140003410
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 0x140002997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000292e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002940
add dword [0x140008094], 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 [0x140008098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000292e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400027f0
nop dword [rax]
xor esi, esi
jmp 0x1400028b8
mov rax, qword [0x140008098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400027f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400027f0
nop
nop word cs:[rax + rax]
nop dword [rax]