joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0830
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], edi
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x768]
lea rdx, [rsp + 0x40]
mov r8d, 0x3ff
mov dword [rsp + 0x34], edi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400a09f8
nop
cmp dword [rsp + 0x30], edi
je 0x1400a09f8
mov rcx, qword [rbx + 0x768]
lea r9, [rsp + 0x30]
mov r8d, 0x3ff
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a09bf
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x1400a09bf
movzx eax, byte [rbx + 0x73f]
shr al, 7
test al, 1
je 0x1400a08f7
mov rcx, qword [rbx + 0x730]
jmp 0x1400a0907
movsx rax, byte [rbx + 0x73f]
mov ecx, reloc.WS2_32.dll_socket
sub rcx, rax
cmp rcx, 0x7a1200
jbe 0x1400a0951
lea rcx, [rbx + 0x728]
movzx eax, byte [rcx + 0x17]
shr al, 7
test al, 1
je 0x1400a0925
mov rcx, qword [rcx]
lea rdx, [rbx + 0x728]
movzx eax, byte [rdx + 0x17]
lea r8, [rcx + 0xf4240]
shr al, 7
test al, 1
je 0x1400a0941
mov rdx, qword [rdx]
lea rcx, [rbx + 0x728]
call fcn.1400ab910
mov edx, dword [rsp + 0x30]
mov eax, edx
lea r9, [rsp + 0x40]
add r9, rax
movzx eax, byte [rbx + 0x73f]
shr al, 7
test al, 1
je 0x1400a0979
mov rdx, qword [rbx + 0x730]
add rdx, qword [rbx + 0x728]
jmp 0x1400a098f
movsx rax, byte [rbx + 0x73f]
lea rdx, [rbx + 0x728]
sub rdx, rax
add rdx, 0x17
lea r8, [rsp + 0x40]
lea rcx, [rbx + 0x728]
call fcn.1400b1100
mov eax, dword [rsp + 0x30]
cmp rax, 0x400
jae 0x1400a0a19
mov byte [rsp + rax + 0x40], dil
lea rdx, [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, qword [rbx + 0x768]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r8d, 0x3ff
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1400a08a0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1401f11e0
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
call fcn.1401f1474
int3
Function at 0x1400a13c0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp byte [rbx + 9], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
je 0x1400a143f
movabs rax, 0x346dc5d63886594b
lea rcx, str.Target_process_still_running_after_the__s_timeout_period_elapsed._n
imul qword [rsp + 0x38]
mov r8, rdx
lea rdx, str.response
sar r8, 0xb
mov rax, r8
shr rax, 0x3f
add r8, rax
lea rax, str.unilateral
cmp r8, qword [rbx + 0x30]
cmovg rdx, rax
call fcn.1400b4070
mov r8d, dword [rbx + 0x28]
lea rcx, str.Response_timeout___d_seconds__unilateral_timeout___d_seconds._n
mov edx, dword [rbx + 0x18]
call fcn.1400b4070
mov rcx, qword [rbx + 0x6f8]
mov edx, 0xffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [rbx + 0x48], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400a14d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
lea rdx, str.keepalive
call sub.VCRUNTIME140.dll_strstr
movabs rbp, 0x346dc5d63886594b
movabs rsi, 0x7fffffffffffffff
test rax, rax
je 0x1400a1550
cmp qword [rbx + 0x30], rsi
je 0x1400a1550
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x44]
imul rcx, qword [rbx + 0x28], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x50], eax
mov rax, rbp
imul qword [rsp + 0x50]
sar rdx, 0xb
mov rax, rdx
add rdx, rcx
shr rax, 0x3f
add rax, rdx
mov qword [rbx + 0x30], rax
cmp qword [rbx + 0x20], rsi
je 0x1400a1596
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x44]
mov rax, rbp
mov dword [rsp + 0x54], ecx
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x50], ecx
imul qword [rsp + 0x50]
imul rcx, qword [rbx + 0x18], 0x3e8
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rcx
add rax, rdx
mov qword [rbx + 0x20], rax
cmp byte [rbx + 9], 0
je 0x1400a15d2
mov rdx, rdi
lea rcx, [0x1402990b0]
call fcn.1400b4070
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400a15be
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b4240
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x20], 1
mov rdi, r9
mov r15, rdx
add rcx, 0x20
lea rdx, [rsp + 0x50]
mov r9d, dword [rbx + 0x18]
mov r8d, dword [rbx + 0x10]
call fcn.1400cab70
cmp byte [rsp + 0x50], 0
je 0x1400b4382
mov r10d, dword [rsp + 0x54]
xor edx, edx
mov rax, rdi
mov qword [rsp + 0x58], rbp
div r10
mov rcx, rbx
mov ebp, r10d
mov r14d, edx
mov edx, r10d
call fcn.140094d60
xor r10d, r10d
mov rdi, rax
cmp qword [rbx + 0x10], r10
jbe 0x1400b434f
mov qword [rsp + 0x60], rsi
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov r9, qword [rcx + r10*8]
test r9, r9
je 0x1400b433d
mov rsi, rbp
mov rcx, qword [r9 + 8]
movsxd r8, dword [r9]
movsxd r11, dword [r9 + 4]
mov eax, 0x811c9dc5
movzx edx, byte [rcx]
inc rcx
test edx, edx
je 0x1400b4304
nop word [rax + rax]
imul eax, eax, 0x1000193
lea rcx, [rcx + 1]
xor eax, edx
movzx edx, byte [rcx - 1]
test edx, edx
jne 0x1400b42f0
mov rcx, qword [rbx + 8]
add rax, rax
xor rax, r11
xor edx, edx
add rax, rax
xor rax, r8
div rsi
mov rax, qword [r9 + 0x18]
mov qword [rcx + r10*8], rax
mov r8d, edx
mov rax, qword [rdi + r8*8]
mov qword [r9 + 0x18], rax
mov qword [rdi + r8*8], r9
mov rax, qword [rbx + 8]
mov r9, qword [rax + r10*8]
test r9, r9
jne 0x1400b42d0
inc r10
cmp r10, qword [rbx + 0x10]
jb 0x1400b42c0
mov rsi, qword [rsp + 0x60]
mov r8, qword [rbx + 0x10]
cmp r8, 1
jbe 0x1400b4373
mov rax, qword [rbx + 0x30]
lea r8, [r8*8 + 8]
mov rdx, qword [rbx + 8]
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + SafeArrayPutElement]
mov qword [rbx + 0x10], rbp
mov rbp, qword [rsp + 0x58]
mov qword [rbx + 8], rdi
jmp 0x1400b4387
mov r14, qword [rsp + 0x70]
mov rax, qword [rbx + 8]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rax + r14*8]
mov qword [rdx + 0x18], rcx
mov rax, qword [rbx + 8]
mov qword [rax + r14*8], rdx
mov rax, qword [rbx + 8]
inc qword [rbx + 0x18]
mov rbx, qword [rsp + 0x68]
mov qword [r15], rdx
lea rcx, [rax + r14*8]
mov byte [r15 + 0x10], 1
mov qword [r15 + 8], rcx
mov rax, r15
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400b8410
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400b8442
cmp word [rcx], 0
je 0x1400b8442
call fcn.1400b94b0
test al, al
je 0x1400b8435
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400b7dd0
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b8b70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, qword [rcx + 0x68]
mov r15, rdx
mov rbp, qword [rcx + 0x88]
mov rdx, rcx
mov r14, qword [rcx + 0x78]
mov rbx, rcx
mov rdi, qword [rcx + 0x80]
mov r13, r8
mov rsi, qword [rcx + 0x60]
mov rcx, r12
call fcn.1400b6a10
mov qword [rbx + 0x70], rax
mov r9, rdi
shr r9, 0x20
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
mov dword [rax + 0x1c], r9d
lea r9, [rsp + 0x70]
mov dword [rax + 0x18], edi
add rax, 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b8c12
mov rax, qword [r12]
mov rcx, r12
call qword [rax + gethostname]
cmp eax, 1
jne 0x1400b8bfd
xor al, al
jmp 0x1400b8c29
mov rcx, qword [rsp + 0x88]
mov eax, dword [rsp + 0x70]
mov qword [rcx], rax
mov byte [r15], 0
jmp 0x1400b8c27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400b8bf9
mov dword [r13], eax
mov byte [r15], 1
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400b8cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, qword [rcx + 0x68]
mov r15, rdx
mov rbp, qword [rcx + 0x88]
mov rdx, rcx
mov r14, qword [rcx + 0x78]
mov rbx, rcx
mov rdi, qword [rcx + 0x80]
mov r13, r8
mov rsi, qword [rcx + 0x60]
mov rcx, r12
call fcn.1400b6a10
mov qword [rbx + 0x70], rax
mov r9, rdi
shr r9, 0x20
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
mov dword [rax + 0x1c], r9d
lea r9, [rsp + 0x70]
mov dword [rax + 0x18], edi
add rax, 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400b8d72
mov rax, qword [r12]
mov rcx, r12
call qword [rax + gethostname]
cmp eax, 1
jne 0x1400b8d5d
xor al, al
jmp 0x1400b8d89
mov rcx, qword [rsp + 0x88]
mov eax, dword [rsp + 0x70]
mov qword [rcx], rax
mov byte [r15], 0
jmp 0x1400b8d87
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400b8d59
mov dword [r13], eax
mov byte [r15], 1
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ba860
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rbx, rcx
je 0x1400ba8ca
cmp qword [rcx + 0x248], 0xffffffffffffffff
je 0x1400ba887
mov rax, qword [rcx + 0x248]
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ba8be
test byte [rbx + 0x230], 2
mov rax, qword [rsp + 0x30]
jne 0x1400ba8d1
test byte [rbx + 0x238], 6
jne 0x1400ba8d1
mov qword [rbx + 0x248], rax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400baa70
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r12d, r12d
movsxd rdi, ecx
mov esi, r9d
movzx r14d, r8b
mov word [rdx], r12w
mov rbx, rdx
lea r15, [0x140000000]
cmp edi, 0x13
ja case.0x1400baabf.0
mov ecx, dword [r15 + rdi*4 + 0xbac4c]
add rcx, r15
jmp rcx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
setne al
test al, al
je 0x1400bac23
mov rdx, rsi
mov rcx, rbx
call fcn.1400b8480
jmp 0x1400bac08
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1400baac9
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, 0x100
call fcn.1400c56e0
cmp rax, rsi
jae 0x1400bac23
mov r8, rsi
lea rdx, [rsp + 0x30]
mov r9, 0xffffffffffffffff
mov rcx, rbx
call fcn.1400c8f60
jmp 0x1400bac08
mov edi, 0xa
jmp 0x1400bab39
test edi, edi
js 0x1400bac23
movsxd rax, edi
cmp rax, 0x12
jae 0x1400bac23
cmp edi, 3
movzx eax, r14b
mov ebp, r12d
sete bpl
neg al
movsxd rax, edi
sbb esi, esi
and esi, 0x8000
mov edx, dword [r15 + rax*8 + 0x330470]
test edx, edx
je 0x1400bab86
or edx, esi
mov qword [rsp + 0x20], rbx
mov r9d, ebp
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1400babb2
movsxd rax, edi
mov edx, dword [r15 + rax*8 + 0x330474]
test edx, edx
je 0x1400bac23
or edx, esi
mov qword [rsp + 0x20], rbx
mov r9d, ebp
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400bac23
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x1400babc0
test rcx, rcx
je 0x1400bac08
movzx eax, word [rbx + rcx*2 - 2]
add eax, 0xffffffd1
cmp eax, 0x2d
ja 0x1400babf1
movabs rdx, 0x200000000801
bt rdx, rax
mov eax, 1
jb 0x1400babf4
mov eax, r12d
test al, al
jne 0x1400bac08
cmp rcx, 0x103
jae 0x1400bac23
mov dword [rbx + rcx*2], 0x5c
test r14b, r14b
je 0x1400bac19
mov rcx, rbx
call fcn.1400b94b0
test al, al
je 0x1400bac23
mov rcx, rbx
call fcn.1400c9610
jmp 0x1400bac28
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400bacd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [0x140401320], 0
mov rbx, rcx
mov edi, edx
je 0x1400bad16
mov r8d, edi
lea rdx, [0x140401320]
mov r9, 0xffffffffffffffff
call fcn.1400c8b60
jmp 0x1400bad5e
lea rdx, [rsp + 0x20]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400bad59
mov r8d, 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8, rdi
lea rdx, [rsp + 0x20]
mov r9, 0xffffffffffffffff
mov rcx, rbx
call fcn.1400c8b60
jmp 0x1400bad5e
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401f11e0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x1400bc590
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rbx, rcx
je 0x1400bc5d2
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bc5c6
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret

Function at 0x1400bcfb0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test dl, dl
je 0x1400bcffe
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400c9520
lea rcx, [rsp + 0x20]
call fcn.1400c9610
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400bd270
jmp 0x1400bd04b
call fcn.1400c9610
movzx ecx, word [rbx + rax*2 - 2]
add ecx, 0xffffffd1
cmp ecx, 0x2d
ja 0x1400bd027
movabs rdx, 0x200000000801
bt rdx, rcx
jae 0x1400bd027
mov ecx, 1
jmp 0x1400bd029
xor ecx, ecx
test cl, cl
je 0x1400bd03d
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1400c9520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x240
pop rbx
ret
Function at 0x1400bd070
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rbx, rcx
mov rax, qword [0x140401530]
test rax, rax
jne 0x1400bd0aa
call fcn.140047f70
mov qword [0x140401530], rax
mov rdi, rax
xor esi, esi
mov word [rsp + 0x20], si
mov byte [rsp + 0x37], 0xb
test rax, rax
jne 0x1400bd0ca
call fcn.140047f70
mov qword [0x140401530], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], esi
mov word [rsp + 0x20], si
mov byte [rsp + 0x37], 0xb
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
movabs rax, 0x80000000000000ff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x50], si
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.1400c8f60
mov edi, eax
mov r9d, eax
movsx rdx, byte [rsp + 0x37]
movzx ecx, dl
shr cl, 7
mov r8, qword [rsp + 0x28]
test cl, 1
je 0x1400bd147
mov rcx, r8
jmp 0x1400bd14f
mov ecx, 0xb
sub rcx, rdx
cmp r9, rcx
jae 0x1400bd195
movzx eax, dl
shr al, 7
mov rcx, qword [rsp + 0x20]
test al, 1
je 0x1400bd169
lea r8, [rcx + r8*2]
jmp 0x1400bd177
mov rax, rdx
add rax, rax
lea r8, [rsp + 0x36]
sub r8, rax
shr dl, 7
lea rax, [rsp + 0x20]
test dl, dl
cmovne rax, rcx
lea rdx, [rax + rdi*2]
lea rcx, [rsp + 0x20]
call fcn.1400ab9e0
jmp 0x1400bd1aa
jbe 0x1400bd1af
xor r8d, r8d
sub r9, rcx
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.1400ab200
movzx edx, byte [rsp + 0x37]
shr dl, 7
lea rcx, [rsp + 0x20]
test dl, dl
cmovne rcx, qword [rsp + 0x20]
lea r8d, [rdi + 1]
mov r9, 0xffffffffffffffff
mov rdx, rbx
call fcn.1400c8f60
movzx eax, byte [rsp + 0x37]
shr al, 7
test al, 1
je 0x1400bd222
mov rcx, qword [rsp + 0x20]
test rcx, rcx
jne 0x1400bd227
xor bl, bl
movzx ecx, byte [rsp + 0x37]
movzx eax, cl
shr al, 7
test al, 1
je 0x1400bd254
mov r8, qword [rsp + 0x30]
movabs rax, 0x7fffffffffffffff
and r8, rax
inc r8
shr cl, 7
test cl, 1
je 0x1400bd23a
mov rdx, qword [rsp + 0x20]
test rdx, rdx
jne 0x1400bd23f
jmp 0x1400bd254
lea rcx, [rsp + 0x20]
cmp word [rcx], 0
je 0x1400bd1e8
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
jmp 0x1400bd1ea
lea rdx, [rsp + 0x20]
cmp rdx, qword [rsp + 0x48]
je 0x1400bd254
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
add r8, r8
call qword [rax + SafeArrayPutElement]
movzx eax, bl
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400bd270
Capabilities:
Delete file

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, 0x90
mov r14, rdx
mov rsi, rcx
cmp word [rcx], 0
je 0x1400bd47f
mov rax, qword [0x140401530]
test rax, rax
jne 0x1400bd2b9
call fcn.140047f70
mov qword [0x140401530], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x80], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov r15, r14
mov bpl, 1
mov byte [rsp + 0x30], bpl
mov qword [rsp + 0x28], 0x100000
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400bc100
test rax, rax
je 0x1400bd457
test r14, r14
je 0x1400bd36c
movzx ecx, word [rsi + r14*2 - 2]
lea eax, [rcx - 0x2f]
cmp eax, 0x2d
ja 0x1400bd34c
movabs rdx, 0x200000000801
bt rdx, rax
lea eax, [r12 + 1]
jb 0x1400bd34f
mov eax, r12d
test al, al
jne 0x1400bd36c
cmp ecx, 0x3a
je 0x1400bd36c
cmp r14, 0x103
jae 0x1400bd36c
mov word [rsi + r14*2], 0x5c
lea r15, [r14 + 1]
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x1400bd457
nop
movzx eax, byte [rbx + 0x2f]
shr al, 7
test al, 1
je 0x1400bd391
mov rdi, qword [rbx + 0x20]
jmp 0x1400bd39e
movsx rax, byte [rbx + 0x2f]
mov edi, 0xb
sub rdi, rax
lea rax, [rdi + r14]
cmp rax, 0x103
ja 0x1400bd443
lea rdx, [rbx + 0x18]
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x1400bd3c3
mov rcx, qword [rdx + 8]
jmp 0x1400bd3d0
movsx rax, byte [rdx + 0x17]
mov ecx, 0xb
sub rcx, rax
mov r8, rdi
cmp rcx, rdi
cmovb r8, rcx
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x1400bd3ea
mov rax, qword [rdx]
jmp 0x1400bd3ed
mov rax, rdx
lea r8, [rax + r8*2]
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x1400bd3ff
mov rdx, qword [rdx]
sub r8, rdx
sar r8, 1
add r8, r8
lea rcx, [rsi + r15*2]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + r15]
mov word [rsi + rax*2], r12w
cmp dword [rbx + 0x10], 1
jne 0x1400bd430
lea rdx, [rdi + r15]
mov rcx, rsi
call fcn.1400bd270
test al, al
jmp 0x1400bd441
cmp word [rsi], 0
je 0x1400bd443
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400bd446
xor bpl, bpl
mov rbx, qword [rbx]
lea rax, [rsp + 0x60]
cmp rbx, rax
jne 0x1400bd380
mov word [rsi + r14*2], r12w
xor edx, edx
mov rcx, rsi
call fcn.1400bcfb0
movzx ebx, bpl
test al, al
cmove ebx, r12d
lea rcx, [rsp + 0x60]
call fcn.1400b5b80
movzx eax, bl
jmp 0x1400bd481
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400be2c0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rsi, rdx
mov rbx, rcx
je 0x1400be34f
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rdx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400be334
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400be334
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
mov rbx, qword [rsp + 0x38]
xor al, al
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400beeb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rbx, rcx
je 0x1400beef0
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400beee4
mov al, 1
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1400c4fe0
Capabilities:
Encode data using xor

