joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465280
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46534a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00402820
xorps xmm15, xmm15
mov r14, qword [0x005512c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x46532f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004736a0]
xor ebx, ebx
mov rcx, rdx
call fcn.00442a60
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.004655e0
inc rbx
cmp rcx, rbx
jae 0x46531e
mov edi, 1
lea rsi, [0x004736a0]
call fcn.00442b40
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0049e638]
lea rsi, [0x0049e238]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00457600
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00465280
Function at 0x6d8acd50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8ce5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8aced8
mov rax, qword [0x6d8ce5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8acd9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8ace25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8acd80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8acf0d
mov rax, qword [0x6d8ce5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8ce5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8acef0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8ace1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8ace80
add dword [0x6d8ce5e4], 1
cmp edi, 8
jae 0x6d8ace53
test dil, 4
jne 0x6d8acec4
test edi, edi
je 0x6d8ace48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8acedf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8ace48
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8ace6c
jmp 0x6d8ace48
add rsi, qword [0x6d8ce5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8ace1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8ace48
xor esi, esi
jmp 0x6d8acda7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8ace48
mov rax, qword [0x6d8ce5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8ad660
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8ce8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8ce8a0]
test rbx, rbx
je 0x6d8ad6b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8ad6ab
test rsi, rsi
je 0x6d8ad6ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8ad690
lea rcx, [0x6d8ce8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8ad8f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8ad900
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8ad910
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8ad951
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8ad948
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8ad953
add rax, 0x28
cmp rax, r9
jne 0x6d8ad934
xor eax, eax
ret

Function at 0x6d8ad9f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8cb1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8ada5d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8ada5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8ada5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8ada54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8ada5f
add rax, 0x28
cmp rax, r9
jne 0x6d8ada40
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8adb60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8cb1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8adb80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8adb78
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8adbdd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8adbd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8adbe4
add rax, 0x28
cmp rax, r9
jne 0x6d8adbc0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8adc00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8cb1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8adc6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8adc6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8adc6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8adc6e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8adc65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8adc75
add rcx, 0x28
cmp rcx, rax
jne 0x6d8adc50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8adc88
jmp 0x6d8adc6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8adc96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8adc6e
test r9d, r9d
jg 0x6d8adc80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8ae000
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
nop
nop
nop
nop
nop
nop
Function at 0x140004de6
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140004373
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x14002f6a8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x14002f6a8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140004f31
mov qword [rbp - 0x40], 0x321
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x28]
cmp rdx, rax
jb 0x140004ea7
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.14000ec03
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [fcn.14002d7a0]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call fcn.140004b97
mov qword [rbp - 0x40], 0xb
lea rax, [0x14002f6a8]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140004f0b
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140004f24
call fcn.14000fbb1
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140004e65
nop
mov qword [rbp - 0x40], 0x327
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x14], 0
mov ecx, 1
mov rax, qword [fcn.14002d7a0]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x14002f6ed]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x40], 0x328
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [fcn.14002d7a0]
call rax
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0x18], eax
call fcn.1400043f2
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x140006d91
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
cmp qword [rbp + 0x18], 0
je 0x140006dc0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140006d53
mov rcx, rax
jmp 0x140006dc5
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000f390
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140027a80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.14002d7a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14002d7a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140027af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14004d6a4]
mov r12, rcx
test ebx, ebx
jle 0x140027c20
mov rax, qword [0x14004d6a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140027b3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140027bc5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140027b20
mov rcx, r12
call fcn.140028570
mov rsi, rax
test rax, rax
je 0x140027c42
mov rax, qword [0x14004d6a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400286a0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004d6a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140027c27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140027bbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140027bd0
add dword [0x14004d6a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14004d6a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140027bbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140027a80
nop dword [rax]
xor ebx, ebx
jmp 0x140027b48
mov rax, qword [0x14004d6a8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140027a80
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140027a80
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400281c0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14004d700]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004d6e0]
test rbx, rbx
je 0x14002821c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140028213
test r12, r12
je 0x140028213
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400281f8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x140033900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140028590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140028598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140028590
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400285e5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400285dc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140028590
add rax, 0x28
cmp rax, r9
jne 0x1400285c8
xor eax, eax
ret

Function at 0x1400285f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140033900]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140028610
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140028618
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140028610
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400286a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140033900]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400286c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400286c8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x180001840
Capabilities:
Create thread

Disassembly:
sub rsp, 0x78
mov rax, qword [0x180023008]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 1
jne 0x1800018dc
mov byte [0x1800256c8], dl
call fcn.180001fd0
test al, al
jne 0x1800018dc
mov ecx, 0x10
call fcn.1800024d4
lea rcx, [rsp + 0x30]
mov qword [rax], rcx
lea rcx, [fcn.180002300]
mov qword [rax + 8], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180002440]
xor edx, edx
xor ecx, ecx
call fcn.18000a8a4
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800018fb
cmp dword [rsp + 0x48], 0
je 0x18000190e
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.180004c24
test eax, eax
jne 0x1800018f3
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180002480
add rsp, 0x78
ret
mov ecx, eax
call fcn.18000454c
nop
mov dword [rsp + 0x48], 0
mov ecx, 6
call fcn.180004588
nop
mov ecx, 1
call fcn.180004588
int3

Function at 0x180001fd0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x180023008]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x80], 2
jb 0x18000203a
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x14
cmp eax, 0x800
setb al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180002480
add rsp, 0xa8
ret
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180002480
add rsp, 0xa8
ret
Function at 0x180002300
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
nop
mov ebx, 0x3e8
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x180002315
mov ebx, 0x3e8
nop dword [rax + rax]
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x180002330
lea rdx, [rsp + 0x30]
call fcn.180002080
movups xmm0, xmmword [rax]
mov rcx, qword [rax + 8]
shr rcx, 0x20
test cl, cl
jne 0x180002373
mov ebx, 0x3e8
nop
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x180002360
jmp 0x180002310
movaps xmmword [rsp + 0x20], xmm0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
movdqa xmm0, xmmword [rsp + 0x20]
psrldq xmm0, 8
movd ecx, xmm0
mov ebx, ecx
mov r9d, 0x40
mov r8d, 0x1000
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov r8d, ebx
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call fcn.1800064f0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
xor r8d, r8d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x3e8
nop word [rax + rax]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x180002400
jmp 0x180002310
Function at 0x18000e958
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000e988
xor eax, eax
jmp 0x18000ea4b
mov rbp, rbx
cmp word [rax], si
je 0x18000e9ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000e994
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000e990
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000e8a8
movsxd r14, eax
test eax, eax
jne 0x18000e9eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000e981
mov rcx, r14
call fcn.18000c6f0
mov rdi, rax
test rax, rax
jne 0x18000ea04
xor ecx, ecx
call fcn.18000c6b4
jmp 0x18000e9e0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000e8a8
test eax, eax
jne 0x18000ea35
mov rcx, rdi
call fcn.18000c6b4
jmp 0x18000ea3f
xor ecx, ecx
call fcn.18000c6b4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180013ad0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180013af8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180013af8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14016a2e0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140266a40]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14025de34]
test eax, eax
je 0x14016a32b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14025de34]
test eax, eax
jne 0x14016a334
call fcn.14000bef0
test eax, eax
je 0x14016a350
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140255848]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016a358
xor eax, eax
jmp 0x14016a3b5
test rbx, rbx
jne 0x14016a378
lea rcx, str.DestroyPropertySheetPage
call fcn.14016a4c4
mov rbx, rax
test rax, rax
je 0x14016a383
mov qword [0x140266a40], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14016a398
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016a39a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016a3b3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016a3cc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x140266a48]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x14025de34]
test eax, eax
je 0x14016a41b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14025de34]
test eax, eax
jne 0x14016a424
call fcn.14000bef0
test eax, eax
je 0x14016a440
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140255848]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016a44a
or rax, 0xffffffffffffffff
jmp 0x14016a4ac
test rbx, rbx
jne 0x14016a46a
lea rcx, str.PropertySheetW
call fcn.14016a4c4
mov rbx, rax
test rax, rax
je 0x14016a477
mov qword [0x140266a48], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x14016a48e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016a490
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016a4a9
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret