joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063840
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov ecx, 0x30
call fcn.14007e700
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [0x14011c220]
movdqu xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [str.SystemCurrentControlSetServices_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140114790]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1401147a0]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], 0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400638b0
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000ea50
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400639e1
mov byte [rsp + 0x90], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400639e1
mov byte [rsp + 0x98], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400639e1
mov byte [rsp + 0x30], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400639e1
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400639a7
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400639e1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x1400639e3
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140063a23
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063a1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063a1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ea54
movzx eax, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14006b570
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14006b5a8
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140069e10
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14006b6e6
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14006b660
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14006b6d5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14006b69d
mov r10, qword [rdx]
cmp r10, rax
je 0x14006b697
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14006b6d5
cmp r9, rdx
je 0x14006b6b1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14006b6fb
cmp r9, rdx
jne 0x14006b6a2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14006b610
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14006b6d5
Function at 0x14007f30c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007f356
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007f356
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007f356
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007f356
cmp dword [rcx + 0x84], 0xe
jbe 0x14007f356
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007f358
xor al, al
add rsp, 0x28
ret
Function at 0x140091390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.140080020
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1400913e6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14009143d
mov ebp, 0x4b0000
jmp 0x14009144b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.140082600
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140091461
mov eax, r12d
jmp 0x14009146a
mov edx, edi
mov ecx, ebp
call fcn.140082600
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140091486
shl esi, 0x10
mov ecx, esi
jmp 0x140091575
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1400914e4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.140080020
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1400914d4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400824d0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.140080020
add ebx, eax
jmp 0x14009157e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1400914f1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140091530
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.140080020
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140091535
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400824d0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.140080020
add ebx, eax
jmp 0x14009157e
cmp eax, r12d
jge 0x14009156e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.140080020
sub ebp, eax
sub r15d, esi
je 0x14009156e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400824d0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.140080020
add ebx, eax
jmp 0x14009157e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.140080020
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.140080020
Function at 0x1400dd5b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140133040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400dd74c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400dd74c
cmp r10d, r14d
jne 0x1400dd650
sub rbx, 0x10
jmp 0x1400dd794
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400dd6c2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400dd684
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400dd68c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400dd6ab
movzx edx, r11b
mov rcx, rsi
call fcn.1400de760
test al, al
jne 0x1400dd7a5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400dedd0
test al, al
jne 0x1400dd7a5
mov edx, dword [rsi + 0x64]
lea r9, [0x1400df130]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400dd6ee
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400dd430
jmp 0x1400dd742
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400dd430
test dil, dil
je 0x1400dd73a
cmp byte [rsi + 0x6a], 0
jne 0x1400dd73a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400dd7a5
sub rbx, 0x10
jmp 0x1400dd794
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400dd7a9
mov ebp, dword [rbx]
jmp 0x1400dd610
mov al, 1
jmp 0x1400dd7b2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400e9f20
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400e3b00
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400e3b1c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e3b70
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e3c95
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400e3c95
test rax, rax
je 0x1400e3c95
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400e3c95
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400e3c0a
lea rax, [0x1400e3cf0]
jmp 0x1400e3c63
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400e3c95
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e3c83
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400e3c30
lea rax, [0x1400e3cc0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400e3caa
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400e5280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400e528b
xor eax, eax
ret
lea r11, [0x14010a4c0]
not ecx
cmp r8d, 8
jb 0x1400e5361
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400e52b0
test r8d, r8d
je 0x1400e538d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400e5370
not ecx
mov eax, ecx
ret
Function at 0x1400e8fac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400e8fe6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400e8feb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e9034
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14010ac10]
cmp byte [rcx + rax], 0
je 0x1400e9034
dec r8
sub rdx, 1
jne 0x1400e901a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400e97f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400e90c4
mov ebx, eax
test eax, eax
jne 0x1400e9828
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400e988b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e9882
test al, 0x10
je 0x1400e9882
bt eax, 0xa
jae 0x1400e987b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400e989c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400e9877
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400e9877
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400e9882
and dword [rsp + 0x3c], 0
jmp 0x1400e9887
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ccb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov rsi, r8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000cd6e
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14000cd06
cmp ecx, 7
jne 0x14000cd6e
mov ecx, dword [rsp + 0x30]
inc ecx
mov qword [rsp + 0x78], rbx
call fcn.140105884
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
mov byte [r8 + rax], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete dil
test eax, eax
jne 0x14000cd5b
mov rdx, rbx
mov rcx, rsi
call fcn.14000d020
mov rcx, rbx
call fcn.140105840
mov rbx, qword [rsp + 0x78]
movzx eax, dil
jmp 0x14000cd70
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140105820
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000cd90
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov qword [rcx], rdx
mov qword [r11 - 0x20], rsi
lea rdi, [rcx + 0x10]
mov qword [r11 - 0x28], rsi
mov rbx, rcx
mov qword [r11 - 0x30], rsi
mov rax, rdx
mov qword [r11 - 0x38], rdi
xor r9d, r9d
mov qword [rcx + 8], rsi
xor r8d, r8d
lea rcx, [r11 - 0x18]
mov dword [rdi], esi
mov qword [r11 - 0x40], rcx
xor edx, edx
mov qword [r11 - 0x48], rsi
mov rcx, rax
mov qword [r11 - 0x50], rsi
mov qword [r11 - 0x58], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [rdi]
inc ecx
mov dword [rdi], ecx
test eax, eax
je 0x14000ce14
mov rcx, qword [rbx + 8]
mov dword [rdi], esi
call fcn.140105840
mov qword [rbx + 8], rsi
jmp 0x14000ce1d
call fcn.140105884
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140105820
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000efa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rdx
mov r14, rcx
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdi + rdx], bpl
jne 0x14000efd3
mov r8, rdx
lea rcx, [rsp + 0x28]
call fcn.14000ddd0
mov rbx, qword [rsp + 0x28]
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rbx + 0x10]
call fcn.1401093a0
nop
mov r8, qword [rbx]
lea rdx, [rbx + 0x10]
lea rcx, [r14 + 0x38]
call fcn.14000de50
mov rdx, qword [r14 + 0x38]
add rdx, 0x10
mov qword [rsp + 0x20], rbp
lea r8, [0x14015b0e0]
lea rcx, [rsp + 0x20]
call fcn.140115e04
test eax, eax
jne 0x14000f1b8
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14000f1b8
mov rcx, r14
call fcn.14000e810
mov qword [r14 + 8], 0xffffffffffffffff
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call fcn.14010f11c
mov rcx, rsi
call fcn.14010e97c
movsxd rbp, eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14010f11c
test ebp, ebp
jg 0x14000f0cb
cmp byte [r14 + 0x50], 0
jne 0x14000f0bb
mov byte [r14 + 0x50], 1
mov dword [r14 + 0x54], ntohl
mov rdx, qword [str.Error_document_empty.]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x14000f0a0
lea rcx, [r14 + 0x58]
call fcn.14000de50
mov qword [r14 + 0x64], 0xffffffffffffffff
xor dil, dil
mov rcx, rsi
call fcn.14010ed7c
jmp 0x14000f1fe
lea rcx, [rbp + 1]
call fcn.140105884
mov rdi, rax
mov byte [rax], 0
mov r9, rsi
mov r8d, 1
mov rdx, rbp
mov rcx, rax
call fcn.14011a7a4
mov rcx, rdi
cmp rax, 1
je 0x14000f14b
call fcn.140105840
cmp byte [r14 + 0x50], 0
jne 0x14000f0bb
mov byte [r14 + 0x50], 1
mov dword [r14 + 0x54], 2
mov rdx, qword [str.Failed_to_open_file]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x14000f120
lea rcx, [r14 + 0x58]
call fcn.14000de50
mov qword [r14 + 0x64], 0xffffffffffffffff
xor dil, dil
mov rcx, rsi
call fcn.14010ed7c
jmp 0x14000f1fe
mov rax, rdi
mov byte [rbp + rdi], 0
movzx edx, byte [rdi]
test dl, dl
je 0x14000f185
nop word [rax + rax]
lea r8, [rcx + 1]
inc rax
cmp dl, 0xd
jne 0x14000f179
mov byte [rcx], 0xa
cmp byte [rax], 0xa
jne 0x14000f17b
inc rax
jmp 0x14000f17b
mov byte [rcx], dl
movzx edx, byte [rax]
mov rcx, r8
test dl, dl
jne 0x14000f160
mov byte [rcx], 0
mov rax, qword [r14]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [rax + select]
mov rcx, rdi
call fcn.140105840
cmp byte [r14 + 0x50], 0
sete dil
mov rcx, rsi
call fcn.14010ed7c
jmp 0x14000f1fe
cmp byte [r14 + 0x50], 0
jne 0x14000f1fb
mov byte [r14 + 0x50], 1
mov dword [r14 + 0x54], 2
mov rdx, qword [str.Failed_to_open_file]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000f1e0
lea rcx, [r14 + 0x58]
call fcn.14000de50
mov qword [r14 + 0x64], 0xffffffffffffffff
xor dil, dil
lea rax, [0x14019e3a0]
cmp rbx, rax
je 0x14000f212
mov rcx, rbx
call fcn.140105840
movzx eax, dil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140105820
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400140b0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400140fe
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0
call fcn.140107820
test ebx, ebx
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
jne 0x140014113
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140105820
add rsp, 0x40
pop rdi
ret
lea rdx, [0x14015c0b8]
lea rcx, [rsp + 0x20]
call fcn.140013ee0
int3
Function at 0x140015cd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x3c], 4
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0
lea rdx, str.SOFTWAREWOW6432NodeASUSArmourySDKMainSDK
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015d55
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.DebugMode
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 1
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140105820
add rsp, 0x58
ret