joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140163bf0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x60
movzx edi, dx
mov rsi, rcx
mov edx, 0x2710
lea rcx, [0x140360740]
call fcn.14019aca0
test al, al
je 0x140163c9b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
lea r14, str.ASUSSystemAnalysis
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140163c8e
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rsi
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r9w
mov qword [rsp + 0x20], rdx
xor r9d, r9d
movzx edx, di
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [0x140360740]
call fcn.14019adf0
nop
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop r14
ret
Function at 0x14016d010
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [r8 + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
xor esi, esi
cmp rdx, r8
jae 0x14016d070
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], SafeArrayGetLBound
mov byte [rbx], sil
jmp 0x14016d1a0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], SafeArrayGetLBound
mov byte [rsp + 0x28], sil
test rdx, rdx
jne 0x14016d098
mov qword [rsp + 0x38], rdx
mov byte [rsp + rdx + 0x28], dl
jmp 0x14016d0a8
lfence
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.1400d0450
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
lea r8, [r14 + rdi]
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r14, 3
jl 0x14016d13a
nop word [rax + rax]
movzx ecx, byte [rdi]
shr rcx, 2
movzx ecx, byte [rcx + r9]
mov byte [rax], cl
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
movzx ecx, byte [rdi + 1]
shr rcx, 4
or rdx, rcx
movzx ecx, byte [rdx + r9]
mov byte [rax + 1], cl
movzx edx, byte [rdi + 1]
and edx, 0xf
shl rdx, 2
movzx ecx, byte [rdi + 2]
shr rcx, 6
or rdx, rcx
movzx ecx, byte [rdx + r9]
mov byte [rax + 2], cl
movzx ecx, byte [rdi + 2]
and ecx, 0x3f
movzx ecx, byte [rcx + r9]
mov byte [rax + 3], cl
add rax, 4
add rdi, 3
sub r14, 3
cmp r14, 3
jge 0x14016d0d0
sub r8, rdi
je 0x14016d18f
movzx ecx, byte [rdi]
shr rcx, 2
movzx ecx, byte [rcx + r9]
mov byte [rax], cl
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp r8, 1
jne 0x14016d169
movzx ecx, byte [rdx + r9]
mov byte [rax + 1], cl
mov cl, 0x3d
jmp 0x14016d188
movzx ecx, byte [rdi + 1]
shr rcx, 4
or rcx, rdx
movzx ecx, byte [rcx + r9]
mov byte [rax + 1], cl
movzx ecx, byte [rdi + 1]
and ecx, 0xf
movzx ecx, byte [r9 + rcx*4]
mov byte [rax + 2], cl
mov byte [rax + 3], 0x3d
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401c7850
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140191dd0
Capabilities:
Initialize winhttp library
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
lea r8d, [rbp + 0x73]
lea rdx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_89.0.4389.128_Safari_537.36
call fcn.1400d07a0
nop
mov byte [rdi + 0x20], bpl
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbp
mov dword [rdi + 0x40], 0x7530
mov dword [rdi + 0x44], 0x7530
mov dword [rdi + 0x48], 0x7530
mov qword [rdi + 0x50], rbp
mov qword [rdi + 0x58], rbp
mov qword [rdi + 0x60], rbp
lea rsi, [rdi + 0x68]
mov qword [rsi + 0x38], rbp
lea rbx, [rdi + 0xb0]
mov qword [rsp + 0x58], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lfence
lea ecx, [rbp + 0x28]
call fcn.1401c72bc
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rcx, [rdi + 0xc0]
call fcn.1401917f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi + 0x50], xmm0
mov qword [rdi + 0x60], rax
mov byte [rdi + 0xa8], al
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140191eb3
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400bb8d5.0]
mov qword [rsi + 0x38], rbp
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140191ec0
mov rcx, qword [rdi]
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, rax
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x140191ee7
mov dword [rdi + 0x60], 2
jmp 0x140191eff
mov eax, dword [rdi + 0x48]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x44]
mov r8d, dword [rdi + 0x40]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140192c70
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
movzx r15d, r9b
mov rsi, r8
mov r14, rdx
mov r13, rcx
mov dword [rsp + 0x48], 0
lea rdi, [rcx + 0xc0]
mov qword [rsp + 0x70], rdi
test rdi, rdi
je 0x140192cc3
mov rcx, rdi
call fcn.140191840
nop
mov rcx, r14
call fcn.1401983f0
mov dword [rsp + 0x48], 1
xor ebx, ebx
mov qword [rsp + 0x60], rbx
xor eax, eax
mov r12d, 0x4000
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov rcx, r13
call fcn.140193920
mov rcx, r14
call fcn.140199db0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call fcn.140193030
test al, al
je 0x140192ec6
lea rdx, [r14 + 8]
mov rcx, r13
call fcn.140193830
test al, al
je 0x140192d98
mov rcx, r14
call fcn.140198720
lea r8, [r14 + 0x80]
cmp qword [r14 + 0x98], 8
jb 0x140192d5b
mov r8, qword [r14 + 0x80]
cmp qword [r14 + 0x90], 3
jne 0x140192ef8
mov edx, 3
lea rcx, [0x140288638]
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140192ef8
add rcx, 2
sub rdx, 1
jne 0x140192d80
test r15b, r15b
jne 0x140192dfb
mov rcx, r12
call fcn.1401c7aec
mov rbx, rax
mov qword [rsp + 0x60], rax
mov r8, r12
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movzx esi, byte [rsp + 0xd0]
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, qword [r13 + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140192edf
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x140192e00
mov byte [r14], 1
xor eax, eax
mov dword [r13 + 0x60], eax
jmp 0x140192e8a
cmp r8d, r12d
jbe 0x140192e3c
mov rcx, r8
call fcn.1401c7aec
mov r15, rax
mov rcx, rbx
mov rbx, rax
mov qword [rsp + 0x60], rax
test rcx, rcx
je 0x140192e25
call fcn.1401c7a6c
mov r12d, dword [rsp + 0x40]
mov r8d, r12d
xor edx, edx
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov rdx, rbx
mov rcx, qword [r13 + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140192f11
lea rcx, [r14 + 0x20]
mov r9d, dword [rsp + 0x44]
add r9, rbx
mov rdx, qword [rcx + 8]
mov byte [rsp + 0x20], sil
mov r8, rbx
call fcn.140191b10
jmp 0x140192dd0
test rbx, rbx
je 0x140192e98
mov rcx, rbx
call fcn.1401c7a6c
nop
test rdi, rdi
je 0x140192ea6
mov rcx, rdi
call fcn.140191850
nop
mov rax, r14
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rsp + 0x4c], 2
lea rdx, [0x1402da270]
lea rcx, [rsp + 0x4c]
call fcn.1401fe4dc
mov dword [rsp + 0x54], 9
lea rdx, [0x1402da270]
lea rcx, [rsp + 0x54]
call fcn.1401fe4dc
mov dword [rsp + 0x50], 6
lea rdx, [0x1402da270]
lea rcx, [rsp + 0x50]
call fcn.1401fe4dc
mov dword [rsp + 0x58], 9
lea rdx, [0x1402da270]
lea rcx, [rsp + 0x58]
call fcn.1401fe4dc
int3
Function at 0x140192f60
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140192f73
mov rcx, qword [rcx]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx + 0x28], rax
mov rcx, rax
test rax, rax
jne 0x140192fa2
mov dword [rbx + 0x60], 2
add rsp, 0x30
pop rbx
ret
mov eax, dword [rbx + 0x48]
xor edx, edx
mov r9d, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x40]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140193830
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov rbx, rdx
mov dword [rsp + 0x40], 0
mov rbp, rcx
lea rax, [rsp + 0x40]
mov rcx, qword [rcx + 0x38]
xor r8d, r8d
lea edx, [r9 + 0x16]
mov qword [rsp + 0x20], rax
xor dil, dil
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140193907
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x48], rsi
call fcn.1401c7aec
mov rcx, qword [rbp + 0x38]
mov rsi, rax
xor r8d, r8d
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov r9, rsi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x16]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1401938fa
mov rdx, qword [rbx]
mov qword [rbx + 8], rdx
cmp rdx, qword [rbx + 0x10]
je 0x1401938db
mov rcx, rbx
call fcn.140194800
mov rdx, qword [rbx + 8]
mov r9d, dword [rsp + 0x40]
mov r8, rsi
movzx eax, byte [rsp + 0x40]
add r9, rsi
mov rcx, rbx
mov byte [rsp + 0x20], al
call fcn.140191b10
mov dil, 1
mov rcx, rsi
call fcn.1401c7a6c
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
movzx eax, dil
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140195450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x20], rcx
jb 0x140195468
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140195487
test al, 0x10
jne 0x140195487
mov rcx, rbx
call fcn.1400ec0a0
mov al, 1
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.1400ec0a0
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1401954d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x20], rcx
jb 0x1401954e8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140195507
test al, 0x10
je 0x140195507
mov rcx, rbx
call fcn.1400ec0a0
mov al, 1
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.1400ec0a0
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140196bf0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], 7
lea r8d, [rbp + 0x15]
lea rdx, str.Drives_Bitmap:_0x_08x
lea rcx, [rsp + 0x38]
call fcn.1400d07a0
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140163440
mov ecx, reloc.OLEAUT32.dll_SafeArrayPutElement
nop dword [rax + rax]
mov eax, 1
shl eax, cl
test edi, eax
je 0x140196c85
sub ecx, 1
jns 0x140196c70
jmp 0x140196d41
mov dword [rsi], eax
add cl, 0x41
movsx edx, cl
mov qword [rbx + 0x10], 1
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140196ca2
mov rax, qword [rbx]
mov word [rax], dx
mov word [rax + 2], bp
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rax, 2
jb 0x140196cde
lea rdx, [rcx + 2]
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp r8, 8
jb 0x140196cd1
mov rax, qword [rbx]
mov dword [rax + rcx*2], 0x5c003a
mov word [rax + rdx*2], bp
jmp 0x140196d00
lfence
mov qword [rsp + 0x20], 2
lea r9, [0x140288cdc]
xor r8d, r8d
lea edx, [r8 + 2]
mov rcx, rbx
call fcn.140103ec0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], 7
mov r8d, 0x1b
lea rdx, str.Available_volume_label___s_
lea rcx, [rsp + 0x58]
call fcn.1400d07a0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140196d37
mov rdx, qword [rbx]
lea rcx, [rsp + 0x58]
call fcn.140163440
mov rax, rbx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140196d60
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x51], rcx
mov qword [rbp - 0x49], rdx
cmp qword [rdx + 0x18], 8
jb 0x140196d9a
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140196da4
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x140196f20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x91
jne 0x140196eda
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140196dd2
mov rcx, qword [rbx]
mov r8d, 0x34
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140196e42
xor eax, eax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
lea r8d, [rax + 0x57]
lea rdx, str._s______Path___s__has_already_been_mounted__but_its_volume_name_could_not_be_retrieved.
lea rcx, [rbp - 0x79]
call fcn.1400d07a0
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140196e19
mov r8, qword [rbx]
lea rdx, str.asus::winhttp::FileSystem::MountVolume
lea rcx, [rbp - 0x79]
call fcn.1401639e0
nop
mov rcx, rbx
call fcn.1400ec0a0
nop
mov rcx, rdi
call fcn.1400ec0a0
xor eax, eax
jmp 0x140196f36
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140196e4f
mov rax, qword [rdi]
lea r8, [rbp - 0x39]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140196e74
add rax, 2
test ecx, ecx
jne 0x140196e60
test edx, edx
je 0x140196f20
xor eax, eax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
lea r8d, [rax + 0x60]
lea rdx, str._s______Path___s__has_already_been_mounted__but_volume_name___s__doesnt_match_as_expected___s_.
lea rcx, [rbp - 0x79]
call fcn.1400d07a0
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140196eaf
mov rax, qword [rdi]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140196ebc
mov r8, qword [rbx]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
lea rdx, str.asus::winhttp::FileSystem::MountVolume
lea rcx, [rbp - 0x79]
call fcn.1401639e0
jmp 0x140196e2a
xor eax, eax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
lea r8d, [rax + 0x35]
lea rdx, str._s______Fail_to_mount___s__to___s_._Error_code0x_08x
lea rcx, [rbp - 0x79]
call fcn.1400d07a0
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x140196f0d
mov r9, qword [rbx]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140196f1a
mov r8, qword [rdi]
mov dword [rsp + 0x20], esi
jmp 0x140196ec5
mov rcx, rbx
call fcn.1400ec0a0
nop
mov rcx, rdi
call fcn.1400ec0a0
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401c7850
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14019aca0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [rcx + 0x10], 0
mov rbx, rcx
jne 0x14019acb7
xor al, al
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rcx]
mov qword [rsp + 0x50], rsi
mov esi, 0xffffffff
mov qword [rsp + 0x58], rdi
xor edi, edi
test edx, edx
cmove edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14019ad51
cmp eax, 0x80
jne 0x14019ad56
mov rax, qword [rbx + 8]
cmp word [rax], di
je 0x14019ad56
mov rcx, qword [rbx]
test rcx, rcx
je 0x14019ad01
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov dword [rsp + 0x20], SafeArrayPutElement
lea r8, [rsp + 0x28]
mov dword [rsp + 0x30], edi
lea rcx, str.D:_A__GA___AN__A__GA___WD_
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, qword [rsp + 0x50]
mov qword [rbx], rax
movzx eax, dil
mov rdi, qword [rsp + 0x58]
mov byte [rbx + 0x10], 1
add rsp, 0x40
pop rbx
ret
mov edi, 1
mov rsi, qword [rsp + 0x50]
movzx eax, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
Function at 0x14019f150
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub rsp, 0x48
mov eax, dword [0x140289f98]
lea rcx, [rsp + 0x20]
movsd xmm0, qword [str.checkNewtWork]
mov dword [rsp + 0x28], eax
movzx eax, byte [0x140289f9c]
mov byte [rsp + 0x2c], al
mov qword [rsp + 0x38], SafeArrayGetLBound
mov qword [rsp + 0x30], SafeArrayGetLBound
movsd qword [rsp + 0x20], xmm0
mov byte [rsp + 0x2d], 0
call fcn.1401630b0
xor edx, edx
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
setne al
add rsp, 0x48
ret
Function at 0x14019ff40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x50], rdx
xor esi, esi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
xor r8d, r8d
lea rdx, [0x140277d2c]
lea rcx, [rbp - 0x48]
call fcn.1400d07a0
nop
mov qword [rbp - 0x50], rsi
cmp qword [rdi + 0x10], rsi
je 0x14019fff0
mov rdx, rdi
mov rcx, rbx
call fcn.1400c2a30
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1401a00f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14019ffe6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a0119
call fcn.1401c72f8
jmp 0x1401a00f4
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140293ea0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1401a0096
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], 7
mov rdx, qword [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401a0030
lea rcx, [rbp - 0x28]
call fcn.1400d07a0
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1401a0084
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a007f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a0113
call fcn.1401c72f8
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbp - 0x48], xmm0
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x38], xmm0
jmp 0x1401a009a
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x28], xmm0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1401a00b1
call qword [sym.imp.OLE32.dll_CoTaskMemFree]
mov qword [rbp - 0x50], rsi
movups xmm1, xmmword [rbp - 0x28]
movq r8, xmm1
test r8, r8
je 0x1401a00e9
lea rax, [rbp - 0x48]
cmp rdi, rax
je 0x1401a00e9
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400d07a0
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmm0
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401c7850
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
Function at 0x1401a0340
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 8
mov rdi, r8
mov qword [rsp + 0x20], rdx
mov rbx, rdx
mov qword [rsp + 0x20], r8
jb 0x1401a0364
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401a036e
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, rbx
test eax, eax
jne 0x1401a0398
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1401a03c0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov qword [rsp + 0x20], rdx
jb 0x1401a03d8
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rbx
test eax, eax
jne 0x1401a03f5
call fcn.1400c3c60
mov eax, 1
add rsp, 0x30
pop rbx
ret
call fcn.1400c3c60
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1401a0410
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 8
mov rdi, r8
mov qword [rsp + 0x20], rdx
mov rbx, rdx
mov qword [rsp + 0x20], r8
jb 0x1401a0434
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401a043e
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, rbx
test eax, eax
jne 0x1401a0468
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret