joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000db08
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2400]
mov eax, 0x2500
call fcn.140038f10
sub rsp, rax
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rbp + 0x23f0], rax
mov r12, qword [rbp + 0x2460]
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov esi, 0x208
lea rcx, [rbp + 0x140]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x13a0]
mov r8d, 0x1048
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
test r15, r15
je 0x14000dd12
mov r8d, esi
lea rcx, [rsp + 0x30]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
or r13, 0xffffffffffffffff
cmp dword [rdi + 0x414], 1
jne 0x14000dbc2
mov rcx, qword [0x1400615c0]
lea rdx, [rsp + 0x30]
call fcn.140008268
test rax, rax
je 0x14000dd0e
lea rsi, [rdi + 0x20a]
jmp 0x14000dbdf
lea rsi, [rdi + 0x20a]
mov r9, r13
mov r8, rsi
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [0x14005bbc8]
test eax, eax
jne 0x14000dbf5
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1138]
mov dword [0x14005bbc8], eax
mov r8, rsi
lea rcx, [rbp + 0x140]
mov esi, 0x104
mov r9d, eax
mov edx, esi
call qword [sym.imp.Mso98Win32Client.dll_Ordinal_460]
test eax, eax
je 0x14000dd0e
lea r9, [rbp + 0x140]
mov qword [rsp + 0x20], r15
lea r8, str._s_content__s
mov rdx, r13
lea rcx, [rbp + 0x13a0]
call fcn.14000e270
test eax, eax
jle 0x14000dd0e
test r14, r14
je 0x14000dc5b
mov r9, r13
lea r8, [rbp + 0x13a0]
mov edx, esi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rcx, rdi
call fcn.14000ade4
mov rdi, rax
test rax, rax
je 0x14000dd12
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x1048
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
lea rcx, [rbp + 0x350]
mov edi, 0x824
mov r9, r13
mov edx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r8d, edi
lea rdx, [rbp + 0x350]
lea rcx, [0x140041b4c]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1043]
mov r8d, edi
lea rdx, [rbp + 0x350]
mov rcx, r15
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1043]
test r12, r12
je 0x14000dcee
cmp dword [rbp + 0x2468], ebx
jle 0x14000dcee
movsxd rdx, dword [rbp + 0x2468]
lea r8, [rbp + 0x350]
mov r9, r13
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rbp + 0x350]
xor ecx, ecx
lea rdx, [rbp + 0x13a0]
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov bl, 1
mov al, bl
jmp 0x14000dd14
xor al, al
mov rcx, qword [rbp + 0x23f0]
xor rcx, rsp
call fcn.140037600
mov rbx, qword [rsp + 0x2558]
add rsp, 0x2500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001017c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov edx, 1
mov ecx, 0x110
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov rbx, rax
test rax, rax
jne 0x1400101b0
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1135]
int3
and dword [rax + 8], 0
lea rcx, [rbx + 0x10]
and dword [rax + 0xc], 0
or r9, 0xffffffffffffffff
lea rax, vtable.CLViewHelpIDNavigationRequest.0
mov r8, rdi
mov edx, 0x80
mov qword [rbx], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rdx, rbx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000f360

Function at 0x1400101f4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x10b0
call fcn.140038f10
sub rsp, rax
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
mov rsi, qword [0x1400615f0]
mov r14d, r8d
mov rcx, rsi
mov rbp, rdx
call fcn.14000aafc
xor edi, edi
test al, al
je 0x1400102fb
mov rcx, rsi
call fcn.14000d944
test al, al
je 0x1400102fb
mov ebx, dword [0x14005bbcc]
mov rcx, rsi
call fcn.14000ade4
lea rcx, str.HTMLMESSAGE
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
lea r8, str._s_s._d.htm
lea rcx, [rsp + 0x50]
mov r9, rax
or rdx, 0xffffffffffffffff
call fcn.14000e270
test eax, eax
jle 0x1400102fb
inc dword [0x14005bbcc]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x38], 1
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_361]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400102fb
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
call fcn.1400042f4
mov dil, 1
mov al, dil
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.140037600
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140012074
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rbp - 0x28], 0
xor eax, eax
and qword [rbp - 0x30], 0
mov r8d, ecx
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x18], ax
lea r9d, [rax + 0xa]
lea edx, [rax + 5]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_909]
lea rdx, [rbp - 0x30]
lea rcx, [0x140042de8]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1780_1]
mov esi, 1
test eax, eax
je 0x1400120e2
mov ebx, 0x80004005
jmp 0x14001210d
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x28]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
mov ebx, 0x80004005
test eax, eax
cmovne ecx, ebx
mov ebx, ecx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14001211c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test ebx, ebx
cmovns rdi, qword [rbp - 0x28]
test rdi, rdi
jne 0x14001212f
lea eax, [rdi + 2]
jmp 0x140012189
lea rax, [rbp - 0x40]
mov dword [rbp - 0x40], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x3c]
lea rax, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.UseLegacySearch
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov ebx, 2
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001217e
cmp dword [rbp - 0x3c], 4
jne 0x14001217e
mov eax, dword [rbp - 0x38]
test eax, eax
jne 0x140012179
xor ebx, ebx
jmp 0x14001217e
cmp eax, esi
cmove ebx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140037600
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14001229c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, r8
mov edx, 1
call fcn.1400121ac
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140012307
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400122fe
cmp dword [rsp + 0x68], 4
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012318
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
mov rsi, rdx
mov edx, 2
call fcn.1400121ac
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140012373
lea r9d, [rbx + 4]
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140012388
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rbp + 0x390], rax
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x1400123d8
xor ebx, ebx
jmp 0x1400124b0
mov rcx, qword [0x1400615c0]
lea rdx, [rsp + 0x70]
call fcn.140008268
test rax, rax
je 0x1400123d1
mov r9d, dword [rsp + 0x50]
lea rax, [rsp + 0x70]
lea r8, str._d:_s
mov qword [rsp + 0x20], rax
or rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x180]
call fcn.14000e328
lea rdx, [rsp + 0x58]
lea rcx, [0x140042e38]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1780_1]
test eax, eax
jne 0x1400123d1
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400123d1
lea rcx, [0x140061590]
call fcn.14000350c
mov rcx, qword [rsp + 0x60]
mov r9d, 3
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 8
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400124c0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400124d0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140037600
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x4a0
pop rbp
ret
Function at 0x1400124f4
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rsp + 0x460], rax
and qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1400125a0
mov rcx, qword [0x1400615c0]
lea rdx, [rsp + 0x40]
call fcn.140008268
test rax, rax
je 0x140012590
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r8, str._d:_s
mov qword [rsp + 0x20], rax
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x250]
call fcn.14000e328
lea rdx, [rsp + 0x38]
lea rcx, [0x140042e38]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_562]
test eax, eax
jne 0x140012590
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x250]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400125a0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140037600
add rsp, 0x478
ret

Function at 0x140013ad0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
je 0x140013b20
cmp dword [rdx + 8], 0x100
jne 0x140013b20
cmp qword [rdx + 0x10], 0x75
je 0x140013b1c
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140013b20
mov rax, qword [rbx + 0x10]
cmp rax, 9
je 0x140013b1c
cmp rax, 0x4c
je 0x140013b1c
add rax, 0xffffffffffffffb2
cmp rax, 1
ja 0x140013b20
xor eax, eax
jmp 0x140013b25
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014b90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2060
call fcn.140038f10
sub rsp, rax
mov rax, qword [0x140058010]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbx, rdx
mov r15, rcx
call fcn.140014b40
mov dword [rsp + 0x38], 1
xor r9d, r9d
and qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_361]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014d1f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov edi, 0x2000
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x40], edi
lea r8d, [rdi - 1]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
test eax, eax
je 0x140014d19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140014d1f
cmp rax, rdi
jae 0x140014d50
mov byte [rsp + rax + 0x50], 0
lea rbx, [rsp + 0x50]
mov cl, byte [rbx]
cmp cl, 0xa
je 0x140014d03
cmp cl, 0xd
je 0x140014d03
lea eax, [rcx + 0x45]
cmp al, 0x34
ja 0x140014c8a
movzx eax, al
movabs rdx, 0x10000000000011
bt rdx, rax
jb 0x140014d03
test cl, cl
je 0x140014d12
mov rdi, rbx
cmp cl, 0xd
je 0x140014ca8
test cl, cl
je 0x140014ca8
inc rdi
mov cl, byte [rdi]
cmp cl, 0xa
jne 0x140014c95
mov r14b, byte [rdi]
mov esi, edi
sub esi, ebx
mov edx, 1
inc esi
movsxd rbp, esi
mov rcx, rbp
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
test rax, rax
je 0x140014d0b
mov qword [rsp + 0x48], rax
test esi, esi
jle 0x140014ce3
or r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1520]
cmp eax, 0xffffffff
je 0x140014d1f
test r14b, r14b
je 0x140014d12
mov rbx, rdi
jmp 0x140014c5c
inc rbx
jmp 0x140014c5c
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1135]
int3
mov eax, 1
jmp 0x140014d29
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140014b40
xor eax, eax
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140037600
mov rbx, qword [rsp + 0x20a0]
add rsp, 0x2060
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140037b38
int3
Function at 0x1400177b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rdx
xor esi, esi
test rdx, rdx
je 0x140004596
cmp byte [0x1400615b0], sil
jne 0x140004596
cmp dword [rdx + 8], 0x100
jne 0x14000454d
cmp qword [rdx + 0x10], 0x54
jne 0x14000451a
lea ecx, [rsi + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14000451a
mov rcx, qword [0x1400617d0]
test rcx, rcx
je 0x14000451a
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
xor edx, edx
mov rax, qword [rax + 0x28]
call qword [case.0x140031310.0]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1400044fd
mov dil, sil
jmp 0x140004508
mov dil, byte [rcx + 8]
call qword [sym.imp.mso40uiWin32Client.dll_Ordinal_1807]
nop
test dil, dil
sete dl
lea rcx, [0x1400617d0]
call fcn.140002478
lea rcx, [0x140061590]
call fcn.1400047fc
test rax, rax
je 0x140004596
test byte [rax + 0xc2], 4
je 0x140004596
mov rcx, qword [0x1400617e8]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 0x40]
call qword [case.0x140031310.0]
jmp 0x140004598
cmp dword [rdx + 8], 0x104
jne 0x14000451a
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14000451a
mov rax, qword [rbx + 0x10]
sub rax, 0x24
je 0x140004588
sub rax, 1
je 0x140004581
sub rax, 2
jne 0x14000451a
lea edx, [rax + 2]
jmp 0x14000458d
mov edx, 1
jmp 0x14000458d
mov edx, 6
call fcn.14000435c
mov al, 1
jmp 0x140004598
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [rdx + 8]
lea eax, [rcx - 0x100]
test eax, 0xfffffffa
jne 0x1400177cc
cmp ecx, 0x105
jne 0x140004470
xor al, al
ret
Function at 0x140017814
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
and qword [rdx], 0
xor r9d, r9d
mov dword [rax - 0x10], 1
mov r14, r8
and qword [rax - 0x18], 0
mov rsi, rdx
and dword [rax - 0x20], 0
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov dword [rax - 0x28], 3
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_361]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400178b7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [r14], eax
cmp eax, 0xffffffff
je 0x1400178b7
mov ecx, eax
xor edx, edx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov qword [rsi], rax
test rax, rax
je 0x1400178b7
mov r8d, dword [r14]
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400178b7
mov eax, dword [r14]
xor ebx, ebx
cmp dword [rsp + 0x58], eax
je 0x1400178ce
mov rcx, qword [rsi]
mov ebx, 0x80004005
test rcx, rcx
je 0x1400178ce
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
and qword [rsi], 0
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400178e1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r14
ret

Function at 0x1400198d4
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov ecx, dword [0x140058358]
cmp byte [0x14005835c], 0
je 0x140019902
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140019909
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
mov rbx, rax
test rax, rax
je 0x140019962
cmp byte [rax + 0x20], 0
jne 0x140019949
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140019944
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140019944
test rcx, rcx
je 0x140019944
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140031310.0]
nop
and qword [rbx + 0x10], 0
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x18]
mov rdx, rbx
mov rcx, rdi
call qword [case.0x140031310.0]
mov byte [rbx + 0x20], 0
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001a0cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a199
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a18a
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a18a
cmp dword [rbp + 0x18], 4
jne 0x14001a18a
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14001a18a
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001a19b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001a19b
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001a199
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001a1aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14001a560
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x1400611c8], 0
je 0x14001a586
mov eax, dword [0x1400611cc]
jmp 0x14001a68a
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x1400611cc]
test eax, eax
jne 0x14001a5f2
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a5f2
cmp dword [rbp + 0x10], ebx
je 0x14001a661
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x14001a606
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a669
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a669
cmp dword [rbp + 0x10], ebx
jne 0x14001a669
mov ebx, dword [0x1400611cc]
jmp 0x14001a672
and dword [0x1400611cc], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x1400611c8], 1
test rcx, rcx
je 0x14001a688
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret