joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140191d80
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
mov eax, 0x10b0
call fcn.14039bb40
sub rsp, rax
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
mov rcx, r8
mov rbp, r8
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r14d, r14d
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov edi, r14d
call fcn.1403957f0
cmp qword [rsp + 0x50], rdi
je 0x140191f4d
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbp
mov qword [rsp + 0x10d0], rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140191f1f
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140191f09
lea edi, [r14 + 1]
nop dword [rax + rax]
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140191e82
movzx ecx, word [rsp + 0x64]
lea r9, str.__02d:_02d:_02d._03d_:
movzx edx, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
movzx eax, word [rsp + 0x66]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], edx
mov edx, 0x812
mov dword [rsp + 0x20], r8d
mov r8d, edx
call fcn.140194570
lea r8, [rbx + 0x10]
mov edx, 0x812
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [0x14044c5b8]
mov edx, 0x812
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], r14d
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x140191ec0
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov rcx, rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140191f06
lea rcx, [rsp + 0x48]
call fcn.140394dd0
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x140191e30
jmp 0x140191f09
mov edi, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140191f1f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rsi, qword [rsp + 0x10d0]
mov eax, edi
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.14039bbb0
mov rbx, qword [rsp + 0x10e8]
add rsp, 0x10b0
pop r14
pop rdi
pop rbp
ret
mov eax, edi
jmp 0x140191f29
Function at 0x1401920c0
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x208
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor ebx, ebx
movsxd r12, r8d
mov r13, r9
mov r14, rdx
mov r15, rcx
test r8d, r8d
jle 0x1401920fa
mov word [rdx], bx
cmp dword [rsp + 0x260], ebx
jle 0x140192107
mov word [r9], bx
lea rdx, [rsp + 0x58]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x1401922a1
mov edx, esi
mov qword [rsp + 0x200], rdi
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14019229a
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, r15
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14019224e
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x48], rbx
lea rdx, str.VarFileInfoTranslation
mov qword [rsp + 0x50], rbx
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14019224e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14019224e
movzx eax, word [rcx + 2]
lea r8, str.StringFileInfo_04x_04xFileDescription
movzx r9d, word [rcx]
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.14018b8b0
lea r9, [rsp + 0x40]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401921de
mov r8, qword [rsp + 0x48]
mov rdx, r12
mov rcx, r14
call fcn.14018b830
lea r8, [0x14044bfc8]
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
lea rcx, [rsp + 0x60]
call fcn.14018b8b0
lea r9, [rsp + 0x40]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140192265
mov rdx, qword [rsp + 0x48]
mov rcx, r13
movzx r8d, word [rdx + 0xe]
movzx eax, word [rdx + 0xc]
movzx r10d, word [rdx + 8]
movzx r9d, word [rdx + 0xa]
movsxd rdx, dword [rsp + 0x260]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
lea r8, str._u._u._u._u
mov dword [rsp + 0x20], r10d
call fcn.14018b8b0
jmp 0x140192265
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14019225c
mov ebx, eax
jmp 0x140192265
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rdi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x208
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret
mov eax, 0x8007000e
jmp 0x140192270
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140192278
movzx eax, ax
or eax, 0x80070000
jmp 0x140192278
Function at 0x140193e30
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov dword [rsp + 0x28], 0
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140193ea1
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x60]
mov qword [rbx], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov qword [rbx], 0
mov eax, 0x8004e007
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1401953f0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
jne 0x14019541e
mov eax, 0x80040007
jmp 0x140195447
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140195432
mov eax, 0x80070002
jmp 0x140195447
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r8, rbp
mov dl, 1
mov rcx, rdi
call fcn.1401959d0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140197000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x50], rbx
cmp dword [0x14068c074], ebx
jne 0x1401970c1
mov eax, dword [0x14068c070]
test eax, eax
jne 0x1401970c1
mov r8d, dword [0x14068c07c]
test r8d, r8d
je 0x140197060
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c070]
mov r8d, dword [0x14068c07c]
test eax, eax
jne 0x1401970c1
test r8d, r8d
jne 0x140197072
call fcn.14018bc50
test eax, eax
je 0x140197088
lea rdx, [rsp + 0x50]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1401970c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x1401970b7
cmp eax, 0x78
je 0x1401970b7
cmp eax, 1
je 0x1401970b7
cmp eax, 0x32
je 0x1401970b7
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [0x14068c070], 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov esi, eax
mov dword [rsp + 0x20], eax
cmp dword [0x14068c074], 0
je 0x1401970e5
cmp dword [0x14068c070], 0
jne 0x140197112
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x1401970f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x140197112
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140197a20
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movsxd rbx, edx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 0xa]
call fcn.140198f20
test al, al
je 0x140197a4e
test ebx, ebx
jle 0x140197ac3
lea r8, str.Windows_10.0
jmp 0x140197ab0
xor r8d, r8d
lea edx, [r8 + 3]
lea ecx, [rdx + 3]
call fcn.140198f20
test al, al
je 0x140197a6e
test ebx, ebx
jle 0x140197ac3
lea r8, str.Windows_8.1
jmp 0x140197ab0
xor r8d, r8d
lea edx, [r8 + 2]
lea ecx, [rdx + 4]
call fcn.140198f20
test al, al
je 0x140197a8e
test ebx, ebx
jle 0x140197ac3
lea r8, str.Windows_8
jmp 0x140197ab0
xor r8d, r8d
lea edx, [r8 + 2]
lea ecx, [rdx + 4]
call fcn.140198f20
test al, al
je 0x140197b50
test ebx, ebx
jle 0x140197ac3
lea r8, str.Windows_7
mov r9, 0xffffffffffffffff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x140197b26
cmp ecx, 9
jne 0x140197b40
mov rdx, rbx
lea r8, str.__64_bit_
mov r9, 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rdx, rbx
lea r8, str.__32_bit_
mov r9, 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea r9, str.Unknown_Versoin
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call sym.ErrorReportClient.exe_SfCchPrintF
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x140197ca0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r12, rdx
movsxd rsi, r9d
lea rdx, [rsp + 0x44]
mov r15, r8
mov r14, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x140197ce9
mov eax, 0x8004e00a
jmp 0x140197deb
mov rdx, rbp
mov qword [rsp + 0x170], rdi
mov ecx, 0x42
mov ebx, 0x8004e00a
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x140197de1
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140197dbd
lea r9, [rsp + 0x40]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140197dbd
cmp dword [rsp + 0x40], 0
je 0x140197dbd
mov rax, qword [rsp + 0x48]
lea r9, str.StringFileInfo_04hX_04hX_s
mov qword [rsp + 0x30], r12
xor r8d, r8d
movzx ecx, word [rax + 2]
movzx edx, word [rax]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], edx
mov edx, 0x80
call sym.ErrorReportClient.exe_SfCchPrintF
lea r9, [rsp + 0x40]
mov rcx, rdi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140197dbd
xor ebx, ebx
test esi, esi
jle 0x140197dbd
mov r8, qword [rsp + 0x50]
lea r9, [rbx - 1]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x178
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140197f40
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rbp + 0x37], rax
movdqa xmm0, xmmword [0x140450430]
mov rsi, rcx
lea rcx, [rbp - 0x29]
movsxd rdi, edx
movdqu xmmword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 5]
cmp ecx, 0x24a
je 0x140197f98
cmp ecx, 0x21d8
je 0x140197f98
mov eax, 0x80004005
jmp 0x1401980c7
xor eax, eax
mov qword [rsp + 0xe0], rbx
xor ecx, ecx
cpuid
cmp eax, 1
jl 0x1401980ba
cmp edi, 0x30
jbe 0x1401980ba
xor ecx, ecx
mov eax, 0x80000000
cpuid
mov dword [rbp - 0x45], ebx
mov dword [rbp - 0x41], ecx
mov dword [rbp - 0x3d], edx
test eax, eax
jns 0x1401980ba
cmp eax, 0x80000004
jb 0x1401980ba
xor ecx, ecx
mov qword [rsp + 0xe8], r14
mov eax, 0x80000002
mov r8d, reloc.SHELL32.dll_ILFindChild
cpuid
mov dword [rbp - 0x41], ecx
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x3d], edx
lea rdx, [rbp + 7]
mov dword [rbp - 0x49], eax
mov dword [rbp - 0x45], ebx
call fcn.140198720
test edi, edi
jle 0x140198028
mov r9, 0xffffffffffffffff
lea r8, [rbp + 7]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor ecx, ecx
mov eax, 0x80000003
cpuid
mov dword [rbp - 0x41], ecx
mov r8d, reloc.SHELL32.dll_ILFindChild
mov dword [rbp - 0x3d], edx
lea rcx, [rbp - 0x49]
lea rdx, [rbp + 7]
mov dword [rbp - 0x49], eax
mov dword [rbp - 0x45], ebx
call fcn.140198720
mov r9, 0xffffffffffffffff
lea r8, [rbp + 7]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
xor ecx, ecx
mov eax, 0x80000004
cpuid
mov dword [rbp - 0x41], ecx
mov r8d, reloc.SHELL32.dll_ILFindChild
mov dword [rbp - 0x3d], edx
lea rcx, [rbp - 0x49]
lea rdx, [rbp + 7]
mov dword [rbp - 0x49], eax
mov dword [rbp - 0x45], ebx
call fcn.140198720
mov r9, 0xffffffffffffffff
lea r8, [rbp + 7]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rcx, rsi
call sym.ErrorReportClient.exe_SfStripWhiteSpace
mov r14, qword [rsp + 0xe8]
xor eax, eax
jmp 0x1401980bf
mov eax, 0x80004005
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140199f00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov esi, edi
mov dword [rsp + 0x20], edi
mov rbx, qword [0x14068c730]
mov qword [rsp + 0x48], rdi
cmp dword [0x14068c074], edi
jne 0x140199fd1
mov eax, dword [0x14068c070]
test eax, eax
jne 0x140199fd1
mov edx, dword [0x14068c07c]
test edx, edx
je 0x140199f69
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c070]
mov edx, dword [0x14068c07c]
test eax, eax
jne 0x140199fd1
test edx, edx
jne 0x140199f7a
call fcn.14018bc50
test eax, eax
je 0x140199f90
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x140199fd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xffffff82
cmp eax, 1
jbe 0x140199fc7
cmp ecx, 0x78
je 0x140199fc7
cmp ecx, 1
je 0x140199fc7
cmp ecx, 0x32
je 0x140199fc7
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov dword [0x14068c070], 1
test rbx, rbx
jne 0x140199ff1
lea rcx, [0x140450460]
call fcn.140199e30
mov rbx, rax
test rax, rax
je 0x140199ffc
mov qword [0x14068c730], rax
mov rcx, r14
call rbx
mov esi, eax
mov dword [rsp + 0x20], eax
cmp dword [0x14068c074], 0
je 0x14019a00e
cmp dword [0x14068c070], 0
jne 0x14019a03a
mov ebx, edi
test esi, esi
sete bl
test ebx, ebx
je 0x14019a021
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14019a03a
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x140199fb1
Function at 0x14019aef0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x14019af03
mov ebx, dword [rcx + 0x268]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
movzx ecx, bx
add rsp, 0x20
pop rbx
jmp 0x14019f810
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, cx
mov rbx, qword [0x14068c748]
mov qword [rsp + 0x38], 0
cmp dword [0x14068c074], 0
jne 0x14019f8b1
mov eax, dword [0x14068c070]
test eax, eax
jne 0x14019f8b1
mov edx, dword [0x14068c07c]
test edx, edx
je 0x14019f863
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c070]
mov edx, dword [0x14068c07c]
test eax, eax
jne 0x14019f8b1
test edx, edx
jne 0x14019f874
call fcn.14018bc50
test eax, eax
je 0x14019f88a
lea rdx, [rsp + 0x38]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14019f8b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14019f8a7
cmp eax, 0x78
je 0x14019f8a7
cmp eax, 1
je 0x14019f8a7
cmp eax, 0x32
jne 0x14019f901
mov dword [0x14068c070], 1
test rbx, rbx
jne 0x14019f8d1
lea rcx, str.InitMUILanguage
call fcn.140199e30
mov rbx, rax
test rax, rax
je 0x14019f8d7
mov qword [0x14068c748], rax
movzx ecx, di
call rbx
nop
cmp dword [0x14068c074], 0
je 0x14019f8e9
cmp dword [0x14068c070], 0
jne 0x14019f901
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14019af60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, r8d
mov rdi, rdx
test rcx, rcx
je 0x14019affd
mov r8d, dword [rcx + 0x268]
mov ecx, 0x3ff
movzx eax, r8w
movzx edx, r8w
and ax, cx
shr dx, 0xa
movzx ecx, ax
cmp ecx, 4
je 0x14019afad
cmp ax, 0x16
je 0x14019afa8
bts ecx, 0xa
jmp 0x14019afca
mov ecx, r8d
jmp 0x14019afca
lea eax, [rdx - 1]
mov ecx, 0xfff9
test cx, ax
jne 0x14019afc5
mov ecx, 0x404
cmp dx, 7
jne 0x14019afca
mov ecx, 0x804
mov r9d, ebx
mov r8, rdi
mov edx, 3
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jg 0x14019b00a
test ebx, ebx
jle 0x14019affd
mov rdx, rbx
lea r8, [0x14044b1c4]
mov r9, 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14019beb0
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x20
movzx eax, word [rdx + 2]
lea r12, [0x14076a5e0]
mov ebx, dword [rcx + 0x26c]
mov r14, rdx
mov qword [rsp + 0x40], rbp
mov rsi, rcx
movzx ebp, al
mov edi, 1
test ebx, ebx
jg 0x14019bf98
mov dword [rcx + 0x26c], edi
mov ecx, dword [rcx + 0x268]
mov qword [rsp + 0x48], r15
test ecx, ecx
jne 0x14019bf0d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
xor ebx, ebx
call sym.ErrorReportClient.exe_SfLang_GetConditionedLCID
mov r10d, eax
mov r9, r12
mov r11d, 0xfff9
mov r15d, 0x3ff
nop word [rax + rax]
mov r8d, dword [r9]
movzx edx, r8w
and dx, r15w
movzx ecx, r8w
movzx eax, dx
shr cx, 0xa
cmp eax, 4
je 0x14019bf5c
cmp dx, 0x16
je 0x14019bf57
bts eax, 0xa
jmp 0x14019bf75
mov eax, r8d
jmp 0x14019bf75
lea eax, [rcx - 1]
test r11w, ax
jne 0x14019bf70
mov eax, 0x404
cmp cx, 7
jne 0x14019bf75
mov eax, 0x804
inc ebx
cmp eax, r10d
je 0x14019bf8d
add r9, 4
cmp ebx, 0x12
jb 0x14019bf30
mov ebx, dword [rsi + 0x26c]
jmp 0x14019bf93
mov dword [rsi + 0x26c], ebx
mov r15, qword [rsp + 0x48]
cmp ebx, edi
jl 0x14019bfa3
cmp ebx, ebp
mov edi, ebx
cmovg edi, ebp
mov rbp, qword [rsp + 0x40]
movsxd rdi, edi
mov rbx, qword [r14 + rdi*8]
cmp rbx, 0x10000
jae 0x14019c057
movzx r9d, word [r12 + rdi*4]
mov eax, ebx
mov rcx, qword [rsi + 0x260]
mov edx, 6
shr eax, 4
inc ax
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x14019c04a
mov rcx, qword [rsi + 0x260]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14019c04a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14019c04a
and ebx, 0xf
jbe 0x14019c021
mov edx, ebx
nop
movzx ecx, word [rax]
lea rax, [rax + rcx*2]
add rax, 2
sub rdx, 1
jne 0x14019c010
movzx ecx, word [rax]
lea rdx, [rax + 2]
test rdx, rdx
je 0x14019c04a
test ecx, ecx
je 0x14019c043
lea r8d, [rcx - 1]
cmp word [rdx + r8*2], 0
jne 0x14019c043
test ecx, ecx
cmovne ecx, r8d
cmp word [rdx + rcx*2], 0
je 0x14019c04e
mov rdx, qword [r14 + 8]
mov qword [r14 + rdi*8], rdx
mov rax, rdx
jmp 0x14019c05a
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret

Function at 0x14019c080
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
test rdx, rdx
jne 0x14019c088
xor eax, eax
ret
cmp rdx, 0x10000
jb sym.ErrorReportClient.exe_wchar_t_const____ptr64___cdecl_SfGetString_struct_HSFLANG______ptr64__unsigned_int_
test dl, 3
jne 0x14019c0a8
mov eax, 0xfffe
cmp word [rdx], ax
je sym.ErrorReportClient.exe_wchar_t_const____ptr64___cdecl_SfGetString_struct_HSFLANG______ptr64__wchar_t_const__const___ptr64_const____ptr64_
mov rax, rdx
ret
Function at 0x14019c2b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x280
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor eax, eax
mov dword [rsp + 0x40], 4
test r9d, r9d
mov r10, rcx
mov rdi, r8
cmove eax, edx
xor r8d, r8d
shr eax, 0x10
mov edx, 0x104
movzx ecx, ax
shr cx, 8
test cl, cl
jne 0x14019c31b
lea rax, [0x140450c70]
mov qword [rsp + 0x28], r10
lea r9, str.Software_s_sLang
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call sym.ErrorReportClient.exe_SfCchPrintF
jmp 0x14019c34b
movzx eax, al
lea r9, str.Software_s_s_d._dLang
mov dword [rsp + 0x38], eax
lea rax, [0x140450c70]
movzx ecx, cl
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rax
call sym.ErrorReportClient.exe_SfCchPrintF
lea rax, [rsp + 0x48]
mov qword [rsp + 0x2a8], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14019c3a5
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14019c3f2
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.ULangID
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
movsxd rbx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
jne 0x14019c3f2
movzx eax, word [rsp + 0x44]
mov dword [rdi], eax
lea eax, [rbx + 1]
jmp 0x14019c3f4
xor eax, eax
mov rbx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x280
pop rdi
ret