Disassembly:
lea r10, [rcx + rdx]
cmp rcx, r10
jae 0x1400c5010
lea r11, [0x1403db000]
movzx eax, byte [rcx]
mov rdx, r8
shr rdx, 0x38
inc rcx
xor rdx, rax
shl r8, 8
movzx eax, dl
xor r8, qword [r11 + rax*8]
cmp rcx, r10
jb 0x1400c4ff0
test r9b, r9b
je 0x1400c5018
not r8
mov rax, r8
ret

Function at 0x1400c54f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [reloc.d2d1.dll_Ordinal_1]
xorps xmm1, xmm1
movaps xmmword [rsp + 0x60], xmm6
xorps xmm2, xmm2
movss xmm6, dword [0x140330ea0]
mov rbx, 0xffffffffffffffff
movaps xmmword [rsp + 0x50], xmm7
movaps xmm0, xmm6
movss xmm7, dword [0x14029999c]
mov esi, 8
cvtsi2ss xmm1, rax
mov rdi, rbx
mov ebp, esi
cvtsi2ss xmm2, rax
divss xmm0, xmm1
xorps xmm1, xmm1
movaps xmmword [rsp + 0x40], xmm8
movss xmm8, dword [0x140330ed8]
movss dword [0x140401648], xmm0
movaps xmm0, xmm7
divss xmm0, xmm2
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm10
xorps xmm2, xmm2
movss xmm9, dword [0x140330edc]
movss xmm10, dword [0x140330ee0]
movss dword [0x140401644], xmm0
movaps xmm0, xmm8
cvtsi2ss xmm1, rax
cvtsi2ss xmm2, rax
divss xmm0, xmm1
xorps xmm1, xmm1
movss dword [0x140401640], xmm0
movaps xmm0, xmm9
divss xmm0, xmm2
cvtsi2ss xmm1, rax
movss dword [0x14040163c], xmm0
movaps xmm0, xmm10
divss xmm0, xmm1
movss dword [0x140401638], xmm0
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x90]
sub rax, qword [rsp + 0x98]
cmp rdi, rax
cmova rdi, rax
sub rbp, 1
jne 0x1400c55d1
mov rax, qword [reloc.d2d1.dll_Ordinal_1]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [0x140401668], rdi
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, rax
divss xmm6, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm7, xmm1
xorps xmm1, xmm1
movss dword [0x14040165c], xmm6
divss xmm8, xmm0
xorps xmm0, xmm0
movss dword [0x140401658], xmm7
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, rax
divss xmm10, xmm0
divss xmm9, xmm1
movss dword [0x14040164c], xmm10
movss dword [0x140401654], xmm8
movss dword [0x140401650], xmm9
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rbx, rax
cmova rbx, rax
sub rsi, 1
jne 0x1400c5682
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x20]
mov qword [0x140401660], rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret