joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008720
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov sil, dl
mov rdi, rcx
mov word [rcx + 0x83ca], r13w
mov byte [rcx + 0x83c1], r13b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov bpl, 1
jmp 0x140008787
cmp bpl, r13b
jne 0x140008777
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
cmp sil, r13b
je 0x140008772
call fcn.1400085b4
jmp 0x140008777
call fcn.140008318
mov rcx, qword [rsp + 0x40]
call fcn.14002ce5c
mov bpl, r13b
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.140006940
mov r12, rax
cmp rax, r13
jne 0x140008759
cmp sil, r13b
jne 0x1400087a6
mov rcx, rdi
call fcn.140006d18
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400087bc
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rcx
lea rcx, [0x14003cb10]
call fcn.14002dbf8
mov rbx, rax
test rax, rax
je 0x14000884a
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
and qword [rsp + 0x28], rax
and qword [rsp + 0x30], rax
and qword [rsp + 0x38], rax
and qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400011f4
nop
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.140020fd4
mov rdx, rdi
mov rcx, rsi
call fcn.1400086b8
nop
test rdi, rdi
je 0x14000884a
mov rcx, rdi
call fcn.14002ce5c
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008c48
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rax, rdx
mov rbx, r8
mov rdi, rcx
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rax
call fcn.14001f19c
call fcn.14002df14
add rax, 0x30
cmp rdi, rax
jne 0x140008c9c
cmp byte [0x140047e3c], 0
jne 0x140008cbb
call fcn.14002df14
add rax, 0x60
cmp rdi, rax
jne 0x140008d72
cmp byte [0x140047e3d], 0
je 0x140008d72
call fcn.14002df14
add rax, 0x30
sub rdi, rax
neg rdi
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], rbx
lea rbx, [0x140049640]
mov esi, 0x1800
lea r8, [rsp + 0x40]
mov rcx, rbx
xor r9d, r9d
mov rdx, rsi
mov rbp, rax
call fcn.14002d2ec
cmp dword [0x140047e38], 3
jne 0x140008d1e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8d, [rcx + rcx - 2]
jmp 0x140008d5d
mov r8, rsi
lea rsi, [0x140047e40]
mov rcx, rbx
mov rdx, rsi
call fcn.140020f80
cmp dword [0x140047e38], 1
je 0x140008d48
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharToOemA]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
mov rdx, rsi
not rcx
lea r8, [rcx - 1]
and qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140008dd9
mov qword [rsp + 0x20], rbx
lea rbx, [0x140049640]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x1800
mov rcx, rbx
call fcn.14002d2ec
call fcn.14002df14
xor ecx, ecx
add rax, 0x60
cmp rdi, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov r11, rax
xor eax, eax
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], rax
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14002d010
mov rbx, qword [rsp + 0x888]
add rsp, 0x850
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000963c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140009683
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140009651
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x140009648
repz ret
Function at 0x1400096fc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x14004ee40]
test r8, r8
je 0x140009745
test bl, 7
je 0x140009745
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140009720
cmp r10, 8
jb 0x1400097f2
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x140009760
test r10, r10
je 0x140009817
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x1400097f7
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret

Function at 0x140009988
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x140009a3a
mov eax, 0x1234
add word [r9 + 0x10b8], ax
mov dx, word [r9 + 0x10b8]
mov rax, rdx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba4]
mov rax, rdx
xor word [r9 + 0x10ba], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba6]
sub word [r9 + 0x10bc], cx
movzx eax, word [r9 + 0x10bc]
mov ecx, 1
xor ax, dx
mov word [r9 + 0x10b8], ax
movzx eax, word [r9 + 0x10be]
ror ax, cl
xor ax, word [r9 + 0x10ba]
ror ax, cl
xor word [r9 + 0x10b8], ax
mov word [r9 + 0x10be], ax
movzx eax, word [r9 + 0x10b8]
shr ax, 8
xor byte [r10], al
inc r10
sub r8, 1
jne 0x140009997
repz ret

Function at 0x140009a3c
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, rcx
lea r9, [rdx + 1]
mov r10d, 4
movzx eax, byte [r9 - 1]
mov edx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10a4], edx
movzx eax, byte [r9]
add r9, 4
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10a8], ecx
movzx eax, byte [r9 - 3]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10ac], ecx
movzx eax, byte [r9 - 2]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10b0], ecx
sub r10, 1
jne 0x140009a49
repz ret
Function at 0x140009dc4
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x200
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbp, qword [rsp + 0x260]
mov r14d, 0x40
mov r13, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, r14
jbe 0x140009e48
lea rcx, [rsp + 0x100]
call fcn.14001e800
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, rsi
call fcn.14001ea8c
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x100]
call fcn.14001eb50
lea rsi, [rsp + 0x1b0]
lea ebx, [r14 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140009e7a
lea rax, [rsp + 0x170]
mov r9, rsi
sub r9, rax
lea rcx, [rsp + r8 + 0x170]
inc r8
mov al, byte [r9 + rcx]
xor al, dl
mov byte [rcx], al
cmp r8, rbx
jb 0x140009e62
cmp rbx, r14
jae 0x140009e92
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.14002d040
lea rcx, [rsp + 0x20]
call fcn.14001e800
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
mov r8, r14
call fcn.14001ea8c
lea rcx, [rsp + 0x20]
mov r8, r13
mov rdx, r12
call fcn.14001ea8c
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.14001eb50
lea rcx, [rsp + 0x90]
call fcn.14001e800
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140009f09
lea rax, [rsp + 0x170]
sub rsi, rax
lea rcx, [rsp + rdi + 0x170]
inc rdi
mov al, byte [rsi + rcx]
xor al, dl
mov byte [rcx], al
cmp rdi, rbx
jb 0x140009ef2
cmp rbx, r14
jae 0x140009f21
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.14002d040
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x90]
mov r8, r14
call fcn.14001ea8c
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x90]
mov r8d, 0x20
call fcn.14001ea8c
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.14001eb50
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14002d010
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009f88
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x190]
mov rax, r8
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
mov r13, rdx
lea rcx, [rsp + 0xa0]
cmovb r8, r9
mov rdx, rax
mov rbx, r9
call fcn.14002d340
lea rax, [rsp + 0x58]
lea r9, [rbx + 4]
lea r8, [rsp + 0xa0]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
mov byte [rsp + rbx + 0xa0], 0
mov byte [rsp + rbx + 0xa1], 0
mov byte [rsp + rbx + 0xa2], 0
mov byte [rsp + rbx + 0xa3], 1
call fcn.140009dc4
mov r14d, 0x20
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov r8, r14
call fcn.14002d340
mov r11d, dword [rsp + 0x198]
lea eax, [r14 - 0x10]
dec r11d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r11d
lea rsi, [rsp + 0x40]
lea rdi, [rsp + 0x30]
lea ebp, [rax - 0xd]
cmp dword [rdi], 0
jbe 0x14000a0d9
mov ebx, dword [rdi]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x58]
mov r9, r14
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140009dc4
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
mov r8, r14
call fcn.14002d340
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x58]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x14000a0c0
sub rbx, 1
jne 0x14000a085
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.14002d340
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x14000a07e
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14001ce94
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14001ce94
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.14001ce94
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14001ce94
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002d010
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a51c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0x10a4]
mov r11d, dword [rcx + 0x10a8]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x10ac]
xor ebp, dword [rcx + 0x10b0]
mov edi, ebx
mov r9, rdx
xor edi, dword [rdx]
xor r13d, r13d
mov r10, rcx
lea r14d, [r13 + 0x20]
mov rax, r13
mov edx, ebp
inc r13
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0x10a4]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r12d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r12d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r12d, 8
mov edx, esi
or r12d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r12d, 8
or r12d, eax
xor r12d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r12d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r14, 1
mov r11d, ebp
mov ebp, r8d
jne 0x14000a56d
xor ebx, r12d
mov rdx, r9
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x10a8]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x10ac]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x10b0]
mov dword [r9 + 0xc], r11d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
jmp fcn.140009a3c
Function at 0x14000a6a4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0x10a4]
mov edi, dword [rdx]
mov r11d, dword [rcx + 0x10a8]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x10ac]
mov r12d, 0x1f
xor edi, ebx
xor ebp, dword [rcx + 0x10b0]
mov r9, rdx
mov r10, rcx
mov r14, r12
mov rax, r14
mov edx, ebp
dec r14
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0x10a4]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r13d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r13d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r13d, 8
mov edx, esi
or r13d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r13d, 8
or r13d, eax
xor r13d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r13d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r12d, 1
mov r11d, ebp
mov ebp, r8d
jns 0x14000a709
xor ebx, r13d
lea rdx, [rsp + 0x20]
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x10a8]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x10ac]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x10b0]
mov dword [r9 + 0xc], r11d
call fcn.140009a3c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002d010
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14000a848
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov esi, 0x20
jne 0x14000a8c7
mov eax, dword [rcx + 4]
lea r9d, [rsi - 0x1c]
lea r8, [r11 - 0x38]
mov dword [rsp + 0x30], eax
lea rax, [r11 - 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [r11 - 0x48], rax
call fcn.140009dc4
xor r11d, r11d
lea r8, [rsp + 0x38]
mov dword [rbx + 4], r11d
mov edx, r11d
movzx eax, byte [r8]
mov ecx, r11d
inc r11d
and ecx, 3
inc r8
shl ecx, 3
shl eax, cl
xor edx, eax
cmp r11d, esi
jb 0x14000a8a8
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x14000a8f9
lea rax, [rsp + 0x38]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140009dc4
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x38]
mov r8, rsi
call fcn.14002d340
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002d010
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ef3c
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x5070
call fcn.14003a1b0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5098], rbx
mov qword [rsp + 0x50a0], rbp
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x5060], rax
mov rbx, rcx
mov r12d, 0x800
mov r8d, r12d
lea rdx, [rsp + 0x4060]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor ebp, ebp
cmp eax, ebp
je 0x14000f161
cmp eax, r12d
jae 0x14000f161
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x14000f15d
cmp eax, r12d
jae 0x14000f15d
lea rcx, [rsp + 0x4060]
call fcn.140013be0
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.140013be0
mov rdi, rax
cmp word [rax], bp
je 0x14000f159
mov rdx, rax
mov rcx, rsi
call fcn.14002132c
cmp eax, ebp
je 0x14000f159
mov rcx, rbx
call fcn.140013be0
mov rcx, rax
mov rdx, rdi
call fcn.14002132c
cmp eax, ebp
jne 0x14000f159
mov ax, bp
mov word [rsp + 0x1060], ax
mov edi, ebp
cmp ax, bp
jne 0x14000f0a6
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x1060]
call fcn.14001ef20
lea rcx, [rsp + 0x1060]
call fcn.140013be0
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.14000ee30
lea rcx, [rsp + 0x1060]
call fcn.140010540
cmp al, bpl
je 0x14000f087
mov eax, ebp
mov word [rsp + 0x1060], ax
jmp 0x14000f08f
mov ax, word [rsp + 0x1060]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000f02f
cmp ax, bp
jne 0x14000f0a6
xor al, al
jmp 0x14000f163
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.14001ef20
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.140013dc8
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x14000f0ea
xor al, al
jmp 0x14000f163
lea rcx, [rsp + 0x30]
call fcn.14000f2bc
nop
mov dil, bpl
mov rcx, rbx
call fcn.140010540
cmp al, bpl
jne 0x14000f11b
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000f4b8
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x1060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x14000f14b
lea rcx, [rsp + 0x30]
call fcn.14000f618
lea rcx, [rsp + 0x30]
call fcn.14000f680
nop
lea rcx, [rsp + 0x30]
call fcn.14000f998
mov al, 1
jmp 0x14000f163
xor al, al
jmp 0x14000f163
xor al, al
jmp 0x14000f163
xor al, al
mov rcx, qword [rsp + 0x5060]
xor rcx, rsp
call fcn.14002d010
lea r11, [rsp + 0x5070]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14000f6b4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov r15, rdx
mov rsi, rcx
cmp r8, rdi
jne 0x14000f6e7
mov al, 1
jmp 0x14000f859
cmp dword [rcx + 0x14], 1
jne 0x14000f6fc
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov r12b, dil
mov dword [rsp + 0x70], edi
cmp dword [rsi + 0x14], edi
je 0x14000f759
mov rbx, rdi
cmp rbp, rdi
jbe 0x14000f783
mov r8d, 0x4000
mov eax, ebp
mov rcx, rbp
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r15]
cmp rcx, r8
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
cmovb r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
je 0x14000f783
add rbx, 0x4000
cmp rbx, rbp
jb 0x14000f710
jmp 0x14000f77a
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
jne 0x14000f852
cmp byte [rsi + 0x1c], dil
je 0x14000f852
cmp dword [rsi + 0x14], edi
jne 0x14000f852
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsi]
mov rcx, rsi
mov edi, eax
call qword [rdx + 0x20]
lea rcx, [rsi + 0x26]
mov r13, rax
call fcn.14000fe8c
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x14000f7ed
mov rcx, r13
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x14000f7ed
lea rax, [r13 + rbp]
cmp rax, rbx
jbe 0x14000f7ed
lea rdx, [rsi + 0x26]
lea rcx, [0x140050e70]
call fcn.14000b2cc
lea rdx, [rsi + 0x26]
lea rcx, [0x140050e70]
xor r8d, r8d
call fcn.14000b308
xor edi, edi
cmp al, dil
je 0x14000f840
mov ecx, dword [rsp + 0x70]
mov rax, rcx
cmp rcx, rbp
jae 0x14000f6fc
cmp ecx, edi
jbe 0x14000f6fc
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x20]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call qword [rbx + 0x18]
jmp 0x14000f6fc
lea r8, [rsi + 0x26]
lea rcx, [0x140050e70]
xor edx, edx
call fcn.14000b4bc
mov byte [rsi + 0x10], 1
mov al, r12b
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000f948
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x14000f9f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x14000fa1d
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000fa9c
mov rcx, rbx
call fcn.14000f968
test al, al
je 0x14000fa60
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000fa60
mov rdx, rsi
mov rcx, rbx
call fcn.14000f9f0
jmp 0x14000faa0
cmp dword [rbx + 0x14], 1
jne 0x14000fa75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000fa75
xor eax, eax
jmp 0x14000faa0
cmp dword [rbx + 0x14], 0
jne 0x14000fa97
cmp rdi, 0x8000
jbe 0x14000fa97
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000fa97
mov r8d, 0x8000
jmp 0x14000fa53
or eax, 0xffffffff
jmp 0x14000faa0
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000fdb0
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000fd34
test al, al
je 0x14000fdde
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov r11, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [r11 + 0x18]
add rsp, 0x20
pop rbx
ret

Function at 0x14000fe14
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.14003a1b0
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1020], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call fcn.140014418
movzx r11d, word [rsp + 0x20]
lea rax, [rsp + 0x20]
neg r11w
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x14000fe6c
cmp eax, 5
je 0x14000fe6c
xor eax, eax
jmp 0x14000fe71
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002d010
add rsp, 0x1038
ret

Function at 0x14000fe8c
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.14003a1b0
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call fcn.140013e5c
movzx eax, word [rsp + 0x40]
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14000ff08
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x14000ff08
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14000ff0a
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002d010
add rsp, 0x1058
ret