joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401eccd0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
lea r9, [rcx + 0x140]
mov r11, r8
cmp qword [r9 + 0x18], 8
mov rbx, rdx
mov rax, qword [r9 + 0x10]
mov r10, rcx
jb 0x1401eccf0
mov r9, qword [r9]
cmp rax, 1
jne 0x1401ecd36
movzx ecx, word [r9]
mov r8d, getprotobynumber
mov rdx, rax
lea rax, [0x1402fb224]
cmp cx, r8w
jb 0x1401ecd36
sub r9, rax
cmp cx, r8w
ja 0x1401ecd36
cmp rdx, 1
je 0x1401ecd45
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec rdx
movzx r8d, word [rax]
cmp cx, r8w
jae 0x1401ecd17
mov r8, r11
mov rdx, rbx
mov rcx, r10
pop rbx
jmp fcn.1401ea9f0
lea r9, [r10 + 0x160]
cmp qword [r9 + 0x18], 8
mov rax, qword [r9 + 0x10]
jb 0x1401ecd5a
mov r9, qword [r9]
cmp rax, 2
jne 0x1401ecd36
movzx ecx, word [r9]
mov r8d, 0x56
mov rdx, rax
lea rax, [0x1402dbcfc]
cmp cx, r8w
jb 0x1401ecd36
sub r9, rax
cmp cx, r8w
ja 0x1401ecd36
cmp rdx, 1
je 0x1401ecdaf
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec rdx
movzx r8d, word [rax]
cmp cx, r8w
jae 0x1401ecd81
mov r8, r11
mov rdx, rbx
mov rcx, r10
pop rbx
jmp fcn.1401ea9f0
mov r8, r11
mov rdx, rbx
mov rcx, r10
pop rbx
jmp fcn.1401eb9d0
Function at 0x1401ef800
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1401ef8a4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1401ef860
mov ecx, dword [r10]
jmp 0x1401ef987
cmp ecx, 0x4e0
jb 0x1401ef987
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1401ef8c0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1401ef910
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x1401ef840
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x1401ef830
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140206100
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
add rcx, 0x10
call fcn.140206260
nop
mov dword [rsp + 0x38], 0x208
xor ebp, ebp
mov dword [rsp + 0x3c], 0x6610
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
mov dword [rsp + 0x40], eax
je 0x14020616b
mov r8, rax
lea rcx, [rsp + 0x44]
call fcn.14026bb50
mov eax, dword [rsp + 0x40]
lea r8d, [rax + 0xc]
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14020620f
xor r9d, r9d
mov r8, qword [r14]
lea edx, [r9 + 1]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1402061ca
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140269300
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rdx, [0x1402de3f0]
lea rcx, [rsp + 0x68]
call fcn.140025da0
nop
mov r8d, ebx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.1402063b0
lea rdx, [0x140355e48]
lea rcx, [rsp + 0x88]
call fcn.14026ba78
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x1402de3d0]
lea rcx, [rsp + 0x68]
call fcn.140025da0
nop
mov r8d, ebx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.1402063b0
lea rdx, [0x140355e48]
lea rcx, [rsp + 0x88]
call fcn.14026ba78
int3

Function at 0x140206260
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1402062cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1402062eb
mov dword [rsp + 0x20], 0xf0000008
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140206329
mov rax, rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140269300
add rsp, 0x90
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.140025da0
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1402063b0
lea rdx, [0x140355e48]
lea rcx, [rsp + 0x50]
call fcn.14026ba78
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.140025da0
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1402063b0
lea rdx, [0x140355e48]
lea rcx, [rsp + 0x50]
call fcn.14026ba78
int3
Function at 0x1402069a0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rcx], 0
add rcx, 8
call fcn.140206260
nop
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140206a1a
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rdx, [0x1402de438]
lea rcx, [rsp + 0x38]
call fcn.140025da0
nop
mov r8d, ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1402063b0
lea rdx, [0x140355e48]
lea rcx, [rsp + 0x58]
call fcn.14026ba78
int3

Function at 0x140206b10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x44], 0
mov rsi, qword [r8 + 8]
sub rsi, qword [r8]
and esi, 0xfffffff0
add esi, 0x10
mov byte [rsp + 0x40], 0
mov edx, esi
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140206020
mov dword [rsp + 0x44], 1
mov rax, qword [rdi + 8]
mov rdx, qword [rdi]
mov r8, rax
sub r8, rdx
je 0x140206b94
mov rcx, qword [rbx]
call fcn.14026bb50
mov rax, qword [rdi + 8]
mov rdx, qword [rdi]
sub rax, rdx
mov dword [rsp + 0x48], eax
mov rdx, qword [rbx]
mov rax, qword [r14]
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140206bf2
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x1402de418]
lea rcx, [rsp + 0x58]
call fcn.140025da0
nop
mov r8d, ebx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1402063b0
lea rdx, [0x140355e48]
lea rcx, [rsp + 0x78]
call fcn.14026ba78
int3
Function at 0x140209e70
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp - 0x50], r12d
lea rdx, [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14020a02c
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x14020a02c
mov edi, eax
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], select
mov byte [rbp - 0x48], r12b
cmp rax, 0xf
ja 0x140209efe
mov qword [rbp - 0x38], rax
mov r8d, eax
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.14026c200
mov byte [rbp + rdi - 0x48], r12b
mov rbx, qword [rbp - 0x48]
jmp 0x140209f6f
mov rsi, rdi
or rsi, 0xf
mov eax, reloc.WS2_32.dll_shutdown
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140209f4a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14020a059
mov rcx, rax
call fcn.1402695b8
test rax, rax
je 0x14020a053
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140209f52
call fcn.1402695b8
mov rbx, rax
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.14026c200
mov byte [rbx + rdi], r12b
mov qword [rbp - 0x48], rbx
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, rbx
mov dword [rbp - 0x4c], r12d
lea r9, [rbp - 0x4c]
mov r8d, dword [rbp - 0x50]
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140209f9a
xor bl, bl
jmp 0x140209ff0
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.1400fdaf0
mov rdx, rax
mov rcx, r15
call fcn.14003a020
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140209fee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140209fe9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14020a05f
call fcn.140269844
mov bl, 1
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x14020a027
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14020a022
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14020a053
call fcn.140269844
movzx eax, bl
jmp 0x14020a02e
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140269300
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140277ff8
int3
call fcn.140025510
nop
call fcn.140277ff8
nop
int3
Function at 0x14020a070
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rax - 0x18], esi
mov dword [rax + 8], esi
mov qword [rdx], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], 7
mov word [rdx], si
mov dword [rax - 0x18], 1
mov qword [rax - 0x20], rsi
lea rax, [rax + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x16]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14020a135
mov edx, dword [rsp + 0x50]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x14020a0fa
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14020a0f0
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], si
jmp 0x14020a108
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.14003a550
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14020a115
mov r9, qword [rbx]
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14020aff0
Capabilities:
Read http header

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x40], eax
mov edx, 0x20000013
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [rsp + 0x40]
mov edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x38
ret
Function at 0x14023e96c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14023e9eb
cmp di, word [rcx]
je 0x14023e9eb
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14023e994
lea eax, [rdi + 2]
jmp 0x14023e9f0
xor ecx, ecx
call fcn.14023e5f8
mov rdx, rbx
mov rcx, rax
call fcn.140241f90
test eax, eax
je 0x14023e9e7
mov edx, dword [reloc.WS2_32.dll_ioctlsocket]
lea rax, [0x14036d4d8]
mov qword [rsp + 0x28], rax
lea r9, str._j._
mov eax, dword [reloc.WS2_32.dll_htons]
lea r8, str.Intel_Corporation
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140240a58
test eax, eax
jne 0x14023e9e7
mov eax, 5
jmp 0x14023e9f0
xor eax, eax
jmp 0x14023e9f0
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1402411fc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9, rcx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x1402416b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140241256
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140241256
lea eax, [rbx + 1]
jmp 0x140241258
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140241da8
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov r12, rdx
mov r14, rcx
test rcx, rcx
je 0x140241efc
test rdx, rdx
je 0x140241efc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, 0x8000
mov esi, eax
mov ecx, ebp
call fcn.140269b2c
mov rbx, rax
test rax, rax
jne 0x140241e02
lea edi, [rax + 8]
jmp 0x140241ef0
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140241e27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140241ef0
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x140241e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140241ef0
mov eax, dword [rsp + 0x70]
mov ebp, edi
shr eax, 3
mov r15b, dil
mov dword [rsp + 0x70], eax
test eax, eax
je 0x140241edd
xor eax, eax
mov r13d, ebp
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x20]
mov rcx, rsi
movups xmmword [rsp + 0x20], xmm0
mov rdx, qword [rbx + r13*8]
lea r9d, [rax + 0x18]
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x140241eaf
cmp qword [rsp + 0x20], r14
jg 0x140241eaf
mov eax, dword [rsp + 0x28]
mov rcx, r14
sub rcx, qword [rsp + 0x20]
cmp rcx, rax
jl 0x140241eb9
inc ebp
cmp ebp, dword [rsp + 0x70]
jae 0x140241edd
jmp 0x140241e6c
mov rdx, qword [rbx + r13*8]
mov r9d, 0x104
mov r8, r12
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x140241ed7
mov r15b, 1
jmp 0x140241edd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
jne 0x140241ef0
mov edi, 5
mov rcx, rbx
call fcn.140269844
mov eax, edi
jmp 0x140241f01
mov eax, 0x57
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140242a8c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor ebp, ebp
mov dword [rcx], ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rcx + 0x18], ebp
mov qword [rcx + 0x20], rbp
mov qword [rcx + 0x28], rbp
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x28], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lea ecx, [rbp + 0x58]
call fcn.1402695b8
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov dword [rdi + 0x40], ebp
lea rbx, [rdi + 0x48]
mov qword [rbx], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
test rsi, rsi
je 0x140242b1e
mov rdx, rsi
jmp 0x140242b62
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.14026c200
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea rdx, str.Program_FilesCommon_FilesMcAfeePlatformCore_trusted.js
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140025e50
nop
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402444f4
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, rcx
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
jne 0x14024452d
xor eax, eax
jmp 0x14024475e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
lea rcx, [rsp + 0x60]
call fcn.14023d3f0
nop
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x320]
call fcn.14026c200
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x210]
call fcn.14026c200
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, esi
lea rcx, [rbp + 0x320]
lea rax, [rbp + 0x320]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1402445af
mov al, byte [r8 + rcx]
test al, al
je 0x1402445af
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140244590
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], bl
mov r8, rsi
lea rcx, [rbp + 0x210]
lea rax, [rbp + 0x210]
mov r9, qword [rsp + 0x60]
sub r9, rax
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1402445f4
mov al, byte [r9 + rcx]
test al, al
je 0x1402445f4
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1402445d5
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov byte [rax], bl
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea r8, [0x1402c5094]
mov rdx, rsi
lea rcx, [rbp + 0x210]
call fcn.140244448
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x1402447e0]
mov qword [rsp + 0x30], rax
lea rax, [0x140244780]
mov qword [rsp + 0x28], rax
lea rax, [0x1402447f0]
mov qword [rsp + 0x20], rax
lea r9, [0x1402447d0]
lea r8, [fcn.140244790]
lea rdx, [0x14012cf50]
lea rcx, [0x140114850]
mov rax, qword [rdi + 8]
call qword [case.0x1400ac8a1.0]
mov rsi, rax
test rax, rax
je 0x140244748
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x100]
call fcn.14026c200
lea rax, [rbp + 0x100]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [0x140244800]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x210]
lea rdx, [rbp + 0x320]
mov rcx, rsi
mov rax, qword [rdi + 0x10]
call qword [case.0x1400ac8a1.0]
mov rcx, rsi
mov rax, qword [rdi + 0x18]
call qword [case.0x1400ac8a1.0]
lea rcx, [rbp + 0x104]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140244748
cmp dword [rbp + 0x100], ebx
je 0x14024473a
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov r8d, 3
lea rdx, [rbp + 0x104]
lea rcx, [rbp - 0x10]
call fcn.14004abe0
nop
mov rcx, qword [rbp - 0x10]
call fcn.14023ffa4
mov ebx, eax
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x14024473a
call fcn.1402767a0
lea rcx, [rbp + 0x104]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x14024475c
call fcn.1402767a0
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0x570]
add rsp, 0x540
pop rdi
pop rsi
pop rbp
ret
Function at 0x14028b38c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14036eee0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14028b3ea
cmp word [rdx], r12w
jne 0x14028b3ea
or byte [rax + r8*8 + 0x38], cl
jmp 0x14028b3f0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14028b54b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14028b526
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14028b429
mov rcx, r9
jmp 0x14028b44c
cmp r9, rdx
jae 0x14028b463
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14028b40d
jmp 0x14028b54b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14028b520
cmp dword [rsp + 0x80], edi
je 0x14028b520
mov rdx, r14
lea r11, [0x14036eee0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14028b4f9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14028b4cc
mov word [rbx], r12w
jmp 0x14028b547
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14028b4d5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14028b547
cmp word [rsp + 0x70], r12w
jne 0x14028b506
cmp rbx, rsi
je 0x14028b4c6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14028b2e8
cmp word [rsp + 0x70], r12w
je 0x14028b54b
mov word [rbx], r13w
jmp 0x14028b547
lea r11, [0x14036eee0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14028b543
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14028b54b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret