joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037b40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm13
movdqa xmmword [rsp + 0x60], xmm12
movdqa xmmword [rsp + 0x50], xmm11
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm0, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm4, r8d
pxor xmm4, xmm0
add rdx, 0xffffffffffffffc0
mov eax, 0x40
add rcx, rax
cmp rdx, rax
jb 0x140037c6a
movabs rax, 0x154442bd4
movq xmm9, rax
movdqa xmm8, xmmword [0x140132eb0]
movdqa xmm6, xmm4
pclmulqdq xmm6, xmm9, 0
movdqa xmm12, xmm3
pclmulqdq xmm12, xmm9, 0
movdqa xmm11, xmm2
pclmulqdq xmm11, xmm9, 0
movdqa xmm10, xmm1
pclmulqdq xmm10, xmm9, 0
movdqa xmm0, xmm4
pclmulqdq xmm0, xmm8, 0x11
movdqa xmm5, xmm3
pclmulqdq xmm5, xmm8, 0x11
movdqa xmm7, xmm2
pclmulqdq xmm7, xmm8, 0x11
movdqa xmm13, xmm1
pclmulqdq xmm13, xmm8, 0x11
movdqu xmm4, xmmword [rcx]
pxor xmm4, xmm6
pxor xmm4, xmm0
movdqu xmm3, xmmword [rcx + 0x10]
pxor xmm3, xmm12
pxor xmm3, xmm5
movdqu xmm2, xmmword [rcx + 0x20]
pxor xmm2, xmm11
pxor xmm2, xmm7
movdqu xmm1, xmmword [rcx + 0x30]
pxor xmm1, xmm10
pxor xmm1, xmm13
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140037bc5
movabs rax, 0x1751997d0
movq xmm0, rax
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140132ec0]
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm2
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
cmp rdx, 0x10
jb 0x140037cf9
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140037ccf
movdqa xmm0, xmmword [0x140132ec0]
pclmulqdq xmm0, xmm4, 1
psrldq xmm4, 8
pxor xmm4, xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
movss xmm1, xmm4
psrldq xmm4, 4
movabs rax, 0x163cd6124
invalid
Function at 0x1800113e8
Capabilities:
Create thread

Disassembly:
jmp 0x18001a950
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x180031004]
call fcn.1800117d5
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x18001a98f
jmp 0x18001a9c1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xf0]
lea r8, [0x180011578]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x18001147e
Capabilities:
Terminate process

Disassembly:
jmp 0x18001e2e0
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 0x14000da84
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d7d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000dada
mov ecx, 1
call fcn.14000d7d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
pop rdx
or eax, 0xdb8b00fa
xlatb
invalid
Function at 0x10929f8
Capabilities:
Enumerate process modules
Print debug messages

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 r12
mov eax, 0x1460
call fcn.010b5bd0
sub rsp, rax
mov rax, qword [0x010b9180]
xor rax, rsp
mov qword [rsp + 0x1450], rax
mov rax, qword [0x01091ac0]
lea rcx, [rsp + 0x1040]
xor edx, edx
mov qword [rcx], rax
mov rax, qword [0x01091ac8]
mov r8d, 0x1f4
mov qword [rcx + 8], rax
mov eax, dword [0x01091ad0]
mov dword [rcx + 0x10], eax
lea rcx, [rsp + 0x1054]
call fcn.01097220
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov edx, 0x1000
xor ebp, ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1092bae
mov edi, dword [rsp + 0x20]
mov esi, ebp
shr edi, 2
je 0x1092b5c
lea rbx, [rsp + 0x40]
mov r8d, dword [rbx]
test r8d, r8d
je 0x1092b47
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov r12, rax
je 0x1092b3e
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1092b3e
mov rdx, qword [rsp + 0x28]
lea r8, [rsp + 0x1040]
mov r9d, 0x104
mov rcx, r12
call sub.PSAPI.DLL_GetModuleBaseNameW
lea r8, [rsp + 0x1040]
lea rdx, [0x01091ad8]
lea rcx, [rsp + 0x1250]
call fcn.01096af0
lea rcx, [rsp + 0x1250]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, [0x01091af0]
lea rcx, [rsp + 0x1040]
mov r8d, 0x17
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
je 0x1092b57
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 1
add rbx, 4
cmp esi, edi
jae 0x1092b5c
jmp 0x1092a99
mov ebp, 1
lea rdx, [0x01091b28]
lea rcx, [rsp + 0x1250]
mov r8d, ebp
call fcn.01096af0
lea rcx, [rsp + 0x1250]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebp, ebp
je 0x1092b8c
mov ecx, 1
jmp 0x1092ba2
mov eax, dword [0x010c7250]
add eax, 1
cmp eax, 3
mov dword [0x010c7250], eax
jbe 0x1092bae
xor ecx, ecx
call fcn.010944d8
and dword [0x010c7250], 0
mov rcx, qword [rsp + 0x1450]
xor rcx, rsp
call fcn.01096590
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1093268
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub rsp, 0x198
mov rax, qword [0x010b9180]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x010c71e4], 0
jne 0x1093405
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x114
mov dword [0x010c71e4], 1
call fcn.01097220
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10932d4
lea rdx, [0x01091cd8]
xor ecx, ecx
call fcn.01093a0c
jmp 0x1093405
cmp dword [rsp + 0x44], 5
jne 0x109330d
cmp dword [rsp + 0x48], 0
mov ecx, 0xe
jne 0x10932fa
mov dword [0x010c71e4], 2
lea rdx, [0x01091d10]
jmp 0x109332a
mov dword [0x010c71e4], 3
lea rdx, [0x01091d58]
jmp 0x109332a
cmp dword [rsp + 0x44], 6
jb 0x109332f
mov dword [0x010c71e4], 4
lea rdx, [0x01091da0]
mov ecx, 0xe
call fcn.01093a0c
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x01091e00]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1093405
xor eax, eax
lea r9, [rsp + 0x3c]
lea rdx, [0x01091e60]
mov qword [rsp + 0x161], rax
mov qword [rsp + 0x169], rax
mov qword [rsp + 0x171], rax
mov dword [rsp + 0x179], eax
mov word [rsp + 0x17d], ax
mov byte [rsp + 0x17f], al
lea rax, [rsp + 0x38]
xor r8d, r8d
mov byte [rsp + 0x160], 0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10933fa
lea rcx, [rsp + 0x160]
call fcn.01096660
lea rcx, [rsp + 0x164]
mov dword [0x010c71e8], eax
call fcn.01096660
mov dword [0x010c71ec], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x010c71e4]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.01096590
add rsp, 0x198
ret

Function at 0x1093600
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp ecx, 2
mov dword [0x010c6b4c], ecx
setne al
cmp ecx, 4
mov dword [0x010c6b54], edx
mov dword [0x010c6b50], eax
mov dword [0x010c6b60], r8d
je 0x1093648
cmp ecx, 1
je 0x1093648
mov eax, dword [0x010bc9f8]
mov dword [0x010c6b5c], eax
add eax, 1
mov dword [0x010bc9f8], eax
jmp 0x109364f
and dword [0x010c6b5c], 0
mov rcx, qword [0x010c6b40]
lea rdx, [0x010c6b48]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
mov ebx, eax
jne 0x1093676
lea rcx, [0x010920d8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1093684
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x010b9180]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [rsp + 0x28]
lea rdx, [0x01092100]
lea r8d, [rbx + 0x20]
call fcn.0109a340
mov ecx, 0xfffe
mov dword [rsp + 0x20], 0x7fff
call fcn.0109623c
test rax, rax
mov rdi, rax
je 0x109370e
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea esi, [rbx + 1]
test eax, eax
je 0x10936fe
lea r8d, [rbx + 0xf]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.010968f8
test eax, eax
cmove ebx, esi
mov rcx, rdi
call fcn.010961b8
test ebx, ebx
je 0x109370e
mov ecx, esi
jmp 0x1093710
xor ecx, ecx
call fcn.01094738
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.01096590
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1093a0c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0xff0
mov rax, qword [0x010b9180]
xor rax, rsp
mov qword [rsp + 0xfe0], rax
mov qword [rsp + 0x38], rsp
mov ebx, ecx
lea rcx, [0x010c6f20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, dword [0x010c6b64]
jb 0x1093a5b
xor al, al
jmp 0x1093a75
mov rcx, qword [0x010c6f18]
test rcx, rcx
jne 0x1093a6b
mov al, 1
jmp 0x1093a75
mov rax, rbx
cmp byte [rbx + rcx], 0
setne al
movzx eax, al
test eax, eax
jne 0x1093a8d
lea rdx, [0x01093b6a]
mov rcx, qword [rsp + 0x38]
call fcn.0109ee20
lea r13, [rsp + 0x1030]
lea r8, [0x010c6f50]
mov esi, 0x7d0
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.010965b8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
mov rdx, qword [0x010c7258]
test rdx, rdx
je 0x1093b10
mov rcx, rbx
imul rcx, rcx, 0x84
lea rdi, [rcx + rdx + 4]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
sub ebx, dword [0x010c6934]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov ecx, esi
sub ecx, r12d
movsxd rdx, ecx
lea rcx, [rsp + r12*2 + 0x40]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
lea r8, [0x01092148]
call fcn.01096bf8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
movsxd rdx, esi
cdqe
lea rcx, [rsp + rax*2 + 0x40]
mov r9, r13
mov r8, qword [rsp + 0x1028]
call fcn.01096b90
cmp byte [0x010c7254], 0
je 0x1093b4c
lea rcx, [rsp + 0x40]
call fcn.01093bb0
jmp 0x1093b57
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and qword [rsp + 0x30], 0
lea rcx, [0x010c6f20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0xfe0]
xor rcx, rsp
call fcn.01096590
add rsp, 0xff0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1093bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x010b9180]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov rcx, qword [0x010c6d08]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or rcx, 0xffffffffffffffff
xor eax, eax
and qword [rsp + 0x20], rax
mov rdi, rbx
lea r9, [rsp + 0x30]
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8d, [rcx + rcx - 2]
mov rcx, qword [0x010c6d08]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x010c6d08]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov word [rsp + 0x38], 0xd
mov word [rsp + 0x3a], 0xa
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.01096590
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1093c64
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbp, rcx
mov ecx, dword [0x010c6b64]
call fcn.0109623c
xor r14d, r14d
cmp rax, r14
mov qword [0x010c6f18], rax
je 0x1093d9d
cmp dword [0x010c6b64], r14d
lea rbx, [0x01090a80]
mov edi, r14d
dec byte [rax - 0x77]
sbb eax, 0x335a5
Function at 0x1093dbc
Capabilities:
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x20]
lea rbp, [0x010c6d10]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x40], rax
lea rdx, [0x010921b0]
xor r8d, r8d
mov qword [r11 - 0x48], rbp
mov rbx, rcx
mov dword [r11 + 0x20], 0x104
mov dword [r11 + 0x18], 4
mov byte [0x010c7254], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1093f35
cmp dword [rsp + 0x80], 1
jne 0x1093f35
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
mov rcx, rbp
je 0x1093e79
and qword [rsp + 0x30], rax
lea r8d, [rax + 3]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [0x010c6d08], rax
je 0x1093f82
mov byte [0x010c7254], 1
jmp 0x1093f82
lea r8, [0x010921c0]
mov edx, 0x104
call fcn.010965b8
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 3]
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x010c6d08], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1093efa
and qword [rsp + 0x30], 0
lea r8d, [rax + 3]
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x010c6d08], rax
jmp 0x1093f01
mov rax, qword [0x010c6d08]
cmp rax, 0xffffffffffffffff
je 0x1093f82
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov r8d, 4
mov rcx, rax
mov byte [rsp + 0x78], 0xff
mov byte [rsp + 0x79], 0xfe
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1093e6d
lea r8, [0x01092140]
mov edx, 0x104
mov rcx, rbp
call fcn.010965b8
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [0x010921b0]
lea r9d, [rax + 1]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
add ecx, 1
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [0x010c7254], 0
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret

Function at 0x10955b8
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x30
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [0x010928f8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x109561b
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, [0x01092920]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x109562c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
and dword [rax + 0x10], 0
mov rdi, rcx
lea r8, [rax - 0x18]
lea rdx, [0x010928f8]
mov rcx, 0xffffffff80000001
mov dword [rax + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x10956b6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x01092920]
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, eax
jne 0x10956ab
mov eax, dword [rsp + 0x58]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1096070
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x010b9180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.01097220
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x01010000]
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 fcn.01097220
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 0x1096103
cmp dword [rsp + 0x24], 5
jb 0x109611d
jmp 0x1096119
cmp dword [rsp + 0x30], esi
jne 0x109611d
cmp dword [rsp + 0x24], 4
ja 0x1096119
jne 0x109611d
cmp dword [rsp + 0x28], 0
jbe 0x109611d
mov byte [rbx + 0x18], sil
lea rax, [0x01011568]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.01095f20
movzx ecx, byte [0x010c7284]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x010c7284], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.01096590
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10962dc
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x010b9180]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, dword [0x010b9170]
call fcn.01098d70
mov dword [0x010b9170], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rsp + 0xa0], 0x114
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x109633e
mov eax, 0xff
jmp 0x1096519
mov r8d, dword [rsp + 0xac]
and r8d, 0x7fff
mov r9d, dword [rsp + 0xb0]
cmp r9d, 2
je 0x1096360
bts r8d, 0xf
mov edx, dword [rsp + 0xa4]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0xa8]
add ecx, eax
mov dword [0x010bcb9c], r9d
mov dword [0x010bcba4], ecx
mov dword [0x010bcba8], edx
mov dword [0x010bcbac], eax
mov dword [0x010bcba0], r8d
cmp word [0x01010000], 0x5a4d
jne 0x10963f3
movsxd rax, dword [0x0101003c]
lea rdi, [0x01010000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x10963c1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1096400
cmp word [rax + 0x18], 0x20b
je 0x10963d1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1096400
cmp dword [rax + 0x84], 0xe
ja 0x10963e2
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1096400
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x1096400
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdi, [0x01010000]
mov ecx, 1
call fcn.01098ca4
test eax, eax
jne 0x1096430
cmp dword [0x010bcb88], 1
jne 0x109641c
call fcn.01097ea4
mov ecx, 0x1c
call fcn.01097ca4
mov ecx, 0xff
call fcn.010978f4
call fcn.01098c1c
test eax, eax
jne 0x109645c
cmp dword [0x010bcb88], 1
jne 0x1096447
call fcn.01097ea4
mov ecx, 0x10
call fcn.01097ca4
mov ecx, 0xff
call fcn.010978f4
nop
call fcn.010985c8
test eax, eax
jns 0x109646f
mov ecx, 0x1b
call fcn.01097880
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x010c84f0], rax
call fcn.01098528
mov qword [0x010bcb80], rax
call fcn.01098428
test eax, eax
jns 0x109649a
mov ecx, 8
call fcn.01097880
call fcn.01098120
test eax, eax
jns 0x10964ad
mov ecx, 9
call fcn.01097880
mov ecx, 1
call fcn.01097a08
test eax, eax
je 0x10964c2
mov ecx, eax
call fcn.01097880
call fcn.010980c8
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.01092be4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x10964f9
mov ecx, eax
call fcn.01097bf4
call fcn.01097c18
jmp 0x1096517
mov eax, edi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.01096590
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
sub rsp, 0x28
call fcn.01098dbc
add rsp, 0x28
jmp 0x10962dc
Function at 0x10975f8
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x010b9180]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x10976fe
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x1097686
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x10976fe
mov eax, edx
not eax
and ecx, eax
je 0x10976a1
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x10976fe
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x10976fe
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x10976fe
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10976fe
mov eax, 1
jmp 0x1097700
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.01096590
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret

Function at 0x1097acc
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.0109c460
nop
cmp dword [0x010bcbfc], 1
je 0x1097b7f
mov dword [0x010bcbf8], 1
mov byte [0x010bcbb4], dil
test ebx, ebx
jne 0x1097b6b
mov rcx, qword [0x010c84d0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010c84c8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1097b58
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1097b58
mov rcx, qword [rbx]
test rcx, rcx
je 0x1097b56
call rcx
jmp 0x1097b3e
lea rdx, [0x010114c0]
lea rcx, [0x010114a8]
call fcn.01097930
lea rdx, [0x010114d0]
lea rcx, [0x010114c8]
call fcn.01097930
nop
test edi, edi
je 0x1097b8d
mov ecx, 8
call fcn.0109c32c
test edi, edi
jne 0x1097bb5
mov dword [0x010bcbfc], 1
lea ecx, [rdi + 8]
call fcn.0109c32c
mov ecx, r12d
call fcn.010978b4
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1097acc