joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002f140
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1800ad010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1800b6948]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18002f35e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18002f35e
mov rdx, qword [0x1800b6940]
mov ecx, 0x50
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, qword [0x1800b6948]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x18002f21a
movsx rdx, word [r8 + 0x60e0]
lea rax, [r8 + 0x60e4]
mov r9d, dword [r8 + 0x3f68]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x18002f20f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60e4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60d8]
test rdi, rdi
je 0x18002f237
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x18002f23a
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x18002f27d
mov rsi, qword [r8 + 0x90]
jmp 0x18002f280
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18002f2ab
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1800b6948]
mov rcx, qword [rax + 0x4b28]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18002f31e
inc rbx
cmp rbx, 5
jl 0x18002f300
jmp 0x18002f34a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x18002f360
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180046230
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x18002f4f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1800b6948]
mov edx, 0x210
call fcn.180012780
cmp byte [rax], 0
je 0x18002f566
xor edx, edx
mov ecx, 0x210
call fcn.180014f40
test al, al
je 0x18002f566
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002f566
mov rbx, qword [0x1800b6948]
cmp byte [rbx + 0x2b89], 0
je 0x18002f552
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180004c60
mov dword [rbx + 0x2e20], 0x210
mov dword [rbx + 0x33e0], 0xa0
mov rcx, qword [0x1800b6948]
mov edx, 0x214
call fcn.180012780
cmp byte [rax], 0
je 0x18002f5d6
xor edx, edx
mov ecx, 0x214
call fcn.180014f40
test al, al
je 0x18002f5d6
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002f5d6
mov rbx, qword [0x1800b6948]
cmp byte [rbx + 0x2b89], 0
je 0x18002f5c2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180004c60
mov dword [rbx + 0x2e24], 0x214
mov dword [rbx + 0x33f0], 0xa1
mov rcx, qword [0x1800b6948]
mov edx, 0x212
call fcn.180012780
cmp byte [rax], 0
je 0x18002f644
xor edx, edx
mov ecx, 0x212
call fcn.180014f40
test al, al
je 0x18002f644
lea ecx, [rdx + 0x5b]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002f644
mov rbx, qword [0x1800b6948]
cmp byte [rbx + 0x2b89], 0
je 0x18002f630
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180004c60
mov dword [rbx + 0x2d0c], 0x212
mov dword [rbx + 0x33e8], 0x5b
mov rcx, qword [0x1800b6948]
mov edx, 0x216
call fcn.180012780
cmp byte [rax], 0
je 0x18002f6b2
xor edx, edx
mov ecx, 0x216
call fcn.180014f40
test al, al
je 0x18002f6b2
lea ecx, [rdx + 0x5c]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002f6b2
mov rbx, qword [0x1800b6948]
cmp byte [rbx + 0x2b89], 0
je 0x18002f69e
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180004c60
mov dword [rbx + 0x2d10], 0x216
mov dword [rbx + 0x33f8], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x180045034
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x18004509a
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18004508b
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180045081
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180045055
mov r8, qword [rbx]
mov rcx, qword [0x1800b6958]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800450ac
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x40]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800b6c40]
mov r8, qword [rbx]
mov al, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rbp, [r8 - 5]
cmove rbp, r8
lea rdi, [r8 - 5]
test al, al
lea r14, [rcx*2 + 5]
cmove rdi, r8
mov rdx, r14
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180045117
mov eax, 0xa
jmp 0x1800451a3
test esi, esi
je 0x180045139
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18004515a
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004515a
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180045154
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004515a
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180045554
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18004556b
cmp r8b, 0x90
je 0x18004556b
cmp r8b, 0xcc
jne 0x18004558d
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180045589
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18004558d
add edx, r10d
cmp edx, r9d
jb 0x180045579
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800458f4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18004593e
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x1800b6c30]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x18004597b
cmp rbx, rsi
jb 0x180045976
cmp rbx, r15
jae 0x180045976
cmp qword [rbx + 8], 0
jne 0x180045ad7
mov rbx, qword [rbx]
jmp 0x18004595c
mov r14, rdi
cmp rdi, rsi
jb 0x1800459ff
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, r14
div r12
sub r14, rdx
sub r14, r12
cmp r14, rsi
jb 0x1800459f6
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800459f6
cmp dword [rbp - 0x10], 0x10000
je 0x1800459c6
mov r14, qword [rbp - 0x28]
cmp r14, r12
jb 0x1800459f6
jmp 0x180045992
test r14, r14
je 0x1800459f6
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180045a97
cmp r14, rsi
jae 0x180045983
test rbx, rbx
jne 0x180045a97
cmp rdi, r15
ja 0x180045ad7
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180045ad7
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180045ad7
cmp dword [rbp - 0x10], 0x10000
je 0x180045a6d
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jmp 0x180045a26
test rdi, rdi
je 0x180045ad7
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x1800459f9
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180045aaa
mov rax, qword [0x1800b6c30]
mov qword [rbx], rax
mov qword [0x1800b6c30], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14009fa10
Capabilities:
Get keyboard layout

Disassembly:
sub rsp, 0x1c8
movabs rax, 0xa87782d2896a46e0
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 0xc5
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x40], al
cmp byte [rsp + 0x40], 0xc5
je 0x14009fa40
jmp 0x14009fb72
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x44], al
cmp byte [rsp + 0x44], 0xc5
je 0x14009fa52
jmp 0x14009faa2
movabs rax, 0xfc74511a7c7426cf
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0x30]
sub eax, 0x35
cmp eax, 0xa1
jl 0x14009fa95
movabs rax, 0xc776ed7440bee9f9
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
movzx ecx, byte [rsp + 0x30]
call fcn.1400a0b80
nop
jmp 0x14009faed
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetIconInfo]
mov dword [rsp + 0x48], eax
movzx ecx, byte [rsp + 0x30]
call fcn.1400a0b80
call qword [sym.imp.USER32.dll_GetShellWindow]
mov qword [rsp + 0x70], rax
movzx eax, byte [rsp + 0x30]
or eax, 0xcf
mov byte [rsp + 0x30], al
lea rdx, [rsp + 0x68]
mov ecx, 0x38
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsp + 0x30]
and eax, 0x91
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x34], al
cmp byte [rsp + 0x34], 0x55
je 0x14009fb14
cmp byte [rsp + 0x34], 0x98
je 0x14009fb65
jmp 0x14009fb70
movzx eax, byte [rsp + 0x30]
cmp eax, 0x5d
jge 0x14009fb63
call fcn.14009fa10
mov dword [rsp + 0x20], 0xaf
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x60]
mov edx, 0x77
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetAltTabInfoW]
mov dword [rsp + 0x50], eax
movzx eax, byte [rsp + 0x30]
sar eax, 3
mov byte [rsp + 0x30], al
movzx ecx, byte [rsp + 0x30]
call fcn.1400a0b80
nop
jmp 0x14009fb70
movzx eax, byte [rsp + 0x30]
shl eax, 1
mov byte [rsp + 0x30], al
jmp 0x14009fba0
call fcn.14009fa10
movzx eax, byte [rsp + 0x30]
sub eax, 0x6d
mov byte [rsp + 0x30], al
lea rcx, str.ranters_ministers
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x60], rax
movzx ecx, byte [rsp + 0x30]
call fcn.1400a0b80
nop
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_ShowOwnedPopups]
mov dword [rsp + 0x48], eax
call fcn.14009fa10
movzx eax, byte [rsp + 0x30]
add eax, 0xba
mov byte [rsp + 0x30], al
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov dword [rsp + 0x54], eax
mov eax, 0xdb
add rsp, 0x1c8
ret
Function at 0x1400a1410
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a145a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a145a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a145a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a145a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a145a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a145c
xor al, al
add rsp, 0x28
ret

Function at 0x1400a4870
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400a48df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a48df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a48df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a48df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a48df
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a48df
cmp dword [rcx + 0xf8], 0
je 0x1400a48df
mov ecx, ebx
call fcn.1400a4990
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400a476c
nop
cmp dword [rbp + 0x20], 0
je 0x1400a492d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a4938
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400a4870

Function at 0x1400a4a74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a4870
Function at 0x1400a74d0
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 0x1400a7557
mov rsi, rbx
cmp word [rax], bp
je 0x1400a7516
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a7500
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a74fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a7ef0
mov rdi, rax
test rax, rax
je 0x1400a7544
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ace40
mov rbp, rdi
xor ecx, ecx
call fcn.1400a6198
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 0x1400ac6a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ac6c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ac6c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400015f0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
lea rax, str.VMWARE
lea rdi, str.VIRTUALBOX
mov r13, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movq xmm0, rdi
movq xmm1, rax
lea rdi, str.QEMU
mov r15, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
punpcklqdq xmm0, xmm1
lea rax, [0x14000a067]
lea rbp, str.SYSTEMControlSet001ServicesDiskEnum
movq xmm2, rax
lea r14, [0x14000a098]
movaps xmmword [rsp + 0x40], xmm0
movq xmm0, rdi
lea rbx, [rsp + 0x40]
mov rdi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
punpcklqdq xmm0, xmm2
lea rsi, [rsp + 0x60]
lea r12, [rsp + 0x38]
mov dword [rsp + 0x34], 0x400
movaps xmmword [rsp + 0x50], xmm0
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov r9d, 0x20019
mov rdx, rbp
mov rcx, 0xffffffff80000002
call rdi
test eax, eax
je 0x1400016c0
add rbx, 8
cmp rbx, rsi
jne 0x14000167f
xor eax, eax
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x38]
mov rdx, r14
call r13
test eax, eax
jne 0x1400016f4
mov rdx, qword [rbx]
mov rcx, rsi
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x1400016fe
mov rcx, qword [rsp + 0x38]
call r15
jmp 0x14000169d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400016a8

Function at 0x140001c80
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.1400079f0
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.1400079f0
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 0x140001cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e104]
mov rbx, rcx
test esi, esi
jle 0x140001e20
mov rax, qword [0x14000e108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001dc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d20
mov rcx, rbx
call fcn.140002740
mov rdi, rax
test rax, rax
je 0x140001e42
mov rax, qword [0x14000e108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002880
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001dbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001dd0
add dword [0x14000e104], 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 [0x14000e108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001c80
nop dword [rax]
xor esi, esi
jmp 0x140001d48
mov rax, qword [0x14000e108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001c80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001c80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400023b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e140]
test rbx, rbx
je 0x14000240c
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 0x140002403
test rsi, rsi
je 0x140002403
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023e8
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 0x140002740
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400027c0
Capabilities:
Parse pe header

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

Function at 0x140002880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a860]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000289f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400028a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret