joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400041c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x1400087c8]
mov rbp, r8
mov r12d, edx
mov r8d, 0x1000
xor edx, edx
mov r13, r9
xor edi, edi
mov r15d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400043a2
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
nop dword [rax]
cmp rbp, 0xffffffffffffffff
je 0x140004232
test rbp, rbp
je 0x1400042f4
dec rbp
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x140004252
mov r8d, 2
mov rcx, rsi
call fcn.140004720
mov dword [rsp + 0x34], eax
jmp 0x14000426f
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x1400042f4
test dx, dx
je 0x14000428a
mov word [rbx], dx
movzx edx, word [rsp + 0x30]
add rbx, 2
mov rdi, rbx
lea eax, [r15 - 1]
sub rdi, r14
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x1400042d0
mov rcx, qword [0x1400087c8]
add r15d, 0x800
mov r8, r14
movsxd r9, r15d
mov edx, 8
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r14, rax
movsxd rax, edi
lea rbx, [r14 + rax*2]
test dx, dx
je 0x1400042f4
mov edi, 0
test r12d, r12d
jne 0x140004220
cmp dx, 0xd
je 0x1400042f9
cmp dx, 0xa
je 0x1400042ff
jmp 0x140004220
test r12d, r12d
jne 0x140004303
cmp dx, 0xa
jne 0x140004322
sub rbx, 2
xor edi, edi
mov rax, rbx
sub rax, r14
sar rax, 1
mov qword [r13], rax
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
mov rax, r14
jmp 0x1400043a5
cmp dx, 0xd
jne 0x140004303
sub rbx, 2
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x14000434e
mov r8d, 2
mov rcx, rsi
call fcn.140004720
xor edi, edi
mov dword [rsp + 0x34], eax
jmp 0x140004367
mov rcx, qword [rsi]
xor edi, edi
lea r9, [rsp + 0x34]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x140004305
cmp qword [rsi + 8], 0
je 0x14000437c
add dword [rsi + 0x14], 2
jmp 0x140004305
mov rcx, qword [rsi]
mov r9d, 1
lea r8, [rsp + 0x3c]
lea edx, [r9 - 3]
mov qword [rsp + 0x38], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140004305
mov rax, rdi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400043c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x1400087c8]
mov rdi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140004559
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x140004429
test rdi, rdi
je 0x1400044b7
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140004850
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x140004441
xor r8b, r8b
jmp 0x140004445
movzx r8d, byte [rbx]
cdqe
mov byte [rsp + 0x30], r8b
add rbx, rax
lea eax, [r14 - 5]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x140004491
mov rcx, qword [0x1400087c8]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x1400044b7
test r15d, r15d
jne 0x140004417
cmp r8b, 0xd
je 0x1400044c0
cmp r8b, 0xa
jne 0x140004417
dec rbx
jmp 0x140004544
test r15d, r15d
jne 0x140004544
cmp r8b, 0xa
jne 0x1400044cb
dec rbx
jmp 0x140004544
cmp r8b, 0xd
jne 0x140004544
dec rbx
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x1400044f4
mov r8d, 1
mov rcx, rsi
call fcn.140004720
mov dword [rsp + 0x34], eax
jmp 0x140004511
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140004544
cmp qword [rsi + 8], 0
je 0x140004524
inc dword [rsi + 0x14]
jmp 0x140004544
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140004580
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x140004683
cmp word [rdx], 0
je 0x140004683
test r8d, r8d
jne 0x1400045ad
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x140004613
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x1400045e1
nop
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400045c0
lea r8d, [rax + rax]
call fcn.140004990
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400045e1
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.140004ae0
mov rdi, rax
test rax, rax
je 0x14000467e
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x140004655
mov rcx, rbx
call fcn.140004990
mov dword [rsp + 0x48], eax
jmp 0x14000466c
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1400087c8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x140004720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r14d
jne 0x140004754
call fcn.140003600
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r14d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x1400047b9
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x1400047af
dec rax
je 0x1400047a1
cmp rax, 2
je 0x140004795
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x140004831
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x140004831
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x140004831
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x140004831
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x140004801
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r14d
add eax, ebp
cdqe
jmp 0x140004834
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, rax
mov rcx, rsi
mov dword [rbx + 0x14], eax
cmovg rdi, rax
mov dword [rbx + 0x18], eax
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rdi + rbp]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140004850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 0
je 0x140004885
mov r8d, 1
call fcn.140004720
mov dword [rsp + 0x50], eax
jmp 0x1400048a6
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x1400048b8
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx ecx, byte [rsp + 0x40]
test cl, cl
js 0x1400048d7
mov byte [rbx], cl
mov byte [rbx + 1], 0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx eax, cl
mov qword [rsp + 0x48], rdi
and al, 0xe0
cmp al, 0xc0
jne 0x1400048ec
mov edi, 2
jmp 0x14000490a
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1400048fc
mov edi, 3
jmp 0x14000490a
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x140004975
mov edi, 4
mov byte [rbx], cl
cmp qword [rsi + 8], 0
lea rdx, [rbx + 1]
je 0x14000492a
lea eax, [rdi - 1]
mov rcx, rsi
movsxd r8, eax
call fcn.140004720
mov rcx, rax
jmp 0x140004949
mov rcx, qword [rsi]
lea r8d, [rdi - 1]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
lea eax, [rdi - 1]
cmp ecx, eax
je 0x140004962
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movsxd rax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov word [rbx], 0x3f
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
ret
Function at 0x140004990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], ebp
cmp dword [rcx + 0x24], ebp
jne 0x140004ace
cmp dword [rcx + 0x1c], 1
jne 0x1400049e3
mov eax, dword [rcx + 0x14]
mov rcx, qword [rcx]
lea r9d, [rbp + 1]
neg eax
lea r8, [rsp + 0x6c]
cdqe
mov edx, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140004a6f
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x140004a57
dec edx
je 0x140004a3e
cmp edx, 2
je 0x140004a27
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
mov dword [rcx], eax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rsi]
mov word [rcx], ax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi]
mov byte [rcx], al
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140003600
mov eax, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, eax
jl 0x140004aa9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
sub eax, dword [rbx + 0x14]
mov r8, rdi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c1470]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c1480]
mov dword [rax], 1
mov rax, qword [0x1400c1490]
mov dword [rax], 1
mov rax, qword [0x1400c1420]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c1460]
mov dword [0x1400ea00c], 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 [0x1400c1550]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c1530]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c0840]
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 0x140001540
Capabilities:
Copy file
Get common file path
Get startup folder
Write file to startup folder

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp + 0xb0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x60]
mov r9d, 0
mov r8d, 0x18
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call rax
test eax, eax
setne al
test al, al
je 0x1400015ca
lea rax, str.nice
mov rdx, rax
mov rax, qword [0x1400c0e20]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
jmp 0x140001628
lea rax, [rbp - 0x60]
mov r9d, 0
mov r8d, 0x18
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call rax
test eax, eax
setne al
test al, al
je 0x140001621
lea rax, str.nice
mov rdx, rax
mov rax, qword [0x1400c0e20]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
jmp 0x140001628
mov eax, 1
jmp 0x140001685
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0xb0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
test eax, eax
setne al
test al, al
je 0x140001680
lea rax, str.nice
mov rdx, rax
mov rax, qword [0x1400c0e20]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov eax, 0
jmp 0x140001685
mov eax, 1
add rsp, 0x240
pop rbp
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ea104]
mov rbx, rcx
test esi, esi
jle 0x14000b6b0
mov rax, qword [0x1400ea108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b5cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b655
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b5b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000b6d2
mov rax, qword [0x1400ea108]
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 [0x1400ea108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b6b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b64e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b660
add dword [0x1400ea104], 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 [0x1400ea108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b64e
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 0x14000b5d8
mov rax, qword [0x1400ea108]
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 0x14000bc40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ea160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ea140]
test rbx, rbx
je 0x14000bc9c
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 0x14000bc93
test rsi, rsi
je 0x14000bc93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bc78
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 0x14000beb0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000bec8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000bed0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000bee0
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 0x14000bf2d
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 0x14000bf24
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000bf2f
add rax, 0x28
cmp rax, r9
jne 0x14000bf10
xor eax, eax
ret

Function at 0x14000bf30
Capabilities:
Parse pe header

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

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

Function at 0x14000c050
Capabilities:
Parse pe header

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

Function at 0x14000c090
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c1420]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000c0b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000c0b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000c0b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000c100
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000c0f7
test rcx, rcx
je 0x14000c0b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000c0e8
xor eax, eax
ret