joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
mov eax, 0xc080
call fcn.140002b20
sub rsp, rax
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0xc060], rax
mov rax, rdx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rsi, r8
mov rcx, rax
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001310
xor eax, eax
jmp 0x140001424
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x60]
mov qword [rsp + 0xc090], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x4060]
lea rax, [rsp + 0x50]
mov qword [rsp + 0xc078], rbp
xor ebp, ebp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0xc070], rdi
xor edx, edx
mov qword [rsp + 0x20], rbp
mov edi, ebp
mov dword [rsp + 0x4c], 0x3fff
mov dword [rsp + 0x48], 0x3fff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rdx, rsi
lea rcx, [rsp + 0x4060]
mov ebx, eax
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140001404
mov rcx, qword [rsp + 0x40]
cmp ebx, 0x103
je 0x14000143d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x4c], 0x3fff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], 0x3fff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x4060]
lea rax, [rsp + 0x50]
inc edi
mov qword [rsp + 0x28], rax
mov edx, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rdx, rsi
lea rcx, [rsp + 0x4060]
mov ebx, eax
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140001391
lea rax, [rsp + 0x4060]
mov rbp, qword [rsp + 0xc078]
mov rbx, qword [rsp + 0xc090]
mov rdi, qword [rsp + 0xc070]
mov rcx, qword [rsp + 0xc060]
xor rcx, rsp
call fcn.140002390
add rsp, 0xc080
pop rsi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000140c
Function at 0x140001450
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x30]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000165b
mov rdx, qword [rsp + 0x30]
lea r8, str.MachineGuid
mov dword [rsp + 0x38], 0xff
call fcn.1400012c0
mov rcx, qword [rsp + 0x30]
mov rdx, rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000162c
movzx eax, byte [rsp + 0x40]
mov qword [rsp + 0x150], rbx
lea rbx, [rsp + 0x40]
test al, al
je 0x1400015b2
nop dword [rax + rax]
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x14000156b
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
test al, 1
je 0x140001541
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x1a
sub r8d, ecx
add r8d, 0x41
mov byte [rbx], r8b
jmp 0x1400015a2
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x1a
sub r8d, eax
add r8d, 0x61
mov byte [rbx], r8b
jmp 0x1400015a2
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x1400015a2
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x66666667
imul r9d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub r9d, ecx
add r9b, 0x30
mov byte [rbx], r9b
movzx eax, byte [rbx + 2]
add rbx, 2
test al, al
jne 0x140001500
mov rdx, qword [rsp + 0x30]
lea r8, str.MachineGuid
call fcn.1400012c0
mov rcx, qword [rsp + 0x30]
mov rdx, rax
mov eax, dword [rsp + 0x38]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x150]
test eax, eax
jne 0x14000162c
lea rdx, [rsp + 0x40]
lea rcx, str.___MachineGuid_edited____S_n
call fcn.140001080
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002390
add rsp, 0x158
ret
lea rcx, str.____Failed_to_edit_MachineGuid_n
call fcn.140001080
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002390
add rsp, 0x158
ret
lea rcx, str.____Failed_to_edit_MachineGuid_n
call fcn.140001080
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002390
add rsp, 0x158
ret
Function at 0x140001680
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, rcx
mov dword [rsp + 0x68], 0x18
xor esi, esi
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x70], rsi
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor eax, eax
mov dword [rbp - 0x60], 0x68
xorps xmm0, xmm0
mov dword [rbp - 0xc], eax
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rbp], rax
xor r8d, r8d
mov qword [rbp - 8], rax
mov rdx, rbx
movups xmmword [rbp - 0x2c], xmm0
xor ecx, ecx
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x1c], xmm0
psrldq xmm0, 8
movd eax, xmm0
bts eax, 8
mov dword [rbp - 0x24], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov r8d, 0xfe
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0x10]
mov rbx, rax
mov byte [rax], sil
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001837
lea rdi, [rsi - 1]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140001837
cmp rax, 0xff
jae 0x1400018ae
mov byte [rbp + rax + 0x10], sil
mov rdx, rdi
inc rdx
cmp byte [rbx + rdx], sil
jne 0x1400017c0
add rdx, rax
mov rcx, rbx
add rdx, 1
cmovb rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbx, rax
dec rax
cmp byte [rax + 1], sil
lea rax, [rax + 1]
jne 0x1400017e3
lea r8, [rbp + 0x10]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140001800
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov r8d, 0xfe
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400017a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
nop dword [rax]
movzx eax, byte [rcx]
test al, al
je 0x140001883
cmp al, 0xa
je 0x14000186f
cmp al, 0xd
jne 0x140001872
mov byte [rcx], 0x20
inc rcx
mov rax, rcx
sub rax, rbx
cmp rax, 0xff
jl 0x140001860
mov rax, rbx
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140002390
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400024b8
int3
Function at 0x1400018c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000194a
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov r8, rdi
sub r8, rcx
nop dword [rax + rax]
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x140001934
add rcx, 2
test eax, eax
jne 0x140001920
mov rcx, rbx
test edx, edx
je 0x140001976
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001910
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002390
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140001955
Function at 0x140002e10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002e5a
mov ecx, getaddrinfo
cmp word [rax], cx
jne 0x140002e5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002e5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002e5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002e5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002e5c
xor al, al
add rsp, 0x28
ret
Function at 0x1400023f8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov qword [rsp + 0x48], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
inc rdx
lea rcx, [rsp + 0x20]
call fcn.1400013a4
nop
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub r8, rdx
sar r8, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x20]
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rcx, rbx
call fcn.14003754c
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.14000129c
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400024e3
mov rax, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002505
call fcn.140031ddc
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140031ef0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400374d4
nop
int3
Function at 0x1400087c8
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140065b40], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008828
movdqa xmm0, xmmword [0x140048b70]
movdqa xmm1, xmmword [0x140048b60]
movdqa xmmword [0x14005c900], xmm0
movdqa xmm0, xmmword [0x140048b40]
movdqa xmmword [0x14005c910], xmm1
movdqa xmm1, xmmword [0x140048b50]
movdqa xmmword [0x14005c920], xmm0
movdqa xmmword [0x14005c930], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.1400338c0
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140048b20]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x140008844
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140009d60
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140009d86
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14005c940]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x140009d65
mov eax, ecx
ret

Function at 0x140009fe8
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x14000a080
and qword [r11 - 0x58], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x60], 0
lea r8, [r11 - 0x48]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x68], 0
mov rcx, rsi
and qword [r11 - 0x70], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x78], rax
call fcn.14000a9cc
xor r9d, r9d
lea r10, [rsp + 0x58]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x14000a05e
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000a0c8
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a9cc
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140033210
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031ef0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x14000ace8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [rbp + 0x190]
mov rax, r8
mov rsi, qword [rbp + 0x198]
mov r8d, 0x40
mov r14, qword [rbp + 0x1a0]
cmp r9, r8
mov r12, rdx
mov r15, rcx
cmovb r8, r9
lea rcx, [rbp + 0xb0]
mov rdx, rax
mov rbx, r9
call fcn.140033210
cmp rbx, 0x44
jae 0x14000af3d
lea rax, [rbx + 1]
mov byte [rbp + rbx + 0xb0], 0
cmp rax, 0x44
jae 0x14000af3d
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbx + 2]
cmp rax, 0x44
jae 0x14000af3d
and qword [rsp + 0x40], 0
lea r9, [rbx + 4]
and qword [rsp + 0x38], 0
lea r8, [rbp + 0xb0]
and qword [rsp + 0x30], 0
mov rdx, r12
and qword [rsp + 0x28], 0
mov rcx, r15
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov byte [rbp + rbx + 0xb3], 1
call fcn.14000a9cc
mov ebx, 0x20
lea rdx, [rbp + 0x68]
mov r8d, ebx
lea rcx, [rbp + 0x88]
call fcn.140033210
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rsi
lea rdi, [rbp + 0x40]
mov qword [rbp + 0x60], r14
lea rsi, [rbp + 0x50]
mov dword [rbp + 0x40], eax
lea r14d, [rbx - 0x1d]
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
cmp dword [rdi], 0
jbe 0x14000aebe
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9d, 0x20
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.14000a9cc
mov r8d, 0x20
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.140033210
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000ae8e
sub rbx, 1
jne 0x14000ae2b
lea ebx, [rcx + 0x20]
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, rbx
call fcn.140033210
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000ae20
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.14001b7fc
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.14001b7fc
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.14001b7fc
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.14001b7fc
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140031ef0
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400321f4
int3
Function at 0x140012260
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x140012297
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140012283
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140048518]
cmp byte [rbx + 0x21], 0
je 0x140012297
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.14001313c
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400122a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x1400122d2
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001234f
mov rcx, rbx
call fcn.140012410
test al, al
je 0x140012315
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140012315
mov rdx, rbp
mov rcx, rbx
call fcn.1400122a0
jmp 0x140012353
cmp dword [rbx + 0x14], 1
jne 0x14001232a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14001232a
xor eax, eax
jmp 0x140012353
cmp dword [rbx + 0x14], 0
jne 0x14001234a
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14001234a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14001234a
mov r8d, edi
jmp 0x140012308
or eax, 0xffffffff
jmp 0x140012353
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400126bc
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.1400126f8
test al, al
je 0x1400126f0
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x140048518]
add rsp, 0x20
pop rbx
ret

Function at 0x140012be0
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140012c60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x140012c93
mov al, 1
jmp 0x140012e29
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140012cab
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140012d06
xor ebx, ebx
test rsi, rsi
je 0x140012d2f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140012d26
add rbx, r13
cmp rbx, rsi
jb 0x140012cc6
jmp 0x140012d26
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140012e22
cmp byte [rdi + 0x22], 0
je 0x140012e22
cmp dword [rdi + 0x14], 0
jne 0x140012e22
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x14005e9e0]
call fcn.14000b480
test al, al
je 0x140012d9e
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140012cb1
test ecx, ecx
je 0x140012cb1
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140048518]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140048518]
jmp 0x140012cb1
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x1400489d4]
call fcn.14003754c
mov r8, rax
lea rdx, [0x1400489d4]
lea rcx, [rsp + 0x38]
call fcn.14000129c
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x14005e9e0]
call fcn.14000bc30
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140012e22
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012e1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012e45
call fcn.140031ddc
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031ef0
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400374d4
int3
Function at 0x140013050
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001307b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140013115
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400166f0
test al, al
je 0x1400130d7
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140013115
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013110
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013135
call fcn.140031ddc
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031ef0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400374d4
int3

Function at 0x14001313c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140013167
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140013201
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400166f0
test al, al
je 0x1400131c3
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140013201
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013221
call fcn.140031ddc
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031ef0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1400374d4
int3