joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011a4c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbp, rdx
mov ebx, r14d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011b17
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140011b17
movzx ecx, word [rdi]
mov esi, r14d
mov rdx, rdi
test cx, cx
je 0x140011b12
lea r12d, [r14 + 0x5c]
cmp cx, r12w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x140011aa1
test rax, rax
je 0x140011b12
mov rdx, rbp
mov word [rax], r14w
mov rcx, rdi
call fcn.140011a4c
mov word [rsi], r12w
mov ebx, eax
test eax, eax
js 0x140011b17
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011b0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140011afd
mov ebx, 1
jmp 0x140011b17
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140011b17
mov ebx, r14d
jmp 0x140011b17
mov ebx, 0x80070003
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret

Function at 0x140011b78
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
and qword [rdx], 0
mov rbx, rdx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140011bac
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140011bb6
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140012170
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x10058
call fcn.140029ac0
sub rsp, rax
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x10040], rax
and qword [rsp + 0x38], 0
xor ebx, ebx
and dword [rsp + 0x30], 0
mov r14, r9
cmp qword [0x14003bcc0], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x1400121f4
mov eax, dword [0x14003bcc8]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x14003bcc0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400121f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400122b9
mov rcx, qword [0x14003bcc0]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140012238
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400122b9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x10000
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140012270
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400122b9
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x14001228f
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x14001221b
xor ebx, ebx
mov r9, r14
and dword [rsp + 0x20], ebx
mov r8, rbp
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400122b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400122c9
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140015ba0
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400123b8
Capabilities:
Create directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov rbp, r9
mov qword [rax + 8], r13
mov rsi, rdx
mov rdi, rcx
mov r12d, r13d
test rcx, rcx
je 0x14001242c
cmp word [rcx], r13w
je 0x14001242c
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rdi
lea ecx, [rax + 3]
add ecx, ebx
movsxd r8, ecx
lea rcx, [rsp + 0x70]
call fcn.140011ca4
mov edi, eax
test eax, eax
js 0x1400125c1
mov rbx, qword [rsp + 0x70]
mov r14, rsi
jmp 0x14001246b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rsp + 0x70]
movsxd rdx, eax
call fcn.140011bc8
mov edi, eax
test eax, eax
js 0x1400125c1
mov rbx, qword [rsp + 0x70]
or r9, 0xffffffffffffffff
mov r8, rsi
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.1400196e0
lea r14, [rsi + 6]
movzx ecx, word [rbx]
mov edx, 0x5c
cmp dx, cx
jne 0x14001247e
cmp dx, word [rbx + 2]
je 0x1400124ae
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140012495
sub cx, 0x41
cmp cx, 0x19
ja 0x1400125ba
mov eax, 0x3a
cmp ax, word [rbx + 2]
jne 0x1400125ba
cmp dx, word [rbx + 4]
jne 0x1400125ba
test rbp, rbp
je 0x1400124ca
mov dword [rsp + 0x20], 0x18
lea r12, [rsp + 0x20]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
movzx eax, word [r14]
lea r15, [rbx + rcx*2]
test ax, ax
je 0x1400125c6
mov ecx, 0x5c
cmp cx, ax
jne 0x1400124fa
cmp r14, rsi
je 0x1400125a7
mov word [r15], ax
cmp cx, ax
jne 0x1400125a3
mov rdx, r12
mov word [r15 + 2], r13w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140012572
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140012560
test rbp, rbp
je 0x14001255b
mov r8, rbp
mov edx, 7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x14001255b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400125c6
mov edi, r13d
jmp 0x140012572
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400125c6
mov edx, dword [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14001259e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400125c6
mov ecx, 0x5c
add r15, 2
add r14, 2
movzx eax, word [r14]
test ax, ax
jne 0x1400124ec
jmp 0x1400125c6
mov edi, 0x80070057
jmp 0x1400125c6
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400125df
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 rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400128ec
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rdx
and dword [rax + 0x20], ebx
lea rdx, [rax + 0x20]
and qword [rax - 0x20], rbx
mov r14, r8
and dword [rax - 0x28], ebx
mov rbp, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140012945
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400129e6
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140012962
mov ebx, 0x8007000e
jmp 0x1400129e6
cmp dword [rsp + 0x68], 0
jne 0x140012996
mov r9, rdi
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140012996
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400129dd
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x1400340c8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x1400129cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400129dd
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + 8]
mov dword [r15], ecx
mov ecx, dword [rdx + 0xc]
mov dword [r14], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140012a04
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012a97
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140012a89
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140012a3d
mov ebx, 0x80070005
jmp 0x140012a97
test al, 0x10
je 0x140012a48
mov ebx, 0x8000ffff
jmp 0x140012a97
test al, 7
je 0x140012a97
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140012a76
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012a97
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012a97
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140012aa4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rsi
push rdi
push r13
sub rsp, 0x40
and qword [rax + 0x20], 0
lea rcx, [rax + 0x20]
mov ebp, 0x104
xor edi, edi
mov edx, ebp
mov qword [rax + 0x18], rdi
or rsi, 0xffffffffffffffff
call fcn.140011c38
mov ebx, eax
test eax, eax
js 0x140012be7
mov rdx, qword [rsp + 0x78]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebp, ebp
mov r13d, 0x80000000
cmp rsi, 0xffffffffffffffff
jne 0x140012baa
mov r8, qword [rsp + 0x78]
lea rax, [0x140034468]
mov qword [rsp + 0x28], rax
lea r9, [0x1400341b0]
lea rdx, [0x140034930]
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x70]
call fcn.140011ec8
mov rdi, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
js 0x140012bce
and qword [rsp + 0x30], 0
lea r8d, [rsi + 2]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140012b9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea eax, [rbx + r13]
test r13d, eax
jne 0x140012b9c
cmp ebx, 0x80070050
jne 0x140012bce
inc ebp
cmp ebp, 0x3e8
jl 0x140012afd
mov rdx, rdi
call fcn.140011d5c
mov ebx, eax
mov qword [0x14003a9d0], rsi
test eax, eax
jns 0x140012bce
cmp rsi, 0xffffffffffffffff
je 0x140012bce
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140012be7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x78], 0
je 0x140012c05
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret
Function at 0x1400133e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
mov r12, r9
mov rcx, rdx
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
or r10d, 0xffffffff
lea r14, [0x14003bce0]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rsi, r15
cmp dword [0x14003bccc], ebx
jne 0x140013476
mov dword [0x14003bccc], 1
mov edx, ebx
mov r9, r14
mov r8d, edx
mov edi, 8
mov ecx, r8d
mov eax, r8d
shr ecx, 1
mov r8d, ecx
xor r8d, 0xedb88320
and al, 1
cmove r8d, ecx
dec edi
test edi, edi
jg 0x140013447
mov dword [r9], r8d
inc edx
add r9, 4
cmp edx, 0xff
jle 0x14001343f
test r11d, r11d
je 0x1400134a0
mov edx, r11d
movzx ecx, byte [rsi]
mov eax, r10d
xor rcx, rax
inc rsi
movzx eax, cl
mov ecx, r10d
shr ecx, 8
mov r10d, dword [r14 + rax*4]
xor r10d, ecx
sub rdx, 1
jne 0x14001347e
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r13 + 0x18]
mov edi, edx
cmp dword [r13 + 0x18], ebx
jbe 0x1400134eb
mov rbp, qword [r13 + 0x10]
mov eax, edi
lea rsi, [rax + rax*2]
mov rcx, qword [rbp + rsi*8 + 8]
cmp dword [rsp + 0x60], ebx
je 0x14001350f
test rcx, rcx
je 0x1400134de
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013540
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x140013521
cmp dword [rbp + rsi*8], ebx
jne 0x140013521
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rcx, rcx
je 0x140013540
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013540
lea eax, [rdi + 1]
inc r14d
mov edi, eax
sub edi, dword [r13 + 0x18]
cmp eax, dword [r13 + 0x18]
cmovb edi, eax
cmp r14d, dword [r13 + 0x18]
jb 0x1400134b7
jmp 0x1400134eb
mov dword [r12], edi
jmp 0x1400134f0

Function at 0x14001437c
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x30], 0x10
and qword [r11 - 0x30], rax
lea r9, [r11 - 0x20]
mov qword [r11 - 0x20], rax
mov rdi, rdx
mov qword [r11 - 0x18], rax
xor r8d, r8d
lea rax, [r11 - 0x28]
mov edx, 0x4000000b
mov qword [r11 - 0x38], rax
xor ebx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1400143e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001440e
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x14001440e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140015ba0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140014b6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
lea rdi, str.unknown
cmp qword [0x14003a9d0], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
je 0x140014cf9
cmp qword [0x14003bcd0], rbx
je 0x140014cf9
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140014bf9
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140017700
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400128ec
test eax, eax
jns 0x140014c19
mov r14d, ebx
mov r15d, ebx
jmp 0x140014c23
mov r14d, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140014c4d
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140017700
call fcn.140015414
mov r8, rax
lea rdx, str._Logging_started:__S_
mov ecx, 1
call fcn.140014ac4
movzx ecx, r15w
lea rdx, [rbp + 0x160]
mov qword [rsp + 0x38], rdx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
lea rdx, str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
movzx eax, r14w
mov ecx, 1
shr r15d, 0x10
shr r14d, 0x10
mov dword [rsp + 0x28], r15d
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.140014ac4
mov ecx, dword [0x14003a9d8]
test ecx, ecx
je 0x140014cdc
sub ecx, 1
je 0x140014cd3
sub ecx, 1
je 0x140014cca
cmp ecx, 1
jne 0x140014ce3
lea rdi, str.debug
jmp 0x140014ce3
lea rdi, str.verbose
jmp 0x140014ce3
lea rdi, str.standard
jmp 0x140014ce3
lea rdi, str.none
mov r8, rdi
lea rdx, str.____logging_level:__s____
mov ecx, 1
call fcn.140014ac4
jmp 0x140014cfe
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140015ba0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014d54
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x18], rbx
mov r8d, edx
and dword [rsp + 0x78], ebx
mov rdx, rcx
mov qword [r11 - 0x28], rax
xor r9d, r9d
and dword [rsp + 0x28], ebx
lea rax, [r11 - 0x18]
mov ecx, 0x900
mov qword [r11 - 0x38], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
test eax, eax
jne 0x140014dc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014e4c
test esi, esi
je 0x140014e0f
mov rcx, qword [0x14003a9d0]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014e07
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014e4c
add edi, dword [rsp + 0x78]
cmp edi, esi
jb 0x140014dc6
mov rcx, qword [0x14003a9d0]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
lea rdx, [0x14003497c]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014e4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014e5c
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140014e70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
and qword [rax + 0x20], 0
mov r8, rdx
mov rdx, rcx
xor edi, edi
and dword [rax + 0x18], edi
lea rcx, [rax + 0x20]
call fcn.140011ff4
mov ebx, eax
test eax, eax
js 0x140014f3e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test eax, eax
je 0x140014f01
mov rcx, qword [0x14003a9d0]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, ebp
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014ef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014f3e
add edi, dword [rsp + 0x50]
cmp edi, ebp
jb 0x140014eb8
mov rcx, qword [0x14003a9d0]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, [0x14003497c]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp qword [rsp + 0x58], 0
je 0x140014f5c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140014fcc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
mov rdi, rcx
mov r14d, 0x80070000
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400150cb
lea rax, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400150de
mov rcx, qword [rsp + 0x40]
call fcn.140014fcc
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400150de
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400150de
jmp 0x1400150d3
cmp ebx, 0x80070103
je 0x1400150dc
test ebx, ebx
jne 0x1400150de
jmp 0x14001500a
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400150ee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140015ba0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140015118
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x230], rax
or r9, 0xffffffffffffffff
lea r8, str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400196e0
cmp eax, 0x50
jne 0x140015159
mov eax, 0x8007007a
jmp 0x14001519e
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test eax, eax
jne 0x1400151b7
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.1400174fc
test rax, rax
je 0x140015190
mov word [rax], bx
cmp bx, word [rax + 2]
je 0x140015173
cmp word [rsp + 0x20], bx
je 0x14001519c
test rax, rax
jne 0x14001515b
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015ba0
add rsp, 0x240
pop rbx
ret
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1400151ce
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400151d0
mov eax, ebx
cmp eax, 1
jne 0x14001519e
jmp 0x14001515b