joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800035e0
Capabilities:
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x180015070]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
lea rdx, [rbp + 0x180]
lea rcx, [0x1800164e8]
mov r8d, 0x104
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r9, [rbp + 0x180]
lea r8, str.CLSID_s
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.180001250
test eax, eax
js 0x18000384d
mov qword [rsp + 0x6c0], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x6c8], rdi
xor edi, edi
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
mov ebx, 0x80004005
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18000383b
mov rax, qword [str.24x7_Help]
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 1]
mov qword [rsp + 0x58], rax
mov rax, qword [0x180012630]
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov eax, dword [0x180012638]
xor edx, edx
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x18000383b
lea r9, [rbp + 0x180]
lea r8, str.CLSID_sInprocServer32
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.180001250
test eax, eax
js 0x18000383d
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jle 0x180003764
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x18000383b
mov rcx, qword [0x1800175f8]
lea rdx, [rbp + 0x390]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1800037ce
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
add eax, eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x390]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x1800037ce
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180003830
mov rax, qword [str.Apartment]
mov rcx, qword [rsp + 0x50]
lea rdx, str.ThreadingModel
mov qword [rsp + 0x58], rax
mov rax, qword [0x180012678]
mov r9d, 1
mov qword [rsp + 0x60], rax
mov eax, dword [0x180012680]
xor r8d, r8d
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x180003830
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x6c0]
mov rdi, qword [rsp + 0x6c8]
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.180003a00
add rsp, 0x6b0
pop rbp
ret
Function at 0x180003950
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x180015070]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x1800164e8]
mov r8d, 0x104
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r9, [rsp + 0x20]
lea r8, str.CLSID_s
lea rcx, [rsp + 0x230]
mov edx, 0x104
call fcn.180001250
mov ebx, eax
test eax, eax
js 0x1800039c6
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, 0x80004005
test eax, eax
cmovne ebx, ecx
xor ecx, ecx
mov eax, 0x80040201
test ebx, ebx
cmovns eax, ecx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180003a00
add rsp, 0x450
pop rbx
ret

Function at 0x1800041eb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180015070]
jne 0x180003a1a
rol rcx, 0x10
test cx, 0xffff
jne 0x180003a16
repz ret
ror rcx, 0x10
jmp 0x180004144
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180016600]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800166f8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800041c9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180016600]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800041eb
mov rax, qword [rsp + 0x88]
mov qword [0x1800166f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180016698], rax
mov rax, qword [0x1800166f8]
mov qword [0x180016570], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180016680], rax
mov dword [0x180016560], 0xc0000409
mov dword [0x180016564], 1
mov rax, qword [0x180015070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180015078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800165f8], eax
mov ecx, 1
call fcn.180007f30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000f600]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800165f8], 0
jne 0x180004272
mov ecx, 1
call fcn.180007f30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18000b044
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180015070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180006abc
xor ebx, ebx
cmp qword [0x1800175a0], rbx
mov rdi, rax
jne 0x18000b157
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000b22e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000b22e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800175a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800175a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800175b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800175c0], rax
test rax, rax
je 0x18000b14e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800175b8], rax
jmp 0x18000b15e
mov rax, qword [0x1800175b8]
jmp 0x18000b165
mov rax, qword [0x1800175b8]
mov r11, qword [0x1800175c0]
cmp rax, rdi
je 0x18000b1cc
cmp r11, rdi
je 0x18000b1cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800175c0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000b1cc
test rax, rax
je 0x18000b1cc
call rsi
test rax, rax
je 0x18000b1c6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000b1c6
test byte [rsp + 0x40], 1
jne 0x18000b1cc
bts ebp, 0x15
jmp 0x18000b20c
mov rcx, qword [0x1800175a8]
cmp rcx, rdi
je 0x18000b20c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000b20c
call rax
mov rbx, rax
test rax, rax
je 0x18000b20c
mov rcx, qword [0x1800175b0]
cmp rcx, rdi
je 0x18000b20c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000b20c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800175a0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000b22e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18000b230
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180003a00
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
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 [0x14005ae78]
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 [0x1400479b0]
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.140036bbc
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.14003144c
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140031560
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140036b44
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 [0x140064b40], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008828
movdqa xmm0, xmmword [0x140047b60]
movdqa xmm1, xmmword [0x140047b50]
movdqa xmmword [0x14005b900], xmm0
movdqa xmm0, xmmword [0x140047b30]
movdqa xmmword [0x14005b910], xmm1
movdqa xmm1, xmmword [0x140047b40]
movdqa xmmword [0x14005b920], xmm0
movdqa xmmword [0x14005b930], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140032f30
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140047b10]
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, [0x14005b940]
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 [0x14005ae78]
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.140032880
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031560
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 [0x14005ae78]
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.140032880
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.140032880
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.140032880
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.140032880
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.140031560
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140031864
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 [0x140047510]
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 [0x140047510]
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 [0x14005ae78]
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, [0x14005d9e0]
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 [0x140047510]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140047510]
jmp 0x140012cb1
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x1400479c4]
call fcn.140036bbc
mov r8, rax
lea rdx, [0x1400479c4]
lea rcx, [rsp + 0x38]
call fcn.14000129c
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x14005d9e0]
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.14003144c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031560
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140036b44
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 [0x14005ae78]
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 [0x1400479b0]
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.14003144c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031560
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140036b44
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 [0x14005ae78]
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 [0x1400479b0]
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.14003144c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031560
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140036b44
int3