joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b770
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x802
call fcn.14002a600
xor ebx, ebx
lea rcx, [0x14008bd18]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14008bd90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14000b918
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rsi
test eax, eax
jne 0x14000b918
mov esi, ebx
mov edx, 0x400
mov qword [rsp + 0x868], rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000b855
lea r8, [0x14008ad58]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140060c64
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008bd30]
lea rcx, [rdi + 0x58]
call fcn.14000de90
test eax, eax
js 0x14000b855
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b960
lea rcx, [0x14008be18]
test esi, esi
jne 0x14000b867
lea rcx, [0x14008be30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b8ce
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b8ce
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.140029c38
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008bd64]
lea rcx, [rdi + 0x58]
mov word [rax], bx
call fcn.14000de90
test eax, eax
js 0x14000b8ce
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b8ce
mov ebx, 1
test ebx, ebx
jne 0x14000b960
lea rcx, [rsp + 0x30]
call fcn.14000a990
test eax, eax
jne 0x14000b911
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008bd64]
lea rcx, [rdi + 0x58]
call fcn.14000de90
test eax, eax
js 0x14000b911
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b960
mov eax, 1
jmp 0x14000b966
mov esi, dword [rsp + 0x20]
test esi, esi
je 0x14000b7f2
lea rcx, [0x14008bd18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14008bda0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b959
lea rcx, [rdi + 0x48]
call rax
test eax, eax
je 0x14000b959
or dword [rdi + 0x50], 0x40
jmp 0x14000b7f2
mov eax, 8
jmp 0x14000b96e
or dword [rdi + 0x50], 0x20
xor eax, eax
mov rbp, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140028060
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000bb80
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x840
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x830], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x14000bbb1
call fcn.14000b530
test eax, eax
jne 0x14000bcd0
lea rax, [0x14008bec8]
add rbx, 0x58
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, [0x14008bb70]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x14008be88]
mov r9, rbx
lea r8, [0x14008bb70]
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x14008b808]
mov r9, rbx
lea r8, [0x14008bb70]
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov qword [rsp + 0x20], 0
lea r8, [0x14008bea0]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov dword [rsp + 0x20], 1
lea r8, [0x14008bea0]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x14008bee8]
mov r9, rbx
lea r8, [0x14008bb70]
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140028060
add rsp, 0x840
pop rbx
ret
add rcx, 0x838
jmp 0x14000bb80

Function at 0x14000bd70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x860
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x850], rax
test byte [rcx + 0x50], 0x20
mov rdi, rdx
mov rbx, rcx
jne 0x14000bda8
call fcn.14000b530
test eax, eax
jne 0x14000be63
lea rax, [0x14008bec8]
mov edx, 0x400
lea r9, [rbx + 0x58]
mov qword [rsp + 0x20], rax
lea r8, [0x14008bb70]
lea rcx, [rsp + 0x50]
call fcn.14000de90
lea rcx, [rsp + 0x50]
call fcn.14000a4e0
test eax, eax
jne 0x14000be20
mov qword [rsp + 0x30], 0
lea r8d, [rax + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000be27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.14000b480
mov eax, 8
jmp 0x14000be63
or dword [rbx + 0x50], 0x10
lea r9, [rsp + 0x40]
mov r8d, 1
mov qword [rbx + 0x20], rax
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000be5e
cmp dword [rsp + 0x40], 1
jne 0x14000be5e
xor eax, eax
jmp 0x14000be63
mov eax, 0xf
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140028060
mov rbx, qword [rsp + 0x880]
add rsp, 0x860
pop rdi
ret
Function at 0x14000be90
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x10], dl
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000bee9
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000bee9
cmp dword [rsp + 0x40], 1
jne 0x14000bee9
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.14000b480
mov eax, 8
add rsp, 0x30
pop rbx
ret

Function at 0x14000bf00
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov esi, edx
mov rdi, r9
xor edx, edx
mov r14d, r8d
mov r15, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x14000bfcf
mov r12d, 1
mov edx, ebp
mov ecx, r12d
call fcn.140060cf0
mov rbx, rax
test rax, rax
je 0x14000bfcf
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, r15
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000bfc7
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rsp + 0x28]
lea rdx, [0x140089fd8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000bfc7
mov rax, qword [rsp + 0x28]
movzx edx, word [rax + 0xa]
mov dword [rdi], 0
test r14d, r14d
jne 0x14000bfab
cmp edx, esi
jb 0x14000bfba
mov rcx, rbx
mov dword [rdi], r12d
call fcn.140060cf8
mov eax, r12d
jmp 0x14000bfd1
cmp edx, esi
jb 0x14000bfba
mov ecx, dword [rdi]
cmp edx, r14d
cmovbe ecx, r12d
mov dword [rdi], ecx
mov rcx, rbx
call fcn.140060cf8
mov eax, r12d
jmp 0x14000bfd1
mov rcx, rbx
call fcn.140060cf8
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14000c2c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1060
call fcn.1400280a0
sub rsp, rax
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x1050], rax
test byte [rcx + 0x50], 0x20
mov rdi, rcx
jne 0x14000c300
call fcn.14000b530
test eax, eax
jne 0x14000c43a
lea rax, [0x14008bec8]
mov edx, 0x400
lea rbx, [rdi + 0x58]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x14008bb70]
lea rcx, [rsp + 0x50]
call fcn.14000de90
lea rcx, [rsp + 0x50]
call fcn.14000a4e0
test eax, eax
jne 0x14000c379
xor esi, esi
lea r8d, [rax + 3]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c383
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call fcn.14000b480
mov eax, 8
jmp 0x14000c43a
or dword [rdi + 0x50], 0x10
lea r9, [rsp + 0x44]
mov r8d, 1
mov qword [rdi + 0x20], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000c435
cmp dword [rsp + 0x44], 1
jne 0x14000c435
movzx eax, byte [rsp + 0x40]
lea r8, [0x14008bea0]
mov r9, rbx
mov dword [rsp + 0x20], eax
mov edx, 0x400
lea rcx, [rsp + 0x850]
call fcn.14000de90
lea rcx, [rsp + 0x850]
call fcn.14000a4e0
test eax, eax
jne 0x14000c379
lea rdx, [rsp + 0x850]
mov rcx, rdi
call fcn.14000c460
test eax, eax
jne 0x14000c43a
test rbx, rbx
je 0x14000c431
lea rdx, [0x14008be70]
mov ecx, esi
sub rdx, rbx
cmp ecx, 0x3ff
jae 0x14000c42e
movzx eax, word [rdx + rbx]
inc ecx
mov word [rbx], ax
add rbx, 2
cmp word [rdx + rbx], si
jne 0x14000c413
mov word [rbx], si
xor eax, eax
jmp 0x14000c43a
mov eax, 0xf
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140028060
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000c460
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rsi, rdx
mov ebx, ebp
mov rdi, rcx
nop
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c4fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14000c4dc
cmp ebx, 0xbb8
jae 0x14000c4dc
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x3c
cmp ebx, 0xbb8
jb 0x14000c480
mov rcx, rdi
call fcn.14000b480
mov eax, 8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
or dword [rdi + 0x50], 8
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000c4dc
cmp dword [rsp + 0x64], ebp
jne 0x14000c4dc
mov rcx, qword [rdi + 0x28]
xor r9d, r9d
mov ebx, dword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14000c4dc
or dword [rdi + 0x50], 4
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov rcx, rax
mov qword [rdi + 0x30], rax
mov qword [rsp + 0x20], rbx
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi], rax
test rax, rax
je 0x14000c4dc
mov rcx, qword [rsp + 0x60]
mov r8d, 0x400
mov dword [rdi + 8], ecx
mov rdx, rsi
mov dword [rdi + 0xc], ecx
lea rcx, [rdi + 0x58]
mov qword [rdi + 0x10], rax
call fcn.14000d9d0
xor eax, eax
jmp 0x14000c4e9
Function at 0x14000c7e0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x868
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea rbx, [rcx + 0x58]
movzx eax, dl
mov rsi, rcx
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x14008bea0]
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14000de90
lea rcx, [rsp + 0x50]
call fcn.14000a4e0
test eax, eax
je 0x14000c83b
mov eax, 8
jmp 0x14000c8ca
mov qword [rsp + 0x890], rbp
xor ebp, ebp
mov qword [rsp + 0x860], rdi
mov edi, ebp
nop
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c8e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14000c8ad
cmp edi, 0xbb8
jae 0x14000c8ad
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3c
cmp edi, 0xbb8
jb 0x14000c850
mov rcx, rsi
call fcn.14000b480
mov eax, 8
mov rbp, qword [rsp + 0x890]
mov rdi, qword [rsp + 0x860]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140028060
add rsp, 0x868
pop rsi
pop rbx
ret
mov r8d, dword [rsi + 0xc]
lea r9, [rsp + 0x40]
mov rdx, qword [rsi]
mov rcx, rax
or dword [rsi + 0x50], 8
mov qword [rsi + 0x28], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
je 0x14000c916
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rsi + 0x50], 0xfffffff7
mov qword [rsi + 0x28], rbp
test edi, edi
je 0x14000c8ad
mov eax, dword [rsi + 0xc]
cmp dword [rsp + 0x40], eax
jne 0x14000c8ad
mov rcx, rbx
test rbx, rbx
je 0x14000c972
mov edx, ebp
cmp word [rsp + 0x50], dx
je 0x14000c96f
lea r8, [rsp + 0x50]
sub r8, rbx
cmp edx, 0x3ff
jae 0x14000c96f
movzx eax, word [r8 + rcx]
inc edx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], bp
jne 0x14000c952
mov word [rcx], bp
lea rcx, [0x14008be70]
test rbx, rbx
je 0x14000c9a0
mov edx, ebp
cmp edx, 0x3ff
jae 0x14000c99d
movzx eax, word [rcx]
inc edx
mov word [rbx], ax
add rcx, 2
add rbx, 2
cmp word [rcx], bp
jne 0x14000c980
mov word [rbx], bp
xor eax, eax
jmp 0x14000c8ba
Function at 0x14000c9b0
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, rdx
mov edi, ebp
mov rsi, rcx
nop
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000ca4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14000ca2b
cmp edi, 0xbb8
jae 0x14000ca2b
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3c
cmp edi, 0xbb8
jb 0x14000c9d0
mov rcx, rsi
call fcn.14000b480
mov eax, 8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8d, dword [rsi + 0xc]
lea r9, [rsp + 0x60]
mov rdx, qword [rsi]
mov rcx, rax
or dword [rsi + 0x50], 8
mov qword [rsi + 0x28], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
je 0x14000ca7f
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rsi + 0x50], 0xfffffff7
mov qword [rsi + 0x28], rbp
test edi, edi
je 0x14000ca2b
mov eax, dword [rsi + 0xc]
cmp dword [rsp + 0x60], eax
jne 0x14000ca2b
test rbx, rbx
je 0x14000cad4
lea rax, [rsi + 0x58]
test rax, rax
je 0x14000cad4
mov edx, ebp
cmp word [rbx], dx
je 0x14000cad1
sub rbx, rax
cmp edx, 0x3ff
jae 0x14000cad1
movzx ecx, word [rbx + rax]
inc edx
mov word [rax], cx
add rax, 2
cmp word [rbx + rax], bp
jne 0x14000cab6
mov word [rax], bp
xor eax, eax
jmp 0x14000ca38

Function at 0x14000cb80
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x18a0
call fcn.1400280a0
sub rsp, rax
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x1890], rax
mov rbx, rcx
mov qword [rcx], 0
lea rcx, [0x14008bff0]
mov r8d, 0x104
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000cc8d
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], 0
lea r8, [0x14008c010]
mov edx, 0x400
lea rcx, [rsp + 0x890]
call fcn.14000de90
lea r9, [rsp + 0x90]
mov dword [rsp + 0x20], 1
lea r8, [0x14008c010]
mov edx, 0x400
lea rcx, [rsp + 0x1090]
call fcn.14000de90
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14000cc8d
lea r8, [rsp + 0x68]
xor edx, edx
lea rcx, [rsp + 0x1090]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14000cc8d
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rcx
cmovae rcx, qword [rsp + 0x38]
xor eax, eax
mov qword [rbx], rcx
jmp 0x14000cc92
mov eax, 8
mov rcx, qword [rsp + 0x1890]
xor rcx, rsp
call fcn.140028060
add rsp, 0x18a0
pop rbx
ret
Function at 0x14000ceb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov rsi, qword [rsp + 0x40]
xor r12d, r12d
mov word [rcx + 0x7fe], r12w
mov edi, r8d
mov dword [r9], r12d
mov r15, r9
mov r14, rcx
mov ebx, r12d
mov dword [rsi], r12d
mov r10, rcx
mov r11d, r12d
mov rdx, rcx
mov r8d, r12d
cmp word [rcx], r12w
je 0x14000cf28
nop
cmp r8d, 0x400
jae 0x14000cf28
movzx ecx, word [rdx]
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x14000cf1c
add cx, 0x20
mov word [rdx], cx
add rdx, 2
inc r8d
cmp word [rdx], bx
jne 0x14000cf00
movzx eax, word [r14]
mov ebp, 0x2f
test ax, ax
je 0x14000cf58
cmp ax, 0x5c
jne 0x14000cf46
mov word [r10], bp
mov dword [rsi], 1
movzx eax, word [r10 + 2]
add r10, 2
test ax, ax
jne 0x14000cf36
movzx eax, word [r14]
mov rcx, r14
test ax, ax
je 0x14000cf96
cmp ax, 0x22
jne 0x14000cf7a
xor r11d, 1
lea rax, [rcx + 2]
test rbx, rbx
cmovne rax, rbx
mov rbx, rax
jmp 0x14000cf89
test r11d, r11d
jne 0x14000cf89
cmp ax, 0x20
jne 0x14000cf89
test edi, edi
jne 0x14000cf96
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14000cf60
test rbx, rbx
mov r9, rbx
cmove r9, r14
cmp rcx, r9
jbe 0x14000cfc7
mov eax, 0xffdd
nop word [rax + rax]
movzx edx, word [rcx]
test ax, dx
jne 0x14000cfe8
cmp dx, 2
je 0x14000cfe8
sub rcx, 2
cmp rcx, r9
ja 0x14000cfb0
mov word [r9], r12w
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
lea rax, [r9 + 6]
cmp rcx, rax
jb 0x14000d010
cmp word [rcx - 6], 0x2e
jne 0x14000d010
cmp word [rcx - 4], 0x65
jne 0x14000d010
cmp word [rcx - 2], 0x78
jne 0x14000d010
cmp dx, 0x65
je 0x14000d0b7
lea r10, [rcx + 0xa]
lea rax, [r14 + 0x800]
cmp r10, rax
jae 0x14000d0b7
test rbx, rbx
jne 0x14000d062
mov r8, rcx
mov r11d, 0x4c5c
cmp dx, 0x2e
je 0x14000d08b
cmp dx, 0x22
je 0x14000d062
cmp dx, 0x5c
mov eax, r12d
sete al
or dword [rsi], eax
cmp word [r8], r11w
jne 0x14000d054
mov word [r8], bp
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x14000d032
cmp dword [r15], r12d
jne 0x14000d0c3
test byte [r14 + 0x818], 2
je 0x14000d0c3
mov dword [rcx + 2], 0x65002e
mov rax, r9
mov dword [rcx + 6], 0x650078
mov word [r10], r12w
jmp 0x14000cfcd
cmp word [r8 + 2], 0x65
jne 0x14000d062
cmp word [r8 + 4], 0x78
jne 0x14000d062
cmp word [r8 + 6], 0x65
jne 0x14000d062
mov word [r8 + 8], r12w
mov rax, r9
mov dword [r15], 1
jmp 0x14000cfcd
mov word [rcx + 2], r12w
mov dword [r15], 1
mov rax, r9
jmp 0x14000cfcd
Function at 0x14000da90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
lea rcx, [rsp + 0x68]
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x6c]
mov r8d, 8
mov rcx, rbx
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000dae9
cmp dword [rsp + 0x60], 8
jne 0x14000dae9
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov eax, 8
add rsp, 0x40
pop rbx
ret

