joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca758
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov dword [rax - 0x18], 4
mov dword [rax + 0x10], ebp
mov rsi, r9
mov qword [rax - 0x10], rbp
mov rdi, r8
test rdx, rdx
je 0x1400ca89a
cmp word [rdx], bp
je 0x1400ca89a
test r8, r8
je 0x1400ca87a
cmp word [r8], bp
je 0x1400ca87a
test r9, r9
jne 0x1400ca7d5
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca8c8
test byte [rcx + 0x1c], 1
je 0x1400ca8c8
lea edx, [rbp + 0x16]
jmp 0x1400ca8b8
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400ca866
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 2
je 0x1400ca866
mov r8d, dword [rsp + 0x58]
cmp r8d, 4
je 0x1400ca866
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca861
test byte [rcx + 0x1c], 1
je 0x1400ca861
mov rcx, qword [rcx + 0x10]
mov edx, reloc.Cabinet.dll_FDIDestroy
mov dword [rsp + 0x20], r8d
mov r9, rdi
lea r8, [0x140127cf0]
call fcn.1400056b0
mov ebx, reloc.Cabinet.dll_FCIFlushCabinet
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400ca876
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400ca8cd
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca8c8
test byte [rcx + 0x1c], 1
je 0x1400ca8c8
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
jmp 0x1400ca8b8
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca8c8
test byte [rcx + 0x1c], 1
je 0x1400ca8c8
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127cf0]
call fcn.140003614
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ca8e8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, r9
mov qword [r11 + 0x18], rbp
mov rsi, rdx
test rdx, rdx
je 0x1400caa18
cmp word [rdx], bp
je 0x1400caa18
test r9, r9
je 0x1400ca9f8
cmp word [r9], bp
je 0x1400ca9f8
mov qword [r11 - 0x18], rbp
lea rax, [r11 + 0x18]
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x1400ca980
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400ca9e4
test byte [rcx + 0x1c], 1
je 0x1400ca9e4
lea edx, [rbp + 0x1a]
mov r9, rsi
jmp 0x1400ca9d0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400ca9e4
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400ca9e4
test byte [rcx + 0x1c], 1
je 0x1400ca9e4
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r9, rdi
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127cf0]
mov dword [rsp + 0x20], eax
call fcn.1400056b0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400ca9f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400caa4b
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400caa46
test byte [rcx + 0x1c], 1
je 0x1400caa46
mov edx, DispGetParam
jmp 0x1400caa36
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400caa46
test byte [rcx + 0x1c], 1
je 0x1400caa46
mov edx, DispGetParam
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127cf0]
call fcn.140003614
mov eax, 0x57
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400cb4a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r15d, r15d
mov rbx, rcx
lea rcx, [rsp + 0x52]
mov qword [rsp + 0x20], r15
xor edx, edx
mov word [rsp + 0x50], r15w
mov r8d, 0x206
mov r14d, r15d
mov rsi, r9
call sub.msvcrt.dll_memset
lea edi, [r15 + 0x57]
test rsi, rsi
jne 0x1400cb53d
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov rcx, qword [rcx + 0x10]
lea edx, [rdi - 0x13]
lea r8, [0x140127cf0]
call fcn.140003614
jmp 0x1400cb65f
mov r12d, 0x104
lea rcx, [rsp + 0x50]
mov edx, r12d
mov r8, rbx
call fcn.140036ea4
mov r9d, eax
test eax, eax
jns 0x1400cb585
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov edx, 0x4d
jmp 0x1400cb64f
mov ebx, r15d
mov r9d, ebx
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, rsi
call fcn.140069190
mov r9d, eax
test eax, eax
js 0x1400cb631
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cb62c
lea r8, [rsp + 0x28]
xor edx, edx
mov rcx, rsi
call sub.KERNEL32.dll_GetFileAttributesExW
test eax, eax
je 0x1400cb5eb
test ebx, ebx
je 0x1400cb5de
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1400cb5eb
mov rax, qword [rsp + 0x3c]
mov r14d, ebx
mov qword [rsp + 0x20], rax
inc ebx
cmp ebx, 0xa
jb 0x1400cb588
mov r9d, r14d
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, rsi
call fcn.140069190
mov r9d, eax
test eax, eax
jns 0x1400cb62c
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov edx, 0x4f
jmp 0x1400cb64f
mov edi, r15d
jmp 0x1400cb65f
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov edx, 0x4e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127cf0]
call fcn.1400036d4
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400cbfb8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ebp, dword [rsp + 0xb0]
xor ebx, ebx
mov edi, ebp
mov r13, r8
mov r15d, edx
mov r12, rcx
call sub.KERNEL32.dll_GetTickCount
mov r14d, eax
lea eax, [rbp - 1]
cmp eax, 0xfffffffd
ja 0x1400cbffc
mov edi, ebp
sub edi, ebx
mov r9d, edi
mov dword [rsp + 0x20], 0x4ff
xor r8d, r8d
mov rdx, r13
mov ecx, r15d
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
cmp eax, r15d
jne 0x1400cc055
mov ebx, 1
jmp 0x1400cc03a
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400cc024
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
sub ebx, r14d
cmp r14d, eax
jbe 0x1400cc066
dec ebx
cmp esi, r15d
je 0x1400cbff0
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cc0a0
test byte [rcx + 0x1c], 4
je 0x1400cc0a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127cf0]
mov edx, 0x6a
mov dword [rsp + 0x20], ebx
mov r9, r12
call fcn.1400056b0
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400cc164
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15, rcx
xor r12d, r12d
lea rcx, [rsp + 0x34]
mov dword [rsp + 0x30], r12d
xor edx, edx
mov r8d, 0x24c
mov ebx, r12d
call sub.msvcrt.dll_memset
xor edx, edx
mov word [rbp + 0x180], r12w
mov r8d, 0x206
lea rcx, [rbp + 0x182]
call sub.msvcrt.dll_memset
test r15, r15
jne 0x1400cc215
lea ebx, [r12 + 0x57]
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400cc3bd
test byte [rcx + 0x1c], 1
je 0x1400cc3bd
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x22]
lea r8, [0x140127cf0]
call fcn.140003614
jmp 0x1400cc3bd
lea rax, str..bin
mov r9, r15
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140069190
test eax, eax
jns 0x1400cc286
mov ebx, eax
and ebx, 0x1000ffff
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400cc3bd
test byte [rcx + 0x1c], 1
je 0x1400cc3bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127cf0]
mov edx, 0x7a
mov r9d, eax
call fcn.1400036d4
jmp 0x1400cc3bd
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc2e1
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400cc3bd
test byte [rcx + 0x1c], 4
je 0x1400cc3bd
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x7c]
lea r9, [rbp + 0x180]
lea r8, [0x140127cf0]
call fcn.140003638
jmp 0x1400cc3bd
lea rdi, [0x14014dd40]
cmp dword [rsp + 0x30], 0x10
je 0x1400cc39e
lea rax, [rsp + 0x5c]
mov r9, r15
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140069190
mov r14d, eax
test eax, eax
js 0x1400cc36b
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400cc39e
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400cc39e
test byte [rcx + 0x1c], 1
je 0x1400cc39e
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x180]
mov edx, 0x7c
mov dword [rsp + 0x20], eax
lea r8, [0x140127cf0]
call fcn.1400056b0
jmp 0x1400cc39e
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400cc395
test byte [rcx + 0x1c], 1
je 0x1400cc395
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127cf0]
mov edx, 0x7d
mov r9d, eax
call fcn.1400036d4
mov ebx, r14d
and ebx, 0x1000ffff
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400cc2e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400cd650
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
and qword [rax + 8], rdi
add rcx, 0x48
xor esi, esi
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [rbx + 8], esi
jne 0x1400cd6b3
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cd6a9
test byte [rcx + 0x1c], 1
je 0x1400cd6a9
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x1f]
lea r8, [0x140128308]
call fcn.140003614
mov edi, 0x8000ffff
jmp 0x1400cd7e9
cmp dword [rbx + 0xc], esi
jne 0x1400cd7e9
cmp dword [rbx + 0x20], esi
jbe 0x1400cd7e9
mov rcx, qword [rbx + 0x70]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rbx + 0x78]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400cd6e8
call sub.KERNEL32.dll_CloseHandle
lea r8, [rsp + 0x40]
mov ecx, 4
lea rdx, [0x1400cc3f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x1400cd75e
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cd7e9
test byte [rcx + 0x1c], 1
je 0x1400cd7e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128308]
mov edx, 0x20
mov r9d, edi
call fcn.1400036d4
jmp 0x1400cd7e9
mov rax, qword [rsp + 0x40]
lea r8, [0x1400cc3f0]
mov qword [rbx + 0x2f0], rax
mov r9, rbx
lea rax, [rbx + 0x88]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], esi
call sub.KERNEL32.dll_CreateThread
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x1400cd7e2
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cd7d6
test byte [rcx + 0x1c], 1
je 0x1400cd7d6
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x14014dd40]
lea r8, [0x140128308]
mov r9d, eax
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov edi, 0x80004005
mov esi, 1
jmp 0x1400cd7e9
mov dword [rbx + 0xc], 1
lea rcx, [rbx + 0x48]
call sub.KERNEL32.dll_LeaveCriticalSection
test esi, esi
je 0x1400cd806
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400cd806
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d5230
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
jne 0x1400d5275
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
lea edx, [rdi + 0xc]
jmp 0x1400d52a0
test rdx, rdx
jne 0x1400d52b5
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
mov edx, reloc.Cabinet.dll_FCIFlushCabinet
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128420]
call fcn.140003614
jmp 0x1400d5366
lea r8, str._DB
mov edx, 0x104
call fcn.140036f20
mov ebx, eax
test eax, eax
jns 0x1400d52f0
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
mov edx, reloc.Cabinet.dll_FCIDestroy
jmp 0x1400d5324
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140036f20
mov ebx, eax
test eax, eax
jns 0x1400d5339
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128420]
mov r9d, ebx
call fcn.1400036d4
jmp 0x1400d5366
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400d5364
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x1400d5364
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400d5366
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d573c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov esi, edx
mov rdi, rcx
xor r14d, r14d
xor edx, edx
mov word [rbp - 0x80], r14w
mov r8d, 0x206
lea rcx, [rbp - 0x7e]
call sub.msvcrt.dll_memset
xor eax, eax
mov word [rsp + 0x60], r14w
mov r9, rdi
mov qword [rsp + 0x62], rax
lea r8, str.SoftwareMicrosoftSQMClient_sAdaptiveSqmThrottling
mov qword [rsp + 0x6a], rax
mov edx, 0x104
mov qword [rsp + 0x72], rax
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
call fcn.140069190
mov edi, eax
test eax, eax
jns 0x1400d57f9
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
lea edx, [r14 + 0x22]
mov r9d, eax
jmp 0x1400d5909
mov r9d, esi
lea r8, [0x14011b7c0]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.140069190
mov edi, eax
test eax, eax
jns 0x1400d5840
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
mov edx, 0x23
jmp 0x1400d57f1
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400d58da
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d58da
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 8
mov r9d, reloc.WSOCK32.dll_inet_ntoa
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400d58d5
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
mov edx, 0x25
jmp 0x1400d58f8
mov edi, r14d
jmp 0x1400d5919
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
mov edx, 0x24
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128420]
call fcn.1400036d4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d5929
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400d6dfc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400d6f50
test rdx, rdx
je 0x1400d6f50
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
mov dword [rsp + 0x70], r14d
and qword [rsp + 0x78], 0
mov eax, 2
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14010617c
mov rbx, rax
mov qword [rsp + 0x78], rax
jmp 0x1400d6e82
test rbx, rbx
jne 0x1400d6ec0
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d6eb6
test byte [rcx + 0x1c], 1
je 0x1400d6eb6
lea edx, [rbx + 0xb]
mov r9d, r14d
lea r8, [0x1401285a0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov edi, 0x8007000e
jmp 0x1400d6f4c
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400d6f2f
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d6f10
test byte [rcx + 0x1c], 1
je 0x1400d6f10
call sub.KERNEL32.dll_GetLastError
mov r9d, eax
mov edx, SafeArrayGetDim
lea r8, [0x1401285a0]
mov rcx, qword [0x14014dd40]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
jmp 0x1400d6f3e
mov rdx, rbx
mov rcx, rsi
call fcn.1400d96cc
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x1400d6f4c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, edi
jmp 0x1400d6f83
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d6f7e
test byte [rcx + 0x1c], 1
je 0x1400d6f7e
mov edx, 0xa
lea r8, [0x1401285a0]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
mov eax, 0x80070057
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d729c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov word [rsp + 0x30], di
test rcx, rcx
je 0x1400d7471
mov word [rcx], di
mov rdx, rcx
mov ecx, 0x104
call sub.KERNEL32.dll_GetTempPathW
test eax, eax
je 0x1400d7413
cmp word [rbx], di
je 0x1400d7413
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400d7301
and eax, 0x10
jne 0x1400d7349
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400d7349
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d7341
test byte [rcx + 0x1c], 1
je 0x1400d7341
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401285a0]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9, rbx
call fcn.140003638
mov word [rbx], di
jmp 0x1400d7450
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_GetLongPathNameW
dec eax
cmp eax, 0x102
ja 0x1400d73bf
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, rbx
call fcn.140036ea4
mov ebx, eax
test eax, eax
jns 0x1400d740f
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d746d
test byte [rcx + 0x1c], 1
je 0x1400d746d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401285a0]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, ebx
call fcn.1400036d4
jmp 0x1400d746d
call sub.KERNEL32.dll_GetLastError
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d740f
test byte [rcx + 0x1c], 2
je 0x1400d740f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401285a0]
mov edx, reloc.Cabinet.dll_FDIDestroy
call fcn.1400036d4
mov ebx, edi
jmp 0x1400d746d
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d7450
test byte [rcx + 0x1c], 1
je 0x1400d7450
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x14014dd40]
lea r8, [0x1401285a0]
mov r9d, eax
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov eax, ebx
jmp 0x1400d74a4
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d749f
test byte [rcx + 0x1c], 1
je 0x1400d749f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401285a0]
mov edx, SafeArrayAccessData
call fcn.140003614
mov eax, 0x80070057
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400d74cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov edi, edx
mov rbp, rcx
call sub.KERNEL32.dll_GetTickCount
and dword [rsp + 0x20], 0
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rbx
mov ecx, edi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov ebx, eax
call sub.KERNEL32.dll_GetTickCount
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d754e
test byte [rcx + 0x1c], 4
je 0x1400d754e
cmp eax, esi
jb 0x1400d752e
sub eax, esi
jmp 0x1400d7532
sub eax, esi
dec eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401285a0]
mov edx, DispGetParam
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.1400056b0
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400d756c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x58], 0
mov esi, r9d
mov rbx, qword [rbp + 0x50]
mov r14, r8
mov dword [rbp + 0x48], r9d
mov rdi, rcx
mov dword [rbp + 0x30], 4
mov qword [rbp + 0x38], rcx
test rbx, rbx
je 0x1400d75a2
and dword [rbx], 0
lea rax, [rbp + 0x38]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d75e8
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
lea rax, [rbp + 0x48]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400d75fc
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400d7611
jmp 0x1400d760d
cmp dword [rbp + 0x58], 4
jne 0x1400d7608
cmp dword [rbp + 0x30], 4
je 0x1400d761f
mov ecx, 0x8007065d
test ecx, ecx
jns 0x1400d761f
mov dword [rbp + 0x48], esi
test rbx, rbx
je 0x1400d761f
mov dword [rbx], 1
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400d7633
cmp rcx, rdi
je 0x1400d7633
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x48]
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret