joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017e7ec
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
movsxd rbp, edx
xor ebx, ebx
mov rsi, rcx
cmp dword [rcx], ebp
je 0x14017e950
mov r15d, dword [rcx + 4]
cmp ebp, r15d
cmovl r15d, ebp
test edx, edx
jle 0x14017e8bc
xor edi, edi
test edx, edx
je 0x14017e863
lea r14, [rbp*2]
movabs rax, 0xaaaaaaaaaaaaaaab
add r14, rbp
shl r14, 3
mul r14
shr rdx, 4
cmp rdx, rbp
je 0x14017e866
mov edi, 0x80070216
mov ecx, edi
call fcn.1400790f8
mov r14, qword [rsp + 0x70]
jmp 0x14017e866
xor r14d, r14d
mov ecx, edi
call fcn.140079118
test edi, edi
jns 0x14017e87d
mov ecx, edi
call fcn.1400790f8
jmp 0x14017e952
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14017e8a0
mov edi, 0x8007000e
jmp 0x14017e871
test r15d, r15d
je 0x14017e8bc
mov rdx, qword [rsi + 8]
mov rcx, rbx
movsxd rax, r15d
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memcpy
mov r12, rbx
cmp ebp, dword [rsi + 4]
jge 0x14017e91b
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 0x14017e914
and qword [rsp + 0x30], 0
lea rcx, [0x14001f8f8]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
add rax, 8
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rsi + 4]
jl 0x14017e8c6
mov rdi, qword [rsi + 8]
mov r14, rbx
xor ebx, ebx
test rdi, rdi
je 0x14017e93d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test r14, r14
cmovne rax, r12
mov qword [rsi + 8], rax
mov dword [rsi + 4], r15d
mov dword [rsi], ebp
xor edi, edi
mov ecx, edi
call fcn.140079118
test rbx, rbx
je 0x14017e972
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 0x14017fde0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140425b28]
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 0x14017fe32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14017fe5c
cmp dword [rsp + 0x24], 5
jb 0x14017fe4c
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x14017fe1b
xor eax, eax
jmp 0x14017fe5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14017fe48
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140368700
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x14018404c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
movaps xmm0, xmmword [r9]
movaps xmm1, xmmword [rdx]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm1
test rax, rax
jne 0x140184089
mov ebx, 0x80070057
mov ecx, ebx
call fcn.1400790f8
call fcn.140079118
jmp 0x1401840de
mov qword [rbp - 0x28], rcx
lea rdx, [0x14001d878]
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x1c], rcx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x14], r8d
xor r9d, r9d
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x30], rdx
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], 3
mov dword [rbp - 0x20], 0x80
lea r8d, [r9 + 0x40]
mov qword [rbp - 8], rax
lea ecx, [r8 + 0x79]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
movaps xmm0, xmmword [r9]
movaps xmm1, xmmword [rdx]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm1
test rax, rax
jne 0x140184135
mov ebx, 0x80070057
mov ecx, ebx
call fcn.1400790f8
call fcn.140079118
jmp 0x14018418a
mov qword [rbp - 0x28], rcx
lea rdx, [0x14001d878]
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x1c], rcx
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x50]
mov edx, 0x40
mov dword [rbp - 0x14], r8d
mov r8d, edx
mov dword [rbp - 0x20], edx
mov qword [rbp - 0x10], rcx
lea rdx, [rbp - 0x40]
xor r9d, r9d
mov qword [rbp - 0x40], 3
mov qword [rbp - 8], rax
lea ecx, [r8 + 0x79]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x1401885f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
cmp qword [r8], 0
mov esi, r9d
mov r14, r8
mov r15b, dl
mov rdi, rcx
je 0x140188761
test r9d, r9d
je 0x140188761
mov rbx, qword [rcx + 0x10]
test rbx, rbx
jne 0x1401886b9
cmp dword [rcx + 8], 2
jne 0x1401886dd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14018869d
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call sub.msvcrt.dll_memset
and qword [rbx + 0x90], 0
xor eax, eax
and qword [rbx + 0x98], 0
mov qword [rbx + 0xb0], rax
and qword [rbx + 0xb8], rax
and dword [rbx + 0x58], eax
and dword [rbx + 0x38], eax
mov qword [rbx], rdi
mov dword [rbx + 8], 1
jmp 0x14018869f
xor ebx, ebx
mov qword [rdi + 0x10], rbx
test rbx, rbx
jne 0x1401886b9
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.1400790f8
jmp 0x140188771
mov rcx, rbx
call fcn.14019532c
mov ebx, eax
test eax, eax
jns 0x1401886ce
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
test ebx, ebx
js 0x140188766
mov ecx, dword [rdi + 4]
sub ecx, 1
je 0x14018870d
cmp ecx, 1
je 0x1401886f1
mov ebx, 0xc004d203
jmp 0x140188766
movaps xmm0, xmmword [r14]
lea rdx, [rbp - 0x20]
mov r8d, esi
movdqa xmmword [rbp - 0x20], xmm0
mov rcx, rdi
call fcn.14019124c
mov ebx, eax
jmp 0x140188758
movaps xmm0, xmmword [r14]
lea rax, [0x140038bf8]
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x58]
xor r9d, r9d
movdqa xmmword [rbp - 0x10], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x58], 3
mov qword [rbp - 0x48], rax
mov ecx, 0xb9
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rdi
lea r8d, [r9 + 0x2c]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x60]
test ebx, ebx
js 0x140188766
mov byte [rdi], 1
jmp 0x14018876d
mov ebx, 0x80070057
mov ecx, ebx
call fcn.1400790f8
test ebx, ebx
jns 0x140188774
mov byte [rdi], 0
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018879c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [rbp + 0x77]
mov r10d, r9d
movaps xmm1, xmmword [r8]
mov r9, rcx
mov rcx, qword [rcx + 0x10]
movaps xmm0, xmmword [rax]
test rcx, rcx
je 0x140188834
mov rax, qword [rbp + 0x7f]
test dl, dl
je 0x140188800
lea r9, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, r10d
movdqa xmmword [rbp - 9], xmm1
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.140195434
mov ebx, eax
test eax, eax
jns 0x1401888a6
mov ecx, eax
jmp 0x1401888a1
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp - 0x19], xmm1
test rax, rax
jne 0x140188819
mov ebx, 0x80070057
jmp 0x14018889f
lea r9, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r8d, r10d
lea rdx, [rbp - 0x19]
call fcn.140195b3c
mov ebx, eax
test eax, eax
jmp 0x14018889d
lea rax, [0x140034138]
mov qword [rbp + 0x1f], r9
mov qword [rbp + 0xf], rax
xor r9d, r9d
lea rax, [rbp + 0x57]
movdqa xmmword [rbp - 0x19], xmm0
mov qword [rbp + 0x17], rax
movzx eax, dl
lea rdx, [rbp + 7]
inc eax
movdqa xmmword [rbp - 9], xmm1
shl eax, 6
lea r8d, [r9 + 0x40]
mov dword [rbp + 0x27], eax
lea ecx, [r8 + 0x79]
lea rax, [rbp - 9]
mov qword [rbp + 7], 3
mov qword [rbp + 0x2b], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x37], rax
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x33], r10d
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x57]
test ebx, ebx
jns 0x1401888a6
mov ecx, ebx
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x14018a048
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.140189ff8
test eax, eax
js 0x14018a0d6
movzx eax, word [rdi + 6]
mov word [rbx], ax
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 0x18]
mov r9d, esi
mov r8, rdi
xor edx, edx
call fcn.14018a384
test eax, eax
js 0x14018a0d6
mov qword [rsp + 0x20], 3
lea rax, [0x140022338]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
xor r9d, r9d
lea r8d, [r9 + 0x28]
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, dword [rsp + 0x78]
jmp 0x14018a0d6
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1401ae8f0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
and qword [rax + 8], 0
mov rbp, rcx
mov rax, qword gs:[0x58]
mov r15, r9
mov ecx, 4
mov r12, r8
mov r14, rdx
mov r10, qword [rax]
mov eax, dword [rcx + r10]
cmp dword [0x1404300f8], eax
jg 0x1401aea3d
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140430330], 1
cmove rdi, qword [0x14042f820]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401ae9d6
mov rax, qword [rsp + 0x90]
lea r9, [0x140430100]
and qword [rsp + 0x30], 0
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x20], 1
call fcn.1401affe8
mov ebx, eax
test eax, eax
js 0x1401ae9d6
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403af620]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401ae9dd
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rsp + 0x50], 0
lea rax, [0x140011f38]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], 3
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x1404300f8]
call fcn.140368b2c
cmp dword [0x1404300f8], 0xffffffff
jne 0x1401ae939
and qword [0x140430108], 0
lea rax, str.metaInfoType
and dword [0x140430110], 0
lea rcx, [0x1404300f8]
or dword [0x140430114], 0xffffffff
mov qword [0x140430100], rax
call fcn.140368abc
jmp 0x1401ae939
Function at 0x1401aea94
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
and qword [rax + 8], 0
mov rbp, rcx
mov rax, qword gs:[0x58]
mov r15, r9
mov ecx, 4
mov r12, r8
mov r14, rdx
mov r10, qword [rax]
mov eax, dword [rcx + r10]
cmp dword [0x140430118], eax
jg 0x1401aebe1
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140430330], 1
cmove rdi, qword [0x14042f808]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401aeb7a
mov rax, qword [rsp + 0x90]
lea r9, [0x140430120]
and qword [rsp + 0x30], 0
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x20], 2
call fcn.1401affe8
mov ebx, eax
test eax, eax
js 0x1401aeb7a
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403af620]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401aeb81
mov ecx, eax
call fcn.1400790f8
mov ecx, ebx
call fcn.140079118
and qword [rsp + 0x50], 0
lea rax, [0x140011f38]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], 3
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x140430118]
call fcn.140368b2c
cmp dword [0x140430118], 0xffffffff
jne 0x1401aeadd
and qword [0x140430128], 0
lea rax, str.metaInfoType
and dword [0x140430130], 0
lea rcx, [0x140430118]
or dword [0x140430134], 0xffffffff
mov qword [0x140430120], rax
xor eax, eax
mov qword [0x140430148], rax
lea rax, str.windowsComponentLicenseFileName
and dword [0x140430148], 0
mov qword [0x140430138], rax
lea rax, str.path
mov qword [0x140430140], rax
mov dword [0x14043014c], 1
call fcn.140368abc
jmp 0x1401aeadd
Function at 0x1402f057c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, qword [rbp + 0x77]
mov rdi, rdx
xor edx, edx
mov r12, r9
and dword [rbp + 0x67], edx
mov r15d, r8d
and dword [rbp - 0x39], edx
mov rsi, rcx
mov qword [rbp - 0x29], rdx
cmp dword [r14], r8d
jae 0x1402f05c5
mov edi, 0x80049e19
jmp 0x1402f0729
mov rax, qword [rdi]
and qword [rbp - 0x21], rdx
and qword [rbp - 0x31], rdx
and qword [rbp - 0x19], rdx
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rbp - 0x31]
mov rcx, rdi
lea rdx, [0x140400008]
call rbx
test eax, eax
je 0x1402f05fe
mov edi, 0x80049e2f
jmp 0x1402f0686
mov rdi, qword [rbp - 0x31]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403af620]
lea rdx, [rbp - 0x21]
mov rcx, rdi
call rbx
mov edi, eax
test eax, eax
js 0x1402f0686
mov rdx, qword [rbp - 0x21]
lea r8, [rbp - 0x19]
mov rcx, rsi
call fcn.1402efcd4
mov edi, eax
test eax, eax
js 0x1402f0686
lea rax, [0x1400472b8]
mov qword [rbp - 0x11], 3
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rax
xor r9d, r9d
mov rax, qword [rbp - 0x31]
mov ecx, 0xb9
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x29]
mov qword [rbp + 0x1f], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x77]
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x1402f06a9
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403af620]
mov rcx, rsi
call rbx
and qword [rbp - 0x21], 0
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x1402f06cc
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403af620]
mov rcx, rsi
call rbx
and qword [rbp - 0x31], 0
test edi, edi
js 0x1402f0725
mov eax, dword [r14]
mov r8d, r15d
mov r9, qword [rbp + 0x7f]
mov rdx, r12
mov rcx, qword [rbp - 0x29]
mov dword [rbp + 0x67], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
call fcn.1401619cc
mov edi, eax
test eax, eax
js 0x1402f0725
mov eax, dword [r14]
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x67]
sub eax, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x29]
mov dword [rbp - 0x39], eax
call fcn.140161cf0
mov edi, eax
test eax, eax
js 0x1402f0725
mov ecx, dword [rbp + 0x67]
add ecx, dword [rbp - 0x39]
mov dword [r14], ecx
mov rdx, qword [rbp - 0x29]
cmp dword [0x14042f560], 0
je 0x1402f073c
test rdx, rdx
je 0x1402f073c
call fcn.1401648ac
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400010c3
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1401670d4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140167161
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140167161
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140167161
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140167148
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140167142
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14016714a
add rdx, 0x28
jmp 0x140167127
xor edx, edx
test rdx, rdx
jne 0x140167153
xor al, al
jmp 0x140167167
cmp dword [rdx + 0x24], 0
jge 0x14016715d
xor al, al
jmp 0x140167167
mov al, 1
jmp 0x140167167
xor al, al
jmp 0x140167167
add rsp, 0x18
ret

Function at 0x14000111d
Capabilities:
Terminate process

Disassembly:
jmp 0x1401668d8
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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]
Function at 0x14000114f
Capabilities:
Terminate process

Disassembly:
jmp 0x140166848
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011ef
test al, al
je 0x140166713
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400011cc
mov bl, al
mov ecx, dword [0x14016e838]
cmp ecx, 1
je 0x14016671e
test ecx, ecx
jne 0x140166649
mov dword [0x14016e838], 1
lea rdx, [0x14016c660]
lea rcx, [0x14016c330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14016662a
mov eax, 0xff
jmp 0x140166703
lea rdx, [0x14016c220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x14016e838], 2
jmp 0x140166651
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011b8
call fcn.140001172
mov rbx, rax
cmp qword [rax], 0
je 0x140166684
mov rcx, rax
call fcn.1400010c3
test al, al
je 0x140166684
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140172020]
call fcn.140001195
mov rbx, rax
cmp qword [rax], 0
je 0x1401666a6
mov rcx, rax
call fcn.1400010c3
test al, al
je 0x1401666a6
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.14000114a
mov ebx, eax
call fcn.140001154
test al, al
je 0x140166728
test sil, sil
jne 0x1401666dd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010b9
mov eax, ebx
jmp 0x140166703
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400011c2
nop
mov ecx, 7
call fcn.1400011c2
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.140001163
add rsp, 0x28
jmp 0x1401665bc

Function at 0x140001154
Capabilities:
Parse pe header

Disassembly:
jmp 0x140167684
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401676ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401676ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401676ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401676ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1401676ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401676d0
xor al, al
add rsp, 0x28
ret
Function at 0x1400015c0
Capabilities:
Allocate or change rwx memory
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.14000109b
mov edx, 0x23ad4
lea rcx, str.___Allocating__d_bytes_of_memory_n
mov rdi, rax
call fcn.1400010f0
mov edx, 0x23ad4
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1400016bb
mov r8d, 0x23ad4
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
setne cl
test cl, cl
jne 0x140001640
lea rcx, str.____Oh_gosh__something_went_wrong__n
call fcn.1400010f0
jmp 0x1400016bb
lea rcx, str.___Executing_n
call fcn.1400010f0
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140001684
lea rcx, str.____Could_not_execute_thread__n
call fcn.1400010f0
jmp 0x1400016bb
mov edx, dword [rsp + 0x30]
lea rcx, str.___Started_thread__i_n
call fcn.1400010f0
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, str.___The_shellcode_finished_with_a_return_value:__08X_n
call fcn.1400010f0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400010ff
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140167684
Capabilities:
Parse pe header

Disassembly:
jmp 0x140167684
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401676ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401676ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401676ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401676ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1401676ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401676d0
xor al, al
add rsp, 0x28
ret