joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400085f0
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f360
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea rbx, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.1400095b0
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000865c
cmp ax, 0x5c
jne 0x1400086b0
lea rdx, [0x14001d51a]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.14000fee0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400086c8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x14001d516]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000865c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbp
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea r12, [rsp + 0x30]
mov rcx, rbx
mov r8, r12
mov r15, r12
call fcn.140008730
jmp 0x14000870f
mov rdi, r12
mov ecx, 0x46
mov rsi, rbp
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, rbx
mov r12, r15
call fcn.140008730
mov rdx, rbp
mov rcx, r14
call fcn.14000ffc0
test eax, eax
je 0x1400086f0
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140008687

Function at 0x140008730
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.14000f360
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x14001d51e]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140008778
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x14001d522]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008763
xor eax, eax
mov rcx, r13
mov rdx, r12
mov word [r13 + rsi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rbx], 0x10
je 0x1400087d0
call fcn.1400098a0
test eax, eax
jne 0x1400087f8
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.1400093e0
mov rcx, r12
call fcn.1400085f0
jmp 0x140008763
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140008763
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x140008763
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140008763
Function at 0x140008a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000f360
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14001d5bc]
call fcn.1400047e0
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140008920
mov r13, rax
test r12, r12
je 0x140008b5a
test rax, rax
je 0x140008b4d
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140008b48
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140008af0
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008aa0
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140008b1f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008b11
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008aa0
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x140008b1f
test r12, r12
je 0x140008b5a
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x140008b27
jmp 0x140008b2f
Function at 0x140008bd0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000f360
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.1400095b0
mov edx, 1
lea rcx, [0x140008090]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov rbp, qword [fcn.140018ff0]
xor ecx, ecx
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov rcx, r12
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140008d80
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140003130
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008f80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140009080
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.140010380
test eax, eax
js 0x140009080
mov rcx, rdi
call fcn.140010470
movsxd r8, eax
cmp r8, rbx
jb 0x140009080
mov r14d, 1
lea rax, [rbx - 1]
sub r14, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov ebp, 0x2000
cmp r8, rbp
cmovae rbp, r8
lea r13, [rbp - 0x2000]
sub r8, r13
mov r15, r8
cmp rbx, r8
ja 0x140009080
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
call fcn.140010380
test eax, eax
js 0x140009080
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x140009080
mov rdx, qword [rsp + 0x20]
lea r15, [rdx + rax]
jmp 0x140009062
lea r14, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r14]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400090a0
mov r15, r14
test r15, r15
jne 0x140009048
mov rax, qword [rsp + 0x28]
lea r8, [rax + r13]
test r13, r13
jne 0x140008ff2
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [rbp + r15 - 0x2001]
jmp 0x140009083

Function at 0x140009850
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140027380]
test rax, rax
je 0x14000988a
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x48
ret
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.1400030c0
mov eax, 0xffffffff
jmp 0x140009885
Function at 0x14000e0e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140018ff0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140018ff0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000ed12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140028468]
test eax, eax
je 0x14000edaa
lea rax, [0x140028440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140028470]
mov qword [rbp - 8], rax
jmp 0x14000ed8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000ed82
cmp qword [rbp - 0x10], 0
je 0x14000ed82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000ed48
lea rax, [0x140028440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000edab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000eeb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000eed8
mov eax, 0
jmp 0x14000ef26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000ef01
mov eax, 0
jmp 0x14000ef26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000ef21
mov eax, 0
jmp 0x14000ef26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000ef2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000efaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000efa1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000efa1
mov rax, qword [rbp - 8]
jmp 0x14000efbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000ef74
mov eax, 0
add rsp, 0x20
pop rbp
ret
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, [0x140444064]
movdqa xmmword [rbp + 7], xmm0
call fcn.1400f43c8
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.1400f4710
mov ebx, 0x80004005
jmp 0x140059798
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1400598af
lea rax, [0x140036e1c]
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.1400f4080
lea rdx, [0x140458974]
mov qword [rbp - 0x11], rbx
lea rcx, [0x140434abc]
call fcn.1400f50fc
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.1400f43c8
jmp 0x140059798
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.14007ab14
lea rdx, [0x1404596c8]
mov ebx, eax
lea rcx, [0x14042c02c]
call fcn.1400f39cc
test ebx, ebx
js 0x140059798
lea rdx, [0x14045b688]
lea rcx, [0x14042eca4]
call fcn.1400f4a68
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.1400f3d28
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, [0x14044534d]
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, [0x14003471c]
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, [0x14043ee70]
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, [0x14043e1a0]
call fcn.1400f39cc
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, [0x14043c800]
call fcn.1400f3d28
jmp 0x14005b3d0
test rdi, rdi
jne 0x14005b30c
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x14005b3cb
lea rax, [0x1400350dc]
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.1400f43c8
mov ebx, 0x8000ffff
mov ecx, ebx
call fcn.14007ac40
lea rdx, [0x140453680]
lea rcx, [0x140430378]
call fcn.1400f50fc
jmp 0x14005b3d0
mov rax, qword [rbp - 0x28]
lea rdx, [0x1404557e8]
lea rcx, [0x140444168]
mov rbx, qword [rax]
call fcn.1400f3318
lea rdx, [0x140459ca8]
lea rcx, [0x14043f100]
call fcn.1400f4a68
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, [0x14043baf0]
call fcn.1400f4710
lea rax, [rbp - 0x40]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x30], rax
lea rdx, [0x1404451b3]
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, [0x14043fff0]
call fcn.1400f4080
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, [0x1400391dc]
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.1400f50fc
lea rax, [0x140039b9c]
lea rdx, [0x140453b08]
mov qword [rsp + 0x28], rax
lea rcx, [0x140439ab8]
call fcn.1400f3d28
and qword [rsp + 0x30], 0
lea rdx, [0x1404586a0]
lea rcx, [0x14042b034]
call fcn.1400f43c8
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, [0x14044121c]
call fcn.1400f39cc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea rdx, [0x140452a98]
mov rbx, rax
lea rcx, [0x14042fcfc]
call fcn.1400f4080
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [0x140457ef0]
lea rcx, [0x14042a81c]
call fcn.1400f4710
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, [0x140034a5c]
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