joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017f8d0
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, 0x101
mov word [rsp + 0x24], ax
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x240]
call fcn.1400202f0
mov rax, qword [rsp + 0x230]
add rax, 8
mov rcx, rax
call fcn.140016540
mov rcx, qword [rsp + 0x238]
call fcn.1400165c0
movzx eax, al
test eax, eax
je 0x14017f953
mov rax, qword [rsp + 0x230]
mov dword [rax], MsiOpenProductA
jmp 0x14017fa50
lea rdx, [rsp + 0x70]
movzx ecx, word [rsp + 0x24]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov rcx, qword [rsp + 0x230]
mov dword [rcx], eax
mov rax, qword [rsp + 0x230]
cmp dword [rax], 0
jne 0x14017fa50
mov rcx, qword [rsp + 0x238]
call fcn.140016520
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14017fa0a
mov dword [rsp + 0x20], 0
jmp 0x14017f9b5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x14017fa08
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov r8d, 4
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x38]
call fcn.140223780
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
mov rcx, qword [rsp + 0x240]
call fcn.14001e770
jmp 0x14017f9ab
jmp 0x14017fa4a
mov rcx, qword [rsp + 0x238]
call fcn.140016520
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x14017fa3c
mov rdx, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x240]
call fcn.14004a110
jmp 0x14017fa4a
mov rax, qword [rsp + 0x230]
mov dword [rax], MsiOpenProductA
call qword [sym.imp.WSOCK32.dll_WSACleanup]
mov rax, qword [rsp + 0x230]
cmp dword [rax], 0
je 0x14017fa99
mov rax, qword [rsp + 0x230]
mov edx, dword [rax]
lea rcx, [rsp + 0x48]
call fcn.1400f1950
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x230]
add rax, 8
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.14001e7a0
lea rcx, [rsp + 0x48]
call fcn.14000a800
mov rax, qword [rsp + 0x230]
cmp dword [rax], 0
jne 0x14017fab0
mov dword [rsp + 0x28], 1
jmp 0x14017fab8
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x228
ret
Function at 0x14017fc80
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0xc8]
call fcn.14000c690
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x28
mov rcx, rax
call fcn.1400165c0
movzx eax, al
test eax, eax
je 0x14017fcf5
mov qword [rsp + 0x68], 0
jmp 0x14017fd0e
mov rax, qword [rsp + 0xc0]
add rax, 0x28
mov rcx, rax
call fcn.14000c690
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14017fd56
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14017feb2
mov eax, dword [rsp + 0x44]
mov ecx, eax
call fcn.140222dcc
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x44]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140223e30
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x88], rax
mov eax, 2
mov rcx, qword [rsp + 0x88]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140222dcc
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xc8]
call fcn.14000c690
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x28
mov rcx, rax
call fcn.1400165c0
movzx eax, al
test eax, eax
je 0x14017fe08
mov qword [rsp + 0x70], 0
jmp 0x14017fe21
mov rax, qword [rsp + 0xc0]
add rax, 0x28
mov rcx, rax
call fcn.14000c690
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14017fe7e
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc0]
call fcn.14017f7e0
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.140222778
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140222778
movzx eax, byte [rsp + 0x40]
add rsp, 0xb8
ret
Function at 0x140180530
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, rax
call fcn.140016540
mov rcx, qword [rsp + 0xa8]
call fcn.1400202f0
mov rcx, qword [rsp + 0x98]
call fcn.1400165c0
movzx eax, al
test eax, eax
jne 0x1401805f6
mov dword [rsp + 0x48], 1
mov r9, 0xffffffffffffffff
mov r8d, 2
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
call fcn.140020a80
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140016520
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov ecx, 4
imul rcx, rcx, 0
mov dword [rsp + rcx + 0x4c], eax
lea rcx, [rsp + 0x50]
call fcn.140015480
mov rcx, qword [rsp + 0xa0]
call fcn.140016520
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 8
mov dx, 1
mov rcx, rax
call sub.DNSAPI.dll_DnsQuery_A
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x14018068a
cmp dword [rsp + 0x48], 0
jbe 0x14018068a
mov rcx, qword [rsp + 0xa0]
call fcn.140016520
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x48]
mov r8d, 8
mov dx, 1
mov rcx, rax
call sub.DNSAPI.dll_DnsQuery_A
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x1401806c1
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
mov rcx, qword [rsp + 0xa8]
call fcn.14001e770
mov al, 1
jmp 0x1401806de
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
call fcn.14017f8d0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x88
ret
Function at 0x140180890
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x28], 6
mov rcx, qword [rsp + 0xd8]
call fcn.140016520
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rsp + 0x2c], eax
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.IPHLPAPI.DLL_SendARP]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1401809c4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x28], 0
jbe 0x1401809c2
lea rcx, [rsp + 0x88]
call fcn.1400cefc0
nop
mov dword [rsp + 0x24], 0
jmp 0x14018094d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jge 0x1401809b0
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.1400486c0
mov eax, dword [rsp + 0x28]
dec eax
cmp dword [rsp + 0x24], eax
jne 0x14018098b
lea rax, str._.2X
mov qword [rsp + 0x38], rax
jmp 0x140180997
lea rax, str._.2X_
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xe0]
call fcn.14001c8a0
jmp 0x140180943
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x88]
call fcn.140018250
jmp 0x1401809fa
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400f1950
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd0]
add rax, 8
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.14001e7a0
lea rcx, [rsp + 0x68]
call fcn.14000a800
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xc8
ret
Function at 0x1401853f0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x40], rax
mov r8d, 2
lea rdx, [0x14031a568]
mov rcx, qword [rsp + 0xf8]
call fcn.14022ae84
test eax, eax
jne 0x140185475
mov rax, qword [rsp + 0x38]
add rax, 4
mov qword [rsp + 0x38], rax
mov r8d, 2
lea rdx, [0x14031a570]
mov rcx, qword [rsp + 0x100]
call fcn.14022ae84
test eax, eax
jne 0x1401854a1
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x34], 8
cmp qword [rsp + 0xf0], 0
je 0x1401854c3
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rax
jmp 0x1401854cf
lea rax, [0x14031a578]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.14001e490
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x88]
call fcn.14001e490
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x88]
lea rcx, str.Looking_up_first_account_information___S__on___S_
call fcn.1401047a0
mov byte [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xf0]
call fcn.140184660
movzx eax, al
test eax, eax
je 0x140185624
cmp qword [rsp + 0xf0], 0
je 0x140185559
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x70], rax
jmp 0x140185565
lea rax, str.Local_System
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x98]
call fcn.14001e490
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.14001e490
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xa8]
lea rcx, str.Looking_up_second_account_information___S__on___S_
call fcn.1401047a0
mov byte [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call fcn.140184660
movzx eax, al
test eax, eax
je 0x1401855f9
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1401855f2
mov byte [rsp + 0x30], 1
jmp 0x1401855f7
mov byte [rsp + 0x30], 0
jmp 0x140185622
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0xb8]
call fcn.140048710
lea rdx, [rsp + 0xb8]
lea rcx, str.Failed_to_lookup_second_account_name___d_
call fcn.140102b80
jmp 0x14018564d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0xc8]
call fcn.140048710
lea rdx, [rsp + 0xc8]
lea rcx, str.Failed_to_lookup_first_account_name___d_
call fcn.140102b80
mov rcx, qword [rsp + 0x48]
call fcn.140229904
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x50]
call fcn.140229904
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
call fcn.140229904
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x60]
call fcn.140229904
mov qword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0xe8
ret
Function at 0x1401877e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
inc eax
mov eax, eax
mov qword [rsp + 0x40], rax
mov eax, 2
mov rcx, qword [rsp + 0x40]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140222dcc
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140024d30
nop
lea rcx, [rsp + 0x30]
call fcn.140009d90
mov r8d, dword [rsp + 0x24]
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x60]
call fcn.14000df30
nop
lea rcx, [rsp + 0x30]
call fcn.140009d90
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.1400f49a0
nop
lea rcx, [rsp + 0x78]
call fcn.14000a800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140009d90
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x38]
call fcn.14000af40
mov qword [rsp + 0x50], rax
jmp 0x1401878f1
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x28], rax
je 0x140187948
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x58]
call fcn.1400f6010
test rax, rax
je 0x140187946
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x60]
call fcn.1400183c0
nop
lea rcx, [rsp + 0x30]
call fcn.14008f1e0
movzx eax, byte [rsp + 0x20]
jmp 0x140187967
jmp 0x1401878e3
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x60]
call fcn.1400183c0
nop
lea rcx, [rsp + 0x30]
call fcn.14008f1e0
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xa8
ret
Function at 0x14018b070
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc0]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018b0ce
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc0]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018b2fa
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x48], rax
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [rsp + SQLSetEnvAttr]
movzx eax, al
test eax, eax
je 0x14018b2fa
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x1e8]
mov cx, 3
call fcn.14025ae48
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x198]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x90
movsx ecx, word [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov rax, qword [rsp + 0xc0]
mov r8, qword [rax + 0x1e8]
mov edx, ecx
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x50]
movzx eax, al
test eax, eax
je 0x14018b2e4
lea rcx, [rsp + 0x88]
call fcn.14000a280
nop
mov rax, qword [rsp + 0xc0]
add rax, 0x100
mov rcx, rax
call fcn.14000c690
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14001e490
lea r8, [rsp + 0x78]
lea rdx, str.SELECT__FROM_sys.schemas_WHERE_NAME_S
lea rcx, [rsp + 0x88]
call fcn.140014cf0
lea rcx, [rsp + 0x88]
call fcn.140016630
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x88]
call fcn.14000c690
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call sub.ODBC32.dll_SQLExecDirectW
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x198]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x90
movsx ecx, word [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8, qword [rsp + 0x38]
mov edx, ecx
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x68]
movzx eax, al
test eax, eax
je 0x14018b2c8
mov rcx, qword [rsp + 0x38]
call sub.ODBC32.dll_SQLFetch
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x198]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x90
movsx ecx, word [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8, qword [rsp + 0x38]
mov edx, ecx
mov rcx, qword [rsp + 0xc0]
call qword [rsp + MsiRecordGetStringA]
movzx eax, al
test eax, eax
je 0x14018b2c8
mov byte [rsp + 0x30], 1
mov rdx, qword [rsp + 0x38]
mov cx, 3
call sub.ODBC32.dll_SQLFreeHandle
nop
lea rcx, [rsp + 0x88]
call fcn.14000a800
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc0]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xb8
ret
Function at 0x14018cab0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018cb0b
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018cbd1
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x28], rax
mov dl, 1
mov rcx, qword [rsp + 0x90]
call qword [rsp + SQLGetData]
movzx eax, al
test eax, eax
je 0x14018cbd1
lea rcx, [rsp + 0x38]
call fcn.14000df30
nop
lea rdx, str.SELECT__id__FROM__admin__WHERE__superuser___1
lea rcx, [rsp + 0x50]
call fcn.1400179b0
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x38]
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
call qword [rsp + reloc.msi.dll_MsiGetDatabaseState]
test eax, eax
jne 0x14018cba5
lea rcx, [rsp + 0x38]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018cba5
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x50]
call fcn.14000a800
nop
lea rcx, [rsp + 0x38]
call fcn.140057b10
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x88
ret
Function at 0x14018cc00
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x14018cc5b
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x14018cd21
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x28], rax
mov dl, 1
mov rcx, qword [rsp + 0x90]
call qword [rsp + SQLGetData]
movzx eax, al
test eax, eax
je 0x14018cd21
lea rcx, [rsp + 0x38]
call fcn.14000df30
nop
lea rdx, str.SELECT_1_FROM__Clients__WHERE__ClientId____API_USER_REST
lea rcx, [rsp + 0x50]
call fcn.1400179b0
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x38]
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
call qword [rsp + reloc.msi.dll_MsiGetDatabaseState]
test eax, eax
jne 0x14018ccf5
lea rcx, [rsp + 0x38]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x14018ccf5
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x50]
call fcn.14000a800
nop
lea rcx, [rsp + 0x38]
call fcn.140057b10
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x88
ret
Function at 0x140191d50
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
movzx eax, al
test eax, eax
jne 0x140191dab
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + MsiDatabaseExportA]
test eax, eax
jne 0x140191ee2
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x28], rax
mov dl, 1
mov rcx, qword [rsp + 0x90]
call qword [rsp + SQLGetData]
movzx eax, al
test eax, eax
je 0x140191ee2
lea rcx, [rsp + 0x40]
call fcn.14000df30
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x178]
mov qword [rsp + 0x30], rax
mov rdx, qword [str.SELECT_CASE_WHEN_dm.mirroring_state_desc_IS_NOT_NULL_OR_dhdrs.group_database_id_IS_NOT_NULL_THEN_1_ELSE_0_END_FROM_sys.databases_sd_LEFT_JOIN_sys.database_mirroring_dm_ON_sd.database_id__dm.database_id_LEFT_JOIN_sys.dm_hadr_database_replica_states_dhdrs_ON_sd.database_id__dhdrs.database_id_AND_dhdrs.is_local__1_WHERE_DB_NAME_sd.database_id___rdsadmin_]
lea rcx, [rsp + 0x58]
call fcn.1400179b0
nop
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call qword [rsp + reloc.msi.dll_MsiGetDatabaseState]
test eax, eax
jne 0x140191e39
mov dword [rsp + 0x24], 1
jmp 0x140191e41
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x58]
call fcn.14000a800
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140191ec1
lea rcx, [rsp + 0x40]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x140191ec1
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14002d0f0
mov rcx, rax
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x140191ec1
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14002d0f0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140071750
lea rdx, [0x14031c73c]
mov rcx, rax
call fcn.14003a7a0
movzx eax, al
test eax, eax
je 0x140191ec1
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.msi.dll_MsiGetDatabaseState]
nop
lea rcx, [rsp + 0x40]
call fcn.140057b10
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x88
ret
Function at 0x1401a9620
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x48]
call fcn.14000a280
nop
mov rax, qword [rsp + 0x80]
mov rcx, rax
call fcn.1401a9280
movzx eax, al
test eax, eax
je 0x1401a96ab
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x28]
call fcn.140015290
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140015290
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x38]
lea rdx, str.IF_EXISTS___SELECT__FROM_INFORMATION_SCHEMA.TABLES_WHERE_table_name_____________________________S___BEGIN_EXEC__DROP_TABLE___S_____END
lea rcx, [rsp + 0x48]
call fcn.14001d950
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
call fcn.14000a200
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x48]
call fcn.14000a800
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x78
ret