joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001890
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x20], 0
and qword [rax - 0x18], 0
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax - 0x20]
mov ecx, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
js 0x140001963
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov edi, 1
mov r9d, edi
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001958
and dword [rsp + 0x78], eax
and dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001951
cmp dword [rsp + 0x70], 4
jne 0x140001951
cmp dword [rsp + 0x78], ebx
jne 0x140001953
xor edi, edi
mov al, dil
jmp 0x140001965
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140001978
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax - 0x10]
mov ecx, 0x2001f
mov dil, r8b
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
js 0x140001a4c
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001a41
mov rcx, qword [rsp + 0x50]
mov r9d, 4
test dil, dil
setne al
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x88]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x140001a46
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140001a4e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140001b50
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x8c0
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
and qword [rsp + 0x50], 0
xor eax, eax
mov rdi, rcx
lea rcx, [rsp + 0x78]
lea r8d, [rax + 0x60]
xor edx, edx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 0x68
call fcn.140008ebc
mov ebp, 0xc8
lea rdx, [rsp + 0xe0]
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rbp - 0x6c]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCR90.dll_wcsrchr]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_wcsnlen]
lea rcx, [rsp + 0xe0]
mov rdx, rbp
mov rbx, rax
call qword [sym.imp.MSVCR90.dll_wcsnlen]
lea r8, [rsp + 0xe0]
sub rax, rbx
lea rcx, [rsp + 0x270]
mov rdx, rbp
mov r9, rax
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
lea r8, str.msouc.exe
lea rcx, [rsp + 0x270]
mov rdx, rbp
call qword [sym.imp.MSVCR90.dll_wcscat_s]
test rdi, rdi
je 0x140001c49
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_wcsnlen]
lea rcx, [rsp + 0x590]
mov r8, rdi
mov r9, rax
mov rdx, rbp
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x590]
lea rcx, [rsp + 0x270]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x4000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140001cb9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140001d36
mov rcx, qword [0x1400b6438]
lea r8, [rsp + 0x400]
mov r9d, ebp
mov edx, 0x4000011
call fcn.140021e70
lea rdx, [rsp + 0x400]
lea rcx, str.32770
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140001cfa
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140001d34
mov rcx, qword [0x1400b6438]
lea r8, [rsp + 0x720]
mov r9d, ebp
mov edx, 0x400001a
call fcn.140021e70
lea r8, [rsp + 0x400]
lea rdx, [rsp + 0x720]
mov r9d, 0x10010
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.140008a98
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005a18
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x2538], 0
mov sil, dl
mov rbx, rcx
mov dil, 1
je 0x140005a5c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x2540]
cmp eax, 0x61a8
jbe 0x140005a5c
mov edx, 0x94
mov rcx, rbx
call fcn.140005ac4
jmp 0x140005aaf
cmp qword [rbx + 0x2538], 0
je 0x140005a6f
mov byte [rbx + 0x255d], dil
jmp 0x140005aaf
mov dl, sil
mov rcx, rbx
mov byte [rbx + 0x255d], 0
call fcn.1400059b0
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov edx, 0x94
mov r8d, 0x7d0
mov dil, al
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [rbx + 0x2538], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x2540], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov al, dil
add rsp, 0x20
pop rdi
ret

Function at 0x140006850
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor esi, esi
mov rbx, r8
mov rdi, rdx
cmp rdx, rsi
je 0x140006999
cmp rbx, rsi
jbe 0x140006999
cmp ecx, esi
jl 0x140006999
mov r8d, ecx
lea r9d, [rsi + 0xa]
lea edx, [rsi + 0x14]
lea rcx, [rsp + 0x88]
call fcn.140019c00
lea r8d, [rsi + 0x24]
lea rcx, [rsp + 0x34]
xor edx, edx
call fcn.140008ebc
lea r9d, [rsi + 0x32]
lea r8, [rsp + 0xb0]
lea edx, [rsi + 0x10]
mov ecx, 0x400
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea r11, [rsp + 0xb0]
lea rcx, [rsp + 0xb0]
movzx eax, word [r11]
cmp ax, si
je 0x14000690e
cmp ax, 0x3b
je 0x1400068fd
mov word [rcx], ax
add rcx, 2
lea rax, [rsp + 0x114]
add r11, 2
cmp r11, rax
jb 0x1400068e7
mov word [rcx], si
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.14001bac4
cmp eax, esi
je 0x140006999
mov r9d, 0xa
lea r8, [rsp + 0x58]
mov ecx, 0x400
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, 0xa
lea r11, [rsp + 0x58]
lea r8, [rsp + 0x70]
lea edx, [r9 + 5]
mov ecx, 0x400
mov qword [rsp + 0x40], r11
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea r11, [rsp + 0x70]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x88]
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
cmp eax, esi
setne al
jmp 0x14000699b
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007490
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rdi, rbp
call fcn.1400229ac
cmp eax, ebp
je 0x140007560
lea rcx, [0x140050100]
mov dword [rsp + 0x40], ebp
call fcn.140002010
mov rdi, rax
cmp rax, rbp
je 0x140007560
lea rdx, str.GetUserPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp rax, rbp
je 0x140007560
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea ecx, [rbp + 4]
xor r8d, r8d
call rbx
cmp eax, ebp
je 0x140007560
mov eax, dword [rsp + 0x40]
cmp eax, ebp
jbe 0x140007560
mov rdx, rax
lea eax, [rbp + 2]
mul rdx
lea rdx, [rbp - 1]
cmovo rax, rdx
mov rcx, rax
call fcn.140009ce4
mov rsi, rax
cmp rax, rbp
je 0x140007560
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea ecx, [rbp + 4]
mov r8, rax
call rbx
cmp eax, ebp
je 0x140007558
cmp dword [rsp + 0x40], ebp
jbe 0x140007558
lea r8d, [rbp + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_wcstoul]
mov ebx, eax
cmp ax, bp
je 0x140007560
jmp 0x140007569
mov rcx, rsi
call fcn.140009d1c
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov bx, ax
movzx eax, bx
mov ecx, 0x3ff
and ax, cx
cmp bx, bp
je 0x140007588
cmp bp, ax
je 0x140007588
mov ecx, 0x7f
cmp cx, ax
jne 0x14000758d
mov ebx, 0x409
cmp rdi, rbp
je 0x14000759b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, bx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000863c
Capabilities:
Get file system object information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x510
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x500], rax
cmp dword [rcx + 0x1600], 1
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
je 0x140008677
cmp dword [rcx + 0x1604], 1
jne 0x1400087a7
cmp byte [rcx + 0x1b54], 0
jne 0x140008697
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x1400087a7
mov byte [rbx + 0x1b54], 1
cmp dword [rbx + 0x1600], 1
jne 0x14000871f
lea rcx, [rsp + 0x2f0]
mov r8, rdi
mov edx, 0x105
call fcn.140008588
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, 0x2b0
call fcn.140008ebc
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x2f0]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x20], 0x311
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x30]
test r11, r11
je 0x140008704
mov qword [rbx + 0x1a98], r11
lea rcx, [rbx + 0x160a]
lea r8, [rsp + 0x40]
or r9, 0xffffffffffffffff
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
cmp dword [rbx + 0x1604], 1
jne 0x1400087a7
lea rcx, [rsp + 0x2f0]
mov r8, rsi
mov edx, 0x105
call fcn.140008588
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, 0x2b0
call fcn.140008ebc
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x2f0]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x20], 0x311
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x30]
test r11, r11
je 0x14000878c
mov qword [rbx + 0x1aa0], r11
lea rcx, [rbx + 0x184e]
lea r8, [rsp + 0x40]
or r9, 0xffffffffffffffff
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x510
pop rdi
pop rsi
pop rbx
ret
Function at 0x140008a98
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140050318]
jne 0x140008aa3
repz ret
jmp 0x14000905c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400b71b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400b72a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400090e1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400b71b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140009103
mov rax, qword [rsp + 0x88]
mov qword [0x1400b72a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400b7248], rax
mov rax, qword [0x1400b72a8]
mov qword [0x1400b7120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400b7230], rax
mov dword [0x1400b7110], 0xc0000409
mov dword [0x1400b7114], 1
mov rax, qword [0x140050318]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140082a10]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400b71a8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140050348]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b71a8], 0
jne 0x14000918a
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140009970
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx + 8]
mov r8, qword [rcx]
cmp rdx, r8
jb 0x140009999
mov rax, qword [rcx + 0x10]
cmp rdx, rax
jb 0x140009999
cmp r8, rax
jb 0x140009999
add rax, 0x10000
cmp rax, rdx
jae 0x1400099c8
mov ecx, dword [0x140082c50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor edx, edx
mov ecx, 0x35636561
call fcn.140011d08
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0xe0000001
call qword [sym.imp.KERNEL32.dll_RaiseException]
add rsp, 0x28
ret
Function at 0x140009e7c
Capabilities:
Get thread local storage value

Disassembly:
test rcx, rcx
je 0x140009f53
push rdi
sub rsp, 0x20
mov rax, qword [0x1400b76a0]
mov rdi, rcx
test rax, rax
je 0x140009f42
cmp dword [rax + 8], 0x48454150
jne 0x140009f42
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140082c50]
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
test rax, rax
jne 0x140009edd
xor edx, edx
mov ecx, 0x65707a7a
call fcn.140011d08
jmp 0x140009f2a
mov rcx, rax
call fcn.140009970
cmp rdi, qword [rbx + 0x10]
jb 0x140009ef5
cmp rdi, qword [rbx]
jae 0x140009ef5
mov qword [rbx], rdi
jmp 0x140009f2a
add rdi, 0xfffffffffffffff8
cmp qword [rbx + 0x18], rdi
je 0x140009f0b
xor edx, edx
mov ecx, 0x38666b68
call fcn.140011d08
cmp qword [rbx + 0x18], rdi
jne 0x140009f1a
mov rax, qword [rdi]
mov qword [rbx + 0x18], rax
jmp 0x140009f22
mov qword [rbx + 0x18], 0
mov rcx, rdi
call fcn.140009d1c
mov ecx, esi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov ecx, 0x766f617a
call fcn.140011d08
add rsp, 0x20
pop rdi
repz ret
invalid
cld
or ah, byte [0x112c398a7]
invalid
invalid
push rsi
jb 0x1400ca5c0
fdiv dword [rax - 0x3238e92]
outsb dx, byte [rsi]
jno 0x1400ca59f
cld
wait
mov bh, byte [rbp + 0x34f64eb6]
xor al, 0x86
imul ebx, dword [rcx], 0x72
invalid
xor al, 0x86
imul ebx, dword [rcx], 0x72
sbb al, 0x80
pop rax
invalid
sbb byte [rax - 0x3a], 0x52
add dword [rsi], edx
clc
invalid
stc
movsd dword [rdi], dword [rsi]
pop rsp
iretd
cmp eax, dword [rcx]
sal dword [rsp + riz*8], 1
idiv dh
xor al, 0xf0
and esi, dword [rbx]
invalid
fild word [0x142113c7c]
jo 0x1400ca5a0
add al, 2
xor byte [rsi + 0x21], ah
cwde
sbb al, 0x4a
pop rbx
xor eax, dword [rdx]
invalid
add byte [rsi], dh
pop rbp
mov ah, 0xea
and ch, 0xed
ficomp dword [rdi + 0x62]
imul esp, ebx, 0xffffff94
add byte [rax + 0xe302cb3], ah
xor byte [rsi], cl
xor byte [rsi], cl
rcr dl, 0x36
xchg edi, eax
cmpsb byte [rsi], byte [rdi]
test eax, 0x8dfc1300
invalid
js case.0x140009f3b.7
xchg ecx, eax
pop rsi
adc al, 0xfc
mov esi, ecx
mov spl, 0x1f
in al, 0x34
mov ebp, 0xf300054f
stc
push 0x7e
sub esi, dword [rax - 0x1fe7ff69]
ja 0x1400ca606
invalid
Function at 0x14000a0e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
lea rdi, [rdx + 7]
mov eax, 8
mov r12, rdx
and rdi, 0xfffffffffffffff8
test rdx, rdx
mov rsi, rcx
cmove rdi, rax
xor ebp, ebp
mov qword [rcx], rbp
test rdx, rdx
js 0x14000a246
test rdi, rdi
js 0x14000a246
mov ecx, dword [0x140082c50]
mov qword [rsp + 0x30], rbx
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
test rax, rax
jne 0x14000a1ed
mov rcx, qword [0x1400b76a0]
test rcx, rcx
je 0x14000a16c
cmp dword [rcx + 8], 0x48454150
jne 0x14000a16c
lea edx, [rbp + 0x20]
call fcn.140009c64
mov rbx, rax
jmp 0x14000a17b
xor edx, edx
mov ecx, 0x62756f6e
call fcn.140011d08
mov rbx, rbp
test rbx, rbx
je 0x14000a1a8
xor ecx, ecx
mov edx, 0x10000
mov r8d, 0x2000
lea r9d, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14000a1d0
mov rcx, rbx
call fcn.140009d1c
mov ecx, 0xe004000e
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov ecx, dword [0x140082c50]
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
mov r11, qword [rbx + 0x10]
mov qword [rbx + 0x18], rbp
mov qword [rbx], r11
mov qword [rbx + 8], r11
mov rcx, rbx
call fcn.140009970
mov rdx, rdi
mov rcx, rbx
call fcn.140009904
test al, al
jne 0x14000a233
lea rcx, [r12 + 8]
call fcn.140009ce4
mov qword [rsi], rax
test rax, rax
je 0x14000a228
mov rcx, qword [rbx + 0x18]
mov qword [rax], rcx
lea rcx, [rax + 8]
mov qword [rbx + 0x18], rax
mov qword [rsi], rcx
cmp qword [rsi], rbp
setne bpl
mov eax, ebp
jmp 0x14000a1b5
mov rcx, qword [rbx]
mov eax, 1
mov qword [rsi], rcx
add qword [rbx], rdi
jmp 0x14000a1b5
xor edx, edx
mov ecx, 0x7a7a6131
call fcn.140011d08
xor eax, eax
jmp 0x14000a1ba
Function at 0x14000a25c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x58
lea rax, str.SoftwarePoliciesMicrosoftOffice14.0
xor r12d, r12d
lea rsi, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rax, str.SoftwareMicrosoftOffice14.0
mov ebp, r12d
mov ebx, r12d
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rax
mov rdx, qword [rsi]
lea r9, [rsp + 0x98]
mov r8d, 1
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x98], r12
call fcn.140022b10
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14000a37f
lea r9, [rsp + 0x30]
lea rdx, str.Common
mov r8d, 1
mov edi, r12d
mov qword [rsp + 0x30], r12
call fcn.140022b10
test eax, eax
jne 0x14000a34b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, str.MsoHeapInit
xor r8d, r8d
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x88], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000a34b
cmp dword [rsp + 0x90], 4
jne 0x14000a34b
mov ebp, dword [rsp + 0x80]
lea edi, [rax + 1]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000a360
mov qword [rsp + 0x30], r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14000a39f
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14000a37f
mov qword [rsp + 0x98], r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
add rsi, 8
cmp ebx, 2
jb 0x14000a290
mov eax, ebp
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14000a3ba
mov qword [rsp + 0x98], r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000ad0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ad27
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rax + rcx + 8]
mov dword [rsp], eax
jmp 0x14000ad3e
mov eax, 0x4550
cmp word [rcx], ax
jne 0x14000ad39
mov eax, dword [rcx + 8]
mov dword [rsp], eax
jmp 0x14000ad3e
xor eax, eax
mov dword [rsp], eax
jmp 0x14000ad45
add rsp, 0x18
ret

Function at 0x14000ad4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ad88
movsxd rdx, dword [rcx + 0x3c]
mov r8d, 0xf0
cmp word [rdx + rcx + 0x14], r8w
jne 0x14000ad81
mov eax, 0x20b
cmp word [rdx + rcx + 0x18], ax
jne 0x14000ad93
mov eax, dword [rdx + rcx + 0x50]
mov dword [rsp], eax
jmp 0x14000adb7
mov eax, 0x20b
jmp 0x14000ad93
mov eax, 0x20b
mov r8d, 0xf0
mov edx, 0x4550
cmp word [rcx], dx
jne 0x14000adb2
cmp word [rcx + 0x14], r8w
jne 0x14000adb2
cmp word [rcx + 0x18], ax
jne 0x14000adb2
mov eax, dword [rcx + 0x50]
mov dword [rsp], eax
jmp 0x14000adb7
xor eax, eax
mov dword [rsp], eax
jmp 0x14000adbe
add rsp, 0x18
ret
Function at 0x14000b3c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov ebp, edx
mov rdi, rcx
mov rdx, rcx
lea r9d, [rbx + 1]
lea r8d, [rbx + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000b42a
lea rcx, str.MicrosoftOffice_
mov r8d, ebp
mov rdx, rdi
call fcn.14001b1bc
mov ebx, 1
test esi, esi
je 0x14000b42a
mov rcx, rdi
call fcn.140022b90
test eax, eax
jne 0x14000b42a
mov rcx, rdi
call fcn.140014ff0
mov ebx, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b750
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14000b7ce
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor r9d, r9d
mov edi, r8d
mov rsi, rdx
mov dword [rax - 0x20], 0x80
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov dword [rax - 0x28], 2
call fcn.140022c34
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000b7bf
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000c5dc
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, edx
mov rbp, rcx
call fcn.140014fb4
xor ebx, ebx
cmp eax, ebx
je 0x14000c61c
mov rdx, rbp
mov ecx, r12d
call sub.KERNEL32.dll_GetTempPathW
cmp eax, ebx
seta bl
mov eax, ebx
jmp 0x14000c6d8
mov r8d, 1
mov edx, r12d
mov rcx, rbp
call fcn.14000b3c4
mov esi, eax
cmp eax, ebx
je 0x14000c6d6
or r13, 0xffffffffffffffff
cmp rbp, rbx
je 0x14000c653
xor eax, eax
mov rcx, r13
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x14000c656
mov rcx, rbx
movsxd rax, ecx
cmp word [rbp + rax*2 - 2], 0x5c
je 0x14000c680
lea r8, [0x1400509ec]
mov rdx, r12
mov r9, r13
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_wcsncat_s]
mov esi, ebx
cmp eax, 0x50
setne sil
cmp esi, ebx
je 0x14000c6d6
lea r8, str.14.0_
mov rdx, r12
mov r9, r13
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_wcsncat_s]
mov esi, ebx
cmp eax, 0x50
setne sil
cmp esi, ebx
je 0x14000c6d6
xor edx, edx
mov rcx, rbp
call fcn.14001468c
cmp eax, ebx
jne 0x14000c6d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebx
cmp eax, 0xb7
sete sil
cmp esi, ebx
jne 0x14000c6d6
xor edx, edx
mov ecx, 0x39337061
call fcn.140011d08
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret