joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d790
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
test rdx, rdx
mov r10, rdx
jne 0x1000d7a3
lea eax, [rdx + 1]
ret
test r8d, r8d
je 0x1000d8e0
nop
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x1000d89c
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
nop
nop
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x1000d7e0
test edx, edx
je 0x1000d8b1
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x1000d8a0
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
test r8d, r8d
jne 0x1000d7b0
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x10011f20
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x1001bbf0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x1001bce8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10011fa1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x1001bce8]
jmp 0x10011fbd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x1001bce8], r11
mov qword [0x1001bc88], rax
mov rax, qword [0x1001b2a8]
mov qword [0x1001bb60], r11
mov qword [0x1001bc70], rdi
mov dword [0x1001bb50], 0xc0000409
mov dword [0x1001bb54], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x1001b2a0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10015040]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x1001b2a8]
jne 0x10012109
rol rcx, 0x10
test cx, 0xffff
jne 0x10012105
ret
ror rcx, 0x10
jmp 0x10011f20
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, 0xb816fe00
mov bh, 0xe3
int 0x36
sal byte gs:[rsi + 0x30], 0xeb
invalid
Function at 0x140001890
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400018c0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400018e8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400018ea
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001943
test ecx, ecx
jle 0x14000191e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001943
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001943
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jne 0x14000c422
xor al, 0x6f
jae 0x14000c42b
push rsp
jo 0x14000c411
invalid
xor eax, 0x505a6c44
push r8

Function at 0x140001970
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400019a0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov rdx, qword [rax]
test rdx, rdx
je 0x1400019c8
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400019ca
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001a30
test ecx, ecx
jle 0x1400019fe
cmp rbx, rbp
mov rcx, r14
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001a30
cmp qword [rdi + 0x80], 0
je 0x140001a30
mov rcx, rdi
call fcn.140002540
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
invalid
Function at 0x140059700
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
lea rdx, [0x1404556ac]
lea rcx, [0x140444054]
movdqa xmmword [rbp + 7], xmm0
call fcn.1400f43c0
and qword [rbp + 0x1f], 0
lea rcx, [rbp - 0x39]
and qword [rbp + 0x47], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x27], xmm0
xor eax, eax
movdqa xmmword [rbp + 0x37], xmm1
mov qword [rbp - 0x39], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14005979f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005978a
lea rdx, [0x14045ae50]
lea rcx, [0x14042ebbc]
call fcn.1400f470c
mov ebx, 0x80004005
jmp 0x140059798
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1400598af
lea rax, [0x14000ea9c]
mov qword [rbp - 0x31], 3
mov qword [rbp - 0x29], rax
lea rdx, [0x140452048]
lea rax, [rbp + 0x77]
lea rcx, [0x1404388e4]
mov qword [rbp - 0x21], rax
call fcn.1400f3670
lea rax, [rbp + 7]
lea rdx, [0x140455e88]
mov qword [rbp - 0x19], rax
lea rcx, [0x14043276c]
call fcn.1400f406c
lea rdx, [0x140458974]
mov qword [rbp - 0x11], rbx
lea rcx, [0x140434abc]
call fcn.1400f50f4
xor r9d, r9d
lea rdx, [rbp - 0x31]
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x77]
test ebx, ebx
jns 0x140059833
lea rdx, [0x14045c138]
lea rcx, [0x14042e04c]
call fcn.1400f43c0
jmp 0x140059798
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.14007ab14
lea rdx, [0x1404596c8]
mov ebx, eax
lea rcx, [0x14042c02c]
call fcn.1400f39c8
test ebx, ebx
js 0x140059798
lea rdx, [0x14045b688]
lea rcx, [0x14042eca4]
call fcn.1400f4a64
mov rcx, qword [rbp + 0x3f]
lea rdx, [rdi + 8]
call fcn.14007ab14
mov ebx, eax
test eax, eax
jns 0x14005989a
lea rdx, [0x14045b550]
lea rcx, [0x140437090]
call fcn.1400f3d14
jmp 0x140059798
mov rcx, qword [rbp + 0x47]
lea rdx, [rdi + 0x10]
call fcn.14007ab14
mov ebx, eax
test eax, eax
jns 0x1400598b4
mov ecx, eax
call fcn.14007ac40
cmp dword [0x140451890], 5
jbe 0x140059935
lea rdx, [0x14045b6a8]
lea rcx, [0x14042ecac]
call fcn.1400f4dac
movabs rdx, 0x400000000000
test qword [0x1404518a0], rdx
je 0x140059935
mov rax, qword [0x1404518a8]
and rax, rdx
cmp rax, qword [0x1404518a8]
jne 0x140059935
mov rcx, qword [rbp - 0x39]
call fcn.140079a88
mov qword [rbp - 9], rax
lea rdx, [0x14044533d]
lea rax, [rbp - 9]
mov dword [rbp + 0x7f], ebx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov qword [rbp - 1], 0x1000000
call fcn.1400014e0
mov ecx, ebx
call fcn.14007ace8
lea rdx, [0x140454fd4]
lea rcx, [0x140431b84]
call fcn.1400f3318
and qword [rbp - 0x21], 0
lea rax, [0x14000c39c]
xor r9d, r9d
mov qword [rbp - 0x29], rax
lea rax, [rbp + 7]
mov qword [rbp - 0x31], 3
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x19], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005b24c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
and dword [rbp - 0x30], 0
lea rcx, [rbp + 0x38]
and dword [rbp - 0x2c], 0
xor eax, eax
and qword [rbp - 0x28], 0
mov rdi, rdx
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14005b2fb
lea rdx, [0x14045992c]
lea rcx, [0x14043ee60]
call fcn.1400f3318
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14005b2a8
mov ebx, 0x80004005
jmp 0x14005b2dc
lea rdx, [0x1404589c8]
lea rcx, [0x14043e190]
call fcn.1400f39c8
lea rdx, [0x140456cd0]
lea rcx, [0x140433118]
call fcn.1400f4dac
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov ecx, ebx
call fcn.14007ac40
lea rdx, [0x140453438]
lea rcx, [0x14043c7f0]
call fcn.1400f3d14
jmp 0x14005b3d0
test rdi, rdi
jne 0x14005b30c
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x14005b3cb
lea rax, [0x14000cd5c]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x30]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x20]
test ebx, ebx
js 0x14005b305
cmp dword [rbp - 0x2c], 0
jg 0x14005b385
lea rdx, [0x14045a3b0]
lea rcx, [0x140436150]
call fcn.1400f43c0
mov ebx, 0x8000ffff
mov ecx, ebx
call fcn.14007ac40
lea rdx, [0x140453680]
lea rcx, [0x140430378]
call fcn.1400f50f4
jmp 0x14005b3d0
mov rax, qword [rbp - 0x28]
lea rdx, [0x1404557e8]
lea rcx, [0x140444158]
mov rbx, qword [rax]
call fcn.1400f3318
lea rdx, [0x140459ca8]
lea rcx, [0x14043f0f0]
call fcn.1400f4a64
mov r8d, 0x7fffffff
mov rdx, rdi
mov rcx, rbx
call fcn.14006b1f0
mov ebx, eax
test eax, eax
jns 0x14005b3d0
mov ecx, eax
call fcn.14007ac40
cmp dword [0x140451890], 5
jbe 0x14005b468
lea rdx, [0x1404552e8]
lea rcx, [0x140431e00]
call fcn.1400f3670
movabs rdx, 0x400000000000
test qword [0x1404518a0], rdx
je 0x14005b468
mov rax, qword [0x1404518a8]
and rax, rdx
cmp rax, qword [0x1404518a8]
jne 0x14005b468
mov rcx, qword [rbp + 0x38]
call fcn.140079a88
lea rdx, [0x140455cc0]
mov qword [rbp - 0x40], rax
lea rcx, [0x14043bae0]
call fcn.1400f470c
lea rax, [rbp - 0x40]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x30], rax
lea rdx, [0x1404451a3]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x38], 0x1000000
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400014e0
mov ecx, ebx
call fcn.14007ace8
lea rdx, [0x14045acf8]
lea rcx, [0x14043ffe0]
call fcn.1400f406c
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.14007a644
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14005b4aa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
Function at 0x14006a40c
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
xor r14d, r14d
mov rdi, r8
mov rsi, rcx
mov ebx, r14d
mov dword [rcx], r14d
cmp qword [rcx + 0x18], r14
jne 0x14006a443
mov edi, 0xc004f07a
mov ecx, edi
call fcn.14007ac40
jmp 0x14006a50b
xor ecx, ecx
call fcn.14007ace8
xor ecx, ecx
call fcn.14007ace8
mov eax, 0x40
mov edx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x14006a46d
mov rbx, r14
jmp 0x14006a472
test rbx, rbx
jne 0x14006a479
mov edi, 0x8007000e
jmp 0x14006a437
movups xmm0, xmmword [rdi]
mov dword [rbp + 0x30], 0x10000
mov edx, 4
movups xmm1, xmmword [rdi + 0x10]
mov dword [rax], edx
lea rcx, [rbp + 0x30]
mov qword [rax + 8], rcx
xor r9d, r9d
movups xmmword [rax + 0x10], xmm0
lea r8d, [rdx + 0x38]
movups xmm0, xmmword [rdi + 0x20]
lea rcx, [0x140010e5c]
movups xmmword [rax + 0x20], xmm1
movups xmmword [rax + 0x30], xmm0
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rbp - 0x38], rcx
lea rcx, [rbp + 0x48]
mov qword [rbp - 0x14], rax
lea rax, [rsi + 4]
mov dword [rbp - 0x20], edx
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x30], rcx
lea ecx, [r8 + 0x7d]
mov qword [rbp - 0xc], rax
mov dword [rbp + 0x38], SafeArrayGetElement
mov qword [rbp - 0x1c], rbx
mov qword [rbp - 0x40], 3
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x48]
test edi, edi
js 0x14006a437
mov ecx, dword [rbp + 0x38]
mov dword [rsi], ecx
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x14006a520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14006b690
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x20], 3
lea rcx, [0x14043a194]
lea rdx, [0x1404542bc]
call fcn.1400f50f4
lea rax, [0x1400114dc]
lea rdx, [0x140453b08]
mov qword [rsp + 0x28], rax
lea rcx, [0x140439ab8]
call fcn.1400f3d14
and qword [rsp + 0x30], 0
lea rdx, [0x1404586a0]
lea rcx, [0x14042b034]
call fcn.1400f43c0
lea rdx, [0x140459a68]
mov qword [rsp + 0x38], rdi
lea rcx, [0x14042c418]
call fcn.1400f3670
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea rdx, [0x140458fc4]
lea rcx, [0x14044120c]
call fcn.1400f39c8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea rdx, [0x140452a98]
mov rbx, rax
lea rcx, [0x14042fcfc]
call fcn.1400f406c
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [0x140457ef0]
lea rcx, [0x14042a81c]
call fcn.1400f470c
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x14006b784
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0x20]
mov rdi, rcx
test rsi, rsi
je 0x14006b7bf
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
and qword [rdi + 0x20], 0
mov rsi, qword [rdi + 0x18]
test rsi, rsi
je 0x14006b7e8
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
and qword [rdi + 0x18], 0
and qword [rsp + 0x30], 0
lea rax, [0x14000c6dc]
xor r9d, r9d
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov qword [rsp + 0x38], rdi
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14006ef80
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rbp, r9
mov rsi, rdx
mov rdi, rcx
cmp rcx, 0xffffffff80000001
jne 0x14006efb3
xor ecx, ecx
call fcn.14007ace8
and qword [rsp + 0x50], rbx
lea rax, [rsp + 0x50]
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x80070000
test eax, eax
jne 0x14006efef
mov rbx, qword [rsp + 0x50]
and qword [rsp + 0x50], 0
xor edi, edi
jmp 0x14006f000
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14007ac40
mov ecx, edi
call fcn.14007ace8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006f01d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
test edi, edi
js 0x14006f066
xor ecx, ecx
call fcn.14007ace8
mov eax, dword [rsp + 0x60]
lea rdx, str.ReferralId
xor ecx, ecx
mov dword [rsp + 0x28], eax
test rbx, rbx
mov qword [rsp + 0x20], rbp
mov r9d, 1
cmovne rcx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14006f05c
xor edi, edi
jmp 0x14006f06d
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14007ac40
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x14006f082
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400866c4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rbp + 0x37], rax
lea rax, [0x14001251c]
mov qword [rbp - 0x11], rcx
mov qword [rbp - 0x21], rax
lea rcx, [0x140439ea8]
lea rax, [rbp - 0x39]
mov qword [rbp - 0x29], 3
mov r15, rdx
mov qword [rbp - 0x19], rax
lea rdx, [0x140453fb0]
mov r14, r9
mov rbx, r8
call fcn.1400f3d14
lea rdx, [0x140454658]
mov qword [rbp - 9], r15
lea rcx, [0x1404312b8]
call fcn.1400f50f4
lea rdx, [0x140458ba8]
mov qword [rbp - 1], rbx
lea rcx, [0x140434c08]
call fcn.1400f4a64
xor r9d, r9d
lea rax, [rbp + 0x27]
lea rdx, [rbp - 0x29]
mov qword [rbp + 7], rax
lea r8d, [r9 + 0x50]
lea ecx, [r8 + 0x69]
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rbp - 0x39]
xor edi, edi
test esi, esi
jns 0x14008678b
mov ecx, esi
call fcn.14007ac40
jmp 0x1400868d5
lea rax, [0x140012b9c]
mov qword [rbp - 0x29], 3
mov qword [rbp - 0x21], rax
lea rdx, [0x140454b18]
lea rax, [rbp - 0x35]
mov qword [rbp - 0x11], r15
lea rcx, [0x14043aa60]
mov qword [rbp - 0x19], rax
call fcn.1400f43c0
lea rax, [rbp + 0x27]
mov qword [rbp - 9], rdi
lea rdx, [0x140456450]
mov qword [rbp + 7], rax
lea rcx, [0x140432b30]
mov qword [rbp - 1], rbx
call fcn.1400f470c
lea rax, [rbp - 0x31]
mov dword [rbp + 0xf], edi
mov r15d, 1
mov qword [rbp + 0x1f], rax
lea rdx, [0x140458048]
mov dword [rbp + 0x13], r15d
lea rcx, [0x14043d964]
mov qword [rbp + 0x17], rdi
call fcn.1400f4a64
lea r8d, [r15 + 0x4f]
xor r9d, r9d
lea rdx, [rbp - 0x29]
lea ecx, [r8 + 0x69]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x35]
cmp ebx, 0xc004d304
je 0x1400868d2
lea rdx, [0x140456a20]
lea rcx, [0x14043c648]
call fcn.1400f4dac
mov esi, ebx
test ebx, ebx
jns 0x140086862
lea rdx, [0x140455468]
lea rcx, [0x140431fa0]
call fcn.1400f3670
mov ecx, ebx
jmp 0x140086781
mov ebx, dword [rbp - 0x31]
mov eax, ebx
and eax, 0xf000
cmp eax, 0xc000
jne 0x1400868bf
and ebx, 0xfff
lea eax, [rbx - 0x401]
cmp eax, 0x95
jbe 0x1400868a7
lea rdx, [0x140456828]
add ebx, 0xfffffb69
lea rcx, [0x140428fcc]
call fcn.1400f3318
cmp ebx, 0x169
ja 0x1400868bf
lea rdx, [0x14045bd00]
mov edi, r15d
lea rcx, [0x140430ea8]
call fcn.1400f39c8
jmp 0x1400868d2
lea rdx, [0x1404599f8]
lea rcx, [0x14042c3f0]
call fcn.1400f406c
mov dword [r14], edi
mov ecx, esi
call fcn.14007ace8
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140388a40
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret