joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cf6fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cf746
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cf746
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cf746
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cf746
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cf746
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cf748
xor al, al
add rsp, 0x28
ret
Function at 0x1400d0958
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400cff44
mov ebx, eax
test eax, eax
jne 0x1400d0988
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400d09eb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d09e2
test al, 0x10
je 0x1400d09e2
bt eax, 0xa
jae 0x1400d09db
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400d09fc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400d09d7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400d09d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400d09e2
and dword [rsp + 0x3c], 0
jmp 0x1400d09e7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d0c94
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400d0cce
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400d0cd3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400d0d1c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400db340]
cmp byte [rcx + rax], 0
je 0x1400d0d1c
dec r8
sub rdx, 1
jne 0x1400d0d02
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000191c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001a90
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1405b7401]
jmp 0x140001982
mov byte [0x1405b7401], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1405b73e0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001a90
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x81
mov byte [rsp + 0x21], 0x87
mov byte [rsp + 0x22], 0x7f
mov byte [rsp + 0x23], 0x74
mov byte [rsp + 0x24], 0x82
mov byte [rsp + 0x25], 0x81
mov byte [rsp + 0x26], 0x7a
mov byte [rsp + 0x27], 0x88
mov byte [rsp + 0x28], 0x88
mov byte [rsp + 0x29], 0x83
mov byte [rsp + 0x2a], 0x75
mov byte [rsp + 0x2b], 0x84
mov byte [rsp + 0x2c], 0x89
mov byte [rsp + 0x2d], 0x89
mov byte [rsp + 0x2e], 0x7a
mov byte [rsp + 0x2f], 0x86
mov byte [rsp + 0x30], 0x8c
mov byte [rsp + 0x31], 0x82
mov byte [rsp + 0x32], 0x8b
mov byte [rsp + 0x33], 0x8d
mov byte [rsp + 0x34], 0x7b
mov byte [rsp + 0x35], 0x75
mov byte [rsp + 0x36], 0x83
mov byte [rsp + 0x37], 0x89
mov byte [rsp + 0x38], 0x84
mov byte [rsp + 0x39], 0x8d
mov byte [rsp + 0x3a], 0x74
mov byte [rsp + 0x3b], 0x7b
mov byte [rsp + 0x3c], 0x84
mov byte [rsp + 0x3d], 0x7a
mov byte [rsp + 0x3e], 0x74
mov byte [rsp + 0x3f], 0x8b
mov byte [rsp + 0x40], 0x13
cmp byte [0x1405b73c0], 0
jne 0x140001a6b
mov byte [0x1405b7401], 1
mov eax, 0
lea rcx, [0x1405b73e0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001a4a
mov byte [0x1405b73c0], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1405b7401], 0
je 0x140001954
lea rax, [0x1405b73e0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001a7f
jmp 0x14000194d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1400068e0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006910
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000690f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006915
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000690f
mov eax, 0
jmp 0x14000690f

Function at 0x140006f90
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140006f40
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010590
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400190d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400190d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140010600
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1405b77b4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010790
mov rax, qword [0x1405b77b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001064c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400106d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010630
mov rcx, rdi
call fcn.140011160
test rax, rax
mov r12, rax
je 0x1400107e2
mov rax, qword [0x1405b77b8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400112a0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1405b77b8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400107c5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400106ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010740
add dword [0x1405b77b4], 1
cmp ebx, 8
jae 0x140010701
test bl, 4
jne 0x1400107a0
test ebx, ebx
je 0x1400106f6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400107b4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400106f6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001071a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1405b77b8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400106ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010590
xor esi, esi
jmp 0x140010657
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400106f6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400106f6
mov rax, qword [0x1405b77b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010590
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010590
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140010db0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405b7820]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405b7800]
test rbx, rbx
je 0x140010e04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140010dfb
test rsi, rsi
je 0x140010dfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010de0
lea rcx, [0x1405b7820]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011160
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405b2410]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400111cf
mov rcx, r9
call fcn.140011030
test eax, eax
je 0x1400111cf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400111cd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400111c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400111cf
add rdx, 0x28
cmp rdx, r9
jne 0x1400111b0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001b4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405aecc0]
jmp 0x140011f90

Function at 0x14001b4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405aecc0]
jmp 0x140011f90
Function at 0x1400010f0
Capabilities:
Create service
Start service

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x70], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140001274
mov qword [rsp + 0x78], 0
cmp dword [rsp + 0xb0], 0
je 0x1400011ff
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400011fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1400011fd
mov r8d, 0x10030
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x78], rax
jmp 0x140001220
mov r8d, 0x10030
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140001266
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140001246
mov dword [rsp + 0x70], 1
jmp 0x14000125b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x14000125b
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x70]
add rsp, 0x98
ret

Function at 0x140001280
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140001317
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000130c
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140001301
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006fe0
add rsp, 0x68
ret
Function at 0x140001330
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400013ae
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400013a3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140001398
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x1400013c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000143f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006fe0
add rsp, 0x48
ret
Function at 0x1400014f0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
sub rsp, 0x178
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov byte [rsp + 0x30], 0x5c
mov byte [rsp + 0x31], 0x64
mov byte [rsp + 0x32], 0x72
mov byte [rsp + 0x33], 0x69
mov byte [rsp + 0x34], 0x76
mov byte [rsp + 0x35], 0x65
mov byte [rsp + 0x36], 0x72
mov byte [rsp + 0x37], 0x73
mov byte [rsp + 0x38], 0x5c
mov byte [rsp + 0x39], 0x50
mov byte [rsp + 0x3a], 0x52
mov byte [rsp + 0x3b], 0x4f
mov byte [rsp + 0x3c], 0x43
mov byte [rsp + 0x3d], 0x45
mov byte [rsp + 0x3e], 0x58
mov byte [rsp + 0x3f], 0x50
mov byte [rsp + 0x40], 0x31
mov byte [rsp + 0x41], 0x35
mov byte [rsp + 0x42], 0x32
mov byte [rsp + 0x43], 0x2e
mov byte [rsp + 0x44], 0x53
mov byte [rsp + 0x45], 0x59
mov byte [rsp + 0x46], 0x53
mov byte [rsp + 0x47], 0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140006ee0
mov byte [rsp + 0x20], 0x50
mov byte [rsp + 0x21], 0x52
mov byte [rsp + 0x22], 0x4f
mov byte [rsp + 0x23], 0x43
mov byte [rsp + 0x24], 0x45
mov byte [rsp + 0x25], 0x58
mov byte [rsp + 0x26], 0x50
mov byte [rsp + 0x27], 0x31
mov byte [rsp + 0x28], 0x35
mov byte [rsp + 0x29], 0x32
mov byte [rsp + 0x2a], 0
mov r8d, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1400010f0
test eax, eax
je 0x1400015fa
lea rcx, [rsp + 0x20]
call fcn.140001280
lea rcx, [rsp + 0x20]
call fcn.140001330
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140006fe0
add rsp, 0x178
ret
Function at 0x140001620
Capabilities:
Contain obfuscated stackstrings
Delete file
Get common file path

Disassembly:
sub rsp, 0x178
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x160], rax
call fcn.1400014f0
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x30], 0x5c
mov byte [rsp + 0x31], 0x64
mov byte [rsp + 0x32], 0x72
mov byte [rsp + 0x33], 0x69
mov byte [rsp + 0x34], 0x76
mov byte [rsp + 0x35], 0x65
mov byte [rsp + 0x36], 0x72
mov byte [rsp + 0x37], 0x73
mov byte [rsp + 0x38], 0x5c
mov byte [rsp + 0x39], 0x50
mov byte [rsp + 0x3a], 0x52
mov byte [rsp + 0x3b], 0x4f
mov byte [rsp + 0x3c], 0x43
mov byte [rsp + 0x3d], 0x45
mov byte [rsp + 0x3e], 0x58
mov byte [rsp + 0x3f], 0x50
mov byte [rsp + 0x40], 0x32
mov byte [rsp + 0x41], 0x35
mov byte [rsp + 0x42], 0x32
mov byte [rsp + 0x43], 0x2e
mov byte [rsp + 0x44], 0x73
mov byte [rsp + 0x45], 0x79
mov byte [rsp + 0x46], 0x73
mov byte [rsp + 0x47], 0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140006ee0
mov byte [rsp + 0x24], 0x70
mov byte [rsp + 0x25], 0x72
mov byte [rsp + 0x26], 0x6f
mov byte [rsp + 0x27], 0x63
mov byte [rsp + 0x28], 0x65
mov byte [rsp + 0x29], 0x70
mov byte [rsp + 0x2a], 0
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x24]
call fcn.1400010f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140001763
mov r8d, 0x8d70
lea rdx, [0x140025a10]
lea rcx, [rsp + 0x50]
call fcn.140001460
test eax, eax
je 0x140001763
mov r8d, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x24]
call fcn.1400010f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140001763
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140006fe0
add rsp, 0x178
ret
Function at 0x140001780
Capabilities:
Contain obfuscated stackstrings
Delete file
Get common file path

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov byte [rsp + 0x28], 0x5c
mov byte [rsp + 0x29], 0x64
mov byte [rsp + 0x2a], 0x72
mov byte [rsp + 0x2b], 0x69
mov byte [rsp + 0x2c], 0x76
mov byte [rsp + 0x2d], 0x65
mov byte [rsp + 0x2e], 0x72
mov byte [rsp + 0x2f], 0x73
mov byte [rsp + 0x30], 0x5c
mov byte [rsp + 0x31], 0x50
mov byte [rsp + 0x32], 0x52
mov byte [rsp + 0x33], 0x4f
mov byte [rsp + 0x34], 0x43
mov byte [rsp + 0x35], 0x45
mov byte [rsp + 0x36], 0x58
mov byte [rsp + 0x37], 0x50
mov byte [rsp + 0x38], 0x32
mov byte [rsp + 0x39], 0x35
mov byte [rsp + 0x3a], 0x32
mov byte [rsp + 0x3b], 0x2e
mov byte [rsp + 0x3c], 0x73
mov byte [rsp + 0x3d], 0x79
mov byte [rsp + 0x3e], 0x73
mov byte [rsp + 0x3f], 0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140006ee0
mov byte [rsp + 0x20], 0x70
mov byte [rsp + 0x21], 0x72
mov byte [rsp + 0x22], 0x6f
mov byte [rsp + 0x23], 0x63
mov byte [rsp + 0x24], 0x65
mov byte [rsp + 0x25], 0x70
mov byte [rsp + 0x26], 0
lea rcx, [rsp + 0x20]
call fcn.140001280
lea rcx, [rsp + 0x20]
call fcn.140001330
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140006fe0
add rsp, 0x168
ret

Function at 0x140001a00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x40], 0x5c
mov byte [rsp + 0x41], 0x5c
mov byte [rsp + 0x42], 0x2e
mov byte [rsp + 0x43], 0x5c
mov byte [rsp + 0x44], 0x50
mov byte [rsp + 0x45], 0x52
mov byte [rsp + 0x46], 0x4f
mov byte [rsp + 0x47], 0x43
mov byte [rsp + 0x48], 0x45
mov byte [rsp + 0x49], 0x58
mov byte [rsp + 0x4a], 0x50
mov byte [rsp + 0x4b], 0x31
mov byte [rsp + 0x4c], 0x35
mov byte [rsp + 0x4d], 0x32
mov byte [rsp + 0x4e], 0
cmp qword [0x14002f938], 0
jne 0x140001aa1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x14002f938], rax
cmp qword [0x14002f938], 0xffffffffffffffff
jne 0x140001aba
mov qword [0x14002f938], 0
xor al, al
jmp 0x140001abc
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140006fe0
add rsp, 0x68
ret
Function at 0x140003230
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jbe 0x14000331c
cmp dword [rsp + 0x40], 0
je 0x14000328f
xor eax, eax
jmp 0x140003320
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000331c
mov dword [rsp + 0x44], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003311
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov dword [rsp + 0x34], 1
jmp 0x14000331c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006fe0
add rsp, 0x58
ret
Function at 0x1400033e0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000353f
mov eax, dword [rsp + 0x24]
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rcx, qword [rsp + 0x48]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
jmp 0x140003498
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x14000351a
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jae 0x1400034c7
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x1400034d3
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x40]
add rdi, rdx
mov rdx, rdi
mov rdi, rdx
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
jmp 0x14000348e
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
mov eax, 1
jmp 0x140003541
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret