joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a1044
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov r9d, dword [rcx + 0x30]
bt r9d, 0x10
jae 0x1000a107d
bt r9d, 0x14
jae 0x1000a10a3
bt r9d, 0x13
jb 0x1000a10a3
bt r9d, 0x14
jb 0x1000a10a3
mov eax, r9d
shr eax, 0x11
test al, 1
jne 0x1000a10a3
shr r9d, 0x12
test r9b, 1
je 0x1000a115c
movzx eax, word [rcx + 0x30]
test edx, eax
je 0x1000a115c
lea rdx, [rsp + 0x40]
call fcn.1000a0d80
nop
mov eax, dword [rbx + 0x30]
shr eax, 0x11
test al, 1
je 0x1000a10db
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [rbx + 0x30]
bt eax, 0x10
jae 0x1000a10ea
bt eax, 0x14
jae 0x1000a10f6
bt eax, 0x13
jb 0x1000a10f6
bt eax, 0x14
jae 0x1000a114f
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x1000a114f
mov eax, dword [rsp + 0x58]
lea edi, [rax + rax]
and dword [rsp + 0x30], 0
cmp byte [0x100147290], 0
je 0x1000a1126
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, edi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [rbx + 0x68]
lea rcx, [rsp + 0x40]
call fcn.10002d0d8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x1000a1918
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
mov r12, rcx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x1001475d4]
test eax, eax
je 0x1000a195f
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x1000a196c
call fcn.100049184
test eax, eax
je 0x1000a1988
lea rdx, [rsp + 0x30]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x1000a1990
xor eax, eax
jmp 0x1000a19ec
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [fcn.1000a2c80]
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rax, rax
sete bl
test ebx, ebx
je 0x1000a19ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000a19d0
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1000a19e9
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
ret
Function at 0x1000a1a08
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
mov r12, rcx
or qword [rax - 0x10], 0xffffffffffffffff
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x1001475d4]
test eax, eax
je 0x1000a1a4f
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x1000a1a5c
call fcn.100049184
test eax, eax
je 0x1000a1a78
lea rdx, [rsp + 0x30]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x1000a1a82
or rax, 0xffffffffffffffff
jmp 0x1000a1adf
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [fcn.1000a2c80]
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
cmp rax, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x1000a1ac1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000a1ac3
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1000a1adc
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
ret

Function at 0x1000a1afc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov r12, qword [0x1001476c0]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x1001475d4]
test eax, eax
je 0x1000a1b44
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x1000a1b51
call fcn.100049184
test eax, eax
je 0x1000a1b6d
lea rdx, [rsp + 0x40]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1000a1b78
xor eax, eax
jmp 0x1000a1c04
test r12, r12
jne 0x1000a1b9a
lea rcx, [0x10000e278]
call fcn.1000a1e10
mov r11, rax
test rax, rax
je 0x1000a1bcf
mov qword [0x1001476c0], rax
jmp 0x1000a1ba1
mov r11, qword [0x1001476c0]
mov eax, dword [rdi + 4]
bt eax, 0xe
jb 0x1000a1bc1
cmp dword [rdi], 0x60
jb 0x1000a1bc1
bts eax, 0xe
mov dword [rdi + 4], eax
mov rax, qword [0x100142150]
mov qword [rdi + 0x58], rax
mov rcx, rdi
call r11
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x1000a1be6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000a1be8
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x1000a1c01
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1000a1c20
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov r12, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1001476a0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1001475d4]
test eax, eax
je 0x1000a1c67
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x1000a1c74
call fcn.100049184
test eax, eax
je 0x1000a1c90
lea rdx, [rsp + 0x48]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1000a1c98
xor eax, eax
jmp 0x1000a1cf5
test rbx, rbx
jne 0x1000a1cb8
lea rcx, [0x10000e298]
call fcn.1000a1e10
mov rbx, rax
test rax, rax
je 0x1000a1cc3
mov qword [0x1001476a0], rax
mov rcx, r12
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1000a1cd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000a1cda
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1000a1cf3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x1000a1d14
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov r12, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x100147698]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x1001475d4]
test eax, eax
je 0x1000a1d5f
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x1000a1d6c
call fcn.100049184
test eax, eax
je 0x1000a1d88
lea rdx, [rsp + 0x48]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1000a1d92
or rax, 0xffffffffffffffff
jmp 0x1000a1df4
test rbx, rbx
jne 0x1000a1db2
lea rcx, [0x10000e2b8]
call fcn.1000a1e10
mov rbx, rax
test rax, rax
je 0x1000a1dbf
mov qword [0x100147698], rax
mov rcx, r12
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x1000a1dd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000a1dd8
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1000a1df1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1000a1ec4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r13d, edx
mov r14d, ecx
xor esi, esi
mov qword [rax - 0x20], rsi
mov rbx, qword [0x1001476b8]
and qword [rax - 0x28], rsi
xor edi, edi
mov eax, dword [0x1001475d4]
test eax, eax
je 0x1000a1f13
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x1000a1f26
call fcn.100049184
test eax, eax
jne 0x1000a1f26
lea r12d, [rax + 1]
jmp 0x1000a1f44
lea rdx, [rsp + 0x30]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov r12d, 1
test eax, eax
cmovne edi, r12d
test edi, edi
jne 0x1000a1f4c
xor eax, eax
jmp 0x1000a1fbe
test rbx, rbx
jne 0x1000a1f6c
lea rcx, [0x10000e2d8]
call fcn.1000701fc
mov rbx, rax
test rax, rax
je 0x1000a1f8a
mov qword [0x1001476b8], rax
and dword [rsp + 0x20], 0
mov r9d, r12d
mov r8d, 0x20
mov edx, r13d
mov ecx, r14d
call rbx
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x1000a1fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000a1fa2
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1000a1fbb
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x1000a1fe0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r13, r8
mov r14, rcx
or ebx, 0xffffffff
mov esi, ebx
mov dword [rax - 0x28], ebx
mov rdi, qword [0x1001476a8]
and qword [rax + 0x20], 0
xor r12d, r12d
mov eax, dword [0x1001475d4]
test eax, eax
je 0x1000a2033
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x1000a2040
call fcn.100049184
test eax, eax
je 0x1000a205d
lea rdx, [rsp + 0x68]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne r12d, ecx
test r12d, r12d
jne 0x1000a2066
mov eax, ebx
jmp 0x1000a20c9
test rdi, rdi
jne 0x1000a2086
lea rcx, [0x10000e2f0]
call fcn.1000701fc
mov rdi, rax
test rax, rax
je 0x1000a2096
mov qword [0x1001476a8], rax
mov r8, r13
mov edx, ebx
mov rcx, r14
call rdi
mov esi, eax
mov dword [rsp + 0x20], eax
xor edi, edi
cmp esi, ebx
sete dil
test edi, edi
je 0x1000a20ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000a20ae
xor ebx, ebx
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x1000a20c7
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x1000a215c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov edi, edx
mov rbp, rcx
mov qword [rax - 0x48], rcx
and dword [rax - 0x54], 0
call fcn.10002dbe8
mov dword [rsp + 0x24], 1
or r12, 0xffffffffffffffff
mov r8, r12
xor edx, edx
mov rcx, rbp
call fcn.10002a238
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, dword [rsp + 0x20]
inc ebx
lea eax, [r12 + 3]
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.1000c865c
mov rsi, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1000a21fd
call fcn.1000a2290
jmp 0x1000a2229
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.10002d07c
nop
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.10002cd2c
nop
lea rcx, [rsp + 0x38]
call fcn.10002d0d8
test rsi, rsi
je 0x1000a2236
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbp
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1000a23b8
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rbx, rcx
mov qword [r11 - 0x48], rcx
and dword [rsp + 0x20], 0
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
jne 0x1000a2418
mov rcx, rbx
call fcn.10002dbe8
nop
mov dword [rsp + 0x20], 1
mov rax, rbx
jmp 0x1000a24b9
xor r8d, r8d
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x38]
call fcn.10009f880
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea r8d, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd rdx, eax
test eax, eax
jne 0x1000a246e
mov rcx, rbx
call fcn.10002dbe8
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.10002d0d8
mov rax, rbx
jmp 0x1000a24b9
cmp rdx, qword [rsp + 0x50]
ja 0x1000a2485
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x38]
call fcn.10002a238
jmp 0x1000a2497
xor r8d, r8d
sub rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1000480d8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.10002d1f0
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.10002d0d8
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1000c8b30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1000a2840
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
mov rbx, rax
test rax, rax
jne 0x1000a28c2
call qword [sym.imp.USER32.dll_GetFocus]
test rax, rax
jne 0x1000a28c2
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edx, edx
mov rcx, rbp
mov esi, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [rbx + 1]
mov ecx, eax
mov edx, esi
mov edi, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
xor r8d, r8d
mov edx, esi
mov ecx, edi
mov rbx, rax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1000c6d70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rdx]
lea rax, [rsp + 0x34]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1000c6e37
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
lea rcx, [rsp + 0x40]
jne 0x1000c6e00
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x1000c6e37
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x1000c6e23
mov al, byte [rcx + rdi]
cmp al, bl
je 0x1000c6e23
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x1000c6e05
cmp rsi, rbx
jne 0x1000c6e30
dec rdi
mov edx, 0x8007007a
cmp edx, ebx
mov byte [rdi], bl
setge bl
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000c8438
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1000c84cb
cmp dword [rsp + 0x24], 5
jb 0x1000c84e5
jmp 0x1000c84e1
cmp dword [rsp + 0x30], esi
jne 0x1000c84e5
cmp dword [rsp + 0x24], 4
ja 0x1000c84e1
jne 0x1000c84e5
cmp dword [rsp + 0x28], 0
jbe 0x1000c84e5
mov byte [rbx + 0x18], sil
lea rax, [0x100001c50]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1000718ac
movzx ecx, byte [0x1001475d8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1001475d8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000c8b30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1000c8b30
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100142128]
jne 0x1000c8b4b
rol rcx, 0x10
test cx, 0xffff
jne 0x1000c8b47
ret 0
ror rcx, 0x10
jmp 0x1000c9380
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100145560]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100145658]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000c9405
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, [0x100145560]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x1000c9427
mov rax, qword [rsp + 0x88]
mov qword [0x100145658], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1001455f8], rax
mov rax, qword [0x100145658]
mov qword [0x1001454d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1001455e0], rax
mov dword [0x1001454c0], 0xc0000409
mov dword [0x1001454c4], 1
mov rax, qword [0x100142128]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100142130]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001d98]
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, 0x88
ret
Function at 0x1000c8d3c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
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 0x1000c8da7
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1000c8dc7
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001d60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x1000c921c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000c9269
cmp rcx, 0xffffffffffffffff
je 0x1000c9269
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000c9261
cmp dword [rcx + 0x3c], edx
jl 0x1000c9261
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000c9261
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 0x1000c9269
mov rax, rdx
add rsp, 0x18
ret