joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006934c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rsi, rdx
and qword [rax - 0x38], rbx
xor r9d, r9d
and dword [rax - 0x40], ebx
mov edx, 0x80000000
mov r15, rcx
mov dword [rax - 0x48], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400694bf
mov rdx, rsi
mov rcx, rax
xor ebp, ebp
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14006949d
cmp dword [rsi + 0x20], ebx
jne 0x14006949d
cmp dword [rsi + 0x24], 0x3a
jb 0x14006949d
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
lea r8d, [rbx + 2]
mov rcx, rdi
lea rdx, [rsp + 0x80]
lea r14d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006949d
cmp dword [rsp + 0x88], 2
jne 0x14006949d
cmp byte [rsp + 0x80], 0x42
jne 0x14006949d
cmp byte [rsp + 0x81], 0x4d
jne 0x14006949d
mov ecx, dword [rsi + 0x24]
mov ebp, r14d
call fcn.140120104
mov rbx, rax
mov rcx, rdi
test rax, rax
jne 0x14006943a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400694c2
movzx eax, word [rsp + 0x80]
lea rdx, [rbx + 2]
and qword [rsp + 0x20], 0
lea r9, [rsi + 0x24]
mov word [rbx], ax
mov r8d, dword [rsi + 0x24]
sub r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006949d
add dword [rsi + 0x24], 2
cmp byte [rbx], 0x42
jne 0x140069493
cmp byte [rbx + 1], 0x4d
jne 0x140069493
mov eax, dword [rbx + 0xa]
sub eax, 0x36
cmp eax, 0x400
ja 0x140069493
cmp dword [rbx + 0xe], 0x28
jne 0x140069493
cmp byte [rbx + 0x1d], 0
jne 0x140069493
cmp dword [rbx + 0x1e], 0
je 0x14006949d
mov rcx, rbx
call fcn.14012008c
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
jne 0x1400694bf
test r14d, r14d
je 0x1400694bf
test ebp, ebp
jne 0x1400694bf
mov rcx, r15
call fcn.140069524
mov rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007af78
Capabilities:
Read clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rbp, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
xor r12d, r12d
test r8, r8
je 0x14007b16e
cmp r9, 0xff
jl 0x14007b16e
lea rcx, [rax - 0x38]
call fcn.140120d54
nop
lea ecx, [r12 + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
jne 0x14007b09f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov r9d, eax
lea r8, str.Clipboard_does_not_contain_CF_UNICODETEXT__nothing_to_paste__code_u_
mov rdx, rbp
mov rcx, rdi
call fcn.14012091c
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
mov rcx, qword [0x14021c5d8]
call fcn.140016cd0
lea r8, str.Available_formats:
mov rdx, rbp
mov rcx, rdi
call fcn.14000ab94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15d, eax
mov r14d, r12d
lea edx, [rax + 0xb]
movsxd r8, edx
cmp r8, rbp
jge 0x14007b081
mov ecx, r14d
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov r14d, eax
test eax, eax
je 0x14007b081
movsxd rax, r15d
lea rbx, [rdi + rax*2]
mov rdx, rbp
sub rdx, rax
mov r9d, r14d
lea r8, str._x_04X
mov rcx, rbx
call fcn.14012091c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add r15d, eax
lea eax, [r15 + 0xb]
movsxd rcx, eax
cmp rcx, rbp
jl 0x14007b03a
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
mov rcx, qword [0x14021c5d8]
call fcn.140016cd0
mov word [rdi], r12w
jmp 0x14007b154
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x14007b0e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov r9d, eax
lea r8, str.Cant_lock_CF_UNICODETEXT__paste_failed__code_u_
mov rdx, rbp
mov rcx, rdi
call fcn.14012091c
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
mov rcx, qword [0x14021c5d8]
call fcn.140016cd0
jmp 0x14007b154
cmp word [rax], r12w
jne 0x14007b121
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov r9d, eax
lea r8, str.CF_UNICODETEXT_is_empty__nothing_to_paste__code_u_
mov rdx, rbp
mov rcx, rdi
call fcn.14012091c
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
mov rcx, qword [0x14021c5d8]
call fcn.140016cd0
mov word [rdi], r12w
jmp 0x14007b14b
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140128120
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140120e10
lea rcx, [rsp + 0x60]
call fcn.140120ddc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140120b90
nop
lea rcx, [rsp + 0x50]
call fcn.140120ddc
jmp 0x14007b199
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.140120be0
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14007b1fc
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rcx
cmp dword [0x14021cfc4], 0
jle 0x14007b238
lock inc dword [0x14021cfc4]
jmp 0x14007b348
mov edi, 0x64
mov rcx, qword [0x14021c5e0]
test rcx, rcx
je 0x14007b25c
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14007b25c
mov rcx, qword [0x14021c5e0]
jmp 0x14007b25e
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14007b32f
mov eax, edi
dec edi
test eax, eax
jle 0x14007b32f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8d, eax
lea rdx, str.__Code_u
lea rcx, [rsp + 0x60]
call fcn.140001190
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x140167e00]
mov r8, rsi
lea rdx, str.OpenClipboard_failed__
lea rcx, [rsp + 0x50]
call fcn.140120be0
nop
lea rcx, [rsp + 0x50]
call fcn.140058574
mov rcx, rax
mov r8b, 1
mov dl, r8b
call fcn.14002b004
lea rcx, [rsp + 0x50]
call fcn.140058574
mov rcx, rax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 0x15]
mov edx, ebx
call fcn.14011f550
nop
lea rcx, [rsp + 0x50]
cmp eax, 4
jne 0x14007b326
call fcn.140120ddc
jmp 0x14007b23d
call fcn.140120ddc
xor al, al
jmp 0x14007b34a
lock inc dword [0x14021cfc4]
mov r8b, 1
mov dl, r8b
lea rcx, str.OpenClipboard_succeeded
call fcn.14002b004
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14007b370
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, rdx
mov ebx, ecx
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rsi, rax
test rax, rax
jne 0x14007b3ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, edi
lea rdx, str.SetClipboardData_x_04X__x_08X__failed__code_u
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r8d, ebx
call fcn.14000d08c
jmp 0x14007b3e1
mov r9d, edi
lea rdx, str.SetClipboardData_x_04X__x_08X__succeeded
mov r8d, ebx
lea rcx, [rsp + 0x30]
call fcn.14000d08c
mov r8b, 1
lea rcx, [rsp + 0x30]
mov dl, r8b
call fcn.14002b004
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007bb88
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor ebx, ebx
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
mov dword [rsp + 0x34], ebx
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, str.Console
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007bcb2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.FullScreen
lea rax, [rsp + 0x34]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x34]
lea rdx, [0x14016a968]
test eax, eax
mov r9d, 0xf003f
lea rax, [rsp + 0x48]
cmovne ecx, ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007bc9f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.FullScreen
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x30]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007bca7
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
test eax, eax
jne 0x14007bcc4
test r8d, r8d
je 0x14007bcfe
cmp dword [0x14021c614], 6
jb 0x14007bcfe
test eax, eax
lea rdx, str.Warning__nDangerous_values_detected_in_yours_registry_n_nPlease_check__HKEY_CURRENT_USERConsole__and__HKEY_CURRENT_USERConsoleConEmu__keys_n_n_FullScreen__recommended_value_is_dword:00000000_n_nCurrent_value_is_dword:_08X
lea rcx, [rsp + 0x50]
cmovne r8d, eax
call fcn.14000d034
or r9, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x50]
lea edx, [r9 + 0x41]
call fcn.14002b0f8
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rbp
ret
Function at 0x1400831cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14021c5d8]
test rcx, rcx
je 0x140083269
call fcn.140014284
cmp eax, 9
jne 0x140083269
cmp byte [rdi + 0xf18], 3
jne 0x140083269
cmp dword [0x14021d0f0], 0
jne 0x140083213
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14021d0f0], eax
jmp 0x140083269
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [0x14021d0f0]
call fcn.140146974
mov r8d, eax
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x3c
sub r8d, ecx
add r8d, 0x493e0
cmp ebx, r8d
jbe 0x140083269
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [0x14021d0f0], eax
call fcn.14007b820
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140087af4
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x418]
sub rsp, 0x510
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x400], rax
cmp byte [rcx + 0x11484], 0
je 0x140087d6f
mov rcx, qword [0x14021c5d8]
call fcn.140014fec
test al, al
jne 0x140087d6f
mov edi, 0x244
lea rcx, [rbp + 0x1b0]
mov r8d, edi
xor edx, edx
xor ebx, ebx
call fcn.14013b230
mov r8d, edi
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14013b230
movups xmm0, xmmword [str.clink_]
lea rax, str.clink_x86.dll
xor edi, edi
mov qword [rsp + 0x28], rax
mov esi, 0x122
lea rax, str.clink_dll_x86.dll
mov qword [rsp + 0x30], rax
lea rax, str.clink_x64.dll
mov qword [rsp + 0x38], rax
lea rax, str.clink_dll_x64.dll
mov qword [rsp + 0x40], rax
movdqu xmmword [rsp + 0x50], xmm0
test rbx, rbx
jne 0x140087c84
mov rdx, qword [0x14021c5d8]
lea rcx, [rbp + 0x1b0]
add rdx, 0xf04
call fcn.14007b618
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rbp + 0x1b0]
call fcn.140001f38
mov r8, qword [rsp + rdi + 0x28]
lea rcx, [rbp + 0x1b0]
mov rdx, rsi
call fcn.140001f38
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.140122088
test al, al
je 0x140087c66
call fcn.140123504
test al, al
je 0x140087c61
mov rdx, qword [0x14021c5d8]
lea rcx, [rsp + 0x60]
add rdx, 0xf04
call fcn.14007b618
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140001f38
mov r8, qword [rsp + rdi + 0x38]
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140001f38
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140122088
test al, al
je 0x140087c66
lea rbx, [rsp + 0x60]
add rdi, 8
cmp rdi, 0x10
jb 0x140087baf
test rbx, rbx
jne 0x140087c84
and dword [0x14021d0f4], ebx
jmp 0x140087d6f
mov eax, dword [0x14021d0f4]
test eax, eax
jne 0x140087d67
and dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x140087cb9
mov eax, 1
mov dword [0x14021d0f4], eax
jmp 0x140087d71
mov rcx, rsi
mov edx, 1
call fcn.14012005c
mov rdi, rax
test rax, rax
je 0x140087d61
and qword [rsp + 0x28], 0
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140087d59
lea rdx, [0x14016b5d8]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rsp + 0x24]
mov dword [rsp + 0x24], 8
lea r8, [rsp + 0x28]
mov rcx, rdi
lea rdx, [rsp + 0x48]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140087d59
mov rax, qword [rsp + 0x28]
mov dword [0x14021d0f4], 2
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [0x14021d0f8], xmm0
movups xmm0, xmmword [rax + 0x20]
mov eax, dword [rax + 0x30]
movups xmmword [0x14021d108], xmm1
mov dword [0x14021d128], eax
movups xmmword [0x14021d118], xmm0
mov rcx, rdi
call fcn.14012008c
mov eax, dword [0x14021d0f4]
lea ecx, [rax - 1]
cmp ecx, 1
jbe 0x140087d71
xor eax, eax
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140088484
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
mov rcx, 0xffffffff80000001
mov ebx, 0x40
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008850f
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.EnableBalloonTips
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140088504
mov eax, dword [rsp + 0x48]
neg eax
sbb ecx, ecx
and ebx, ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14008f550
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
test rdx, rdx
je 0x14008f605
cmp word [rdx], si
je 0x14008f605
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x14008f57a
lea rdi, [rcx + 0x11958]
cmp r8, 0x7ffffffe
jbe 0x14008f599
mov word [rdi], si
jmp 0x14008f5d5
mov r9d, 0xf0
mov rcx, rdi
sub rdx, rdi
lea rax, [r9 - 0xf0]
add rax, r8
je 0x14008f5c7
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14008f5c7
mov word [rcx], ax
add rcx, 2
sub r9, 1
jne 0x14008f5a5
test r9, r9
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
lea rdx, str.SoftwareConEmu_
mov word [rbx + 0x11b36], si
lea rcx, [rbx + 0x11750]
call fcn.140004ad0
mov r8, rdi
lea rcx, [rbx + 0x11750]
mov edx, 0x104
call fcn.140001f38
jmp 0x14008f622
add rcx, 0x11750
lea rdx, str.SoftwareConEmu.Vanilla
call fcn.140004ad0
lea rdi, [rbx + 0x11958]
mov word [rdi], si
mov rdx, rdi
lea rcx, str.ConEmuConfig
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
Function at 0x140097690
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r13d, r13d
mov rdi, r9
mov rbx, r8
mov rbp, rdx
mov r12, rcx
mov r15b, r13b
mov esi, r13d
test r8, r8
je 0x1400976ce
mov word [r8], r13w
test r12, r12
je 0x140097820
cmp word [rcx], r13w
je 0x140097820
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r13d
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x1400977eb
mov ecx, r14d
mov edx, 1
call fcn.14012005c
mov r13, rax
test rax, rax
je 0x1400977c3
and qword [rsp + 0x28], rsi
mov r9, rax
and dword [rsp + 0x20], esi
mov r8d, r14d
xor edx, edx
mov rcx, r12
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140097797
lea rdx, [0x14016b5d8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rsp + 0x20]
mov rcx, r13
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140097781
mov r8d, dword [rsp + 0x20]
mov eax, 0x34
mov rdx, qword [rsp + 0x28]
cmp r8, rax
mov rcx, rbp
cmova r8d, eax
call fcn.14013b6b0
mov r15b, 1
jmp 0x1400977b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x1400977b6
lea r8, str.LoadAppVersion.VerQueryValue_____failed__n
jmp 0x1400977ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x1400977b6
lea r8, str.LoadAppVersion.GetFileVersionInfo___failed__n
mov rdx, rdi
mov rcx, rbx
call fcn.14000ab94
mov rcx, r13
call fcn.14012008c
xor r13d, r13d
jmp 0x1400977e4
xor r13d, r13d
test rbx, rbx
je 0x14009786b
mov r9d, r14d
lea r8, str.LoadAppVersion_failed__Cant_allocate__n_bytes__n
mov rdx, rdi
mov rcx, rbx
call fcn.14012091c
test rbx, rbx
je 0x140097866
jmp 0x14009780a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x14009786b
lea r8, str.LoadAppVersion.GetFileVersionInfoSize___failed__n
mov rdx, rdi
mov rcx, rbx
call fcn.14000ab94
cmp word [rbx], r13w
je 0x140097866
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call fcn.140001f38
jmp 0x140097837
test rbx, rbx
je 0x14009786b
lea r8, str.Invalid_asModulePath_was_specified
mov rdx, rdi
mov rcx, rbx
call fcn.14000ab94
cmp word [rbx], r13w
je 0x140097866
test esi, esi
je 0x140097866
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9d, esi
sub rdi, rcx
lea r8, str._nErrCode0x_08X
mov rdx, rdi
lea rcx, [rbx + rcx*2]
call fcn.14012091c
test r15b, r15b
jne 0x14009787f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], eax
mov al, r15b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140099c44
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx]
test rax, rax
je 0x140099c9d
mov r8, qword [rax + 0x28]
test r8, r8
je 0x140099c9d
mov rcx, qword [0x14021c5e0]
lea rdx, str.open
mov dword [rsp + 0x28], 1
xor r9d, r9d
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x140099c9d
and qword [rsp + 0x20], 0
lea rcx, str.ShellExecute_failed
xor r9d, r9d
xor r8d, r8d
mov edx, eax
call fcn.14011f550
add rsp, 0x38
ret
Function at 0x14009e93c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rdi, rdx
mov rbx, rcx
and dword [rbp + 0x20], 0
lea r14, vtable.CRefGuard_class_CRConData_.0
mov qword [rbp - 0x20], r14
and qword [rbp - 0x18], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp - 0x10], eax
lea rax, vtable.CRConDataGuard.0
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.1400a0568
test al, al
je 0x14009ea10
lea rcx, [rbp - 0x30]
call fcn.1401277b4
nop
lea rdx, [rbx + 0x1a80]
or r9d, 0xffffffff
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.1401279e0
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbx + 0x1c08]
imul eax, dword [rbx + 0x1c04]
cmp dword [rdx + 0x18], eax
cmovb eax, dword [rdx + 0x18]
lea ebx, [rax + rax]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
mov r8d, ebx
mov rdx, qword [rdx + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
mov r8d, ebx
mov rdx, qword [rbp - 0x18]
mov rdx, qword [rdx + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rbp - 0x30]
call fcn.14012782c
nop
mov qword [rbp - 0x20], r14
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14009ea41
mov eax, dword [rcx + 8]
mov edx, 0x7fffffff
cmp eax, edx
je 0x14009ea41
lock dec dword [rcx + 8]
mov eax, dword [rcx + 8]
test eax, eax
jg 0x14009ea3e
mov dword [rcx + 8], edx
mov rax, qword [rcx]
call qword [rax]
jmp 0x14009ea41
mov eax, dword [rcx + 8]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rcx + 0x4270]
jmp 0x14009e93c
Function at 0x1400a6ba8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov eax, dword [rcx + 0x1bc2]
xor bpl, bpl
xor dil, dil
mov sil, r9b
mov r14d, r8d
mov r15d, edx
mov rbx, rcx
cmp eax, edx
jne 0x1400a6be5
cmp dword [rcx + 0x1bc6], r8d
je 0x1400a6bf8
mov bpl, 1
test eax, eax
jns 0x1400a6bf8
cmp dword [rcx + 0x1bc6], 0
jge 0x1400a6bf8
mov dil, bpl
test sil, sil
je 0x1400a6c10
mov byte [rcx + 0x1bd0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x1bcc], eax
mov dword [rbx + 0x1bc2], r15d
mov dword [rbx + 0x1bc6], r14d
test sil, sil
je 0x1400a6cb5
cmp dword [rbx], 1
jne 0x1400a6cb5
mov rcx, qword [rbx + 0x58]
xor edx, edx
call fcn.1400b1294
mov r14d, eax
test eax, eax
je 0x1400a6cb5
mov edx, 0x3c
lea ecx, [rdx + 0x15]
call fcn.140126094
mov rcx, qword [rbx + 0x1bc2]
xor r9d, r9d
movzx edx, byte [rsp + 0x80]
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [rsp + 0x60], rax
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x38], edx
mov ecx, r14d
mov r8, qword [0x14021c5e0]
mov rdx, qword [rsp + 0x60]
call fcn.140126448
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140125ef0
lea rcx, [rsp + 0x60]
call fcn.140125ef0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x1bcc], eax
test dil, dil
je 0x1400a6cc3
mov rcx, qword [rbx + 0x58]
call fcn.1400c1dd0
test sil, sil
je 0x1400a6ccf
mov byte [rbx + 0x1bd0], 0
mov rbx, qword [rsp + 0x68]
mov al, bpl
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret