joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8d, 1
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1400319f0
mov r9d, 0x130
lea r8, [0x1401db960]
lea rdx, [0x1401db938]
mov rcx, rax
call fcn.14001a290
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x14004d475
xor eax, eax
jmp 0x14004d492
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140133150
add rsp, 0x20
pop rdi
ret
Function at 0x1400654d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140065524
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x167c
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x140065524
int3
xor eax, eax
test eax, eax
jne 0x1400654df
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10], 0
je 0x140065556
mov r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call fcn.140067160
jmp 0x1400655d9
movzx eax, byte [0x140259270]
test eax, eax
jne 0x14006559b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140065594
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140259268], rax
mov byte [0x140259270], 1
cmp qword [0x140259268], 0
je 0x1400655c6
xor r9d, r9d
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [0x140259268]
jmp 0x1400655d9
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x40
pop rdi
ret

Function at 0x1400655e0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x140065634
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x16a5
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x140065634
int3
xor eax, eax
test eax, eax
jne 0x1400655ef
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x30
pop rdi
ret
Function at 0x140066d90
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
lea rdi, [rsp + 0x40]
mov ecx, reloc.OLEAUT32.dll_VarDecAdd
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x310]
mov rax, qword [0x1402548e8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140063190
nop
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x318]
mov rax, qword [rsp + 0x310]
mov rdx, qword [rax]
lea rcx, [rsp + 0x48]
call fcn.1400664c0
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140066ea5
cmp dword [rsp + 0x64], 2
je 0x140066e84
cmp dword [rsp + 0x64], 3
je 0x140066e84
lea rcx, [0x14025667c]
call fcn.140002850
mov dword [rsp + 0x2ec], eax
mov r8d, 0x18c9
lea rdx, [0x1401a3b80]
lea rcx, [rsp + 0x2d0]
call fcn.140002420
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x318]
mov qword [rsp + 0x20], rcx
lea r9, str.CRegKey::RecurseDeleteKey_:_Failed_to_Open_Key__Ts_Error___d__n
xor r8d, r8d
mov ecx, dword [rsp + 0x2ec]
mov edx, ecx
mov rcx, rax
call fcn.140002870
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x2e0], eax
lea rcx, [rsp + 0x48]
call fcn.140063560
mov eax, dword [rsp + 0x2e0]
jmp 0x140066f78
mov dword [rsp + 0x94], 0x100
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140066f41
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x48]
call fcn.140066d90
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140066f31
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x2e4], eax
lea rcx, [rsp + 0x48]
call fcn.140063560
mov eax, dword [rsp + 0x2e4]
jmp 0x140066f78
mov dword [rsp + 0x94], 0x100
jmp 0x140066eb0
lea rcx, [rsp + 0x48]
call fcn.140065250
mov rdx, qword [rsp + 0x318]
mov rcx, qword [rsp + 0x310]
call fcn.1400654d0
mov dword [rsp + 0x2e8], eax
lea rcx, [rsp + 0x48]
call fcn.140063560
mov eax, dword [rsp + 0x2e8]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f3810]
call fcn.1400bf760
mov rax, rdi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400bfa50
add rsp, 0x300
pop rdi
ret
Function at 0x140067160
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x140067233
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400671d7
lea rax, str.hAdvAPI32___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x29c
lea rdx, str.D:HSwin_androidplugins_vprj_win_sdkcompiler_normalVCToolsMSVC14.29.30133ATLMFCinclude_atltransactionmanager.h
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x1400671d7
int3
cmp qword [rsp + 0x30], 0
jne 0x1400671e6
mov eax, 1
jmp 0x140067255
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140067231
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x140067255
jmp 0x140067250
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140067250
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140067255
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140068ee0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x140068f39
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1866
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x140068f39
int3
xor eax, eax
test eax, eax
jne 0x140068ef4
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
ret

Function at 0x140068f80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
jne 0x140068fd9
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1886
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x140068fd9
int3
xor eax, eax
test eax, eax
jne 0x140068f94
cmp qword [rsp + 0x70], 0
je 0x140068ff1
mov dword [rsp + 0x44], 1
jmp 0x140068ff9
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140069042
lea rax, [0x1401a3a78]
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1887
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x140069042
int3
cmp dword [rsp + 0x40], 0
jne 0x140069050
mov eax, SafeArrayDestroy
jmp 0x1400690cf
xor eax, eax
test eax, eax
jne 0x140068fdf
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400e1970
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x3c], 1
jne 0x140069068
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x50
pop rdi
ret
Function at 0x1400690e0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x14006913e
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1877
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x14006913e
int3
xor eax, eax
test eax, eax
jne 0x1400690f9
cmp qword [rsp + 0x60], 0
je 0x140069156
mov dword [rsp + 0x34], 1
jmp 0x14006915e
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400691a7
lea rax, [0x1401a3a78]
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1878
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x1400691a7
int3
cmp dword [rsp + 0x30], 0
jne 0x1400691b8
mov eax, SafeArrayDestroy
jmp 0x140069240
xor eax, eax
test eax, eax
jne 0x140069144
cmp dword [rsp + 0x68], 1
je 0x140069206
cmp dword [rsp + 0x68], 2
je 0x140069206
lea rax, str._dwType____1ul______dwType____2ul___
mov qword [rsp + 0x28], rax
lea rax, [0x1401a3838]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1879
lea rdx, [0x1401a3aa0]
mov ecx, 2
call fcn.1400dfc20
cmp eax, 1
jne 0x140069206
int3
mov rcx, qword [rsp + 0x60]
call fcn.1400e1970
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ddac0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400dd5a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ddaff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14019aa10]
jmp 0x1400ddb09
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140157d70
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1401694d0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400bfb00
sub rsp, rax
mov rax, qword [0x1402548e8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14025ac70]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401696c2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140169616
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140169616
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1401695fb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], SafeArrayDestroy
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140169598
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140169682
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401696e1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1401696bd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401696e1
jmp 0x14016956e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bfa50
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140169700
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400bfb00
sub rsp, rax
mov rax, qword [0x1402548e8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14025ac70]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14016990d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140169859
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140169859
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140169839
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, SafeArrayDestroy
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1401697c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401698cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016992c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140169908
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016992c
jmp 0x14016979e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bfa50
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14016cbe0
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14016bec0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14016cc47
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14019aa18]
jmp 0x14016cc69
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14016d100
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x140174820
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401746b0
lea rcx, [rsp + 0x40]
call fcn.1401747e0
movzx eax, al
test eax, eax
jne 0x140174868
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401746d0
mov rax, qword [rsp + 0x70]
jmp 0x140174a39
lea rcx, [rsp + 0x40]
call fcn.1401747c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140174770
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401747c0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140174580
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14017490e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401746d0
mov rax, qword [rsp + 0x80]
jmp 0x140174a39
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14014ad60
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c6b50
lea rcx, [rsp + 0x48]
call fcn.1400c6bd0
movzx eax, al
test eax, eax
jne 0x140174975
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c6b90
lea rcx, [rsp + 0x40]
call fcn.1401746d0
mov rax, qword [rsp + 0x88]
jmp 0x140174a39
lea rcx, [rsp + 0x48]
call fcn.1400c6cc0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401747c0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140174580
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140174a0b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c6b90
lea rcx, [rsp + 0x40]
call fcn.1401746d0
mov rax, qword [rsp + 0xa0]
jmp 0x140174a39
lea rcx, [rsp + 0x48]
call fcn.140145770
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c6b90
lea rcx, [rsp + 0x40]
call fcn.1401746d0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140174a50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401746b0
lea rcx, [rsp + 0x20]
call fcn.1401746f0
movzx eax, al
test eax, eax
jne 0x140174a95
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401746d0
mov rax, qword [rsp + 0x40]
jmp 0x140174b8f
lea rcx, [rsp + 0x20]
call fcn.1401747c0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140174770
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.14014ad60
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140138d80
lea rcx, [rsp + 0x28]
call fcn.140145610
movzx eax, al
test eax, eax
jne 0x140174b2f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140138dc0
lea rcx, [rsp + 0x20]
call fcn.1401746d0
mov rax, qword [rsp + 0x50]
jmp 0x140174b8f
lea rcx, [rsp + 0x20]
call fcn.1401747c0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14013b9e0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c4070
lea rcx, [rsp + 0x28]
call fcn.140139030
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140138dc0
lea rcx, [rsp + 0x20]
call fcn.1401746d0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1401762c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x14018a070
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1401718d0
lea rcx, [rsp + 0x48]
call fcn.1401718d0
call fcn.140157660
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140170150
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14018a0df
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140171a00
lea rcx, [rsp + 0x78]
call fcn.140171a00
mov eax, dword [rsp + 0x24]
jmp 0x14018a170
call fcn.140157660
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140170150
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14018a126
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140171a00
lea rcx, [rsp + 0x78]
call fcn.140171a00
mov eax, dword [rsp + 0x2c]
jmp 0x14018a170
lea rcx, [rsp + 0x48]
call fcn.1401720c0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1401720c0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140171a00
lea rcx, [rsp + 0x78]
call fcn.140171a00
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret