joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r12d, ecx
movzx r13d, dx
lea rcx, [0x14003c140]
xor r14d, r14d
xor edx, edx
mov rbx, r14
call fcn.14002c514
lea ebp, [r14 + 1]
test rax, rax
mov rsi, rax
je 0x140003966
nop
nop
test rbx, rbx
jne 0x140003966
mov eax, r12d
lea edx, [rbx + 6]
movzx r9d, r13w
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x1400038d4
mov rbx, r14
jmp 0x140003949
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400038ea
mov rbx, r14
jmp 0x140003944
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x140003900
mov rbx, r14
jmp 0x140003944
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140003932
nop
nop
cmp rbx, r11
jae 0x140003937
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140003920
cmp rbx, r11
jb 0x14000393c
mov rbx, r14
jmp 0x140003944
cmp word [rbx], r14w
cmove rbx, r14
test rbx, rbx
jne 0x140003987
lea rcx, [0x14003c140]
mov edx, ebp
call fcn.14002c514
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x1400038a0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
mov rax, rsi
jmp 0x140003968

Function at 0x1400039b0
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x50
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r12, rdx
xor ecx, ecx
xor edx, edx
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
test eax, eax
mov ebx, eax
jne 0x1400039e4
xor eax, eax
jmp 0x140003a84
mov rdx, rbx
mov ecx, 0x40
mov qword [rsp + 0x80], rdi
shl rdx, 3
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rdi, rax
je 0x140003a18
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
test eax, eax
movsxd rbx, eax
jne 0x140003a1c
xor eax, eax
jmp 0x140003a7c
test eax, eax
je 0x140003a70
mov qword [rsp + 0x70], rsi
lea rsi, [rdi + rbx*8]
nop
nop
mov rcx, qword [rsi - 8]
sub rsi, 8
lea rdx, [rsp + 0x20]
mov r8d, 0x28
add ebx, 0xffffffff
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x140003a61
lea rdx, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140003a67
test ebx, ebx
jne 0x140003a30
jmp 0x140003a6b
mov rbp, qword [rdi + rbx*8]
mov rsi, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbp
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140011c90
add rsp, 0x50
pop r12
pop rbp
pop rbx
ret
Function at 0x140003dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140003f41
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003f41
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140003f41
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140003e76
nop
cmp rdi, r11
jae 0x140003f41
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140003e60
cmp rdi, r11
jae 0x140003f41
movzx eax, word [rdi]
test ax, ax
je 0x140003f41
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140003eac
mov edx, ebx
mov rcx, rsi
call fcn.140003be0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140003ec9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.140011dd0
test eax, eax
je 0x140003f17
cmp eax, 0xc
je 0x140003f0c
cmp eax, 0x16
je 0x140003f01
cmp eax, 0x22
je 0x140003f01
cmp eax, 0x50
je 0x140003f17
mov ecx, 0x80004005
call fcn.140003830
int3
mov ecx, 0x80070057
call fcn.140003830
int3
mov ecx, 0x8007000e
call fcn.140003830
int3
test ebx, ebx
js 0x140003f36
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140003f36
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140003f43
mov ecx, 0x80070057
call fcn.140003830
int3
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
Function at 0x140005e70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x2e0
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, rdx
lea rax, [rsp + 0x38]
mov rbx, r8
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140005edc
lea rdx, [0x14002ebf8]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140006009
xor edx, edx
lea rcx, [rsp + 0x52]
mov qword [rsp + 0x2f0], rdi
lea r8d, [rdx + 0x62]
mov word [rsp + 0x50], 0
call fcn.140011ab0
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], 0
call fcn.140011ab0
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140005fff
nop
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140005fd9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea rdx, str.Ime_File
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x32
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140013190
mov rcx, rsi
call fcn.140013190
lea r11, [rsp + 0x50]
mov rdx, rsi
sub rdx, r11
nop
nop
movzx ecx, word [r11]
movzx eax, word [r11 + rdx]
sub ecx, eax
jne 0x140005fd5
add r11, 2
test eax, eax
jne 0x140005fc0
test ecx, ecx
je 0x14000602a
mov rcx, qword [rsp + 0x38]
add edi, 1
lea r8, [rsp + 0xc0]
mov edx, edi
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140005f40
xor eax, eax
mov rdi, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140011c90
mov rbx, qword [rsp + 0x308]
add rsp, 0x2e0
pop rsi
ret
lea rax, [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
sub rbx, rax
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rbx + rcx - 2], ax
jne 0x140006040
mov eax, 1
jmp 0x140006001
Function at 0x140006060
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x2e0
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, rdx
lea rax, [rsp + 0x30]
mov rbx, r8
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400060cc
lea rdx, [0x14002ebf8]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1400061f9
xor edx, edx
lea rcx, [rsp + 0x52]
mov qword [rsp + 0x2f0], rdi
lea r8d, [rdx + 0x62]
mov word [rsp + 0x50], 0
call fcn.140011ab0
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], 0
call fcn.140011ab0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1400061ef
nop
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400061c9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea rdx, str.Ime_File
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], 0x32
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140013190
mov rcx, rsi
call fcn.140013190
lea r11, [rsp + 0x50]
mov rdx, rsi
sub rdx, r11
nop
nop
movzx ecx, word [r11]
movzx eax, word [r11 + rdx]
sub ecx, eax
jne 0x1400061c5
add r11, 2
test eax, eax
jne 0x1400061b0
test ecx, ecx
je 0x14000621a
mov rcx, qword [rsp + 0x30]
add edi, 1
lea r8, [rsp + 0xc0]
mov edx, edi
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140006130
xor eax, eax
mov rdi, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140011c90
mov rbx, qword [rsp + 0x308]
add rsp, 0x2e0
pop rsi
ret
lea rax, [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
sub rbx, rax
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rbx + rcx - 2], ax
jne 0x140006230
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
jmp 0x1400061f1
Function at 0x140006260
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.140011ab0
lea r11, [rsp + 0x40]
lea edx, [rbx + 0x25]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000637d
lea rdx, [0x14002ee90]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14000637d
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x278], rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov edi, eax
je 0x140006379
mov rcx, rdi
mov qword [rsp + 0x270], rsi
call fcn.140011950
lea rcx, [rsp + 0x40]
mov r8d, edi
mov r9, rax
xor edx, edx
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140006346
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x14002ee8c]
mov rcx, rsi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140006346
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + 8]
mov rcx, rsi
call fcn.1400136c0
mov rsi, qword [rsp + 0x270]
mov eax, ebx
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140011c90
add rsp, 0x260
pop rbx
ret
mov eax, ebx
jmp 0x140006358
mov eax, ebx
jmp 0x140006360
Function at 0x140009500
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
lea rcx, [0x14002e610]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx], rax
je 0x1400095ea
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.IsWow64Process
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64DisableWow64FsRedirection
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSystemWow64DirectoryW
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x1400095ea
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140009600
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x4f0
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbp, rdx
lea rax, [rsp + 0x30]
xor esi, esi
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
lea r9d, [rsi + 9]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140009654
xor eax, eax
jmp 0x1400097f4
xor edx, edx
lea rcx, [rsp + 0x52]
mov qword [rsp + 0x500], rbx
lea r8d, [rdx + 0x62]
mov qword [rsp + 0x508], rdi
mov word [rsp + 0x50], si
call fcn.140011ab0
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], si
call fcn.140011ab0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
mov ebx, esi
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1400097d7
nop
cmp ebx, 0x2710
jge 0x1400097d7
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xc0]
add ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400097aa
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x44], 0x32
mov word [rsp + 0x2d0], si
call fcn.140011ab0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea rdx, str.Ime_File
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x40]
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x28], r11
lea rdx, str.Layout_Text
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140013190
mov r8, rbp
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400097a6
add rax, 2
test ecx, ecx
jne 0x140009792
test edx, edx
je 0x1400097d2
mov rcx, qword [rsp + 0x30]
add edi, 1
lea r8, [rsp + 0xc0]
mov edx, edi
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400096c0
jmp 0x1400097d7
mov esi, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x508]
mov rbx, qword [rsp + 0x500]
mov eax, esi
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140011c90
mov rbp, qword [rsp + 0x510]
add rsp, 0x4f0
pop rsi
ret
Function at 0x140009820
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x700
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
mov rbp, rdx
lea rax, [rsp + 0x38]
mov rdi, r8
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009aad
lea r8d, [rax + 0x62]
lea rcx, [rsp + 0x52]
xor edx, edx
mov qword [rsp + 0x710], rbx
mov word [rsp + 0x50], ax
mov qword [rsp + 0x718], rsi
call fcn.140011ab0
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2d0], 0
call fcn.140011ab0
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x2d0]
xor ebx, ebx
mov r9d, 0x104
xor edx, edx
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140009a92
nop
cmp ebx, 0x2710
jge 0x140009a92
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x2d0]
add ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400099d3
lea rcx, [rsp + 0x4e2]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x44], 0x32
mov word [rsp + 0x4e0], ax
call fcn.140011ab0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
lea rdx, str.Ime_File
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0x40]
lea rax, [rsp + 0x4e0]
mov qword [rsp + 0x28], r11
lea rdx, str.Layout_Text
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x50]
call fcn.140013190
mov r8, rbp
sub r8, rax
nop
nop
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400099c4
add rax, 2
test ecx, ecx
jne 0x1400099b0
test edx, edx
je 0x1400099fe
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
add esi, 1
lea r8, [rsp + 0x2d0]
mov edx, esi
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400098e0
jmp 0x140009a92
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], 0
call fcn.140011ab0
lea rcx, [rsp + 0xc0]
sub rcx, rdi
nop
nop
movzx eax, word [rdi]
add rdi, 2
test ax, ax
mov word [rcx + rdi - 2], ax
jne 0x140009a30
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
lea rax, [rsp + 0xc0]
lea rdx, str.Layout_Text
not rcx
mov r9d, 1
xor r8d, r8d
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x718]
mov rbx, qword [rsp + 0x710]
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.140011c90
mov rbp, qword [rsp + 0x720]
add rsp, 0x700
pop rdi
ret
Function at 0x14000c1a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.140011ab0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jne 0x14000c219
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000c1f2
cmp eax, 1
jne 0x14000c219
cmp byte [rsp + 0x13a], 1
jne 0x14000c219
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140011c90
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140011c90
add rsp, 0x158
ret

Function at 0x14000c240
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.Shell32.dll
mov esi, r8d
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14000c2f2
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rdi, rax
je 0x14000c2f2
lea rdx, [rsp + 0x28]
lea rcx, str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call qword [sym.imp.ole32.dll_CLSIDFromString]
lea r9, [rsp + 0x20]
lea rcx, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x400
call rdi
test eax, eax
js 0x14000c2f2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
sub rdx, rcx
nop
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x14000c2d0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000c2f2
mov al, 1
jmp 0x14000c359
lea rcx, str.USERPROFILE
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000c357
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
mov rax, qword [str.AppDataLocalLow]
mov rcx, rbx
mov qword [rdi - 2], rax
mov rax, qword [0x140030378]
mov qword [rdi + 6], rax
mov rax, qword [0x140030380]
mov qword [rdi + 0xe], rax
mov rax, qword [0x140030388]
mov qword [rdi + 0x16], rax
mov eax, dword [0x140030390]
mov dword [rdi + 0x1e], eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000c2ee
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140011c90
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000c3c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x680
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rbx, rcx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call fcn.140011ab0
xor edx, edx
lea rcx, str.SOFTWARE_
nop
nop
nop
movzx eax, word [rdx + rcx]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x3e], ax
jne 0x14000c410
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
cmp qword [rbx + 0x70], 8
mov rax, qword [str.DongFangInput]
mov qword [rdi - 2], rax
mov rax, qword [0x14002f980]
mov qword [rdi + 6], rax
mov rax, qword [0x14002f988]
mov qword [rdi + 0xe], rax
mov eax, dword [0x14002f990]
mov dword [rdi + 0x16], eax
jb 0x14000c467
mov rcx, qword [rbx + 0x58]
jmp 0x14000c46b
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x250]
nop
nop
nop
nop
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
test ax, ax
mov word [rdx - 2], ax
jne 0x14000c480
cmp qword [rbx + 0x48], 8
jb 0x14000c4a1
mov rcx, qword [rbx + 0x30]
jmp 0x14000c4a5
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x460]
nop
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
test ax, ax
mov word [rdx - 2], ax
jne 0x14000c4b0
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c54d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x250]
lea rdx, str.CfgRootPath
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x460]
lea rdx, str.CfgUserPath
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140011c90
mov rbx, qword [rsp + 0x690]
add rsp, 0x680
pop rdi
ret