Function at 0x1400138b0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x840
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x830], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x14000bbb1
call fcn.14000b530
test eax, eax
jne 0x14000bcd0
lea rax, [0x14008bec8]
add rbx, 0x58
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, [0x14008bb70]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x14008be88]
mov r9, rbx
lea r8, [0x14008bb70]
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x14008b808]
mov r9, rbx
lea r8, [0x14008bb70]
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov qword [rsp + 0x20], 0
lea r8, [0x14008bea0]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov dword [rsp + 0x20], 1
lea r8, [0x14008bea0]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [0x14008bee8]
mov r9, rbx
lea r8, [0x14008bb70]
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000de90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140028060
add rsp, 0x840
pop rbx
ret
add rcx, 0x838
jmp 0x14000bb80
Function at 0x140015480
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbp, r8
mov r13, rdx
mov rsi, rcx
mov edi, 0x32f54a96
mov eax, dword [rdx + 8]
test eax, eax
je 0x1400154e5
mov r9, qword [rdx]
mov r10d, eax
nop
movzx eax, word [r9]
imul ecx, eax, 0xc5
imul eax, edi, 0x34c3
add ecx, eax
mov eax, edi
shr eax, 2
mov edi, ecx
xor edi, eax
lea r9, [r9 + 2]
sub r10, 1
jne 0x1400154c0
and edi, 0x3fffffff
mov ecx, dword [rsi + 8]
mov r14d, 1
mov eax, r14d
shl eax, cl
dec eax
mov dword [rsp + 0xb0], eax
mov ebx, eax
and ebx, edi
mov dword [rsp + 0xc8], ebx
nop dword [rax]
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.140027180
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140027180
mov r12, rax
mov qword [rsp + 0x30], rax
mov r15d, ebx
shl r15, 5
mov rdx, qword [rsi]
add rdx, r15
mov ecx, dword [rdx]
test cl, 1
jne 0x14001559d
test cl, 2
je 0x140015555
dec dword [rsi + 0x10]
mov ecx, dword [rdx]
or ecx, 1
mov dword [rdx], ecx
mov rax, qword [rsi]
and dword [r15 + rax], 0xfffffffd
mov rdx, qword [rsi]
mov ecx, dword [rdx + r15]
and ecx, 3
lea eax, [rdi*4]
or ecx, eax
mov dword [rdx + r15], ecx
mov rcx, qword [rsi]
add rcx, 8
add rcx, r15
mov rdx, r12
call fcn.140027370
mov rcx, qword [rsi]
mov eax, dword [rbp]
mov dword [r15 + rcx + 0x18], eax
inc dword [rsi + 0xc]
xor ebp, ebp
jmp 0x1400155c1
add rdx, 8
mov rcx, r12
call fcn.1400275e0
test al, al
je 0x1400155bc
mov rcx, qword [rsi]
mov eax, dword [rbp]
mov dword [r15 + rcx + 0x18], eax
xor ebp, ebp
jmp 0x1400155c1
mov ebp, 2
mov rcx, r12
call fcn.140027b80
mov rcx, qword [rsp + 0x20]
call fcn.140027b80
nop
cmp ebp, 2
jne 0x140015639
add ebx, r14d
and ebx, dword [rsp + 0xb0]
inc r14d
cmp ebx, dword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
jne 0x140015510
mov ecx, dword [rsi + 0x14]
lea eax, [rcx + 1]
mov dword [rsi + 0x14], eax
cmp ecx, 4
jbe 0x14001562c
mov rcx, rsi
call fcn.140021bb0
test al, al
jne 0x140015625
mov rcx, r13
call fcn.140027b80
nop
mov eax, 0xffffffff
jmp 0x14001564e
mov dword [rsi + 0x14], 0
mov rcx, r13
call fcn.140027b80
nop
xor eax, eax
jmp 0x14001564e
mov edi, 0xffffffff
test ebp, ebp
cmove edi, ebx
mov rcx, r13
call fcn.140027b80
nop
mov eax, edi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret