joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f3ec
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
lea rdi, [rcx + 0x308]
mov rbx, rcx
mov rcx, rdi
call fcn.14011513c
lea rdx, [0x1401759d0]
test al, al
jne 0x14003f416
mov rdx, qword [rdi]
lea rcx, str.ConEmuArgs
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdi, [rbx + 0x328]
mov rcx, rdi
call fcn.14011513c
test al, al
je 0x14003f43f
lea rdx, [0x1401759d0]
jmp 0x14003f4b1
mov rcx, rdi
call fcn.140054ee8
cmp byte [rbx + 0x338], 0
lea rcx, [0x140183f50]
mov rdx, rax
lea rax, [0x140183f40]
cmovne rcx, rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call fcn.1401146e0
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
lea rcx, [rbx + 0x318]
call fcn.140114ec0
lea rcx, [rbx + 0x318]
call fcn.140054ee8
mov rdx, rax
lea rcx, str.ConEmuArgs2
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]

Function at 0x14003f4e8
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareHoopoePG_2x
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003f554
and dword [rsp + 0x48], eax
lea r9d, [rax + 4]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], r9d
lea rdx, str.CreateInNewEnvironment
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x1400406d8
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d8
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x358]
mov r12d, r9d
mov rdi, qword [rsp + 0x350]
mov r15, r8
mov r13, qword [rsp + 0x348]
mov r14, rdx
mov rsi, qword [rsp + 0x368]
mov rbp, rcx
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov rax, qword [rsp + 0x360]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], rdi
call fcn.1401165c8
test al, al
je 0x14004079d
and qword [rsp + 0x58], rbx
mov r9, r14
mov rax, qword [rsp + 0x70]
mov r8, rbp
mov qword [rsp + 0x50], rax
xor edx, edx
mov rax, qword [rsp + 0x78]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x340]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r15
call fcn.1400f4320
mov ebx, eax
test eax, eax
jne 0x1400408dc
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x238
call fcn.14012d4b0
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x80]
lea rcx, str.explorer.exe
call fcn.14011c704
test al, al
je 0x140040869
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140040864
lea r8, [rsp + 0x68]
mov edx, 0x2000b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140040855
mov rax, qword [rsp + 0x70]
mov r9, r14
mov rcx, qword [rsp + 0x68]
mov r8, rbp
mov qword [rsp + 0x50], rax
xor edx, edx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x340]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140040864
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004088a
and qword [rsp + 0x68], 0
cmp rcx, 0xffffffffffffffff
je 0x14004088a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400408dc
mov rax, qword [rsp + 0x70]
mov r9, r15
mov qword [rsp + 0x48], rax
mov r8, r14
mov rax, qword [rsp + 0x78]
mov rdx, rbp
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov eax, dword [rsp + 0x340]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test rsi, rsi
je 0x1400408dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140040e8c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor esi, esi
mov rbx, r9
and qword [rbp - 0x18], rsi
mov r14, r8
and qword [rbp - 0x20], rsi
mov r15, rdx
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x18]
mov edx, 0x2000b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140040fe2
lea edx, [rsi + 1]
lea ecx, [rsi + 0x14]
call fcn.140113de8
mov rdi, rax
lea edx, [rsi + 1]
lea r9, [rbp - 0x10]
mov r8d, edx
mov word [rax], 0x201
mov byte [rax + 7], 5
mov dword [rax + 8], 0x20
mov dword [rax + 0xc], 0x220
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 8], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], rsi
and dword [rsp + 0x30], esi
and qword [rsp + 0x28], rsi
and dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x140040fbd
mov rax, qword [rbp + 0x68]
mov r9, r14
mov rcx, qword [rbp - 0x20]
mov r8, r15
mov qword [rsp + 0x50], rax
mov rdx, r12
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x48]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140040f9b
mov esi, 1
jmp 0x140040fac
mov rbx, qword [rbp + 0x70]
test rbx, rbx
je 0x140040fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp - 0x20], 0
jmp 0x140040fce
mov rbx, qword [rbp + 0x70]
test rbx, rbx
je 0x140040fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, rdi
call fcn.140113e18
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140040ff3
mov rbx, qword [rbp + 0x70]
test rbx, rbx
je 0x140040ff3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
lea r11, [rsp + 0x80]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400421e4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x50
and qword [rax - 0x28], 0
xor r9d, r9d
and dword [rax - 0x30], 0
mov r14, r8
mov rdi, rdx
mov dword [rax - 0x38], 3
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400422c5
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400422bc
cmp dword [rsp + 0x44], 0
jne 0x1400422bc
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.140113e8c
mov qword [rdi], rax
test rax, rax
je 0x1400422bc
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x78]
and dword [rsp + 0x78], 0
mov rdx, rax
and qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400422b2
mov eax, dword [rsp + 0x78]
cmp eax, dword [rsp + 0x40]
jne 0x1400422b2
mov ecx, eax
mov rax, qword [rdi]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x78]
add rax, qword [rdi]
mov qword [r14], rax
mov rax, qword [rdi]
jmp 0x1400422c7
mov rcx, qword [rdi]
call fcn.140113e18
jmp 0x1400422c5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret

Function at 0x140042618
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov edi, dword [rsp + 0x98]
mov r14d, r9d
mov ebp, r8d
mov r15, rdx
mov rbx, rcx
test edi, edi
je 0x1400426a3
mov r9d, dword [rcx + 0x18]
mov rsi, qword [rsp + 0x90]
movzx eax, word [rsi]
mov r8d, r14d
mov edx, dword [rbx + 0x1c]
mov ecx, eax
mov dword [rsp + 0x40], 0xe20746
shr ecx, 8
imul ecx, edx
movzx eax, al
imul eax, r9d
mov dword [rsp + 0x38], ecx
mov rcx, r15
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov edx, ebp
call qword [sym.imp.GDI32.dll_BitBlt]
mov r9d, dword [rbx + 0x18]
lea rsi, [rsi + 2]
add ebp, r9d
add edi, 0xffffffff
jne 0x140042653
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140042e4c
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rsi, rcx
xor r14d, r14d
movzx ebx, r14b
lea r15d, [r14 + 1]
mov rax, qword [0x14022ab50]
cmp byte [rax + 0xa60], r14b
je 0x140042e94
cmp byte [rax + 0xa61], r14b
mov dil, r15b
jne 0x140042e97
mov dil, r14b
lea rcx, [rbp - 0x10]
call fcn.140114c40
nop
xor r8d, r8d
lea rdx, [rbp - 0x10]
mov rcx, qword [0x14022a9e0]
call fcn.140015b38
mov rcx, qword [0x14022ab50]
lea rdx, str.__Exit
cmp byte [rcx + 0xa62], r14b
cmovne rdx, r14
mov r8, qword [0x14022a9e0]
add r8, 0xae0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdx
lea rcx, str._SetDefTerm__Detached__MinTSA
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x140179210]
lea rdx, [0x140179218]
lea rcx, [rbp - 0x20]
call fcn.140114ba8
nop
lea rcx, [rbp - 0x30]
call fcn.140114c40
nop
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140043378
test al, al
je 0x140042f45
lea rcx, [rbp - 0x30]
call fcn.14011513c
test al, al
cmove ebx, r15d
cmp bl, dil
jne 0x140042f7c
test dil, dil
je 0x140043001
lea rcx, [rbp - 0x30]
call fcn.140054ee8
mov rbx, rax
lea rcx, [rbp - 0x20]
call fcn.140054ee8
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140043001
test dil, dil
je 0x140042fb9
lea rcx, [rbp - 0x20]
call fcn.140054ee8
mov r9, rax
mov dword [rsp + 0x20], r14d
lea r8, str.ConEmuDefaultTerminal
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call fcn.140124b0c
test eax, eax
je 0x140043001
lea rdx, str.Failed_to_set_ConEmuDefaultTerminal_value_in_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x140042fe6
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, str.ConEmuDefaultTerminal
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call fcn.140124b0c
test eax, eax
je 0x140043001
lea rdx, str.Failed_to_remove_ConEmuDefaultTerminal_value_from_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r10, qword [rsi]
xor r9d, r9d
mov r8d, eax
mov rcx, rsi
call qword [r10 + 0x10]
nop
lea rcx, [rbp - 0x30]
call fcn.140114ca4
nop
lea rcx, [rbp - 0x20]
call fcn.140114ca4
nop
lea rcx, [rbp - 0x10]
call fcn.140114ca4
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140043160
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0xb], 0
mov r15b, r9b
mov bl, r8b
mov bpl, dl
mov rdi, rcx
jne 0x140043194
mov rax, qword [rcx]
mov byte [rcx + 0xb], 1
call qword [rax + 0x20]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.COMCTL32.dll_CreateMappedBitmap]
test al, al
jne 0x1400431dd
test bl, bl
je 0x14004335d
cmp dword [rdi + 0x78], 0
je 0x14004335d
and qword [rsp + 0x28], 0
lea rdx, str.Default_terminal_feature_was_blocked_nwith__NoDefTerm_ConEmu_command_line_argument_
mov rax, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x20], 0
or r8d, 0xffffffff
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x14004335d
cmp byte [rdi + 0xa], 0
je 0x14004321a
test bl, bl
je 0x14004335d
xor edx, edx
mov rcx, rdi
call fcn.14004303c
mov rax, qword [rdi + 0x30]
sub rax, qword [rdi + 0x28]
test rax, 0xfffffffffffffff0
jle 0x14004321a
mov rax, qword [rdi]
lea rdx, str.Previous_Default_Terminal_setup_cycle_was_not_finished_yet
mov rcx, rdi
call qword [rax + 0x18]
jmp 0x14004335d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
mov rax, qword [rdi]
mov rcx, rdi
mov word [rdi + 9], 0x101
call qword [rax]
and dword [rsp + 0x20], 0
lea r9, str.DefTerm::PostCreatedThread
mov rdx, rax
lea r8, [rdi + 0x60]
lea rcx, [0x1400435fc]
call fcn.140119fac
mov rsi, rax
test rax, rax
je 0x140043333
test bpl, bpl
je 0x1400432ef
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
neg r15b
mov rcx, rsi
sbb edx, edx
and edx, 0xffff8acf
add edx, 0x7530
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x7f00
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
jne 0x1400432cb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004335d
and qword [rsp + 0x28], 0
lea rdx, str.PostCreatedThread_was_not_finished_in_30_seconds
mov rax, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x1400432f3
mov qword [rdi + 0x58], rsi
mov eax, dword [rdi + 0x60]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rdi + 0x28]
mov dword [rsp + 0x3c], eax
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140043327
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdx], xmm0
add qword [rcx + 8], 0x10
jmp 0x14004335d
lea r8, [rsp + 0x30]
call fcn.14000c1c0
jmp 0x14004335d
test bl, bl
je 0x140043359
and qword [rsp + 0x28], 0
lea rdx, str.Failed_to_start_PostCreatedThread
mov rax, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x10]
mov byte [rdi + 0xa], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140043378
Capabilities:
Persist via run registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov rsi, rdx
xor dil, dil
mov rax, qword [0x14022ab50]
mov bpl, byte [rax + 0xa62]
lea rcx, [r11 - 0x18]
call fcn.140114c40
nop
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, str.ConEmuDefaultTerminal
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call fcn.140124944
test eax, eax
jle 0x140043400
mov dil, 1
lea rdx, [0x1401759d0]
lea rcx, [rsp + 0x30]
call fcn.140115398
mov rcx, rax
lea rdx, str._Exit
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
sete bpl
test rsi, rsi
je 0x140043420
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140115398
mov rdx, rax
or r8, 0xffffffffffffffff
mov rcx, rsi
call fcn.140115190
test rbx, rbx
je 0x140043428
mov byte [rbx], bpl
lea rcx, [rsp + 0x30]
call fcn.140114ca4
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14004362c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140042e4c
lea rcx, [rbx + 0x78]
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.1400437a4
Function at 0x140044168
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
call fcn.140054ee8
mov r8, rax
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x1400441c0
lfence
and qword [rsp + 0x20], 0
lea rcx, str.ShellExecute_failed
xor r9d, r9d
xor r8d, r8d
mov edx, eax
call fcn.140113304
xor al, al
jmp 0x1400441c2
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140044d78
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [0x14022acb8]
test eax, eax
jne 0x140044e48
cmp dword [0x14022aa24], 6
ja 0x140044da6
jne 0x140044e3f
cmp dword [0x14022aa28], 2
jbe 0x140044e3f
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktop
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140044e3f
and dword [rsp + 0x48], eax
lea rdx, str.Win8DpiScaling
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140044e23
cmp dword [rsp + 0x40], 4
jne 0x140044e23
mov eax, dword [rsp + 0x48]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x140044e26
or eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
mov dword [0x14022acb8], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x14022acb8]
jmp 0x140044e48
or eax, 0xffffffff
mov dword [0x14022acb8], eax
cmp eax, 1
sete al
add rsp, 0x38
ret

Function at 0x14004600c
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rbp, rdx
mov qword [r11 - 0x28], rax
xor edx, edx
lea rcx, [0x1401c14b0]
mov rsi, r9
mov rdi, r8
lea r9, [0x1401c1380]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x1400460bd
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1401c13d0]
mov rax, qword [rcx]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x1400460b2
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14004885c
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0xd8
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0xc0], rax
and dword [rsp + 0x30], 0
mov r10, r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rax, rdx
mov edi, r8d
mov rbx, rcx
mov rdx, r10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140048975
cmp dword [rsp + 0x30], edi
jne 0x140048975
add qword [rbx + 0xf8], rdi
movabs r8, 0x20c49ba5e353f7cf
mov rax, r8
mov r9d, 0x270f
imul qword [rbx + 0xf8]
mov r10, rdx
sar r10, 7
mov rax, r10
shr rax, 0x3f
add r10, rax
mov eax, 0x4b
cmp r10, r9
jle 0x14004892b
mov rax, r8
imul r10
mov eax, 0x4d
mov r10, rdx
sar r10, 7
mov rcx, r10
shr rcx, 0x3f
add r10, rcx
cmp r10, r9
jle 0x14004892b
mov rax, r8
imul r10
mov r10, rdx
sar r10, 7
mov rax, r10
shr rax, 0x3f
add r10, rax
mov eax, 0x47
mov r8d, dword [rbx + 0xf4]
lea rdx, str.Copying__i_of__i___u_c_
mov r9d, dword [rbx + 0xf0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
inc r8d
mov dword [rsp + 0x20], r10d
call fcn.14000c80c
mov rdx, qword [0x14022a9e8]
lea r8, [rsp + 0x40]
mov rcx, qword [0x14022a9e0]
xor r9d, r9d
call fcn.1400219e4
xor eax, eax
jmp 0x140048985
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x8000ffff
cmove eax, ecx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0xd8
pop rdi
pop rbx
ret
Function at 0x140048cf4
Capabilities:
Print debug messages
Write file on windows

Disassembly:
test rcx, rcx
je 0x140048ec5
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x568]
sub rsp, 0x650
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x540], rax
xor r14d, r14d
mov rsi, rdx
mov rbx, rcx
mov r12d, 0xff
lea edi, [r14 + 1]
cmp word [rbx], r14w
je 0x140048e9a
mov r8d, edi
lea rdx, [0x1401881c0]
lea rcx, [rsp + 0x40]
call fcn.14000c6d8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
movzx eax, word [rbx]
cmp ax, r12w
jb 0x140048d7a
mov eax, r12d
movzx r11d, ax
mov r9, r14
test r11, r11
je 0x140048e04
movzx r10d, byte [rbx + r9 + 2]
movsxd r8, ecx
mov edx, r10d
inc ecx
test r10d, r10d
je 0x140048df6
sub edx, 9
je 0x140048de6
sub edx, 1
je 0x140048dd4
sub edx, 3
je 0x140048dc4
cmp edx, 0x4f
je 0x140048db4
mov byte [rsp + r8 + 0x40], r10b
jmp 0x140048dfc
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x5c
jmp 0x140048de2
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x72
jmp 0x140048de2
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x6e
inc ecx
jmp 0x140048dfc
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x74
jmp 0x140048de2
mov byte [rsp + r8 + 0x40], 0x2e
inc r9
cmp r9, r11
jl 0x140048d86
movsxd rax, ecx
mov byte [rsp + rax + 0x40], 0xa
inc rax
cmp rax, 0x200
jae 0x140048ec6
mov byte [rsp + rax + 0x40], r14b
test rsi, rsi
je 0x140048e81
lea rax, [rbp + 0x140]
mov dword [rsp + 0x28], 0x200
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0x140]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140048e57
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140048e8c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, word [rbx]
inc edi
add rbx, rax
jne 0x140048d43
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.14012bda0
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
call fcn.14012c3e0
int3