joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140253b70
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov rdi, rcx
mov rsi, qword [rdx]
test rsi, rsi
je 0x140253b8a
lock add dword [rsi + 8], 1
test bl, bl
je 0x140253ba1
cmp byte [0x1405de66c], 0
je 0x140253bb2
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140253bdb
jmp 0x140253bef
lock add dword [0x1405de668], 1
cmp byte [0x1405de66c], 0
jne 0x140253b97
mov eax, dword [0x140601e88]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x8228], 1
mov byte [0x1405de66c], 1
mov rcx, qword [rdi]
test rcx, rcx
je 0x140253bef
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rdi], 0
mov dword [rdi + 8], 0
mov ecx, 0x10
call fcn.14030dfa0
mov qword [rax], rsi
test rsi, rsi
je 0x140253c06
lock add dword [rsi + 8], 1
mov byte [rax + 8], bl
mov edx, dword [rdi + 0xc]
lea rcx, [rdi + 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x140253a50]
xor ecx, ecx
mov r9, rax
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rbx, rax
mov qword [rdi], rax
test rsi, rsi
je 0x140253c4a
lock sub dword [rsi + 8], 1
jne 0x140253c4a
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test rbx, rbx
je 0x140253c5d
mov rcx, qword [rdi]
mov edx, 0xfffffffe
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
test rbx, rbx
setne al
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140254230
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov dword [rsp + 0x44], 0
mov al, byte [0x1405ff8e8]
test al, al
je 0x140254338
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov rsi, qword [rsi]
test rsi, rsi
je 0x14025426d
lock add dword [rsi + 8], 1
lock add dword [0x1405de668], 1
cmp byte [0x1405de66c], 0
jne 0x14025429f
mov eax, dword [0x140601e88]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x8228], 1
mov byte [0x1405de66c], 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1402542c0
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov ecx, 0x10
call fcn.14030dfa0
lea rcx, [rsp + 0x40]
mov qword [rax], rsi
test rsi, rsi
je 0x1402542dc
lock add dword [rsi + 8], 1
mov byte [rax + 8], 0
mov edx, dword [rsp + 0x44]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x140253a50]
xor ecx, ecx
mov r9, rax
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x140254322
lock sub dword [rsi + 8], 1
jne 0x14025431d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140254330
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x1405ff8e8]
call fcn.14035f9c4
test eax, eax
je 0x14025424f
lea rcx, [0x1405ff8b8]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [0x1402e4c20]
call fcn.140001440
lea rcx, [0x1405ff8e8]
call fcn.14035fa9b
jmp 0x14025424f
Function at 0x140254bc0
Capabilities:
Check os version

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov qword [rsp + 0x20], rcx
add rcx, 8
mov qword [rsp + 0x28], rcx
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov al, byte [0x1405de6e0]
test al, 1
jne 0x140254d4c
lea rsi, [rsp + 0x30]
mov r13, qword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea rdi, str.kernel32
mov rbx, qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rbp, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea r14, [0x1403d4876]
lea r15, [0x1403d4860]
lea r12, str.InitializeConditionVariable
jmp 0x140254c3e
mov al, byte [0x1405de6e0]
test al, 1
jne 0x140254d4c
mov al, byte [0x1405de718]
test al, al
jne 0x140254c8d
lea rcx, [0x1405de718]
call fcn.14035f9c4
test eax, eax
je 0x140254c8d
lea rcx, [0x1405de6e8]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [0x140254de0]
call fcn.140001440
lea rcx, [0x1405de718]
call fcn.14035fa9b
jmp 0x140254c8d
lea rcx, [0x1405de6e8]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, byte [0x1405de6e0]
test al, 1
jne 0x140254c30
lea rcx, [0x1405de6e8]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
jmp 0x140254cb6
xor eax, eax
mov qword [0x1405de6d8], rax
mov byte [0x1405de6e0], 1
movzx eax, byte [0x1405de6e0]
test al, 1
jne 0x140254c80
mov dword [rsp + 0x30], 0x94
mov rcx, rsi
call r13
cmp dword [rsp + 0x34], 6
jb 0x140254caf
mov rcx, rdi
call rbx
test rax, rax
je 0x140254cea
mov rcx, rax
mov rdx, r12
call rbp
jmp 0x140254cec
xor eax, eax
mov qword [0x1405de6c0], rax
mov rcx, rdi
call rbx
test rax, rax
je 0x140254d07
mov rcx, rax
mov rdx, r15
call rbp
jmp 0x140254d09
xor eax, eax
mov qword [0x1405de6c8], rax
mov rcx, rdi
call rbx
test rax, rax
je 0x140254d24
mov rcx, rax
mov rdx, r14
call rbp
jmp 0x140254d26
xor eax, eax
mov qword [0x1405de6d0], rax
mov rcx, rdi
call rbx
test rax, rax
je 0x140254ca6
mov rcx, rax
lea rdx, str.SleepConditionVariableCS
call rbp
jmp 0x140254ca8
mov rax, qword [0x1405de6c0]
test rax, rax
je 0x140254d61
mov rcx, qword [rsp + 0x20]
call rax
jmp 0x140254d6d
xorps xmm0, xmm0
mov rax, qword [rsp + 0x20]
movups xmmword [rax + 0x38], xmm0
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140254e00
Capabilities:
Check os version

Disassembly:
sub rsp, 0xb8
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [rsp + 0x24], 6
setae al
add rsp, 0xb8
ret

Function at 0x140254f40
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
mov edx, 0x80000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rsi, rax
test rax, rax
je 0x140254f7a
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rsi, rsi
setne al
add rsp, 0x30
pop rsi
ret
Function at 0x14025dde0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rdi, rdx
mov rsi, rcx
lea rbx, [rsp + 0x30]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov r8d, 0xffffffff
nop dword [rax]
add r8d, 1
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x14025de10
lea rbx, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1402580e0
cmp byte [rsp + 0x2e], 0
je 0x14025de3c
mov rbx, qword [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.14025f0d0
cmp byte [rsp + 0x2e], 0
je 0x14025de5b
lea rcx, [rsp + 0x20]
call fcn.14030abf0
mov rax, rsi
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x1402601c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x260
mov rsi, rdx
mov rbx, rcx
xor edi, edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [0x1403dbb48]
mov r9, qword [0x1403dbb58]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1402602f4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, qword [0x1403dbb50]
lea r8, [rsp + 0x38]
call qword [rax]
test eax, eax
js 0x1402602c5
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.14025fe60
mov rdx, qword [rsp + 0x50]
mov rax, qword [rdi]
mov rcx, rdi
xor r8d, r8d
call qword [rax + 0x28]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14026025a
call fcn.140309590
test edi, edi
js 0x1402602dc
test rsi, rsi
je 0x1402602c9
lea rdi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
xor r9d, r9d
call qword [rax + 0x18]
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
call fcn.14030f140
mov al, byte [rsi + 0xe]
cmp rbx, rsi
je 0x1402602ce
test al, al
je 0x1402602bb
mov rcx, rsi
call fcn.14030abf0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x1402602dc
xor edi, edi
jmp 0x1402602e9
mov dil, 1
jmp 0x1402602de
test al, al
je 0x1402602dc
lea rcx, [rsp + 0x40]
call fcn.14030abf0
xor edi, edi
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
add rsp, 0x260
pop rbx
pop rdi
pop rsi
ret

Function at 0x140260740
Capabilities:
Copy file

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rdi, rdx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.14025fe60
mov rsi, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.14025fe60
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_CopyFileW]
mov esi, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14026078a
call fcn.140309590
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140260799
call fcn.140309590
test esi, esi
setne al
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1402607e0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
je 0x1402607ff
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov r8, rax
jmp 0x140260802
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140258ac0
movsxd rcx, dword [rsp + 0x38]
mov eax, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x30]
cmp ecx, eax
jge 0x140260833
lea eax, [rcx + 1]
mov dword [rsp + 0x38], eax
mov word [rbx + rcx*2], 0
mov rsi, rbx
jmp 0x14026089c
cmp eax, 0x7fffffff
jne 0x14026084a
lea rcx, [0x1403d9988]
call fcn.140255450
mov eax, dword [rsp + 0x3c]
mov ecx, eax
sar ecx, 1
add ecx, eax
cmp eax, 0x55555554
mov edx, 0x7fffffff
cmovl edx, ecx
add eax, 1
cmp eax, edx
cmovg edx, eax
lea rcx, [rsp + 0x30]
call fcn.14010da10
mov rsi, qword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x38]
lea edx, [rcx + 1]
mov dword [rsp + 0x38], edx
mov word [rsi + rcx*2], 0
test al, al
je 0x14026089c
test rbx, rbx
je 0x14026089c
mov rcx, rbx
call fcn.140309590
mov rsi, qword [rsp + 0x30]
test rdi, rdi
je 0x1402608ae
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov r8, rax
jmp 0x1402608b1
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140258ac0
movsxd rcx, dword [rsp + 0x28]
mov eax, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x20]
cmp ecx, eax
jge 0x1402608e2
lea eax, [rcx + 1]
mov dword [rsp + 0x28], eax
mov word [rbx + rcx*2], 0
mov rdi, rbx
jmp 0x14026094b
cmp eax, 0x7fffffff
jne 0x1402608f9
lea rcx, [0x1403d9988]
call fcn.140255450
mov eax, dword [rsp + 0x2c]
mov ecx, eax
sar ecx, 1
add ecx, eax
cmp eax, 0x55555554
mov edx, 0x7fffffff
cmovl edx, ecx
add eax, 1
cmp eax, edx
cmovg edx, eax
lea rcx, [rsp + 0x20]
call fcn.14010da10
mov rdi, qword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x28]
lea edx, [rcx + 1]
mov dword [rsp + 0x28], edx
mov word [rdi + rcx*2], 0
test al, al
je 0x14026094b
test rbx, rbx
je 0x14026094b
mov rcx, rbx
call fcn.140309590
mov rdi, qword [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov esi, eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140260968
call fcn.140309590
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140260977
call fcn.140309590
test esi, esi
setne al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140260f40
Capabilities:
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdx, rcx
cmp byte [rcx + 0xe], 0
je 0x140260f57
mov rdx, qword [rdx]
lea rsi, [rsp + 0x20]
mov rcx, rsi
call fcn.14025dde0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
cmp byte [rsp + 0x2e], 0
sete al
je 0x140260f86
mov ecx, dword [rsp + 0x28]
cmp ecx, 4
jge 0x140260f90
xor esi, esi
jmp 0x14026108c
movsx ecx, byte [rsp + 0x2f]
cmp ecx, 4
jl 0x140260f7f
mov rdx, qword [rsp + 0x20]
lea rdi, [rsp + 0x40]
movabs r15, 0xff000000000000
lea r14, [rsp + 0x30]
jmp 0x140260fdd
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rbx
mov rcx, rbx
sar rcx, 0x38
test rbx, r15
sete al
cmovne ecx, ebx
cmp ecx, 3
jle 0x140261088
mov rcx, rsi
test al, 1
jne 0x140260fe7
mov rcx, rdx
call fcn.140260630
test al, al
jne 0x140261088
movsxd rax, dword [rsp + 0x38]
cmp eax, dword [rsp + 0x3c]
jge 0x140261030
mov rcx, qword [rsp + 0x30]
lea edx, [rax + 1]
mov dword [rsp + 0x38], edx
shl rax, 4
lea rbx, [rcx + rax]
cmp byte [rsp + 0x2e], 0
je 0x14026106a
mov rcx, rbx
mov rdx, rsi
call fcn.14030aaa0
jmp 0x14026103b
mov rcx, r14
mov rdx, rsi
call fcn.1400f7880
cmp byte [rsp + 0x2e], 0
mov rdx, rsi
je 0x14026104a
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.14025d6e0
cmp byte [rsp + 0x2e], 0
je 0x140260fb0
mov rcx, rsi
call fcn.14030abf0
jmp 0x140260fb0
mov rdx, qword [rsp + 0x20]
mov qword [rbx], rdx
mov rdx, qword [rsp + 0x28]
mov qword [rcx + rax + 8], rdx
cmp byte [rsp + 0x2e], 0
mov rdx, rsi
jne 0x140261045
jmp 0x14026104a
mov esi, dword [rsp + 0x38]
lea ebx, [rsi + 1]
shl rsi, 4
add rsi, 0xfffffffffffffff0
lea r14, [rsp + 0x40]
mov r15, qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x1402610b8
add rsi, 0xfffffffffffffff0
test edi, edi
je 0x140261108
add ebx, 0xffffffff
test ebx, ebx
jle 0x140261108
mov rdx, qword [rsp + 0x30]
cmp byte [rdx + rsi + 0xe], 0
je 0x1402610e0
mov rdx, qword [rdx + rsi]
jmp 0x1402610e3
add rdx, rsi
mov rcx, r14
call fcn.14025fe60
mov rcx, qword [rsp + 0x40]
xor edx, edx
call r15
mov edi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1402610b0
call fcn.140309590
jmp 0x1402610b0
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14026115c
mov edi, dword [rsp + 0x38]
test edi, edi
js 0x140261154
test rdi, rdi
je 0x140261154
shl rdi, 4
jmp 0x14026113a
add rsi, 0x10
add rdi, 0xfffffffffffffff0
je 0x14026114a
cmp byte [rsi + 0xe], 0
je 0x140261130
mov rcx, rsi
call fcn.14030abf0
jmp 0x140261130
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14026115c
mov rcx, rsi
call fcn.140309590
cmp byte [rsp + 0x2e], 0
je 0x14026116d
lea rcx, [rsp + 0x20]
call fcn.14030abf0
test ebx, ebx
setle al
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140268420
Capabilities:
Create process on windows
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.14025e650
mov r8, qword [rsp + 0x38]
lea rax, [0x1403d4992]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xa
lea rdx, [0x1403d4988]
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jg 0x1402684c3
mov eax, dword [rsp + 0x40]
lea eax, [rax*4 + 1]
movsxd rsi, eax
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov rdi, rax
mov rdx, qword [rsp + 0x38]
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140268500]
mov edx, 0x80000
xor ecx, ecx
mov r9, rdi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x1402684c3
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1402684d2
call fcn.140309590
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140268940
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140268972
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14026899b
mov r8d, 0xffffffff
nop dword [rax + rax]
add r8d, 1
cmp word [rdi], 0
lea rdi, [rdi + 2]
jne 0x140268980
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1402580e0
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret

Function at 0x140268b00
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0xd
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140268b35
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140268b5b
mov r8d, 0xffffffff
nop dword [rax + rax]
add r8d, 1
cmp word [rdi], 0
lea rdi, [rdi + 2]
jne 0x140268b40
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1402580e0
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret

Function at 0x140268b70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x27
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140268ba5
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140268bcb
mov r8d, 0xffffffff
nop dword [rax + rax]
add r8d, 1
cmp word [rdi], 0
lea rdi, [rdi + 2]
jne 0x140268bb0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1402580e0
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret
Function at 0x140268be0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0xe
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140268c15
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140268c3b
mov r8d, 0xffffffff
nop dword [rax + rax]
add r8d, 1
cmp word [rdi], 0
lea rdi, [rdi + 2]
jne 0x140268c20
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1402580e0
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret

Function at 0x140268c50
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 5
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140268c85
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140268cab
mov r8d, 0xffffffff
nop dword [rax + rax]
add r8d, 1
cmp word [rdi], 0
lea rdi, [rdi + 2]
jne 0x140268c90
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1402580e0
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret

Function at 0x140270540
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r9d
mov rbx, r8
mov rsi, rcx
mov rax, rdx
shr rax, 0x20
mov dword [rsp + 0x2c], eax
mov rcx, qword [rcx + 0x60]
lea r8, [rsp + 0x2c]
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1402705a0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x1402705a0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [rsi + 0x30]
mov edx, ecx
and edx, 0x1f
and ecx, 0xffc00000
movzx eax, ax
shl eax, 6
or eax, edx
add eax, ecx
add eax, 0x20
mov dword [rsi + 0x30], eax
test byte [rsi + 0x30], 0x20
jne 0x1402705fc
mov rcx, qword [rsi + 0x60]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1402705d8
cmp dword [rsp + 0x28], edi
je 0x1402705fc
mov eax, 0x3fffe0
or eax, dword [rsi + 0x30]
jmp 0x1402705f9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [rsi + 0x30]
mov edx, ecx
and edx, 0x1f
and ecx, 0xffc00000
movzx eax, ax
shl eax, 6
or eax, edx
add eax, ecx
add eax, 0x20
mov dword [rsi + 0x30], eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1402706a0
Capabilities:
Get file size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov eax, r8d
and eax, 0xffffff8f
xor ecx, ecx
cmp eax, 1
setne cl
xor ebx, ebx
mov r15d, r8d
and r15d, 0xffffff8f
mov rax, qword [rsi]
setne bl
lea ecx, [rcx + rcx + 2]
mov ebp, 3
cmovne ebp, ecx
mov rcx, rsi
call qword [rax + 0x48]
lea rcx, [rsp + 0x38]
mov rdx, r14
call fcn.14025fe60
mov rcx, qword [rsp + 0x38]
or ebx, 0xfffffffe
shl ebx, 0x1e
mov eax, edi
shr eax, 6
and eax, 1
shr edi, 3
mov edx, edi
and edx, 4
or edx, eax
and edi, 2
or edi, edx
xor edi, 3
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov edx, ebx
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
mov qword [rsi + 0x60], rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140270753
call fcn.140309590
mov rdi, qword [rsi + 0x60]
cmp rdi, 0xffffffffffffffff
je 0x14027077d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1402707a3
mov ecx, ebx
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
jmp 0x1402707af
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [rsi + 0x30]
mov edx, ecx
and edx, 0x1f
and ecx, 0xffc00000
movzx eax, ax
shl eax, 6
or eax, edx
add eax, ecx
add eax, 0x20
mov dword [rsi + 0x30], eax
jmp 0x140270819
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x14027076e
xor eax, eax
mov ecx, dword [rsi + 0x30]
and ecx, 0xffffffc0
test r15d, r15d
mov qword [rsi + 0x58], rax
mov eax, 0x16
mov edx, 0x1c
cmove edx, eax
or edx, ecx
mov dword [rsi + 0x30], edx
mov rax, qword [rsi + 0x10]
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rax
mov qword [rsi + 8], 0
mov qword [rsi + 0x48], 0xffffffffffffffff
mov byte [rsi + 0x50], 0
test rax, rax
je 0x14027082d
cmp r15d, 2
jne 0x140270812
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
mov rbp, qword [rsi]
mov rcx, rsi
mov rdx, rax
call qword [rbp + 0x28]
and dword [rsi + 0x30], 0xffc0001f
cmp rdi, 0xffffffffffffffff
setne al
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rsi
mov edx, 0x1000
call fcn.14026f340
cmp r15d, 2
je 0x1402707fd
jmp 0x140270812

Function at 0x140270930
Capabilities:
Get file size

Disassembly:
mov r8d, 0x11
jmp fcn.1402706a0
Function at 0x14027f250
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14d, ecx
mov eax, dword [0x140601e88]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r8, qword [rax + 0x8588]
test r8, r8
je 0x14027f28d
test r14d, r14d
je 0x14027f2bf
bsr ecx, r14d
xor ecx, 0xffffffe0
add ecx, 0x21
jmp 0x14027f2c1
mov eax, dword [0x140601e88]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0x8590]
mov qword [rsi + 0x8588], rcx
call fcn.14027f540
mov r8, qword [rsi + 0x8588]
test r14d, r14d
jne 0x14027f281
xor ecx, ecx
mov edx, 0xffffffff
shl edx, cl
not edx
mov rcx, qword [r8]
mov rbp, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov rsi, qword [r8 + 0x18]
nop dword [rax]
lea rax, [rbp*4]
add rax, rbp
mov ebx, ebp
shl ebx, 7
lea ebx, [rbx + rbx*4]
shr rax, 0x39
or eax, ebx
mov rbx, rbp
shl rbx, 0x11
xor rdi, rcx
xor rsi, rbp
xor rbp, rdi
xor rcx, rsi
rol rsi, 0x2d
xor rdi, rbx
lea eax, [rax + rax*8]
and eax, edx
cmp eax, r14d
jae 0x14027f2e0
mov qword [r8 + 8], rbp
mov qword [r8], rcx
mov qword [r8 + 0x10], rdi
mov qword [r8 + 0x18], rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1402835e0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp qword [rcx + 0x10], 0
je 0x140283629
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
test al, al
je 0x140283612
mov rcx, qword [rsi + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [rsi + 0x34], 0xff
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140283629
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsi + 0x10], 0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140283640
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsi + 0x18], 0
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140283657
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsi + 0x20], 0
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14028366e
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsi + 0x28], 0
add rsp, 0x20
pop rsi
ret