joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100454200
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov eax, dword [0x1004adcdc]
mov rsi, rdx
cmp eax, dword [0x1004add50]
mov rbp, rcx
jne 0x100454229
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [0x1004adcdc]
test eax, eax
lea rcx, [0x1004adf70]
lea r14, [0x1004add60]
cmovne r14, rcx
cmp word [r14], 0
jne 0x10045424f
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov edi, 0x80
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x100454352
mov qword [rsp + 0x60], r12
lea r12, [0x1004ae180]
mov qword [rsp + 0x68], r15
mov r15d, 0xffff
test rbp, rbp
je 0x1004542da
test rsi, rsi
je 0x1004542da
mov qword [rsp + 0x28], r12
lea r8, [0x10047782c]
mov r9, rbx
mov dword [rsp + 0x20], edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [rdi - 1]
cmp eax, ecx
je 0x1004542d5
cmp word [rbx], r15w
jne 0x1004542d5
cmp word [rbx + 2], 0
je 0x1004542da
cmp eax, 0xffffffff
jne 0x1004542f9
mov qword [rsp + 0x28], r14
lea r8, [0x10047782c]
mov r9, rbx
mov dword [rsp + 0x20], edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test rbp, rbp
je 0x100454306
lea ecx, [rdi - 1]
test rsi, rsi
jne 0x100454309
lea ecx, [rdi - 2]
cmp eax, ecx
jne 0x100454348
add edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, edi
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x100454298
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret

Function at 0x100454540
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r8d, 5
lea rcx, str.__MSSQL_XCOPY_SETUP
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100454582
call qword [sym.imp.KERNEL32.dll_DebugBreak]
cmp word [0x1004add60], 0
jne 0x100454593
mov eax, 3
jmp 0x1004545b7
lea r9, [0x1004add60]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x1004545b1
xor eax, eax
jmp 0x1004545b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.100469360
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1004546f0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r12
sub rsp, 0x78
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1004adcdc]
mov r12, rdx
cmp eax, dword [0x1004add50]
mov rbp, rcx
jne 0x100454727
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [0x1004adcdc]
test eax, eax
jne 0x10045474b
lea r8d, [rax + 5]
lea rdx, [rsp + 0x30]
lea rcx, str.__MSSQL_XCOPY_SETUP
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10045474b
call qword [sym.imp.KERNEL32.dll_DebugBreak]
test rbp, rbp
jne 0x10045475d
call qword [sym.imp.KERNEL32.dll_DebugBreak]
xor eax, eax
jmp 0x1004548f6
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x70], rsi
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x68], rdi
mov rbx, rsi
mov qword [rsp + 0x60], r13
xor edi, edi
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
nop word [rax + rax]
inc rbx
cmp word [rbp + rbx*2], di
jne 0x100454790
lea r13, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft_SQL_ServerMSSQLMSSQLServerParametersTraceflags
xor r14d, r14d
mov r15, r13
cmp r14d, 1
jae 0x1004547e2
mov r9d, dword [r15 + 8]
mov edx, 1
mov r8, qword [r15]
mov ecx, 0x400
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
cmove esi, r14d
inc r14d
add r15, 0x20
cmp esi, 0xffffffff
je 0x1004547a7
jmp 0x1004547e7
cmp esi, 0xffffffff
je 0x1004547fc
movsxd rax, esi
shl rax, 5
mov rsi, qword [rax + r13 + 0x10]
test rsi, rsi
jne 0x10045488f
test r12, r12
je 0x1004548d2
mov rdx, r12
mov rcx, rbp
call fcn.1004545e0
cmp eax, 0xffffffff
je 0x1004548d2
lea r14, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft_SQL_ServerMSSQLMSSQLServerEULA
cdqe
lea rcx, [rax + rax*4]
add rcx, rcx
mov rsi, qword [r14 + rcx*8 + 0x20]
mov r12, qword [r14 + rcx*8 + 0x30]
mov r14, qword [r14 + rcx*8 + 0x40]
test rsi, rsi
je 0x1004548d2
test r14, r14
je 0x10045488f
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
je 0x10045488a
mov ebx, ebp
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x10045488a
mov r8d, ebp
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test rdi, rdi
jne 0x1004548ab
cmp dword [0x1004adcdc], 0
je 0x1004548d2
mov rdx, r12
mov rcx, rsi
call fcn.100454200
mov rdi, rax
test rax, rax
je 0x1004548d2
mov eax, 0xffff
cmp word [rdi], ax
jne 0x1004548d2
cmp word [rdi + 2], 0
jne 0x1004548d2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov r15, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.100469360
add rsp, 0x78
pop r12
pop rbp
ret
Function at 0x100454d60
Capabilities:
Read .ini file

Disassembly:
cmp dword [0x1004add50], 0
jne case.default.0x100454d72
cmp dword [0x1004adcdc], 0
jne case.default.0x100454d72
jmp qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r8, qword [rsp + 0x28]
jmp fcn.100454a30
push rax
and al, 0x93
invalid
Function at 0x100455200
Capabilities:
Query environment variable
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [0x1004add50], 0
mov ebx, r9d
mov rsi, qword [rsp + 0xb0]
mov r14, rdx
mov qword [rsp + 0x30], rdx
mov rdi, rcx
jne 0x10045525f
cmp dword [0x1004adcdc], 0
jne 0x10045525f
mov eax, dword [rsp + 0xb8]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10045540b
mov qword [rsp + 0x60], r12
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x58], r13
lea rcx, str.__MSSQL_XCOPY_SETUP
mov r8d, 5
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1004553f0
mov rcx, rdi
call fcn.100453f70
mov qword [rsp + 0x38], rax
test r14, r14
jne 0x1004552b3
lea ecx, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [r14 + 3]
jmp 0x1004553fc
test rsi, rsi
je 0x1004553f0
cmp ebx, 1
jne 0x1004552d6
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.100454540
mov ebx, eax
jmp 0x1004553f2
cmp ebx, 3
jne 0x1004553f0
mov r12d, dword [rsp + 0xb8]
lea r15d, [r12*2 + 5]
add r15d, r12d
mov edi, r15d
lea rbx, [r15 + r15]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x1004553e9
lea r9, str.hex:
mov r8d, edi
mov edx, edi
mov rcx, rax
call fcn.1004569b0
cmp eax, 0xffffffff
jne 0x10045533a
lea ebx, [rax + 9]
jmp 0x1004553cc
xor ebx, ebx
mov qword [rsp + 0xa0], rbp
mov edi, 4
mov ebp, ebx
test r12d, r12d
je 0x10045539e
lea r14d, [rdi + 3]
cmp r14d, r15d
ja 0x1004553e2
movzx r8d, byte [rsi]
lea r9, str._02x_
mov edx, r15d
mov eax, edi
sub edx, edi
mov dword [rsp + 0x20], r8d
mov r8d, edx
lea rcx, [rax*2]
add rcx, r13
call fcn.1004569b0
cmp eax, 0xffffffff
je 0x1004553e2
inc ebp
inc rsi
mov edi, r14d
cmp ebp, r12d
jb 0x100455350
mov r14, qword [rsp + 0x30]
cmp edi, r15d
jbe 0x1004553a9
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rcx, qword [rsp + 0x38]
lea eax, [rdi - 1]
mov r8, r13
mov word [r13 + rax*2], bx
mov rdx, r14
call fcn.100454540
mov ebx, eax
mov rbp, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1004553f2
mov ebx, 8
jmp 0x1004553c4
mov ebx, 8
jmp 0x1004553f2
xor ebx, ebx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.100469360
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x100456090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movzx r15d, dl
xor r12d, r12d
mov dword [rbp - 0x29], r12d
mov dword [rsp + 0x20], r12d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call sub.VCRUNTIME140.dll___RTDynamicCast
mov r14, rax
test r15b, r15b
je 0x1004562a1
test rax, rax
je 0x1004562a1
lea rdx, [rax + 0x38]
lea rcx, [rbp + 0xf]
call fcn.10040d8f0
mov esi, 1
mov dword [rbp - 0x29], esi
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100456247
test al, 0x10
je 0x100456247
lea rax, [rbp + 0xf]
mov r8, qword [rbp + 0xf]
mov rcx, qword [rbp + 0x27]
cmp rcx, 8
cmovae rax, r8
mov rdx, qword [rbp + 0x1f]
cmp word [rax + rdx*2 - 2], 0x5c
je 0x1004561cb
lea rax, [rbp + 0xf]
cmp rcx, 8
cmovae rax, r8
cmp word [rax + rdx*2 - 2], 0x2f
je 0x1004561cb
mov rax, rcx
sub rax, rdx
cmp rax, rsi
jb 0x1004561a7
lea rdi, [rdx + 1]
mov qword [rbp + 0x1f], rdi
lea rbx, [rbp + 0xf]
cmp rcx, 8
cmovae rbx, r8
lea rcx, [rbx + rdx*2]
lea r8d, [r12 + 2]
lea rdx, [0x100480960]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x1004561bf
mov qword [rsp + 0x20], rsi
lea r9, [0x100480960]
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.10040c250
mov r8, qword [rbp + 0xf]
mov rdx, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
sub rax, rdx
cmp rax, 0xc
jb 0x100456208
lea rdi, [rdx + 0xc]
mov qword [rbp + 0x1f], rdi
lea rbx, [rbp + 0xf]
cmp rcx, 8
cmovae rbx, r8
lea rcx, [rbx + rdx*2]
mov r8d, 0x18
lea rdx, str.SQLAGENT.OUT
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x100456226
mov qword [rsp + 0x20], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r9, str.SQLAGENT.OUT
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rbp + 0xf]
call fcn.10040c250
lea rax, [rbp - 0x11]
mov qword [rbp - 0x19], rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.10040d8f0
nop
mov rdx, rax
mov rcx, r14
call fcn.100451e80
and esi, 0xfffffffe
mov dword [rbp - 0x29], esi
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x100456290
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x10045628b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x10045628b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], r12w
movzx eax, r15b
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x90]
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 0x100461510
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x40], rsp
mov qword [rsp + 0x38], 0
cmp dword [rcx + 0x14], 0
jne 0x1004615be
lea rdx, [rsp + 0x38]
call fcn.100461640
test eax, eax
je 0x1004615be
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1004615be
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.RunWithIPORDependency
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004615a4
cmp dword [rsp + 0x30], eax
je 0x1004615a4
lea rdx, [0x10046159a]
mov rcx, rsp
call sub.VCRUNTIME140.dll__local_unwind
nop
nop
mov eax, 1
add rsp, 0x58
ret
lea rdx, [0x1004615b7]
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll__local_unwind
nop
nop
xor eax, eax
add rsp, 0x58
ret
lea rdx, [0x1004615d1]
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll__local_unwind
nop
nop
xor eax, eax
add rsp, 0x58
ret
Function at 0x100461640
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rdi, rdx
mov dword [rsp + 0x60], 1
mov rbx, rcx
mov dword [rsp + 0x68], 0x105
xor edx, edx
lea rcx, str.MSSQLSERVER
lea r8, [rsp + 0x70]
call qword [sym.imp.instapi150.dll_GetSvcInstanceIDFromName]
test eax, eax
jne 0x1004616ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 8], 0
je 0x1004617db
xor edi, edi
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rcx
lea rcx, str.OpenSQLServerInstanceRegKey:GetSvcInstanceIDFromName_failed
jmp 0x10046176f
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x70]
call qword [sym.imp.instapi150.dll_GetInstRootRegPathByID]
test eax, eax
jne 0x100461713
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 8], 0
je 0x1004617db
xor edi, edi
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rcx
lea rcx, str.OpenSQLServerInstanceRegKey:GetInstRootRegPathByID_failed
jmp 0x10046176f
lea rax, str.Cluster
mov edx, 0x105
lea r9, [rbp + 0x200]
mov qword [rsp + 0x20], rax
lea r8, str._ls_ls
lea rcx, [rbp - 0x10]
call fcn.10040b460
test eax, eax
jns 0x100461801
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 8], 0
je 0x1004617db
xor edi, edi
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rcx
lea rcx, str.OpenSQLServerInstanceRegKey:StringCchPrintfW_failed
mov qword [rsp + 0x50], rcx
lea r8, [0x100471ea8]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x58], rdi
mov r9d, eax
mov edx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.10040b460
mov qword [rsp + 0x40], rdi
lea rcx, [rbp - 0x30]
test eax, eax
mov r9d, 0xc0000144
mov eax, 2
cmovs rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rbx + 8]
lea edx, [rax - 1]
mov dword [rsp + 0x30], edi
lea r8d, [rax + 3]
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
xor eax, eax
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov edx, dword [rsp + 0x60]
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x10]
call qword [sym.imp.instapi150.dll_GetRegKeyAccessMask]
test eax, eax
je 0x1004617db
mov r9d, dword [rsp + 0x60]
lea rdx, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100461866
cmp eax, 2
je 0x1004617db
cmp qword [rbx + 8], 0
je 0x1004617db
xor edi, edi
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rcx
lea rcx, str.OpenSQLServerInstanceRegKey:RegOpenKeyExW_failed
jmp 0x10046176f
mov eax, 1
jmp 0x1004617dd
Function at 0x100464220
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.NTDLL.DLL
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
call fcn.100464bd0
mov byte [0x10049b9aa], 1
call fcn.100463830
test eax, eax
je 0x10046426e
call fcn.100464c90
mov ebx, 2
jmp 0x1004643f6
lea rdx, str.GetDynamicTimeZoneInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetTimeZoneInformation
mov rcx, rbx
mov qword [0x1004aa058], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1004819e8]
mov rcx, rbx
mov qword [0x1004aa060], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1004819f8]
mov rcx, rbx
mov qword [0x1004aa078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlCutoverTimeToSystemTime
mov rcx, rdi
mov qword [0x1004aa070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1004aa058], 0
mov qword [0x1004aa068], rax
je 0x1004643ec
cmp qword [0x1004aa060], 0
je 0x1004643ec
cmp qword [0x1004aa078], 0
je 0x1004643ec
cmp qword [0x1004aa070], 0
je 0x1004643ec
test rax, rax
je 0x1004643ec
lea rdx, [0x100464050]
lea rcx, [0x1004aa058]
call fcn.1004650a0
test eax, eax
jne 0x1004643d9
lea rdx, [0x100463f80]
lea rcx, [0x1004aa060]
call fcn.1004650a0
test eax, eax
jne 0x1004643d9
lea rdx, [0x100464150]
lea rcx, [0x1004aa078]
call fcn.1004650a0
test eax, eax
jne 0x1004643d9
lea rdx, [0x1004641b0]
lea rcx, [0x1004aa070]
call fcn.1004650a0
test eax, eax
jne 0x1004643d9
call fcn.100464dd0
test eax, eax
jne 0x1004643d9
mov edx, 0x20
lea rcx, [0x1004a93a0]
nop dword [rax + rax]
lea rax, [rdx + 0x7fffffde]
test rax, rax
je 0x1004643bc
cmp word [rcx], 0
je 0x1004643bc
add rcx, 2
sub rdx, 1
jne 0x1004643a0
test rdx, rdx
lea rax, [rcx - 2]
mov ebx, 0x8007007a
cmovne rax, rcx
xor ecx, ecx
test rdx, rdx
cmovne ebx, ecx
mov word [rax], cx
jmp 0x1004643fd
mov byte [0x10049b9aa], 0
call fcn.100464c90
mov ebx, 6
jmp 0x1004643fd
call fcn.100464c90
mov ebx, 1
mov byte [0x10049b9aa], 0
test ebx, ebx
je 0x100464457
call fcn.100464bd0
lea rdx, [0x100464050]
lea rcx, [0x1004aa058]
call fcn.100465560
lea rdx, [0x100463f80]
lea rcx, [0x1004aa060]
call fcn.100465560
lea rdx, [0x100464150]
lea rcx, [0x1004aa078]
call fcn.100465560
lea rdx, [0x1004641b0]
lea rcx, [0x1004aa070]
call fcn.100465560
call fcn.100464c90
mov ecx, ebx
or ecx, 0x80000000
test ebx, ebx
cmovne ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x100464480
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1004644ae
xor al, al
jmp 0x1004644f0
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1004644bf
xor al, al
jmp 0x1004644f0
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1004644e6
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1004644e6
mov al, 1
jmp 0x1004644f0
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret

Function at 0x100464740
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x100464762
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x100464826
nop dword [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x10046478b
add rbx, 0x8000000
jmp 0x10046481d
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x100464826
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x100464802
cmp rcx, 0x10000
jb 0x100464802
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x100464828
add rbx, 0x10000
jmp 0x10046481d
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x10046481d
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x100464770
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x100464840
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x100464924
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x10046488b
sub rbx, 0x8000000
jmp 0x10046491b
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x100464924
cmp dword [rsp + 0x40], 0x10000
jne 0x1004648ff
cmp qword [rsp + 0x38], 0x10000
jb 0x1004648ff
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x100464926
sub rbx, 0x10000
jmp 0x10046491b
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x100464870
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret