joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401c28
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401aec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401b75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ad0
mov rcx, rbx
call fcn.00402740
test rax, rax
mov r12, rax
je 0x401c5d
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402870
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c40
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b6e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401bd0
add dword [0x00407624], 1
cmp edi, 8
jae 0x401ba3
test dil, 4
jne 0x401c14
test edi, edi
je 0x401b98
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401c2f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401b98
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401bbc
jmp 0x401b98
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402c20
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401b98
xor esi, esi
jmp 0x401af7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401b98
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00402c20
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402c20
nop
nop dword [rax]

Function at 0x4023b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402404
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4023fb
test rsi, rsi
je 0x4023fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4023e0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402740
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004043a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4027ad
mov rcx, r8
call fcn.00402620
test eax, eax
je 0x4027ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4027ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4027a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4027af
add rax, 0x28
cmp rax, r9
jne 0x402790
xor eax, eax
add rsp, 0x28
ret

Function at 0x402c20
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402ae0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402ae0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1404d40f0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
push rbp
lea rsi, [0x14035a023]
lea rdi, [rsi - 0x359023]
jmp 0x1404d4124
lea rax, [rdi + 0x4c079c]
push qword [rax]
mov dword [rax], 0x9647416f
push rax
jmp 0x1404d4156
push rdi
jmp 0x1404d74ce
mov rcx, rsi
mov rdx, 0
mov edx, 0x17a0c2
add edx, 2
sub rsp, 0x28
call fcn.1404d72ab
add rsp, 0x28
push rsi
push rdi
mov rdi, rsi
mov rsi, qword [rax + 8]
mov rcx, qword [rax]
rep movsb byte [rdi], byte [rsi]
pop rdi
pop rsi
push qword [rax]
mov eax, 0x4d2350
mov rcx, rsp
mov rdx, rdi
mov rdi, rsi
pop rsi
sub rsi, 2
push rax
jmp fcn.1404d7535
Function at 0x1404d578b
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 0x20], 0xa
mov dword [rbp - 0x1c], 0xc
mov dword [rbp - 0x18], 0xe
mov dword [rbp - 0x2c], 4
mov dword [rbp - 0x28], 6
mov dword [rbp - 0x24], 8
mov eax, dword [rbp + 0x20]
mov eax, dword [rbp + rax*4 - 0x2c]
mov dword [rbp - 0x10], eax
mov eax, dword [rbp + 0x20]
mov eax, dword [rbp + rax*4 - 0x20]
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x60], 0
mov dword [rbp - 0x5c], 0x1000000
mov dword [rbp - 0x58], 0x2000000
mov dword [rbp - 0x54], 0x4000000
mov dword [rbp - 0x50], 0x8000000
mov dword [rbp - 0x4c], 0x10000000
mov dword [rbp - 0x48], 0x20000000
mov dword [rbp - 0x44], 0x40000000
mov dword [rbp - 0x40], 0x80000000
mov dword [rbp - 0x3c], 0x1b000000
mov dword [rbp - 0x38], 0x36000000
mov dword [rbp - 4], 0
jmp 0x1404d58c4
mov eax, dword [rbp - 4]
shl eax, 2
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [rbp - 4]
shl eax, 2
cdqe
lea rcx, [rax + 1]
mov rax, qword [rbp + 0x10]
add rax, rcx
movzx eax, byte [rax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [rbp - 4]
shl eax, 2
cdqe
lea rcx, [rax + 2]
mov rax, qword [rbp + 0x10]
add rax, rcx
movzx eax, byte [rax]
movzx eax, al
shl eax, 8
mov ecx, edx
or ecx, eax
mov eax, dword [rbp - 4]
shl eax, 2
cdqe
lea rdx, [rax + 3]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 4]
cdqe
lea r8, [rax*4]
mov rax, qword [rbp + 0x18]
add rax, r8
or edx, ecx
mov dword [rax], edx
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x10]
jl 0x1404d5836
mov eax, dword [rbp - 0x10]
mov dword [rbp - 8], eax
jmp 0x1404d5988
mov eax, dword [rbp - 8]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 8]
cdq
idiv dword [rbp - 0x10]
mov eax, edx
test eax, eax
jne 0x1404d5928
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1404d415c
mov ecx, eax
call fcn.1404d534f
mov ecx, eax
mov eax, dword [rbp - 8]
cdq
idiv dword [rbp - 0x10]
cdqe
mov eax, dword [rbp + rax*4 - 0x60]
xor eax, ecx
mov dword [rbp - 0xc], eax
jmp 0x1404d5951
cmp dword [rbp - 0x10], 8
sete cl
mov eax, dword [rbp - 8]
cdq
idiv dword [rbp - 0x10]
mov eax, edx
cmp eax, 4
sete al
and eax, ecx
test al, al
je 0x1404d5951
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1404d534f
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 0x10]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov eax, dword [rax]
mov edx, dword [rbp - 8]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x18]
add rdx, rcx
xor eax, dword [rbp - 0xc]
mov dword [rdx], eax
add dword [rbp - 8], 1
mov eax, dword [rbp - 0x14]
add eax, 1
shl eax, 2
cmp dword [rbp - 8], eax
jl 0x1404d58db
nop
nop
sub rsp, 0xffffffffffffff80
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, [0x140444054]
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, [0x140013f1c]
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, [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, [0x14001181c]
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 0x14005aeac
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 r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
xorps xmm1, xmm1
xor ebx, ebx
xorps xmm0, xmm0
mov qword [rsp + 0x60], rbx
movdqu xmmword [rbp - 0x20], xmm0
mov rdi, rcx
xor eax, eax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmmword [rbp - 0x28], xmm1
mov r14, r9
mov r12, r8
movups xmmword [rbp - 0x18], xmm1
mov r13, rdx
mov esi, ebx
mov r15d, ebx
movups xmmword [rbp - 8], xmm1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14005af78
lea rdx, [0x140457420]
lea rcx, [0x140429e70]
call fcn.1400f3318
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005af4b
lea rdx, [0x140456c9c]
lea rcx, [0x1404330f8]
call fcn.1400f39cc
mov ebx, 0x80004005
jmp 0x14005af6c
movzx ebx, ax
lea rdx, [0x140459adc]
or ebx, 0x80070000
lea rcx, [0x14043efa8]
test eax, eax
cmovle ebx, eax
call fcn.1400f3670
mov ecx, ebx
call fcn.14007ac40
jmp 0x14005b08b
test r14, r14
jne 0x14005afa1
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14007ac40
lea rdx, [0x14045bfe4]
lea rcx, [0x1404386fc]
call fcn.1400f3d28
jmp 0x14005b08b
mov rbx, qword [0x14045c980]
test rbx, rbx
jne 0x14005afb4
mov esi, 8
jmp 0x14005afd0
lea rdx, [0x140459f58]
lea rcx, [0x140435e38]
lea rsi, [rbx + 8]
call fcn.1400f4710
test rsi, rsi
je 0x14005afe3
mov edx, 1
mov rcx, rsi
call fcn.140073644
mov r15d, 1
lea rax, [0x14001529c]
mov qword [rbp - 8], rdi
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x78]
lea rax, [rsp + 0x68]
mov qword [rbp], rbx
mov qword [rbp - 0x68], rax
xor r9d, r9d
lea rax, [rbp - 0x28]
mov qword [rbp - 0x78], 3
mov qword [rbp - 0x60], rax
mov ecx, 0xb9
lea rax, [rsp + 0x60]
lea r8d, [r9 + 0x28]
mov qword [rbp - 0x58], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rsp + 0x68]
test ebx, ebx
js 0x14005af6c
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rax, qword [0x1403d25b8]
mov rcx, rdi
call rax
mov rax, rdi
lea r9, [rsp + 0x6c]
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov ebx, eax
test eax, eax
jns 0x14005b071
mov ecx, eax
jmp 0x14005af6e
mov eax, dword [rsp + 0x6c]
lea rdx, [0x1404547d0]
lea rcx, [0x14043a630]
mov dword [r14], eax
call fcn.1400f50fc
mov rcx, qword [rsp + 0x78]
call fcn.140079a88
cmp dword [0x140451890], 5
mov rdi, rax
jbe 0x14005b188
movabs rax, 0x400000000000
test qword [0x1404518a0], rax
je 0x14005b188
mov rcx, qword [0x1404518a8]
and rcx, rax
cmp rcx, qword [0x1404518a8]
jne 0x14005b188
mov eax, dword [r14]
lea rdx, [0x140459030]
lea rcx, [0x140434f9c]
mov dword [rsp + 0x74], eax
mov qword [rbp - 0x50], 0x1000000
mov dword [rsp + 0x70], ebx
call fcn.1400f4dac
lea rdx, [0x140457c18]
mov qword [rbp - 0x48], r13
lea rcx, [0x14043d628]
call fcn.1400f43c8
lea rdx, [0x140458438]
mov qword [rbp - 0x40], rdi
lea rcx, [0x14042a630]
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x80], 1
call fcn.1400f4dac
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea r9, [rbp - 0x80]
lea rax, [rsp + 0x70]
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.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, [0x14043c7f0]
call fcn.1400f3d28
jmp 0x14005b3d0
test rdi, rdi
jne 0x14005b30c
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x14005b3cb
lea rax, [0x1400121dc]
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, [0x140444158]
mov rbx, qword [rax]
call fcn.1400f3318
lea rdx, [0x140459ca8]
lea rcx, [0x14043f0f0]
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, [0x14043bae0]
call fcn.1400f4710
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.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, [0x1400162dc]
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, [0x140016c9c]
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, [0x14044120c]
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, [0x140011b5c]
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