joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009c9c
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x858
mov rax, qword [0x1400318e0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbx, r9
mov qword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140009300
test al, al
jne 0x140009ce8
cmp byte [0x140031299], al
sete al
jmp 0x140009cfd
mov r8d, 1
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140008b30
mov al, 1
test al, al
je 0x140009d05
xor eax, eax
jmp 0x140009d5c
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.14000941c
mov rdi, rax
test rax, rax
je 0x140009d56
mov rcx, rbx
call fcn.14000fb18
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call fcn.140008ac0
jmp 0x140009d5a
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000be90
add rsp, 0x858
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140009d78
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov r9d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140009398
test al, al
je 0x140009da5
xor eax, eax
jmp 0x140009df3
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.14000941c
mov rdi, rax
test rax, rax
je 0x140009ded
mov r9d, 4
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call fcn.140008ac0
jmp 0x140009df1
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140009e04
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.140009c9c

Function at 0x140009e1c
Capabilities:
Set registry value

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.140009d78

Function at 0x14000a324
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14000a48c
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1030
call fcn.14000be20
sub rsp, rax
mov rax, qword [0x1400318e0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov esi, 0x800
mov edx, esi
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140005cb0
mov r9d, esi
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006020
lea rcx, [rsp + 0x20]
call fcn.140004c00
xor edi, edi
test al, al
jne 0x14000a549
mov r8d, esi
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x20]
lea rcx, str.sfxname
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000a549
cmp word [rsp + 0x20], di
je 0x14000a549
mov r8d, esi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140006160
lea rcx, [rsp + 0x20]
call fcn.140004c00
test al, al
je 0x14000a54b
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov al, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000be90
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000a570
Capabilities:
Copy file
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.rarreg.key
call fcn.14000a48c
test al, al
jne 0x14000a590
lea rcx, str.rarreg.txt
call fcn.14000a48c
lea rcx, str.winrar.ini
add rsp, 0x28
jmp fcn.14000a48c
Function at 0x14000b75c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.14000fb18
mov rbx, rax
lea rcx, [rax*2 + 4]
call fcn.1400125cc
mov rdi, rax
test rax, rax
je 0x14000b7c8
lea r8, [rbx + 1]
mov rdx, rax
mov rcx, rsi
call fcn.1400086c8
mov rcx, rdi
call fcn.1400127a0
mov r8, rax
mov r9, rbp
mov edx, 1
mov rcx, rdi
call fcn.140012548
mov rcx, rdi
call fcn.14000fb10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b7e0
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x890
mov rax, qword [0x1400318e0]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov rbx, rcx
mov cl, 1
call fcn.140008384
xor r8d, r8d
lea rcx, [0x140034490]
mov rdx, rbx
call fcn.140007a40
lea rdx, str.uninstall.lng
lea rcx, [0x1400344a0]
call fcn.140006aec
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
lea rcx, str.riched20.dll
call fcn.14000830c
mov rcx, qword [0x140034450]
lea rdx, str.RARICON
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
xor edi, edi
mov qword [0x14003a790], rax
test rax, rax
jne 0x14000b88b
mov rcx, qword [0x140034458]
cmp rcx, qword [0x140034450]
je 0x14000b88b
lea rdx, str.RARICON
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x14003a790], rax
mov ecx, 0xfffffff4
call fcn.14000a2b8
mov ecx, eax
xor r9d, r9d
lea rax, str.MS_Shell_Dlg
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x2bc
call qword [sym.imp.GDI32.dll_CreateFontW]
mov r8d, 0x400
mov byte [rsp + 0x70], dil
lea rdx, [rsp + 0x80]
mov qword [0x14003a798], rax
lea rcx, str.sfxcmd
mov byte [rsp + 0x71], dil
mov word [rsp + 0x80], di
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, [rsp + 0x71]
mov cl, 1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x80]
call fcn.14000a948
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r9, [rsp + 0x71]
xor ecx, ecx
mov rdx, rax
lea r8, [rsp + 0x70]
call fcn.14000a948
cmp byte [rsp + 0x70], dil
je 0x14000ba0b
mov rcx, qword [0x140034450]
lea r9, [0x14000abe0]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.SETUPDLG
call qword [sym.imp.USER32.dll_DialogBoxParamW]
test rax, rax
je 0x14000ba0b
call fcn.14000a570
mov al, byte [0x14003b7f1]
test al, al
jne 0x14000b9af
mov rcx, qword [0x140034450]
lea r9, [0x14000a6a0]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.DONEDLG
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov al, byte [0x14003b7f1]
cmp word [0x14003a7a0], di
je 0x14000ba0b
cmp byte [0x14003b7f0], dil
jne 0x14000ba0b
test al, al
jne 0x14000ba0b
cmp byte [0x14003b7f2], dil
jne 0x14000ba0b
lea rcx, [0x14003a7a0]
call fcn.140004c00
test al, al
je 0x14000ba0b
lea rax, [0x140022780]
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x14003a7a0]
xor ecx, ecx
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp byte [rsp + 0x71], dil
je 0x14000ba17
call fcn.14000b0ac
test rbx, rbx
je 0x14000ba25
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.ole32.dll_OleUninitialize]
mov rcx, qword [0x14003a798]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x14003a790]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x14003b7f4]
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.14000be90
mov rbx, qword [rsp + 0x8a8]
add rsp, 0x890
pop rdi
ret
Function at 0x1400193bc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140019399
call fcn.140015e88
mov dword [rax], 0x16
call fcn.140015cf4
or eax, 0xffffffff
jmp 0x1400193b6
sub dword [rcx + 0x10], 1
jns 0x1400193a8
add rsp, 0x28
jmp 0x14001f054
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140019378
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14001eef4
call fcn.140015e88
mov dword [rax], 0x16
call fcn.140015cf4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001eedc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14001eedc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14001ef26
lock or dword [rax + 0x14], 0x10
jmp 0x14001eedc
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001ef43
mov rcx, qword [rbp + 0x10]
call fcn.14001e214
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140017408
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14001f58c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14001ef9a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14001eedc
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001f006
mov rcx, qword [rbp + 0x10]
call fcn.140017408
cmp eax, 0xffffffff
je 0x14001efed
mov rcx, qword [rbp + 0x10]
call fcn.140017408
cmp eax, 0xfffffffe
je 0x14001efed
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140017408
movsxd rdi, eax
lea rsi, [0x14003c160]
mov rcx, rbx
sar rdi, 6
call fcn.140017408
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14001eff4
lea rax, [0x140031bc0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001f006
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14001f03c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001f038
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001f038
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14001eedf
jmp 0x14001eeac
Function at 0x140064fe0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140064fed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140064ffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140064fe5
lea eax, [rcx + 1]
jmp 0x14006500b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006501e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140065004
sub eax, 3
jb 0x14006503e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14006508d
sar eax, 1
movsxd rbp, eax
jb 0x140065074
jmp 0x14006504c
add ebx, ebx
jne 0x14006504a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140065074
inc ecx
add ebx, ebx
jne 0x14006505a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140065074
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14006506d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006505c
add ecx, 2
jmp 0x140065079
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140064fa2
jmp 0x140064fed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3ee00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400650d9
cmp rsi, rcx
jae 0x1400650e1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400650c0
cmp al, 0x8f
ja 0x1400650c0
cmp byte [rsi - 2], 0xf
je 0x1400650c6
sub al, 0xe8
cmp al, 1
ja 0x1400650aa
cmp rsi, rcx
jae 0x1400650e1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400650b0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400650e1
lodsb al, byte [rsi]
jmp 0x1400650c0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x62000]
mov eax, dword [rdi]
or eax, eax
je 0x14006513e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x65508]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400650ee
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140065138
mov qword [rbx], rax
add rbx, 8
jmp 0x14006510e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140065178
cmp al, 0xef
ja 0x14006516a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14006514a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140065159
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400651cc
sub rsp, 0xffffffffffffff80
jmp 0x14001c120
Function at 0x1400183a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
xor r11d, r11d
lea r15, [0x140055e20]
mov r14, r9
mov rbx, rdx
mov r10, rcx
mov eax, r11d
cmp rdx, 2
jbe 0x140018478
lea edx, [r11 + 4]
nop dword [rax + rax]
movzx r9d, byte [r10]
sub rbx, 3
movzx edi, byte [r10 + 1]
movzx ebp, r9b
movzx esi, byte [r10 + 2]
movzx ecx, dil
shr cl, 4
and r9b, 3
and dil, 0xf
shl r9b, 4
add r9b, cl
shl dil, 2
movzx ecx, sil
shr bpl, 2
shr cl, 6
add r10, 3
add dil, cl
and sil, 0x3f
cmp rdx, r14
ja 0x14001851e
movzx ecx, bpl
add rdx, 4
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
movzx ecx, dil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
movzx ecx, sil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 3], cl
add rax, 4
cmp rbx, 2
ja 0x1400183e0
test rbx, rbx
je 0x14001853c
xor r9b, r9b
mov word [rsp + 0x29], r11w
xor dil, dil
mov byte [rsp + 0x28], r9b
xor dl, dl
test rbx, rbx
je 0x1400184c6
mov rdx, r11
nop dword [rax]
movzx ecx, byte [r10]
inc r11d
mov byte [rsp + rdx + 0x28], cl
inc r10
mov edx, r11d
cmp rdx, rbx
jb 0x1400184a0
movzx edi, byte [rsp + 0x2a]
movzx edx, byte [rsp + 0x29]
movzx r9d, byte [rsp + 0x28]
movzx ecx, dl
shr dil, 6
movzx r10d, r9b
shr cl, 4
and r9b, 3
shr r10b, 2
and dl, 0xf
shl r9b, 4
shl dl, 2
add r9b, cl
lea rcx, [rax + 4]
add dl, dil
cmp rcx, r14
ja 0x14001851e
movzx ecx, r10b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
cmp rbx, 1
jne 0x140018523
mov byte [rax + r8 + 2], 0x3d
jmp 0x140018530
or eax, 0xffffffff
jmp 0x140018546
movzx ecx, dl
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
add rax, 3
mov byte [rax + r8], 0x3d
inc rax
cmp rax, r14
jae 0x14001851e
mov byte [rax + r8], 0
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r15
pop r14
pop rdi
ret

Function at 0x140019330
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11

Function at 0x1400224dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140022308
Function at 0x1400ab210
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400ab21d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400ab22d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400ab215
lea eax, [rcx + 1]
jmp 0x1400ab23b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400ab24e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400ab234
sub eax, 3
jb 0x1400ab26e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400ab2bd
sar eax, 1
movsxd rbp, eax
jb 0x1400ab2a4
jmp 0x1400ab27c
add ebx, ebx
jne 0x1400ab27a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ab2a4
inc ecx
add ebx, ebx
jne 0x1400ab28a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ab2a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400ab29d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400ab28c
add ecx, 2
jmp 0x1400ab2a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400ab1d2
jmp 0x1400ab21d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7be00
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400ab30d
cmp rsi, rcx
jae 0x1400ab315
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400ab2f4
cmp al, 0x8f
ja 0x1400ab2f4
cmp byte [rsi - 2], 0xf
je 0x1400ab2fa
sub al, 0xe8
cmp al, 1
ja 0x1400ab2de
cmp rsi, rcx
jae 0x1400ab315
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400ab2e4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400ab315
lodsb al, byte [rsi]
jmp 0x1400ab2f4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa8000]
mov eax, dword [rdi]
or eax, eax
je 0x1400ab372
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xab6c8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400ab322
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400ab36c
mov qword [rbx], rax
add rbx, 8
jmp 0x1400ab342
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400ab3ac
cmp al, 0xef
ja 0x1400ab39e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400ab37e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400ab38d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400ab400
sub rsp, 0xffffffffffffff80
jmp 0x140049d5c
Function at 0x140001314
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rdi
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rax, qword [0x1400231c0]
xor rax, rsp
mov qword [rbp], rax
call fcn.14000919c
xor edi, edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov qword [rsp + 0x28], rdi
movdqa xmm0, xmmword [0x14001cd90]
movdqu xmmword [rsp + 0x38], xmm0
lea r8d, [rdi + 0xa]
lea rdx, str._user_path
lea rcx, [rsp + 0x28]
call fcn.140001a80
movsxd rcx, dword [rsp + 0x20]
lea rdx, [rbx + rcx*8]
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.14000975c
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140001a18
mov rcx, rbx
call fcn.14000bbb0
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x78], di
mov qword [rbp - 8], rdi
call fcn.14000148c
mov qword [0x140024b28], rdi
lea rax, vtable.rpc_object_stub_class_cpt_control_agent_.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.14000c9f4
nop
lea rcx, [rsp + 0x58]
call fcn.14000c9b4
lea rcx, [rsp + 0x58]
call fcn.140001804
nop
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400172f0
add rsp, 0x110
pop rdi
pop rbx
pop rbp
ret
Function at 0x14000a328
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rdx
mov esi, ecx
test rdx, rdx
jne 0x14000a34f
xor al, al
jmp 0x14000a447
xor dil, dil
mov byte [rsp + 0x88], dil
test esi, esi
je 0x14000a444
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000a396
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000a444
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x88]
lea rax, [rsp + 0x78]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, str.QueryFullProcessImageNameW
lea rax, [rsp + 0x40]
lea rcx, str.kernel32.dll
mov qword [rsp + 0x20], rax
call fcn.140003af0
mov dil, byte [rsp + 0x88]
test dil, dil
jne 0x14000a43b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, dword [rsp + 0x80]
mov r8, rbp
mov rcx, rax
xor edx, edx
mov rbx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
setne dil
test eax, eax
jne 0x14000a43b
mov r8d, dword [rsp + 0x80]
mov rdx, rbp
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
setne dil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000a4f0
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1400231c0]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14000a5ae
cmp di, word [rcx]
je 0x14000a5ae
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000a5ae
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x14000a5aa
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x14000a5ae
mov al, 1
jmp 0x14000a5b0
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400172f0
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret