joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016a28c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1419a1b80]
xor rax, rsp
mov qword [rbp + 0x3f], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14016a2c7
xor eax, eax
jmp 0x14016a3ec
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14016a301
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14016a301
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14016a3ec
cmp qword [rbx + 0x80], 0
je 0x14016a3ea
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14016a33c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14016a35c
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14017e1b0
cmp eax, edi
jmp 0x14016a3e7
lea r8, [rbp + 0xf]
mov byte [rbp + 7], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 8]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [case.0x1400a0d2d.0]
test eax, eax
je 0x14016a3b1
sub eax, 1
je 0x14016a3b1
cmp eax, 2
jne 0x14016a3ea
movsx ecx, byte [rbp + 7]
jmp 0x14016a349
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14016a3db
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.14017a524
cmp r14, rax
jne 0x14016a3ea
lea rax, [rbp + 7]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x17], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14016c210
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14016a9fc
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14016aa2a
xor eax, eax
jmp 0x14016ab10
cmp qword [rcx + 0x68], 0
je 0x14016aa3b
call fcn.14016ab2c
jmp 0x14016ab10
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14016aa52
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14016aa54
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14016aa86
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140191f10
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14016ab0a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14016aabd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14016aae6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14017a000
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14016ab0a
cmp rsi, rbx
ja 0x14016aac4
test rsi, rsi
je 0x14016ab0a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14017a000
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14016abf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14016ac1f
call fcn.14016acb0
jmp 0x14016ac96
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14016ac36
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14016ac38
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14016ac90
test ecx, ecx
jle 0x14016ac71
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140191f10
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14016ac90
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14016ac90
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14017a524
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14016d41c
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14017fc14
Function at 0x140191c20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140191c48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140191c48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140006878
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140008090]
test rax, rax
je 0x1400068c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400068c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400068c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400068c2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400068c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400068c4
xor al, al
add rsp, 0x28
ret
Function at 0x140002a48
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400190b8]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
and qword [rsp + 0x58], 0
xor r8d, r8d
and qword [rsp + 0x60], 0
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002b69
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002ad2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x140002b69
jmp 0x140002b00
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140002a48
mov ebx, eax
test eax, eax
jne 0x140002b69
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140002ae6
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002b5c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140002bac
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002b7f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140010b90
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000388c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400190b8]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r14d, r14d
mov qword [rsp + 0x38], rcx
mov rax, rdx
mov qword [rsp + 0x30], r14
mov rbx, r8
mov qword [rsp + 0x40], r14
xor edx, edx
mov rcx, rax
lea r8d, [r14 + 2]
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400038f7
call fcn.1400020c8
mov ebx, eax
jmp 0x140003a07
xor r9d, r9d
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140003921
call fcn.1400020c8
jmp 0x1400039f6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140003917
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ebx, eax
inc eax
cmp eax, ebx
jae 0x14000395f
mov ebx, 0x8007000e
jmp 0x140003a07
mov ecx, eax
test eax, eax
je 0x140003996
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140003a3d
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140003996
lea rcx, [rsp + 0x40]
call fcn.140002090
mov rax, qword [rsp + 0x40]
jmp 0x1400039a0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400039ac
mov ebx, 0x8007000e
jmp 0x1400039f8
xor edx, edx
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, rsi
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x140003917
mov r8d, dword [rbp + 0x3b0]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r14w
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
call fcn.1400036bc
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x140003a1d
lea rcx, [rsp + 0x40]
call fcn.140002078
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140010b90
add rsp, 0x460
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.140003dac
int3
Function at 0x140007290
Capabilities:
Check if file exists

Disassembly:
mov rdx, qword [rcx + 0x1b0]
jmp fcn.1400085cc
Function at 0x140007570
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400190b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, qword [rcx + 0x1c0]
mov rdi, rcx
mov rcx, qword [rcx + 0x1d0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1400075d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400076e8
mov rdx, qword [rdi + 0x1a0]
mov rcx, rdi
mov r8, rdx
call fcn.140008658
mov ebx, eax
test eax, eax
js 0x1400076e8
mov rdx, qword [rdi + 0x1b0]
mov rcx, rdi
call fcn.140008804
mov ebx, eax
test eax, eax
js 0x1400076e8
mov rdx, qword [rdi + 0x1d0]
mov rcx, rdi
call fcn.1400085cc
mov ebx, eax
test eax, eax
js 0x1400076e8
mov ecx, 1
call qword [sym.imp.mscms.dll_WcsSetCalibrationManagementState]
nop dword [rax + rax]
test eax, eax
jne 0x140007653
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400076e8
mov rdx, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
mov dword [rdi + 0x1e8], esi
test rdx, rdx
je 0x140007684
mov rcx, rax
inc rcx
cmp word [rdx + rcx*2], si
jne 0x140007671
lea rcx, [rcx*2 + 2]
jmp 0x140007687
mov rcx, rsi
mov dword [rsp + 0x28], ecx
mov rcx, qword [rdi + 0x1a0]
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x2c], esi
test rcx, rcx
je 0x1400076b3
inc rax
cmp word [rcx + rax*2], si
jne 0x1400076a0
lea rax, [rax*2 + 2]
jmp 0x1400076b6
mov rax, rsi
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x20]
mov rcx, qword [0x140019bc0]
lea rdx, [0x1400141d0]
mov r8d, 2
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], esi
call qword [sym.imp.ADVAPI32.dll_EventWrite]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140010b90
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400085cc
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov ebx, esi
test rdx, rdx
je 0x14000863e
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1400085eb
test rax, rax
je 0x14000863e
call fcn.140008804
mov ebx, eax
test eax, eax
js 0x14000863e
mov r8d, 1
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.mscms.dll_UninstallColorProfileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000863e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000863e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e33c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov dword [r11 + 0x18], r8d
mov qword [r11 + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rax, [rbp - 8]
mov rdi, rdx
mov qword [r11 - 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMDCCWSimulator
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
and dword [rbp + 0x20], 0
mov ebx, eax
and dword [rbp - 0x10], 0
test eax, eax
jne 0x14000e40a
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000e40a
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x20], eax
jne 0x14000e405
mov eax, dword [rbp + 0x38]
cmp dword [rbp - 0x10], eax
jne 0x14000e405
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
mov rax, qword [rbp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000e40a
mov ebx, 0xd
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14000e41f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret

Function at 0x14000e43c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov edi, r9d
mov qword [r11 - 0x18], rax
mov esi, r8d
mov rbp, rdx
mov r9d, 0x20006
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMDCCWSimulator
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000e4bd
mov rax, qword [rsp + 0x60]
mov r9d, esi
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000e4d3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ef88
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x38]
mov qword [rbp + 0x38], rbx
mov r9d, 0x20019
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov dword [rbp + 0x30], ebx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMDCCWSimulator
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000f01f
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.UseSimulator
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000f01f
cmp dword [rbp + 0x20], 4
jne 0x14000f01a
cmp dword [rbp + 0x28], 4
je 0x14000f01f
mov edi, 0xd
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14000f034
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp dword [rbp + 0x30], 1
sete cl
test edi, edi
movzx edx, cl
cmove ebx, edx
mov al, bl
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret

Function at 0x14000f6f4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140019c80]
test rcx, rcx
jne 0x14000f71a
call fcn.14000f7dc
test eax, eax
je 0x14000f761
mov rcx, qword [0x140019c80]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x14000f73f
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 0x10], ecx
mov word [rax + 0x14], cx
jmp 0x14000f7c7
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000f765
xor eax, eax
jmp 0x14000f7c7
mov eax, dword [rax]
mov rcx, qword [0x140019c80]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000f79e
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [rax + rax]
mov rax, rdi
jmp 0x14000f7c7
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140019c80]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
nop dword [rax + rax]
add rbx, 0x20
cmp rbx, rdi
jb 0x14000f7a5
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400108f0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140019c90], rbx
je 0x140010957
cmp rax, rbx
jne 0x14001094a
mov ebx, 1
mov esi, ebx
jmp 0x14001095c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001092f
mov ebx, 1
mov eax, dword [0x140019c98]
cmp eax, ebx
jne 0x140010974
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400109e0
mov eax, dword [0x140019c98]
test eax, eax
jne 0x1400109d5
mov dword [0x140019c98], ebx
lea r15, [0x140013d50]
lea rdi, [0x140013d38]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400109c7
test eax, eax
jne 0x1400109cb
cmp qword [rdi], r14
je 0x1400109bc
mov rax, qword [rdi]
mov rcx, qword [0x140013cf8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14001099e
test eax, eax
je 0x1400109db
mov eax, 0xff
jmp 0x140010b36
mov dword [0x140019604], ebx
mov edi, 0x1f
mov eax, dword [0x140019c98]
cmp eax, ebx
jne 0x140010a07
lea rdx, [0x140013d30]
lea rcx, [0x140013d00]
call sub.msvcrt.dll__initterm
mov dword [0x140019c98], 2
test esi, esi
jne 0x140010a15
mov rax, r14
xchg qword [0x140019c90], rax
cmp qword [0x140019cb0], r14
je 0x140010a48
lea rcx, [0x140019cb0]
call fcn.140011150
test eax, eax
je 0x140010a48
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140019cb0]
mov r9, qword [0x140013cf8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140010a61
mov eax, 0xff
jmp 0x140010b36
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140010ae7
test ax, ax
je 0x140010a7c
test edx, edx
jne 0x140010ae7
sub ax, bx
cmp ax, di
ja 0x140010a92
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140010a7c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001170
mov dword [0x140019600], eax
cmp dword [0x140019620], r14d
jne 0x140010ad0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140019604], r14d
jne 0x140010ae5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140019600]
jmp 0x140010b36
cmp ax, 0x22
jne 0x140010afb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140010a6a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400111e4
add rsp, 0x28
jmp 0x1400108f0
Function at 0x14001103c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140011088
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011080
cmp dword [rcx + 0x3c], edx
jl 0x140011080
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140011080
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140011088
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14001130c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140011318
push rbx
sub rsp, 0x540
mov rax, qword [0x1400190b8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140011395
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1400113b5
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140010b90
add rsp, 0x540
pop rbx
ret

Function at 0x140011318
Capabilities:
Print debug messages

Disassembly:
jmp 0x140011318
push rbx
sub rsp, 0x540
mov rax, qword [0x1400190b8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140011395
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1400113b5
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140010b90
add rsp, 0x540
pop rbx
ret