joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140181b00
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1401d1548]
mov al, byte [rax + 0xa]
test al, al
jne 0x140181dad
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x1401bc9e0]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.140098030
cmp byte [r15 + 0x17], 0
js 0x140181c31
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.1400ed100
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.140188ff0
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x140181c53
lea rax, [rsp + 0x110]
jmp 0x140181c5b
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.1400798b0
jmp 0x140181bb2
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x140181c75
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140181d0b
test bl, bl
je 0x140181d03
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0xa5
call fcn.1400ec540
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400df840
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.1400df8c0
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.140081510
cmp byte [rsp + 0x107], 0
jns 0x140181d2d
mov rcx, qword [rsp + 0xf0]
call fcn.14012733c
cmp byte [rsp + 0x127], 0
jns 0x140181d44
mov rcx, qword [rsp + 0x110]
call fcn.14012733c
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1401d1548]
mov al, byte [rax + 0xa]
test al, al
jne 0x140181d89
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140127eb0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.1400d26b0
jmp 0x140181d5b
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.1400d1af0
jmp 0x140181b53
Function at 0x140182d40
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1401bc9e0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1cc
call fcn.1400ec540
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400df840
mov al, byte [rsi + 0x17]
test al, al
jns 0x140182dbe
cmp qword [rsi + 8], 0x103
ja 0x140182ddc
test al, al
jns 0x140182dc5
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.1400df8c0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140127eb0
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401835e0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x1401bc9e0]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x88
call fcn.1400ec540
xor ebp, ebp
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400df840
mov rcx, rdi
call fcn.1400ef2b0
test al, al
jne 0x14018368c
mov rcx, rsi
call fcn.1400ef2b0
test al, al
jne 0x14018368a
cmp byte [rdi + 0x17], 0
jns 0x1401836ce
cmp qword [rdi + 8], 0x103
jbe 0x1401836ce
xor ebp, ebp
lea rcx, [rsp + 0x50]
call fcn.1400df8c0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140127eb0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebp, ebp
lea rcx, [rsp + 0x20]
call fcn.14009c9a0
jmp 0x14018368c
cmp byte [rsi + 0x17], 0
jns 0x1401836de
cmp qword [rsi + 8], 0x103
ja 0x14018368a
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, reloc.OLEAUT32.dll_SysAllocStringByteLen
call fcn.1400ec540
lea r8, [0x140200700]
mov rcx, r14
mov rdx, r15
call fcn.14009c870
cmp byte [rsi + 0x17], 0
jns 0x140183723
mov rsi, qword [rsi]
movzx r8d, bl
cmp byte [rdi + 0x17], 0
jns 0x140183730
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401836c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bpl
je 0x1401836c2
mov ecx, eax
and ecx, 1
je 0x1401836c2
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bpl, 1
jmp 0x1401836c2
Function at 0x140183780
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1401bc9e0]
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.MoveUnsafe
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x4c6
call fcn.1400ec540
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400df840
mov al, byte [rdi + 0x17]
test al, al
jns 0x140183808
cmp qword [rdi + 8], 0x103
ja 0x14018381b
mov cl, byte [rsi + 0x17]
test cl, cl
jns 0x140183847
cmp qword [rsi + 8], 0x103
jbe 0x140183847
xor ebx, ebx
lea rcx, [rsp + 0x40]
call fcn.1400df8c0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140127eb0
mov eax, ebx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdx, rsi
test cl, cl
jns 0x140183851
mov rdx, qword [rsi]
mov rcx, rdi
test al, al
jns 0x14018385b
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x14018381b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.1400842a0
test al, al
jne 0x14018388b
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140183819
mov rcx, rdi
mov rdx, rsi
call fcn.1401838a0
test al, al
jne 0x14018381b
jmp 0x140183881

Function at 0x140183cb0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400ef2b0
test al, al
jne 0x140183cd1
mov rcx, rsi
call fcn.1400ef2b0
test al, al
je 0x140183cda
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140183780
Function at 0x140186de0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1402008a8], 0
je 0x140186e26
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140127eb0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x140200880]
test rdi, rdi
je 0x140186ec7
test byte [reloc.WS2_32.dll_accept], 1
je 0x140186e09
cmp byte [rdi + 0x17], 0
jns 0x140186e48
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402008a8], rax
inc rax
cmp rax, 1
ja 0x140186e09
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14012ae40
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x140186f8e
xor esi, esi
jmp 0x140186e09
mov ecx, SafeArrayCopy
call fcn.140127300
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14012ae40
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1401bc9e0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140162920
movzx eax, byte [rdi + 0x17]
test al, al
js 0x140186f2d
and eax, 0x7f
mov rcx, rdi
jmp 0x140186f34
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x140186f5a
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140079ca0
mov qword [0x140200880], rdi
jmp 0x140186e36
add rax, rax
test rax, rax
je 0x140186f39
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x140186f5d
cmp rdx, 0xfffffffffffffffe
je 0x140186f39
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.1400d4790
jmp 0x140186f39
mov rcx, qword [0x140200880]
lea rdx, [rsp + 0x40]
call fcn.140079bd0
mov rcx, qword [0x140200880]
call fcn.14017d040
cmp word [rax], 0x5c
je 0x140186fca
mov rcx, qword [0x140200880]
lea rdx, [0x1401c63b2]
mov r8d, 1
call fcn.140079ca0
mov rcx, qword [0x140200880]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140079ca0
mov rcx, qword [0x140200880]
cmp byte [rcx + 0x17], 0
jns 0x140186ff3
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402008a8], rax
inc rax
cmp rax, 1
ja 0x140186e09
mov qword [0x1402008a8], 0
jmp 0x140186ec0
Function at 0x14018b290
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401bc9e0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.PinShortcutToTaskbar
lea r8, str.....operadesktopchrome_importschromeinstallerutil_taskbar_util.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x7e
call fcn.1400ec540
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400df840
call fcn.14007c050
cmp eax, 0xd
jl 0x14018b396
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi], rax
mov rcx, rdi
call fcn.14009bbf0
cmp qword [rdi], 0
je 0x14018b392
cmp byte [rsi + 0x17], 0
jns 0x14018b330
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov rdi, rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
xor edx, edx
mov r8, rdi
mov r9d, 4
call qword [0x14021d008]
test eax, eax
setns sil
test rdi, rdi
je 0x14018b370
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ILFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14018b3cd
mov qword [rsp + 0x30], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14021d008]
jmp 0x14018b3cd
xor esi, esi
jmp 0x14018b3cd
cmp byte [rsi + 0x17], 0
jns 0x14018b39f
mov rsi, qword [rsi]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.taskbarpin
xor ecx, ecx
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x21
setge sil
lea rcx, [rsp + 0x50]
call fcn.1400df8c0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140127eb0
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140190990
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1401909f1
test r12, r12
je 0x140190b08
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140127eb0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x140190a56
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x140190a3f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.14012a790
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x1401909be
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x140190b34
lea rcx, [r15*8]
call fcn.140127300
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x140190ad3
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x140190b08
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x140190abb
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.140190ea0
mov r12, qword [rsi + 0x10]
jmp 0x1401909be
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140163bd0
call fcn.140162a90
int3
Function at 0x140190b40
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x140190b9f
mov r15, rbx
add r15, 0xfffffffffffffff8
je 0x140190cb0
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140127eb0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x140190bfa
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
sar r12, 1
lea r15, [r14 + r12*8]
mov rax, r14
sub rax, rbx
sub r15, rax
sub r14, rbx
je 0x140190be9
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.14012a790
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 8], r15
lea rax, [rbx + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x140190b6e
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x140190cdc
lea rcx, [r12*8]
call fcn.140127300
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov rcx, r14
sub rcx, rbx
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x140190c7b
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x140190cb0
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x140190c63
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.140190ea0
mov r15, qword [rsi + 8]
jmp 0x140190b6e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140163bd0
call fcn.140162a90
int3
Function at 0x140190cf0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x140190d4f
mov r15, rbx
add r15, 0xfffffffffffffff8
je 0x140190e60
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140127eb0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x140190daa
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
sar r12, 1
lea r15, [r14 + r12*8]
mov rax, r14
sub rax, rbx
sub r15, rax
sub r14, rbx
je 0x140190d99
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.14012a790
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 8], r15
lea rax, [rbx + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x140190d1e
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x140190e8c
lea rcx, [r12*8]
call fcn.140127300
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov rcx, r14
sub rcx, rbx
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x140190e2b
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x140190e60
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x140190e13
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.140190ea0
mov r15, qword [rsi + 8]
jmp 0x140190d1e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140163bd0
call fcn.140162a90
int3

Function at 0x140191790
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1401917aa
xor edx, edx
mov r8d, 1
add rsp, 0x28
jmp fcn.1400d8120
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140163bd0
int3

Function at 0x1401a9fe0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1401a9ff3
cmp dword [0x14020e4d0], ecx
jle 0x1401a9ffa
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1401aa040
test edi, edi
je 0x1401a9ff3
cmp byte [rsi + rdi - 1], 0xa
je 0x1401a9ff3
lea rcx, reloc.WS2_32.dll_ioctlsocket
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401aa040
Function at 0x1401aa040
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401eb038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1401aa08e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1401aa0cc
cmp rdi, rsi
jae 0x1401aa0cc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1401aa087
jmp 0x1401aa084
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140127eb0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x408df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r14d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.00409180
mov esi, eax
test sil, sil
jne 0x408fc2
test ebx, ebx
je 0x408fc2
xor rdi, rdi
test r14d, r14d
jle 0x408ed1
call sub.kernel32.dll_GetTickCount
mov r13d, eax
test r14d, r14d
jle 0x408eb0
cmp ebx, 0xffffffff
je 0x408e5b
call sub.kernel32.dll_GetTickCount
sub eax, r13d
cmp eax, ebx
jb 0x408e5b
xor rsi, rsi
jmp 0x408fc2
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x408eb0
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x408ea2
mov rcx, qword [rsp + 0x28]
mov edx, 1
xor r8, r8
call fcn.004030f0
test eax, eax
jne 0x408ea2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x408fc2
call fcn.004091e0
sub r14d, 1
test r14d, r14d
jg 0x408e42
nop
cmp ebx, 0xffffffff
je 0x408ed1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jb 0x408ecc
xor rsi, rsi
jmp 0x408fc2
sub eax, r13d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
test r13d, r13d
je 0x408e0b
mov rcx, qword [rsp + 0x28]
mov edx, r13d
add edx, 2
mov r8d, r13d
call fcn.004030f0
cmp eax, r13d
jne 0x408ed1
nop
call sub.kernel32.dll_GetTickCount
mov r13d, eax
mov rcx, qword [rsp + 0x28]
call fcn.00409080
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0047d990]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408f43
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jae 0x408f40
sub eax, r13d
sub ebx, eax
jmp 0x408f43
xor rbx, rbx
test sil, sil
je 0x408f7c
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov eax, r13d
test eax, 1
jne 0x408f79
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
or edx, 1
mov r8d, r13d
call fcn.004030f0
cmp eax, r13d
jne 0x408f48
mov dil, 1
nop
jmp 0x408f9f
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
mov r8d, r13d
call fcn.004030f0
cmp eax, r13d
jne 0x408f7c
mov dil, 1
test dil, dil
je 0x408efb
nop
test sil, sil
je 0x408fc2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret