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

Disassembly:
push rbx
sub rsp, 0x4c0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
lea rcx, str.kPreferences
mov rax, qword [0x1404672c0]
call qword [rax + 0x1190]
xor ecx, ecx
mov qword [rsp + 0x98], rcx
mov dword [rsp + 0xa0], ecx
mov dword [rsp + 0x98], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
xor r8d, r8d
lea rdx, str.kPrefPageViewIgnoreLineWeights
mov rcx, rax
mov rax, qword [0x1404672d8]
call qword [rax + 0x188]
mov byte [rsp + 0x9c], al
lea rcx, [rsp + 0x40]
call sym.NitroFree.exe_public:_class_CxFile____ptr64___cdecl_CxFile::operator_class_CxFile_const____ptr64____ptr64
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.140161fc0
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r8d, dword [rsp + 0x58]
lea rdx, str.SoftwareNitroPro_d.0Settings
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_4612]
mov dword [rsp + 0x44], ebx
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401565fd
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x6c], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.numberOfCoresForRendering
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401565e9
cmp dword [rsp + 0x48], 4
je 0x1401565ed
mov dword [rsp + 0x44], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
mov eax, dword [rsp + 0x44]
mov ecx, 6
cmp eax, ecx
cmova eax, ecx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0xa0], eax
lea rcx, [rsp + 0x98]
mov rax, qword [0x140467288]
call qword [rax + 0x1220]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x40]
call fcn.14019c590
nop
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140289bf0
add rsp, 0x4c0
pop rbx
ret
Function at 0x140157960
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0xfffffffffffffffe
mov rbx, rdx
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
test rbx, rbx
jne 0x140157998
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
jmp 0x14015799b
mov rdx, rbx
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
lea rdx, [rbp + 0x48]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
xor sil, sil
xor r15b, r15b
mov r12d, 1
mov edi, r12d
cmp dword [rbp + 0x48], r12d
jle 0x140157b19
add r14, 8
nop word [rax + rax]
mov r8, qword [r14]
lea rdx, [0x140322d70]
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_4612]
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_8291]
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_5611]
mov r8, rax
lea rdx, [0x140322dd8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_293]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_2861]
test eax, eax
sete bl
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
test bl, bl
je 0x140157a5f
mov r15b, 1
jmp 0x140157afc
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_5611]
mov r8, rax
lea rdx, [0x140322dd0]
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc120u.dll_Ordinal_293]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_2861]
test eax, eax
sete bl
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
test bl, bl
je 0x140157aad
mov sil, 1
jmp 0x140157afc
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_5611]
mov r8, rax
lea rdx, [0x140322dd4]
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc120u.dll_Ordinal_293]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_2861]
test eax, eax
sete bl
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx esi, sil
test bl, bl
cmovne esi, r12d
inc edi
add r14, 8
cmp edi, dword [rbp + 0x48]
jl 0x1401579f0
test r15b, r15b
je 0x140157b19
test sil, sil
je 0x140157b19
mov bl, 1
jmp 0x140157b1b
xor bl, bl
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, bl
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140158280
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x14015828e
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1401582b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rbp, rcx
jb 0x1401582d6
mov rcx, qword [rdx]
jmp 0x1401582d9
mov rcx, rdx
xor edi, edi
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14015834c
lea rdx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0xc]
sub eax, dword [rsp + 0x5c]
cmp eax, 0x258
jbe 0x14015834c
cmp qword [rbx + 0x18], 8
jb 0x14015833c
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x14015834e
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140158890
Capabilities:
Log keystrokes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbp, rdx
mov r14, rcx
mov dil, 1
mov rax, qword [0x1404672c0]
call qword [rax + 0x1448]
xor esi, esi
test al, al
je 0x1401588da
mov rdx, rbp
mov rcx, r14
call fcn.140157700
movzx edi, dil
test al, al
cmove edi, esi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov r8d, 1
mov edx, eax
mov ecx, r15d
call qword [sym.imp.USER32.dll_AttachThreadInput]
call sub.mfc120u.dll_Ordinal_2180
test rax, rax
je 0x140158922
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf8]
jmp 0x140158925
mov rax, rsi
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call sub.mfc120u.dll_Ordinal_2180
test rax, rax
je 0x140158948
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf8]
mov rsi, rax
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_BringWindowToTop]
xor r8d, r8d
mov edx, ebx
mov ecx, r15d
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp dil, 1
jne 0x140158974
xor r8d, r8d
mov rdx, rbp
mov rcx, r14
call fcn.140159980
lea rcx, [0x1404697f0]
call sub.mfc120u.dll_Ordinal_5608
test rax, rax
je 0x140158995
mov r8, qword [rax]
or edx, 0xffffffff
mov rcx, rax
call qword [r8 + 0x300]
test dil, dil
jne 0x1401589fe
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov edx, 0x41
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_8043]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140190f20
nop
mov rbx, qword [0x1404672c0]
mov rcx, rax
call fcn.140191980
mov rcx, rax
call qword [rbx + Ordinal_6578]
nop
lea rcx, [rsp + 0x78]
call fcn.1401918b0
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140161fc0
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x850
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov r12, qword [rsp + 0x8a0]
xor eax, eax
mov rbp, r9
mov r15, r8
mov r14, rdx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], eax
call sub.mfc120u.dll_Ordinal_2170
mov rcx, qword [rax + 0x10]
lea rdx, [rsp + 0x30]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x1401620d6
mov edx, esi
mov ecx, 2
mov qword [rsp + 0x848], rbx
mov qword [rsp + Ordinal_2113], rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rax
mov r8d, esi
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x28]
lea rdx, [0x1402dfd40]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
mov rbx, qword [rsp + 0x848]
test eax, eax
je 0x1401620bc
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + 0xa]
mov dword [r14], eax
movzx eax, word [rcx + 8]
mov dword [r15], eax
movzx eax, word [rcx + 0xe]
mov dword [rbp], eax
movzx eax, word [rcx + 0xc]
mov dword [r12], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x840]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140289bf0
add rsp, 0x850
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x140162180
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x860
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rsp + Ordinal_2134], rax
xor ebp, ebp
mov r12d, r8d
mov r14, rdx
mov edi, ebp
mov r15d, ebp
mov esi, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x34], ebp
call sub.mfc120u.dll_Ordinal_2170
lea rdx, [rsp + 0x50]
mov r8d, 0x800
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x38], eax
test eax, eax
je 0x140162292
lea ecx, [rbp + 2]
mov edx, eax
mov qword [rsp + 0x890], rbx
mov qword [rsp + 0x8a0], r13
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov r9, rax
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rdx, [0x1402dfd40]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
mov rbx, qword [rsp + 0x890]
test eax, eax
je 0x140162278
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + 8]
mov esi, eax
movzx r15d, ax
mov eax, dword [rcx + 0xc]
mov edi, eax
shr esi, 0x10
movzx ebp, ax
shr edi, 0x10
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r13, qword [rsp + 0x8a0]
mov byte [r14], 0
mov r9d, r15d
mov r8d, esi
mov rcx, r14
cmp r12d, 3
jne 0x1401622cb
test edi, edi
jne 0x1401622b8
lea rdx, str._d._d
call qword [sym.imp.MSVCR120.dll_sprintf]
jmp 0x140162306
lea rdx, str._d._d._d
mov dword [rsp + 0x20], edi
call qword [sym.imp.MSVCR120.dll_sprintf]
jmp 0x140162306
cmp r12d, 4
jne 0x1401622f1
test edi, edi
jne 0x1401622e8
lea rdx, str._d._d___d_
mov dword [rsp + 0x20], ebp
call qword [sym.imp.MSVCR120.dll_sprintf]
jmp 0x140162306
lea rdx, str._d._d._d___d_
jmp 0x1401622f8
lea rdx, str._d._d._d._d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edi
call qword [sym.imp.MSVCR120.dll_sprintf]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140289bf0
mov rbp, qword [rsp + 0x8a8]
add rsp, 0x860
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140165eb0
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r12d, r8d
mov rbp, rdx
mov rbx, rcx
mov eax, dword [0x14046c2f8]
test al, 1
jne 0x140165efd
or eax, 1
mov dword [0x14046c2f8], eax
lea rcx, [0x14046c2e8]
call fcn.140163e80
lea rcx, [0x1402c9c40]
call fcn.14028a0a4
nop
xor r15d, r15d
mov dword [rsp + 0x88], r15d
lea r9d, [r15 + 2]
lea r8, [rsp + 0x88]
mov edx, 0x20001004
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test rbp, rbp
cmove r12d, r15d
xor r8d, r8d
mov rdx, rbx
movzx ecx, word [rsp + 0x88]
call qword [sym.imp.USER32.dll_CharNextExA]
mov rsi, rax
movsxd r14, r12d
cmp rax, rbx
je 0x140166049
mov edi, r15d
mov r9d, esi
sub r9d, ebx
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, dword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jne 0x140166002
mov r8, qword [0x14046c2e8]
mov rax, qword [r8 + 8]
mov rcx, r8
cmp byte [rax + 0x19], 0
jne 0x140165fd8
movzx edx, word [rsp + 0x80]
cmp word [rax + 0x1a], dx
jae 0x140165faf
mov rax, qword [rax + 0x10]
jmp 0x140165fb5
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140165fa3
cmp rcx, r8
je 0x140165fd8
cmp dx, word [rcx + 0x1a]
jb 0x140165fd8
mov qword [rsp + 0x98], rcx
lea rax, [rsp + 0x98]
jmp 0x140165fe2
mov qword [rsp + 0x30], r8
lea rax, [rsp + 0x30]
mov rax, qword [rax]
cmp rax, r8
je 0x140166002
movzx ecx, byte [rax + 0x1c]
test ecx, ecx
js 0x140166002
cmp rdi, r14
jge 0x140165ffa
mov byte [rdi + rbp], cl
inc r15d
inc rdi
jmp 0x140166026
cmp rbx, rsi
je 0x140166026
mov eax, esi
sub eax, ebx
add r15d, eax
nop
cmp rdi, r14
jge 0x14016601b
movzx eax, byte [rbx]
mov byte [rdi + rbp], al
inc rdi
inc rbx
cmp rbx, rsi
jne 0x140166010
mov rbx, rsi
xor r8d, r8d
mov rdx, rsi
movzx ecx, word [rsp + 0x88]
call qword [sym.imp.USER32.dll_CharNextExA]
mov rsi, rax
cmp rax, rbx
jne 0x140165f51
test rbp, rbp
je 0x140166056
cmp r15d, r12d
mov eax, r12d
jg 0x140166059
mov eax, r15d
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140166070
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
lea r8, [rax + 0x20]
lea r9d, [r12 + 2]
mov edx, 0x20001004
mov ecx, 0x400
mov dword [rax + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [rsp + 0x88]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov r8, rbp
xor edx, edx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140166132
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
mov ecx, dword [rsp + 0x88]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov r8, rbp
xor edx, edx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
test eax, eax
jg 0x140166137
call qword [sym.imp.MSVCR120.dll_free]
or eax, 0xffffffff
jmp 0x14016614f
mov r8d, ebx
mov rdx, rsi
call fcn.140165eb0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.MSVCR120.dll_free]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rsi, rdx
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r13
mov r14, rcx
mov r8, rcx
mov dword [rax - 0x40], r13d
or rbx, 0xffffffffffffffff
mov r9d, ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rax - 0x48], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14016628d
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov r9d, ebx
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
test eax, eax
jle 0x140166287
lea r8, str.SASLprep
lea rdx, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x88], r13
call fcn.1401acef0
test eax, eax
je 0x140166252
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140166284
call qword [sym.imp.MSVCR120.dll_free]
mov qword [rsp + 0x88], r13
jmp 0x140166284
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
mov rdi, qword [rsp + 0x88]
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x140166263
test rsi, rsi
je 0x140166284
cmp ebx, ebp
mov rdx, rdi
mov rcx, rsi
cmovg ebx, ebp
movsxd r8, ebx
call sub.MSVCR120.dll_memcpy
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
dec r9d
je 0x1401662c3
dec r9d
je 0x1401662be
or eax, 0xffffffff
ret
jmp 0x140166170
jmp 0x140166070
Function at 0x1401662b0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
lea r8, [rax + 0x20]
lea r9d, [r12 + 2]
mov edx, 0x20001004
mov ecx, 0x400
mov dword [rax + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [rsp + 0x88]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov r8, rbp
xor edx, edx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140166132
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
mov ecx, dword [rsp + 0x88]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov r8, rbp
xor edx, edx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
test eax, eax
jg 0x140166137
call qword [sym.imp.MSVCR120.dll_free]
or eax, 0xffffffff
jmp 0x14016614f
mov r8d, ebx
mov rdx, rsi
call fcn.140165eb0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.MSVCR120.dll_free]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rsi, rdx
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r13
mov r14, rcx
mov r8, rcx
mov dword [rax - 0x40], r13d
or rbx, 0xffffffffffffffff
mov r9d, ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rax - 0x48], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14016628d
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov r9d, ebx
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
test eax, eax
jle 0x140166287
lea r8, str.SASLprep
lea rdx, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x88], r13
call fcn.1401acef0
test eax, eax
je 0x140166252
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140166284
call qword [sym.imp.MSVCR120.dll_free]
mov qword [rsp + 0x88], r13
jmp 0x140166284
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
mov rdi, qword [rsp + 0x88]
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x140166263
test rsi, rsi
je 0x140166284
cmp ebx, ebp
mov rdx, rdi
mov rcx, rsi
cmovg ebx, ebp
movsxd r8, ebx
call sub.MSVCR120.dll_memcpy
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
dec r9d
je 0x1401662c3
dec r9d
je 0x1401662be
or eax, 0xffffffff
ret
jmp 0x140166170
jmp 0x140166070
Function at 0x14016c030
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rbp, rcx
mov r14b, 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14016c100
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x14016c0f9
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rsi, rax
test rax, rax
je 0x14016c0f9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_5576]
mov edi, eax
xor ebx, ebx
test eax, eax
jle 0x14016c0f0
nop dword [rax]
mov edx, ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_4822]
xor r8d, r8d
movzx edx, ax
lea rcx, [rbp + 0xf8]
call qword [sym.imp.mfc120u.dll_Ordinal_4466]
cmp eax, 0xffffffff
je 0x14016c0ed
inc ebx
cmp ebx, edi
jl 0x14016c0c0
jmp 0x14016c0f0
xor r14b, r14b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, r14b
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140177bb4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140177cbb
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, Ordinal_261
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140177cac
cmp dword [rsp + 0x30], 2
mov byte [rbp + 0x43], bl
lea rcx, [rsp + 0x40]
jne 0x140177c76
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x140177cac
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140177c98
mov al, byte [rcx + rdi]
test al, al
je 0x140177c98
mov byte [rdi], al
inc rdi
dec rsi
jne 0x140177c7b
test rsi, rsi
jne 0x140177ca5
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140177cbd
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140289bf0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret