joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070ab8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r12, r9
mov rdi, r8
mov r15, rdx
and qword [rbp - 0x18], 0
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x140070b20
test byte [rcx + 0x1c], 2
je 0x140070b20
cmp byte [rcx + 0x19], 5
jb 0x140070b20
mov edx, reloc.Cabinet.dll_FCIDestroy
lea r8, [0x140123f00]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
mov rax, qword [r15]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
lea r8, [rbp - 0x18]
lea rdx, [0x140122f20]
mov rcx, r15
call rbx
mov esi, eax
test eax, eax
js 0x140070c9d
lea rcx, [rbp + 0x30]
call fcn.14007969c
mov esi, eax
test eax, eax
js 0x140070c9d
mov r14, qword [rbp + 0x30]
mov rax, qword [r14]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, r14
call rbx
mov rdx, qword [rbp - 0x18]
xor esi, esi
mov qword [r14 + 0x48], rdi
lea rcx, [r14 + 0x50]
cmp qword [rcx], rdx
je 0x140070b8d
call fcn.14001bcb0
and qword [rsp + 0x28], rsi
and dword [rsp + 0x20], esi
mov r9, r14
lea r8, [0x14006ffc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 0x60], rax
test rax, rax
jne 0x140070bc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x140070c87
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
mov r9, r15
mov r8d, 1
lea rdx, [0x140123f40]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_ConnectToConnectionPoint]
mov esi, eax
test eax, eax
js 0x140070c87
and dword [rbp - 0x20], 0
and dword [rbp + 0x30], 0
and dword [rbp + 0x38], 0
mov rbx, qword [rbp - 0x18]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x28]
mov rcx, rdi
call qword [fcn.140009050]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call rdi
cmp dword [rbp + 0x30], 0
jne 0x140070c61
cmp dword [rbp + 0x38], 0
jne 0x140070c61
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
mov r9, r15
xor r8d, r8d
lea rdx, [0x140123f40]
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_ConnectToConnectionPoint]
mov esi, 0x80070490
jmp 0x140070c87
mov rbx, qword [rbp - 0x18]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [fcn.140009050]
mov edx, 2
mov r8d, 0x3e8
mov rcx, rbx
call rdi
mov esi, eax
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, r14
call rbx
nop
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x140070cbb
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
mov eax, esi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140071344
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, rdx
mov rsi, rcx
lea rdx, [rbp - 0x18]
call fcn.1400702d0
nop
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x30], rax
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x18]
call fcn.1400702f4
mov r14d, eax
test eax, eax
js 0x1400714ca
lea rdx, str.SELECT_System.ItemNameDisplay__System.ItemUrl_FROM_SystemIndex_WHERE_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_stream__AND_NOT_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_hidden__AND_System.Shell.OmitFromView___true_AND__System.ItemType__.wpl_OR_System.ItemType__.m3u_
lea rcx, [rbp + 0x40]
call fcn.140004d1c
nop
mov r8d, 5
lea rdx, [0x140122e20]
lea rcx, [rbp + 0x40]
call fcn.1400046e8
mov rdx, qword [rbp - 0x30]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x40]
call fcn.1400046e8
mov r8d, 0x24
lea rdx, str._ORDER_BY_System.ItemNameDisplay_ASC
lea rcx, [rbp + 0x40]
call fcn.1400046e8
mov rdi, qword [rsi + 0x10]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [fcn.140009050]
mov r8, qword [rbp + 0x40]
lea rdx, [0x140127788]
mov rcx, rdi
call rbx
mov r14d, eax
test eax, eax
js 0x14007149b
and qword [rbp + 0x48], 0
mov rdi, qword [rsi + 0x10]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.140009050]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.:s_f
xor edx, edx
mov rcx, rdi
call rbx
mov r14d, eax
test eax, eax
js 0x14007147c
mov r8, r15
mov rdx, qword [rbp + 0x48]
mov rcx, rsi
call fcn.14007046c
mov r14d, eax
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x14007149b
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
nop
mov rsi, qword [rbp + 0x40]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x1400714ca
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp - 0x30]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x1400714f9
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r14d
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400715b0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, rdx
mov r14, rcx
lea rdx, str.SELECT_System.ItemNameDisplay__System.FileAttributes_FROM_SystemIndex_WHERE_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_stream__AND_NOT_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_hidden__AND_NOT_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_link__AND_System.Shell.OmitFromView___true_AND_System.ContentType_IS_NOT_NULL
lea rcx, [rbp + 0x40]
call fcn.140004d1c
nop
xor esi, esi
xor ebx, ebx
xor edi, edi
lea r13, [0x140122f48]
mov r8d, dword [rdi + r13]
lea rdx, [rbp - 0x18]
mov rcx, qword [r14 + 8]
call fcn.140071d58
mov rax, qword [rbp - 0x10]
add ebx, dword [rax + 8]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rdi, 4
cmp rdi, 0x10
jb 0x1400715f5
test ebx, ebx
je 0x1400716b9
xor edi, edi
lea r8d, [rdi + 6]
lea rdx, str._AND__
lea rcx, [rbp + 0x40]
call fcn.1400046e8
xor ebx, ebx
cmp rbx, 0x10
jae 0x1400716a3
mov r8d, dword [rbx + r13]
lea rdx, [rbp - 0x28]
mov rcx, qword [r14 + 8]
call fcn.140071d58
nop
mov r15, qword [rbp - 0x20]
cmp qword [r15 + 8], 0
jbe 0x14007168d
test edi, edi
je 0x14007167e
mov r8d, 4
lea rdx, str._OR
lea rcx, [rbp + 0x40]
call fcn.1400046e8
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x28]
call fcn.1400702f4
mov esi, eax
add edi, dword [r15 + 8]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rbx, 4
test esi, esi
jns 0x140071641
mov r8d, 1
lea rdx, [0x14011d80c]
lea rcx, [rbp + 0x40]
call fcn.1400046e8
test esi, esi
js 0x14007177b
mov rdi, qword [r14 + 0x20]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [fcn.140009050]
mov r8, qword [rbp + 0x40]
lea rdx, [0x140127788]
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x14007177b
and qword [rbp + 0x50], 0
mov rdi, qword [r14 + 0x20]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.140009050]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.:s_f
xor edx, edx
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
js 0x14007175c
lea r9, [r14 + 0x30]
mov r8, r12
mov rdx, qword [rbp + 0x50]
call fcn.140070ab8
mov esi, eax
test eax, eax
js 0x14007175c
lea rcx, [r14 + 0x28]
mov rbx, qword [rbp + 0x50]
cmp qword [rcx], rbx
je 0x140071760
mov rdx, rbx
call fcn.14001bcb0
mov rbx, qword [rbp + 0x50]
test rbx, rbx
je 0x14007177b
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
nop
mov r14, qword [rbp + 0x40]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400717aa
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, esi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007298c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rcx, r9
mov rdx, qword [r8]
mov rdi, r9
mov r8d, dword [rdx - 0x10]
call fcn.1400046e8
mov r8d, 1
lea rdx, [0x14011c5e4]
mov rcx, rdi
call fcn.1400046e8
mov r9, qword [rbx]
or rbx, 0xffffffffffffffff
mov rdx, rbx
xor esi, esi
inc rdx
cmp word [r9 + rdx*2], si
jne 0x1400729dc
mov eax, 0x811c9dc5
mov r8, rsi
add rdx, rdx
je 0x140072a08
movzx ecx, byte [r8 + r9]
inc r8
imul eax, eax, 0x1000193
xor eax, ecx
cmp r8, rdx
jb 0x1400729f3
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x20]
mov ecx, eax
lea r8d, [r9 + 0x11]
call qword [sym.imp.msvcrt.dll__ultow_s]
lea rax, [rsp + 0x20]
inc rbx
cmp word [rax + rbx*2], si
jne 0x140072a24
mov r8d, ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400046e8
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140087c84
Capabilities:
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
or r14, 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
mov ebx, ebp
test rdx, rdx
jne 0x140087cb3
mov eax, ebp
jmp 0x140087cbf
mov rax, r14
inc rax
cmp word [rdx + rax*2], bp
jne 0x140087cb6
mov r8d, eax
call fcn.1400051bc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
mov r15d, 0x80070000
test rax, rax
jne 0x140087cff
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140087dcd
mov edx, 1
mov rcx, rsi
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov qword [rdi + 0x18], rax
cmp rax, r14
jne 0x140087d2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140087dcd
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], rbp
xor r8d, r8d
lea rcx, [0x1401277b8]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
js 0x140087dbe
mov rcx, qword [rsp + 0x50]
mov edx, 1
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov qword [rdi + 0x20], rax
cmp rax, r14
jne 0x140087d83
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140087dbe
mov qword [rsp + 0x28], rbp
lea r8, [0x1400886b0]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140087dbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x140087dfb
mov rcx, qword [rdi + 0x18]
cmp rcx, r14
je 0x140087de0
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov qword [rdi + 0x18], r14
mov rcx, qword [rdi + 0x20]
cmp rcx, r14
je 0x140087df3
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov qword [rdi + 0x20], r14
mov rcx, rdi
call fcn.140088c70
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400b82e4
Capabilities:
Get routing table

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, rdx
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
mov eax, 5
cmp rcx, rdx
je 0x1400b833b
test byte [rcx + 0x1c], 1
je 0x1400b833b
cmp byte [rcx + 0x19], al
jb 0x1400b833b
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3c]
mov r9, r12
lea r8, [0x1401271e8]
call fcn.140003710
xor esi, esi
or eax, 0xffffffff
and dword [rsp + 0x50], esi
xor edi, edi
mov qword [rsp + 0x58], rsi
mov ebp, eax
mov r14d, eax
lea r15d, [rdi + 2]
test r12, r12
jne 0x1400b8363
mov ebx, 0x80004003
jmp 0x1400b844f
mov ecx, 0x3c
call fcn.1401061b4
mov rdi, rax
test rax, rax
jne 0x1400b837f
mov ebx, 0x8007000e
jmp 0x1400b844f
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov ebx, eax
cmp eax, 0x7a
jne 0x1400b83d6
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov ecx, dword [rsp + 0x50]
call fcn.1401061b4
mov rdi, rax
test rax, rax
je 0x1400b8375
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
test eax, eax
je 0x1400b83e0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400b83dc
or ebx, 0x80070000
test ebx, ebx
js 0x1400b844f
cmp dword [rdi], esi
jbe 0x1400b840a
mov ecx, dword [rdi]
lea rax, [rdi + 8]
cmp dword [rax - 4], esi
jne 0x1400b8400
cmp dword [rax], esi
jne 0x1400b8400
cmp dword [rax + 0x20], r14d
jae 0x1400b8400
mov ebp, dword [rax + 0xc]
mov r14d, dword [rax + 0x20]
add rax, 0x38
sub rcx, 1
jne 0x1400b83ea
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov ecx, r15d
call fcn.1400e91b4
mov rsi, qword [rsp + 0x58]
mov ebx, eax
test eax, eax
js 0x1400b844f
mov rdx, rsi
test rsi, rsi
je 0x1400b844a
cmp dword [rdx + 4], ebp
je 0x1400b84bf
cmp ebp, 0xffffffff
jne 0x1400b8441
cmp dword [rdx + 0x68], 1
je 0x1400b84bf
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x1400b842d
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400b84a6
test byte [rcx + 0x1c], 1
je 0x1400b84a6
movzx eax, byte [rcx + 0x19]
test ebx, ebx
mov edx, 5
cmovns r15d, edx
cmp eax, r15d
jl 0x1400b84a6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401271e8]
mov edx, 0x42
mov r9d, ebx
call fcn.1400036d4
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rdx, qword [rdx + 0x18]
test rdx, rdx
je 0x1400b844a
cmp qword [rdx + 0x10], 0
je 0x1400b84e1
cmp dword [rdx + 0x18], 0
jle 0x1400b84e1
movsxd rax, dword [rdx + 0x18]
cmp rax, 0x80
jbe 0x1400b84e7
mov rdx, qword [rdx + 8]
jmp 0x1400b84c3
movsxd r8, dword [rdx + 0x18]
mov rcx, r12
mov rdx, qword [rdx + 0x10]
call sub.msvcrt.dll_memcpy
jmp 0x1400b844f
Function at 0x1400b8e60
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov esi, edx
mov r14, rcx
mov qword [rsp + 0x38], rcx
lea r12, [0x14014dd40]
mov rcx, qword [0x14014dd40]
mov r15d, 5
cmp rcx, r12
je 0x1400b8ed9
test byte [rcx + 0x1c], 1
je 0x1400b8ed9
cmp byte [rcx + 0x19], r15b
jb 0x1400b8ed9
lea edx, [r15 + 0xa]
mov r9d, esi
lea r8, [0x1401272f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [r14 + 0x80], esi
and dword [r14 + 0x84], 0
cmp qword [r14 + 0x78], 0
je 0x1400b9022
cmp qword [r14 + 0x38], 0
je 0x1400b8f4e
xor ecx, ecx
cmp dword [r14 + 0x40], ecx
jbe 0x1400b8f26
mov rdx, qword [r14 + 0x30]
cmp qword [rdx + rcx*8], 0
jne 0x1400b8f20
inc ecx
cmp ecx, dword [r14 + 0x40]
jb 0x1400b8f0f
jmp 0x1400b8f26
mov rcx, qword [rdx + rcx*8]
jmp 0x1400b8f28
xor ecx, ecx
mov qword [rsp + 0x30], rcx
test rcx, rcx
je 0x1400b8f4e
lea rdx, [rsp + 0x30]
lea rcx, [r14 + 0x30]
call fcn.14001a27c
mov rcx, qword [rax]
and dword [rcx], 0
cmp qword [rsp + 0x30], 0
jne 0x1400b8f32
lea rcx, [0x140127680]
cmp qword [r14 + 0x78], 0
cmovne rcx, qword [r14 + 0x78]
mov r8d, 0x40
lea rdx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x1400b8f8e
mov ecx, 0x8007000e
call fcn.140005300
int3
mov rcx, rax
call fcn.1400c84d0
mov qword [r14 + 0x28], rax
test rax, rax
je 0x1400b8fea
mov rcx, rax
call fcn.1400c8ca4
test eax, eax
je 0x1400b8fea
mov edx, esi
mov rcx, r14
call fcn.1400b8960
mov esi, eax
test eax, eax
js 0x1400b8ffe
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400b8c30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400b8ffe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b8ffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
jmp 0x1400b9027
mov esi, 0x80004005
mov rcx, qword [0x14014dd40]
cmp rcx, r12
je 0x1400b9064
test byte [rcx + 0x1c], 1
je 0x1400b9064
movzx edx, byte [rcx + 0x19]
mov eax, 2
test esi, esi
cmovns eax, r15d
cmp edx, eax
jl 0x1400b9064
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, esi
lea r8, [0x1401272f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400b90a0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rcx
lea rdi, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400b9104
test byte [rcx + 0x1c], 1
je 0x1400b9104
mov edx, SafeArrayUnlock
lea r8, [0x1401272f0]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x20], rax
xor esi, esi
cmp qword [r14 + 0x28], rsi
je 0x1400b91f6
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
jbe 0x1400b916b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1400b91f6
lea r9, str.wmpnsslog_02d.sqm
lea r8, [rsp + 0x40]
lea rdx, str._ws_ws
lea rcx, [rsp + 0x20]
call fcn.14000916c
mov rcx, qword [0x14014dd40]
mov ebx, 2
cmp rcx, rdi
je 0x1400b91bc
test byte [rcx + 0x1c], bl
je 0x1400b91bc
cmp byte [rcx + 0x19], 4
jb 0x1400b91bc
lea edx, [rbx + 0x10]
mov r9, qword [rsp + 0x20]
lea r8, [0x1401272f0]
mov rcx, qword [rcx + 0x10]
call fcn.140003638
mov rdx, qword [rsp + 0x20]
mov rcx, qword [r14 + 0x28]
call fcn.1400c8a50
test eax, eax
jne 0x1400b91e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x1400b91e9
and qword [r14 + 0x28], 0
jmp 0x1400b91fb
mov ebx, 2
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400b9238
test byte [rcx + 0x1c], 1
je 0x1400b9238
movzx eax, byte [rcx + 0x19]
mov edx, 5
test esi, esi
cmovns ebx, edx
cmp eax, ebx
jl 0x1400b9238
mov edx, SafeArrayAccessData
mov r9d, esi
lea r8, [0x1401272f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
nop
mov r14, qword [rsp + 0x20]
or ecx, 0xffffffff
lock xadd dword [r14 - 8], ecx
sub ecx, 1
jg 0x1400b9268
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400baee4
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov dword [rax + 0x10], edx
push r15
sub rsp, 0x60
mov rdi, rcx
mov rcx, qword [0x14014dd40]
lea r14, [0x14014dd40]
lea r15, [0x1401273b8]
cmp rcx, r14
je 0x1400baf5d
test byte [rcx + 0x1c], 1
je 0x1400baf37
mov rcx, qword [rcx + 0x10]
mov edx, DispGetParam
mov r8, r15
call fcn.140003614
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400baf5d
test byte [rcx + 0x1c], 2
je 0x1400baf5d
cmp byte [rcx + 0x19], 4
jb 0x1400baf5d
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r8, r15
lea r9d, [rdx - 0x1a]
call fcn.1400036d4
mov edx, 1
mov rcx, rdi
call fcn.1400bb350
mov ebx, eax
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400baf98
test byte [rcx + 0x1c], 2
je 0x1400baf98
cmp byte [rcx + 0x19], 4
jb 0x1400baf98
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r9d, eax
mov r8, r15
call fcn.1400036d4
cmp ebx, 1
jne 0x1400bb059
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x78]
lea edx, [rbx + 2]
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, eax
cmp eax, 1
je 0x1400bafe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400bb059
test byte [rcx + 0x1c], 2
je 0x1400bb059
cmp byte [rcx + 0x19], 2
jb 0x1400bb059
mov edx, 0x1d
jmp 0x1400bb04a
mov rcx, qword [rdi + 0x10]
xor eax, eax
mov qword [rsp + 0x50], rax
or edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp eax, 1
je 0x1400bb059
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400bb059
test byte [rcx + 0x1c], 2
je 0x1400bb059
cmp byte [rcx + 0x19], 4
jb 0x1400bb059
mov edx, 0x1e
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400036d4
mov rcx, rdi
call fcn.1400bb58c
mov rcx, qword [0x14014dd40]
cmp rcx, r14
je 0x1400bb08d
test byte [rcx + 0x1c], 1
je 0x1400bb08d
cmp byte [rcx + 0x19], 5
jb 0x1400bb08d
mov rcx, qword [rcx + 0x10]
mov edx, 0x1f
mov r9d, ebx
mov r8, r15
call fcn.1400036d4
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret