joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d1f30
Capabilities:
Create process on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x40], r14
movaps xmm0, xmmword [0x1401fd270]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.PinShortcutToTaskbar
lea r8, str.....operadesktopchrome_importschromeinstallerutil_taskbar_util.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x7e
call fcn.14011f3d0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401119e0
call fcn.140107db0
cmp eax, 0xd
jl 0x1401d203c
lea rdi, [rsp + 0x30]
mov qword [rdi], r14
mov rcx, rdi
call fcn.1400b71a0
cmp qword [rdi], 0
je 0x1401d2038
cmp byte [rsi + 0x17], 0
jns 0x1401d1fd6
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov rdi, rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
xor edx, edx
mov r8, rdi
mov r9d, 4
call qword [0x14025e008]
test eax, eax
setns sil
test rdi, rdi
je 0x1401d2016
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ILFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401d2073
mov qword [rsp + 0x30], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14025e008]
jmp 0x1401d2073
xor esi, esi
jmp 0x1401d2073
cmp byte [rsi + 0x17], 0
jns 0x1401d2045
mov rsi, qword [rsi]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.taskbarpin
xor ecx, ecx
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x21
setge sil
lea rcx, [rsp + 0x50]
call fcn.140111c50
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140152880
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401d93c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rcx + 0x10]
cmp r14, qword [rcx + 0x18]
je 0x1401d941c
test r14, r14
je 0x1401d951b
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140152880
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x1401d9466
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r15, [rax + rcx]
inc r15
shr r15, 1
shl r15, 3
mov rcx, rbx
sub rcx, r15
mov r8, r14
sub r8, rbx
mov rdx, rbx
call fcn.1401551b0
sub r14, r15
mov qword [rsi + 0x10], r14
sub qword [rsi + 8], r15
jmp 0x1401d93ec
mov rax, r14
sub rax, r15
sar rax, 2
cmp r14, r15
mov r12d, 1
cmovne r12, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x1401d9547
lea rcx, [r12*8]
call fcn.140151c20
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x1401d94e6
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1401d951b
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1401d94ce
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], r15
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r14
call fcn.1401d9890
mov r14, qword [rsi + 0x10]
jmp 0x1401d93ec
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140193a70
call fcn.1401915f0
int3
Function at 0x1401d9550
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x1401d95ac
add rbx, 0xfffffffffffffff8
je 0x1401d96b8
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140152880
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x1401d95ff
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
shl r12, 2
and r12, 0xfffffffffffffff8
lea r15, [r14 + r12]
sub r14, rbx
sub r15, r14
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.1401551b0
mov qword [rsi + 8], r15
add qword [rsi + 0x10], r12
mov rbx, r15
jmp 0x1401d957b
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x1401d96e4
lea rcx, [r12*8]
call fcn.140151c20
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x1401d9683
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1401d96b8
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1401d966b
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.1401d9890
mov rbx, qword [rsi + 8]
jmp 0x1401d957b
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140193a70
call fcn.1401915f0
int3
Function at 0x1401d96f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x1401d974c
add rbx, 0xfffffffffffffff8
je 0x1401d9858
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140152880
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x1401d979f
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
shl r12, 2
and r12, 0xfffffffffffffff8
lea r15, [r14 + r12]
sub r14, rbx
sub r15, r14
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.1401551b0
mov qword [rsi + 8], r15
add qword [rsi + 0x10], r12
mov rbx, r15
jmp 0x1401d971b
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x1401d9884
lea rcx, [r12*8]
call fcn.140151c20
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x1401d9823
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1401d9858
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1401d980b
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.1401d9890
mov rbx, qword [rsi + 8]
jmp 0x1401d971b
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140193a70
call fcn.1401915f0
int3
Function at 0x1400014c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [rdx + 0x2c]
mov rdi, rdx
imul eax, dword [rdx + 0x18]
mov rsi, rcx
mov r14d, dword [rdx + 0x20]
mov r8, rcx
imul r14d, dword [rdx + 0x1c]
lea rcx, [rsp + 0x40]
mov edx, 0x50
lea ebp, [rax + rax*2]
call qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
mov byte [rsp + 0x8f], 0
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140001529
mov rcx, rdi
call fcn.140004a24
test eax, eax
js 0x14000162b
test ebx, ebx
je 0x14000161b
cmp dword [0x140025f04], 0
je 0x1400015fe
xor edx, edx
mov eax, ebp
sub eax, dword [0x140025df8]
mov r8d, 0x4f
div dword [rdi + 0x18]
movsxd rsi, eax
cmp esi, r8d
ja 0x14000161b
lea edx, [r8 - 0x2f]
lea rcx, [rsp + 0x90]
call sub.msvcrt.dll_memset
cmp rsi, 0x50
jae 0x140001659
mov rcx, qword [0x140025f10]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x90]
mov r8d, esi
mov byte [rsp + rsi + 0x90], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov eax, dword [rdi + 0x18]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140025f10]
mov r8d, ebx
imul eax, ebx
sub eax, dword [0x140025df8]
add eax, ebp
mov dword [0x140025df8], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
jmp 0x14000161b
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov dword [rsp + 0x20], ebx
mov edx, ebp
call qword [sym.imp.GDI32.dll_TextOutA]
nop dword [rax + rax]
mov rcx, rdi
call fcn.140004c24
test eax, eax
js 0x14000162b
xor eax, eax
jmp 0x140001630
mov eax, 0x80004005
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400146a0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140014878
int3
Function at 0x140004ad4
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, qword [rsp + 0xf0]
mov r14d, ecx
mov rcx, rsi
mov ebx, r9d
mov rdi, r8
mov ebp, edx
call fcn.140004a24
test eax, eax
jns 0x140004b1d
mov eax, 0x80004005
jmp 0x140004bf7
test rdi, rdi
je 0x140004bf5
test ebx, ebx
je 0x140004bf5
cmp dword [0x140025f04], 0
je 0x140004bd9
xor edx, edx
mov eax, r14d
sub eax, dword [0x140025df8]
mov r8d, 0x4f
div dword [rsi + 0x18]
movsxd rbp, eax
cmp ebp, r8d
ja 0x140004bf5
lea edx, [r8 - 0x2f]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
cmp rbp, 0x50
jae 0x140004c16
mov rcx, qword [0x140025f10]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, ebp
mov byte [rsp + rbp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov eax, dword [rsi + 0x18]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, qword [0x140025f10]
mov rdx, rdi
imul eax, ebx
sub eax, dword [0x140025df8]
add eax, r14d
mov dword [0x140025df8], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
jmp 0x140004bf5
mov rcx, qword [rsi]
mov r9, rdi
mov r8d, ebp
mov dword [rsp + 0x20], ebx
mov edx, r14d
call qword [sym.imp.GDI32.dll_TextOutA]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400146a0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140014878
int3

Function at 0x140004c24
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140025f04], 0
mov rbx, rcx
jne 0x140004ac3
test rcx, rcx
je 0x140004abc
cmp dword [rcx + 0x30], 0
jne 0x140004ac3
mov rcx, qword [rcx]
call qword [sym.imp.GDI32.dll_EndPage]
nop dword [rax + rax]
test eax, eax
js 0x140004abc
cmp dword [0x140025f18], 0
mov dword [rbx + 0x30], 1
je 0x140004ac3
mov eax, 0x80004005
jmp 0x140004ac5
xor eax, eax
add rsp, 0x20
pop rbx
ret
sub rsp, 0x38
cmp dword [0x140025f04], 0
je 0x140004c6b
mov rcx, qword [0x140025f10]
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], 0
lea rdx, [0x1400158ec]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
and dword [0x140025df8], 0
xor eax, eax
add rsp, 0x38
ret
test rcx, rcx
jne 0x140004c77
mov eax, 0x80004005
jmp 0x140004c65
inc dword [rcx + 0x20]
mov eax, dword [rcx + 0x20]
cmp eax, dword [rcx + 0x28]
jb 0x140004c63
add rsp, 0x38
jmp 0x140004a7c
Function at 0x14001404c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x34], esi
mov rcx, rbp
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140014119
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x143], bl
jne 0x1400140e8
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x140014119
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140014109
mov al, byte [rcx + rdi]
test al, al
je 0x140014109
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x1400140eb
test rsi, rsi
lea rdx, [rdi - 1]
cmovne rdx, rdi
mov byte [rdx], bl
setne bl
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400146a0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014448
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14019d000
add rsp, 0x28
jmp 0x140014448
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140026068], rbx
je 0x140014492
cmp rax, rbx
jne 0x1400144a7
mov edi, 1
mov eax, dword [0x140026070]
cmp eax, 1
jne 0x1400144b4
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140014521
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001447b
mov eax, dword [0x140026070]
test eax, eax
jne 0x140014517
mov dword [0x140026070], 1
lea r14, [0x140015550]
lea rbx, [0x140015538]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140014509
test eax, eax
jne 0x14001450d
cmp qword [rbx], 0
je 0x1400144fe
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400144df
test eax, eax
je 0x140014521
mov eax, 0xff
jmp 0x140014674
mov dword [0x140025414], 1
mov eax, dword [0x140026070]
cmp eax, 1
jne 0x140014549
lea rdx, [0x140015530]
lea rcx, [0x140015520]
call sub.msvcrt.dll__initterm
mov dword [0x140026070], 2
test edi, edi
jne 0x140014556
xor eax, eax
xchg qword [0x140026068], rax
cmp qword [0x140026078], 0
je 0x14001458a
lea rcx, [0x140026078]
call fcn.140014b20
test eax, eax
je 0x14001458a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140026078]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x140014616
test cl, cl
je 0x1400145ad
test edi, edi
jne 0x140014616
dec cl
cmp cl, 0x1f
ja 0x1400145c0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x1400145ad
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001668
mov dword [0x140025410], eax
cmp dword [0x140025430], 0
jne 0x1400145ff
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140025414], 0
jne 0x140014614
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140025410]
jmp 0x140014674
cmp cl, 0x22
jne 0x140014628
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001463a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14001459d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140014a0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014a58
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014a50
cmp dword [rcx + 0x3c], edx
jl 0x140014a50
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140014a50
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140014a58
mov rax, rdx
add rsp, 0x18
ret
Function at 0x69f88720
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x74], 0x60
mov eax, dword [rsp + 0x74]
mov ecx, eax
mov rcx, qword gs:[rcx]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x18]
add rcx, 0x30
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov qword [rsp + 0x50], rcx
xor eax, eax
mov ecx, eax
mov rdx, rcx
add rdx, 0x20
sub rcx, rdx
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov qword [rsp + 0x48], rdx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x70]
mov rdx, qword [rsp + 0x48]
add rdx, 0x70
cmp rcx, rdx
jne 0x69f887d9
jmp 0x69f88868
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x48]
add rcx, 0x70
cmp rax, rcx
jne 0x69f8885f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x58]
mov qword [rsp + 0x28], rcx
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x28]
mov edx, 1
call fcn.69f86d00
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x70]
mov eax, dword [rsp + 0x3c]
mov r8d, eax
shl r8, 4
movabs r9, 0xad92797d6efb15d5
add rcx, r9
sub rcx, r8
sub rcx, r9
mov qword [rsp + 0x60], rcx
jmp 0x69f88878
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0x50]
jne 0x69f8878b
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x69f8ca20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x69f965e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x69f8cba8
mov rax, qword [0x69f965e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x69f8ca6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x69f8caf5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x69f8ca50
mov rcx, rbx
call fcn.69f8d6c0
test rax, rax
mov r12, rax
je 0x69f8cbdd
mov rax, qword [0x69f965e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.69f8d7f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x69f965e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x69f8cbc0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x69f8caee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x69f8cb50
add dword [0x69f965e4], 1
cmp edi, 8
jae 0x69f8cb23
test dil, 4
jne 0x69f8cb94
test edi, edi
je 0x69f8cb18
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x69f8cbaf
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 0x69f8cb18
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 0x69f8cb3c
jmp 0x69f8cb18
add rsi, qword [0x69f965e8]
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 0x69f8caee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.69f8dcf0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x69f8cb18
xor esi, esi
jmp 0x69f8ca77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x69f8cb18
mov rax, qword [0x69f965e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.69f8dcf0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.69f8dcf0
nop
nop dword [rax]

Function at 0x69f8d330
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x69f968c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x69f968a0]
test rbx, rbx
je 0x69f8d384
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 0x69f8d37b
test rsi, rsi
je 0x69f8d37b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x69f8d360
lea rcx, [0x69f968c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x69f8d6c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x69f93d50]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x69f8d72d
mov rcx, r8
call fcn.69f8d5a0
test eax, eax
je 0x69f8d72d
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 0x69f8d72d
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 0x69f8d724
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x69f8d72f
add rax, 0x28
cmp rax, r9
jne 0x69f8d710
xor eax, eax
add rsp, 0x28
ret

Function at 0x69f8dcf0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x69f813a0]
jmp 0x69f81380
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 fcn.69f8dbd0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.69f8dbd0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x69f81390