joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140185440
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r12d, r12d
mov qword [rbp - 0x18], rdx
lea rax, [0x14003679c]
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x38]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x20], rax
mov r14d, r9d
lea rax, [rbp - 0x3c]
mov rdi, r8
mov r13, rcx
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea r8d, [r12 + 0x28]
mov ecx, 0xb9
mov ebx, r12d
mov esi, r12d
call sub.ntdll.dll_NtQuerySystemInformation
mov r15d, dword [rbp + 0x38]
test r15d, r15d
jns 0x1401854c3
mov ecx, r15d
jmp 0x140185617
mov ecx, dword [rbp + 0x50]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
call fcn.1401867d8
mov r15d, eax
test eax, eax
js 0x140185615
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x1401854fa
mov r9, rax
mov rbx, rax
test rax, rax
jne 0x140185507
mov ecx, 0x8007000e
mov r15d, ecx
jmp 0x140185617
cmp dword [0x14045de88], 1
mov r8, r12
mov rbx, qword [rbp + 0x58]
cmove r8, qword [0x14045d5b0]
mov rdx, rbx
mov rcx, qword [r13 + 0x18]
call fcn.14016ac7c
mov r15d, eax
test eax, eax
jns 0x14018553f
mov ecx, eax
call fcn.14007ac40
mov rbx, rdi
jmp 0x14018561c
cmp dword [0x14045de88], 1
mov r8, r12
mov rcx, qword [r13 + 0x18]
mov r9d, r14d
cmove r8, qword [0x14045d5b8]
mov rdx, rbx
call fcn.140185a58
mov r15d, eax
test eax, eax
js 0x140185530
cmp dword [0x14045de88], 1
mov r8, r12
mov r9d, dword [rbp + 0x50]
mov rdx, rbx
cmove r8, qword [0x14045d5c0]
mov rcx, qword [r13 + 0x18]
call fcn.140185a58
mov r15d, eax
test eax, eax
js 0x140185530
cmp dword [rbp - 0x40], r12d
je 0x1401855e9
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rax, rax
je 0x1401855b3
mov r9, rax
mov rsi, rax
test rax, rax
jne 0x1401855c0
mov ecx, 0x8007000e
mov r15d, ecx
jmp 0x140185532
cmp dword [0x14045de88], 1
mov r8, r12
mov rcx, qword [r13 + 0x18]
mov rdx, rbx
cmove r8, qword [0x14045d5c8]
call fcn.14016ac7c
mov r15d, eax
test eax, eax
js 0x140185530
cmp dword [0x14045de88], 1
mov r8, r12
mov r9d, dword [rbp - 0x3c]
mov rdx, rbx
cmove r8, qword [0x14045d5d0]
mov rcx, qword [r13 + 0x18]
call fcn.140185a58
mov r15d, eax
mov rbx, rdi
test eax, eax
jns 0x14018561c
mov ecx, eax
call fcn.14007ac40
mov ecx, r15d
call fcn.14007ace8
test rsi, rsi
je 0x140185632
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x140185640
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140185668
lea rbx, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ace8
lea r11, [rsp + 0x60]
mov eax, r15d
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140185fa4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x28], 0
mov rsi, r8
and qword [rbp - 0x20], 0
lea r8, [rbp - 0x60]
and dword [rbp - 0x18], 0
mov rbx, rdx
and dword [rbp - 0x14], 0
mov rdi, rcx
and qword [rbp - 0x10], 0
call fcn.140182718
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
test al, al
je 0x140186020
movsxd rcx, dword [rbp - 0x60]
shl rcx, 5
add rcx, 0x10
add rcx, qword [rdi + 8]
call fcn.1400e8060
mov ebx, eax
test eax, eax
jns 0x1401860c5
mov ecx, eax
jmp 0x1401860c0
movups xmm0, xmmword [rbx]
lea rcx, [rbp - 0x18]
movdqu xmmword [rbp - 0x28], xmm0
call fcn.1400e8060
mov ebx, eax
test eax, eax
js 0x140186019
lea r8, [rbp - 0x60]
mov rcx, rdi
lea rdx, [rbp - 0x28]
call fcn.140182718
test al, al
je 0x140186097
movsxd rax, dword [rbp - 0x60]
lea rcx, [0x140048f5c]
shl rax, 5
lea rdx, [rbp - 0x58]
add rax, qword [rdi + 8]
xor r9d, r9d
mov qword [rbp - 0x50], rcx
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rcx
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x58], 3
call sub.ntdll.dll_NtQuerySystemInformation
xor ebx, ebx
jmp 0x1401860b3
mov edx, dword [rbp - 0x60]
lea r8, [rbp - 0x28]
mov rcx, rdi
call fcn.1401877e0
mov ebx, eax
test eax, eax
jns 0x1401860b3
mov ecx, eax
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x1401860c5
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
xor edx, edx
lea rcx, [rbp - 0x18]
call fcn.1400733a0
mov rdi, qword [rbp - 0x10]
test rdi, rdi
je 0x1401860f4
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
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140388a50
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401875ec
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rsi, rcx
movsxd r15, edx
mov ecx, dword [rcx + 4]
mov r12, r8
test ecx, ecx
jns 0x140187616
mov edi, 0x8000ffff
mov ecx, edi
jmp 0x140187630
lea r8, [rsp + 0x80]
mov edx, 1
call fcn.14007a2f8
mov edi, eax
test eax, eax
jns 0x14018763a
mov ecx, eax
call fcn.14007ac40
jmp 0x1401877b9
mov edi, dword [rsi]
test edi, edi
jns 0x14018764e
mov edi, 0x8000ffff
mov ebx, edi
mov ecx, edi
jmp 0x1401876f3
cmp dword [rsp + 0x80], edi
jg 0x14018765e
xor ebx, ebx
jmp 0x1401876f8
mov r14d, dword [rsp + 0x80]
test edi, edi
jne 0x140187673
mov edi, 0x20
xor ebx, ebx
jmp 0x1401876cd
js 0x1401876af
lea ecx, [rdi + rdi]
xor ebx, ebx
mov eax, ecx
shr eax, 1
cmp eax, edi
je 0x140187690
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ac40
jmp 0x140187693
mov r14d, ecx
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
js 0x1401876b4
test r14d, r14d
jns 0x1401876aa
mov ebx, 0x80070216
jmp 0x1401876b4
mov edi, r14d
jmp 0x1401876bb
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x1401876cd
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
js 0x14018770c
cmp edi, dword [rsp + 0x80]
jl 0x140187666
mov edx, edi
mov rcx, rsi
call fcn.1401833e8
mov ebx, eax
test eax, eax
jns 0x1401876f8
mov ecx, eax
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov edi, ebx
test ebx, ebx
jns 0x140187710
mov ecx, ebx
jmp 0x140187630
mov ecx, ebx
jmp 0x1401876f3
mov eax, dword [rsi + 4]
cmp r15d, eax
jge 0x140187750
mov rdx, qword [rsi + 8]
test rdx, rdx
jne 0x140187726
xor r9d, r9d
jmp 0x140187729
mov r9, rdx
sub eax, r15d
lea rcx, [r15 + r15*8]
lea rdx, [rdx + rcx*8]
cdqe
lea rcx, [rcx + 9]
mov rbx, r15
lea rcx, [r9 + rcx*8]
lea r8, [rax + rax*8]
shl r8, 3
call sub.msvcrt.dll_memmove
jmp 0x140187753
mov rbx, r15
mov rax, qword [rsi + 8]
lea rbx, [rbx + rbx*8]
xor edx, edx
lea rcx, [rax + rbx*8]
lea r8d, [rdx + 0x48]
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 8]
lea rcx, [0x140048c1c]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], 3
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], rcx
lea rax, [rax + rbx*8]
mov ecx, 0xb9
mov qword [rsp + 0x38], rax
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
inc dword [rsi + 4]
xor edi, edi
mov ecx, edi
call fcn.14007ace8
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401877e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rsi, rcx
movsxd r15, edx
mov ecx, dword [rcx + 4]
mov r12, r8
test ecx, ecx
jns 0x14018780a
mov edi, 0x8000ffff
mov ecx, edi
jmp 0x140187824
lea r8, [rsp + 0x80]
mov edx, 1
call fcn.14007a2f8
mov edi, eax
test eax, eax
jns 0x14018782e
mov ecx, eax
call fcn.14007ac40
jmp 0x1401879b4
mov edi, dword [rsi]
test edi, edi
jns 0x140187842
mov edi, 0x8000ffff
mov ebx, edi
mov ecx, edi
jmp 0x1401878e7
cmp dword [rsp + 0x80], edi
jg 0x140187852
xor ebx, ebx
jmp 0x1401878ec
mov r14d, dword [rsp + 0x80]
test edi, edi
jne 0x140187867
mov edi, 0x20
xor ebx, ebx
jmp 0x1401878c1
js 0x1401878a3
lea ecx, [rdi + rdi]
xor ebx, ebx
mov eax, ecx
shr eax, 1
cmp eax, edi
je 0x140187884
mov ebx, 0x80070216
mov ecx, ebx
call fcn.14007ac40
jmp 0x140187887
mov r14d, ecx
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
js 0x1401878a8
test r14d, r14d
jns 0x14018789e
mov ebx, 0x80070216
jmp 0x1401878a8
mov edi, r14d
jmp 0x1401878af
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x1401878c1
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
js 0x140187900
cmp edi, dword [rsp + 0x80]
jl 0x14018785a
mov edx, edi
mov rcx, rsi
call fcn.140183678
mov ebx, eax
test eax, eax
jns 0x1401878ec
mov ecx, eax
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov edi, ebx
test ebx, ebx
jns 0x140187904
mov ecx, ebx
jmp 0x140187824
mov ecx, ebx
jmp 0x1401878e7
mov edx, dword [rsi + 4]
cmp r15d, edx
jge 0x140187943
mov rcx, qword [rsi + 8]
test rcx, rcx
jne 0x14018791a
xor r9d, r9d
jmp 0x14018791d
mov r9, rcx
sub edx, r15d
mov rax, r15
shl rax, 5
mov rbx, r15
movsxd r8, edx
shl r8, 5
lea rdx, [rax + rcx]
lea rcx, [rax + 0x20]
add rcx, r9
call sub.msvcrt.dll_memmove
jmp 0x140187946
mov rbx, r15
mov rcx, qword [rsi + 8]
xorps xmm0, xmm0
shl rbx, 5
add rcx, rbx
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
je 0x140187966
and dword [rcx + 0x14], 0
and qword [rcx + 0x18], 0
mov rax, qword [rsi + 8]
lea rcx, [0x140048f5c]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], 3
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], rcx
add rax, rbx
mov ecx, 0xb9
mov qword [rsp + 0x38], rax
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
inc dword [rsi + 4]
xor edi, edi
mov ecx, edi
call fcn.14007ace8
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140188a78
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r13d, r13d
mov r12, r8
mov r15, rdx
mov rsi, rcx
mov ebx, r13d
test r8, r8
jne 0x140188ab1
mov edi, 0x80070057
mov ecx, edi
call fcn.14007ac40
jmp 0x140188bba
mov ecx, dword [rcx + 8]
lea r8, [rsp + 0x88]
mov edx, 2
mov dword [rsp + 0x88], r13d
call fcn.140078320
mov edi, eax
test eax, eax
jns 0x140188ad8
mov ecx, eax
jmp 0x140188aa7
mov ebp, dword [rsp + 0x88]
test r15, r15
je 0x140188bb3
test ebp, ebp
je 0x140188bb0
mov ebx, dword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x140188b11
mov rbx, r13
jmp 0x140188b1c
mov r14, rax
mov rbx, rax
test rax, rax
jne 0x140188b23
mov edi, 0x8007000e
jmp 0x140188aa5
mov r13d, dword [rsi + 8]
lea rcx, [rsp + 0x20]
xor edx, edx
cmp qword [rsi + 0x10], rdx
jne 0x140188b3f
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x28], edx
jmp 0x140188b49
movups xmm0, xmmword [rsi + 0x10]
movdqu xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rcx]
movq qword [rsp + 0x20], xmm0
psrldq xmm0, 8
movd esi, xmm0
mov dword [rsp + 0x28], esi
test r13d, r13d
je 0x140188bad
mov ebp, edx
movaps xmm1, xmmword [rsp + 0x20]
lea r8, [rsp + 0x80]
movdqa xmm0, xmm1
inc esi
psrldq xmm0, 8
movq rcx, xmm1
movd edx, xmm0
mov dword [rsp + 0x28], esi
call fcn.14018da04
mov cl, byte [rsp + 0x80]
inc ebp
xor cl, byte [rax]
mov byte [r14], cl
inc r14
cmp ebp, r13d
jb 0x140188b66
mov ebp, dword [rsp + 0x88]
xor r13d, r13d
mov qword [r15], rbx
mov dword [r12], ebp
mov rbx, r13
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x140188bda
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140188bf8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r13d, r13d
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov ebx, r13d
test rdx, rdx
je 0x140188d1d
test r8, r8
je 0x140188d1d
cmp dword [rcx + 0x20], r13d
jne 0x140188c49
mov qword [rdx], r13
mov dword [r8], r13d
mov edi, r13d
jmp 0x140188d29
test byte [rcx + 4], 1
je 0x140188c56
xor ecx, ecx
call fcn.14007ace8
mov ebx, dword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140188c7a
mov rbx, r13
jmp 0x140188c82
mov r15, rbx
test rbx, rbx
jne 0x140188c8c
mov edi, 0x8007000e
jmp 0x140188d22
lea rax, [rsp + 0x20]
mov r12d, dword [rdi + 0x20]
cmp qword [rdi + 0x28], r13
jne 0x140188ca7
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x28], r13d
jmp 0x140188cb1
movups xmm0, xmmword [rdi + 0x28]
movdqu xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rax]
movq qword [rsp + 0x20], xmm0
psrldq xmm0, 8
movd ebp, xmm0
mov dword [rsp + 0x28], ebp
test r12d, r12d
je 0x140188d07
movaps xmm1, xmmword [rsp + 0x20]
lea r8, [rsp + 0x68]
movdqa xmm0, xmm1
inc ebp
psrldq xmm0, 8
movq rcx, xmm1
movd edx, xmm0
mov dword [rsp + 0x28], ebp
call fcn.14018da04
mov cl, byte [rsp + 0x68]
inc r13d
xor cl, byte [rax]
mov byte [r15], cl
inc r15
cmp r13d, r12d
jb 0x140188ccc
mov rax, rbx
xor r13d, r13d
mov qword [r14], rax
mov ebx, r13d
mov eax, dword [rdi + 0x20]
mov dword [rsi], eax
jmp 0x140188c41
mov edi, 0x80070057
mov ecx, edi
call fcn.14007ac40
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x140188d49
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1401896ac
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
cmp dword [0x14045d6d0], ebx
jne 0x1401896ef
lea rcx, [0x14045cc30]
call fcn.140070748
mov ebx, eax
test eax, eax
jns 0x1401896d7
mov ecx, eax
call fcn.14007ac40
jmp 0x1401896ef
xor edx, edx
lea rcx, [0x14045cc18]
call fcn.14018b068
mov dword [0x14045d6d0], 1
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x1401896fe
mov ecx, ebx
jmp 0x140189761
mov rbx, qword [0x14045d6c8]
test rbx, rbx
je 0x140189754
and qword [rsp + 0x30], 0
lea rax, [0x1400454dc]
xor r9d, r9d
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov qword [rsp + 0x38], rbx
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.14018d400
mov ebx, eax
test eax, eax
jns 0x140189766
mov ecx, eax
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14018977c
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [0x14045d6d0], 1
jne 0x140189814
lea rcx, [0x14045cc30]
call fcn.1400705c0
or dword [0x14045d6d0], 0xffffffff
lea rcx, [0x14045cc18]
xor edx, edx
call fcn.14018b068
lea rcx, [0x14045cc30]
call fcn.1400734c0
cmp dword [0x14045cc30], 0
je 0x1401897d9
lea rcx, [0x14045cc38]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x14045cc30], 0
mov rcx, qword [0x14045cc68]
test rcx, rcx
je 0x1401897f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x14045cc68], 0
mov rcx, qword [0x14045cc60]
test rcx, rcx
je 0x14018980d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x14045cc60], 0
and dword [0x14045d6d0], 0
mov rbx, qword [0x14045d6c8]
test rbx, rbx
je 0x14018986a
and qword [rsp + 0x30], 0
lea rax, [0x1400454dc]
xor r9d, r9d
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov qword [rsp + 0x38], rbx
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [0x14045d6c8], 0
add rsp, 0x40
pop rbx
ret
Function at 0x14018cd58
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
movsxd rbp, edx
mov rsi, rcx
mov ebx, r12d
cmp dword [rcx], ebp
je 0x14018ce7a
mov r14d, dword [rcx + 4]
cmp ebp, r14d
cmovl r14d, ebp
test edx, edx
jle 0x14018cdf9
mov rbx, rbp
shl rbx, 5
mov ecx, r12d
call fcn.14007ace8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14018cdc8
mov ebx, r12d
jmp 0x14018cdd3
mov rcx, rdi
mov rbx, rdi
test rdi, rdi
jne 0x14018cde4
mov edi, 0x8007000e
mov ecx, edi
call fcn.14007ac40
jmp 0x14018ce7d
test r14d, r14d
je 0x14018cdf9
mov rdx, qword [rsi + 8]
movsxd r8, r14d
shl r8, 5
call sub.msvcrt.dll_memcpy
cmp ebp, dword [rsi + 4]
jge 0x14018ce49
mov edi, ebp
movsxd rdx, edi
shl rdx, 5
add rdx, qword [rsi + 8]
je 0x14018ce42
xor r9d, r9d
mov qword [rsp + 0x38], rdx
lea rax, [0x14003d95c]
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov qword [rsp + 0x30], r12
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rsi + 4]
jl 0x14018ce00
mov rdi, qword [rsi + 8]
mov r15, rbx
mov rbx, r12
test rdi, rdi
je 0x14018ce70
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], r12
mov qword [rsi + 8], r15
mov dword [rsi + 4], r14d
mov dword [rsi], ebp
mov edi, r12d
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x14018ce9d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14018cec8
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
movsxd rbp, edx
mov rsi, rcx
mov ebx, r12d
cmp dword [rcx], ebp
je 0x14018cfea
mov r14d, dword [rcx + 4]
cmp ebp, r14d
cmovl r14d, ebp
test edx, edx
jle 0x14018cf69
mov rbx, rbp
shl rbx, 4
mov ecx, r12d
call fcn.14007ace8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14018cf38
mov ebx, r12d
jmp 0x14018cf43
mov rcx, rdi
mov rbx, rdi
test rdi, rdi
jne 0x14018cf54
mov edi, 0x8007000e
mov ecx, edi
call fcn.14007ac40
jmp 0x14018cfed
test r14d, r14d
je 0x14018cf69
mov rdx, qword [rsi + 8]
movsxd r8, r14d
shl r8, 4
call sub.msvcrt.dll_memcpy
cmp ebp, dword [rsi + 4]
jge 0x14018cfb9
mov edi, ebp
movsxd rdx, edi
shl rdx, 4
add rdx, qword [rsi + 8]
je 0x14018cfb2
xor r9d, r9d
mov qword [rsp + 0x38], rdx
lea rax, [0x14003b8dc]
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov qword [rsp + 0x30], r12
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rsi + 4]
jl 0x14018cf70
mov rdi, qword [rsi + 8]
mov r15, rbx
mov rbx, r12
test rdi, rdi
je 0x14018cfe0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], r12
mov qword [rsi + 8], r15
mov dword [rsi + 4], r14d
mov dword [rsi], ebp
mov edi, r12d
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x14018d00d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14018d25c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
movsxd rbp, edx
mov rsi, rcx
mov ebx, r12d
cmp dword [rcx], ebp
je 0x14018d3b8
mov r14d, dword [rcx + 4]
cmp ebp, r14d
cmovl r14d, ebp
test edx, edx
jle 0x14018d330
lea r15, [rbp*2]
movabs rax, 0xaaaaaaaaaaaaaaab
add r15, rbp
mov edi, r12d
shl r15, 3
mul r15
shr rdx, 4
cmp rdx, rbp
je 0x14018d2d2
mov edi, 0x80070216
mov ecx, edi
call fcn.14007ac40
mov r15, qword [rsp + 0x70]
mov ecx, edi
call fcn.14007ace8
test edi, edi
jns 0x14018d2e9
mov ecx, edi
call fcn.14007ac40
jmp 0x14018d3bb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14018d310
mov rcx, rax
mov rbx, rax
test rax, rax
jne 0x14018d317
mov edi, 0x8007000e
jmp 0x14018d2dd
test r14d, r14d
je 0x14018d330
mov rdx, qword [rsi + 8]
movsxd rax, r14d
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memcpy
cmp ebp, dword [rsi + 4]
jge 0x14018d387
mov edi, ebp
mov rdx, qword [rsi + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rax, [rdx + rcx*8]
test rax, rax
je 0x14018d380
xor r9d, r9d
mov qword [rsp + 0x20], 3
lea rcx, [0x1400488dc]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
mov qword [rsp + 0x38], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rsi + 4]
jl 0x14018d337
mov rdi, qword [rsi + 8]
mov r15, rbx
mov rbx, r12
test rdi, rdi
je 0x14018d3ae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], r12
mov qword [rsi + 8], r15
mov dword [rsi + 4], r14d
mov dword [rsi], ebp
mov edi, r12d
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x14018d3db
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14018e760
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x20], 0x114
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14018e7b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14018e7dc
cmp dword [rsp + 0x24], 5
jb 0x14018e7cc
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x14018e79b
xor eax, eax
jmp 0x14018e7dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14018e7c8
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140388a50
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret