joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002acc0
Capabilities:
Check if file exists
Get common file path
Get disk size
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x2c], 0
call fcn.14002a790
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
test eax, eax
je 0x14002adf3
mov rax, qword [0x1402e1908]
mov qword [rsp + 0x78], rax
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x20]
mov word [rsp + rax + 0x78], cx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.140004170
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [0x1402e1910]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140011200
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140003250
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002ad80
mov dword [rsp + 0x28], 1
jmp 0x14002ad88
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x60]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x68]
call fcn.1400031c0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x14002adf3
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x20]
mov word [rsp + rax + 0x78], cx
mov qword [rsp + 0x40], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp qword [rsp + 0x40], 0x25800000
jae 0x14002adf3
xor eax, eax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
test eax, eax
jne 0x14002ae4e
lea rcx, [rsp + 0x30]
call fcn.140004410
nop
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.140057cc0
mov edx, 0xff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400118c0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140054e90
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x30]
call fcn.1400031c0
lea rcx, [rsp + 0x38]
call fcn.140004410
nop
movzx eax, word [rsp + 0x20]
mov r8d, eax
lea rdx, str._c:_bootmacrium
lea rcx, [rsp + 0x38]
call fcn.140004850
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xa0]
call fcn.140007200
mov eax, dword [rsp + 0x2c]
or eax, 1
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x38]
call fcn.1400031c0
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x98
ret
Function at 0x14002c6b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0xa8]
xor edx, edx
mov ecx, 2
div rcx
mov r8, qword [rsp + 0x98]
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.140278128
cmp qword [rsp + 0x88], 0
je 0x14002c726
lea rdx, [0x1402e1eb8]
mov rcx, qword [rsp + 0x88]
call fcn.1402775e4
test eax, eax
jne 0x14002c726
mov dword [rsp + 0x5c], 1
jmp 0x14002c72e
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0xb0], 1
jne 0x14002c74a
mov dword [rsp + 0x60], 1
jmp 0x14002c752
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2011f
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14002c809
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20019
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14002c809
xor eax, eax
jmp 0x14002c889
cmp dword [rsp + 0x54], 1
jne 0x14002c824
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14002c889
cmp dword [rsp + 0x54], 2
jne 0x14002c86a
mov dword [rsp + 0x64], 1
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x14002c879
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14002c889
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x78
ret
Function at 0x14002cf10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0xa8], 0
je 0x14002cf60
lea rdx, [0x1402e1f48]
mov rcx, qword [rsp + 0xa8]
call fcn.1402775e4
test eax, eax
jne 0x14002cf60
mov dword [rsp + 0x68], 1
jmp 0x14002cf68
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0xc0], 1
jne 0x14002cf84
mov dword [rsp + 0x6c], 1
jmp 0x14002cf8c
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2011f
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14002d043
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20119
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14002d043
xor eax, eax
jmp 0x14002d177
cmp dword [rsp + 0x50], 1
jne 0x14002d0da
mov rcx, qword [rsp + 0xb8]
call fcn.14026f9f4
inc rax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002d0c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14002d177
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14002d177
cmp dword [rsp + 0x50], 2
jne 0x14002d158
mov dword [rsp + 0x78], 1
mov rcx, qword [rsp + 0xb8]
call fcn.14026f9f4
inc rax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002d156
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14002d177
jmp 0x14002d167
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14002d177
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x98
ret
Function at 0x14002d6c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x5c], 4
cmp dword [rsp + 0xa0], 0
jne 0x14002d758
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002d74d
mov eax, dword [rsp + 0x98]
jmp 0x14002d7fb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20119
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14002d7ae
mov eax, dword [rsp + 0x98]
jmp 0x14002d7fb
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14002d7ec
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0x78
ret

Function at 0x14002d810
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
sub rsp, 0x68
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x14002d882
xor eax, eax
jmp 0x14002d8c3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x68
ret
Function at 0x14002da80
Capabilities:
Delete registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov dword [rsp + 0x30], 0
lea rdx, [0x1402e2048]
lea rcx, [rsp + 0x40]
call fcn.140004170
nop
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140011410
lea rcx, [rsp + 0x40]
call fcn.140003250
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x20], ecx
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.14002d6c0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14002dba6
cmp dword [rsp + 0x88], 0
je 0x14002db8e
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.140003250
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002db6f
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp qword [rsp + 0x48], 0
je 0x14002db6f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.14002dc00
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x40]
call fcn.1400031c0
mov eax, dword [rsp + 0x34]
jmp 0x14002dbe9
lea rcx, [rsp + 0x40]
call fcn.140003250
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, 0xffffffff80000002
call fcn.14002d6c0
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x40]
call fcn.1400031c0
mov eax, dword [rsp + 0x38]
add rsp, 0x68
ret
Function at 0x14002dc00
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov dword [rsp + 0x60], 0
lea rdx, str.softwaremacrium_reflect_
lea rcx, [rsp + 0x58]
call fcn.140004170
nop
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
call fcn.140011410
cmp dword [rsp + 0xc0], 0
je 0x14002dc67
mov dword [rsp + 0x50], 1
jmp 0x14002dc6f
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x58]
call fcn.140003250
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xb8], 0
je 0x14002dc96
mov qword [rsp + 0x70], 0xffffffff80000001
jmp 0x14002dc9f
mov qword [rsp + 0x70], 0xffffffff80000002
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2011f
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14002dd08
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov eax, dword [rsp + 0x68]
jmp 0x14002dd5a
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov eax, dword [rsp + 0x6c]
add rsp, 0x98
ret
Function at 0x14002dd70
Capabilities:
Query or enumerate registry value

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 dword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x54], 8
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x58], reloc.WS2_32.dll_inet_addr
cmp dword [rsp + 0xb0], 0
jne 0x14002de0d
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002de02
mov rax, qword [rsp + 0xa8]
jmp 0x14002deb4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20119
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14002de64
mov rax, qword [rsp + 0xa8]
jmp 0x14002deb4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14002dea4
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x68]
add rsp, 0x88
ret
Function at 0x14002e120
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
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov dword [rsp + 0x60], 0
lea rdx, [0x1402e2250]
lea rcx, [rsp + 0x58]
call fcn.140004170
nop
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
call fcn.140011410
cmp dword [rsp + 0xc0], 0
je 0x14002e187
mov dword [rsp + 0x50], 1
jmp 0x14002e18f
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x58]
call fcn.140003250
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xb8], 0
je 0x14002e1b6
mov qword [rsp + 0x70], 0xffffffff80000001
jmp 0x14002e1bf
mov qword [rsp + 0x70], 0xffffffff80000002
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2011f
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14002e228
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov eax, dword [rsp + 0x68]
jmp 0x14002e27a
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_inet_addr
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov eax, dword [rsp + 0x6c]
add rsp, 0x98
ret
Function at 0x14002ed40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x100]
call fcn.1400078a0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14004f470
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
call fcn.140028f80
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400550f0
mov rcx, rax
call fcn.140028660
nop
lea rcx, [rsp + 0xb0]
call fcn.1400049b0
nop
lea rcx, [rsp + 0x90]
call fcn.1400049b0
movzx eax, word [rsp + 0xf8]
mov r8, qword [rsp + 0x108]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14002ee4b
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x100]
call fcn.1400031c0
mov eax, dword [rsp + 0x24]
jmp 0x14002ef57
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14002ee81
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x100]
call fcn.1400031c0
mov eax, dword [rsp + 0x28]
jmp 0x14002ef57
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14002eebd
mov dword [rsp + 0x2c], 0
mov rcx, qword [rsp + 0x100]
call fcn.1400031c0
mov eax, dword [rsp + 0x2c]
jmp 0x14002ef57
lea rcx, [rsp + 0x60]
call fcn.1400dd1b0
nop
mov rcx, qword [rsp + 0x100]
call fcn.140003250
xor r9d, r9d
mov r8d, 0x1001
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400dd8e0
test eax, eax
jne 0x14002ef15
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x60]
call fcn.1400dd208
nop
mov rcx, qword [rsp + 0x100]
call fcn.1400031c0
mov eax, dword [rsp + 0x30]
jmp 0x14002ef57
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.1400ddcd4
lea rcx, [rsp + 0x60]
call fcn.1400dd49c
mov dword [rsp + 0x34], 1
lea rcx, [rsp + 0x60]
call fcn.1400dd208
nop
mov rcx, qword [rsp + 0x100]
call fcn.1400031c0
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140263a60
add rsp, 0xe8
ret
Function at 0x14002f200
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x298], 0
je 0x14002f34c
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14002f34c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x10108
xor r8d, r8d
mov rdx, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14002f34a
cmp dword [rsp + 0x40], 0
jne 0x14002f33f
mov dword [rsp + 0x44], 0x100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x103
jne 0x14002f320
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x50]
call fcn.140004170
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x290]
call fcn.14003b290
mov dword [rsp + 0x40], eax
jmp 0x14002f33f
cmp dword [rsp + 0x40], 0
jne 0x14002f33a
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.14002f200
mov dword [rsp + 0x40], eax
jmp 0x14002f289
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002f354
mov dword [rsp + 0x40], 0x3f2
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x288
ret

Function at 0x140030260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140030280
mov eax, 1
jmp 0x1400302ec
mov rcx, qword [rsp + 0x40]
call fcn.1400a7d20
test eax, eax
je 0x140030295
mov eax, 1
jmp 0x1400302ec
mov rcx, qword [rsp + 0x40]
call fcn.14003b370
mov dword [rsp + 0x20], 0xa
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0
je 0x1400302e2
mov rcx, qword [rsp + 0x40]
call fcn.1400a7d20
test eax, eax
je 0x1400302d5
mov eax, 1
jmp 0x1400302ec
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400302a7
mov rcx, qword [rsp + 0x40]
call fcn.1400a7d20
add rsp, 0x38
ret
Function at 0x140030c70
Capabilities:
Get geographical location

Disassembly:
mov word [rsp + 8], cx
push rdi
sub rsp, 0x110
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x100], rax
call fcn.14003b010
movzx eax, al
test eax, eax
je 0x140030ca0
jmp 0x140030db0
movzx eax, word [0x1403c40a0]
cmp eax, 0xffff
jne 0x140030cd9
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0x409
lea rdx, [0x1402e3388]
lea rcx, [0x1402e33a0]
call fcn.14002da80
mov word [0x1403c40a0], ax
movzx eax, word [rsp + 0x120]
cmp eax, 0xffff
jne 0x140030cf6
movzx eax, word [0x1403c40a0]
mov word [rsp + 0x30], ax
jmp 0x140030d03
movzx eax, word [rsp + 0x120]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov word [0x1403c40a0], ax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0xaa
rep stosb byte [rdi], al
movzx eax, word [0x1403c40a0]
mov r9d, 0x55
lea r8, [rsp + 0x50]
mov edx, 3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140030d51
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14027baf0
jmp 0x140030d87
movzx eax, word [0x1403c40a0]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400881f0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140003250
mov rdx, rax
xor ecx, ecx
call fcn.14027baf0
lea rcx, [rsp + 0x40]
call fcn.1400031c0
call fcn.140027590
movzx eax, al
test eax, eax
je 0x140030da1
movzx ecx, word [0x1403c40a0]
call fcn.140030e60
jmp 0x140030db0
movzx eax, word [0x1403c40a0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x110
pop rdi
ret