joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021c38
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r13
push r14
sub rsp, 0x20
movsxd rbp, ecx
mov rsi, rdx
cmp ebp, 1
jl 0x140021c60
cmp ebp, 9
jle 0x140021c6c
lea rcx, [0x1400c3786]
call fcn.1400a3c30
xor ebx, ebx
mov dword [0x1400e8f68], ebx
cmp dword [0x1400e8f60], ebx
jne 0x140021c90
mov dword [0x1400e8f68], 1
mov dword [0x1400e8f60], 0x10000
mov edi, 2
mov r14d, 0x8000
lea r13d, [rdi + 2]
cmp qword [0x1400e8f88], rbx
jne 0x140021cda
mov rdx, rdi
mov rcx, r14
call fcn.1400ab124
mov qword [0x1400e8f88], rax
cmp rax, rbx
jne 0x140021cda
lea rcx, [0x1400ec668]
call fcn.140028578
lea rdx, [0x1400c3786]
mov ecx, r13d
call fcn.1400a3a18
cmp qword [0x1400e8f90], rbx
jne 0x140021d36
mov rdx, rdi
mov rcx, r14
call fcn.1400ab124
mov rdx, rdi
mov rcx, r14
mov qword [0x1400e8f90], rax
call fcn.1400ab124
mov qword [0x1400e8f58], rax
cmp qword [0x1400e8f90], rbx
je 0x140021d15
cmp rax, rbx
jne 0x140021d3d
mov ecx, 0x1ff
call fcn.140061ca0
mov rcx, rax
call fcn.140096174
lea rdx, [0x1400c3786]
mov ecx, r13d
call fcn.1400a3a18
mov rax, qword [0x1400e8f58]
mov word [rax + 0xfffe], bx
mov rcx, qword [0x1400e8f58]
xor edx, edx
mov r8d, 0xfffe
call fcn.1400a9314
cmp ebp, edi
lea rcx, [0x1400dee50]
movzx eax, word [rcx + rbp*8 + 2]
mov dword [0x1400e8f78], eax
movzx eax, word [rcx + rbp*8]
mov dword [0x1400e8f48], eax
movzx eax, word [rcx + rbp*8 + 4]
mov dword [0x1400e8f7c], eax
movzx eax, word [rcx + rbp*8 + 6]
mov dword [0x1400e8f50], eax
jg 0x140021d94
or word [rsi], r13w
jmp 0x140021d9c
cmp ebp, 8
jl 0x140021d9c
or word [rsi], di
mov rcx, qword [0x1400e8f88]
mov edx, 0x10000
mov dword [0x1400e8f74], ebx
mov dword [0x1400e8f6c], ebx
call qword [fcn.1400a7bbc]
mov dword [0x1400e8f70], eax
cmp eax, ebx
je 0x140021e01
cmp eax, 0xffffffff
je 0x140021e01
mov dword [0x1400e8f64], ebx
cmp eax, 0x106
jae 0x140021ddb
call fcn.1400214b4
mov rcx, qword [0x1400e8f88]
movzx eax, byte [rcx]
shl ebx, 5
inc rcx
xor ebx, eax
and ebx, 0x7fff
sub rdi, 1
mov dword [0x1400e8f80], ebx
jne 0x140021de2
jmp 0x140021e11
mov dword [0x1400e8f64], 1
mov dword [0x1400e8f70], ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret
Function at 0x140023364
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp dword [0x1400ff4a4], 0
jne 0x140023519
lea r8, str.WinRAR_DragDrop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400233cd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x5b9
call fcn.140061d94
mov rcx, rax
call fcn.140096028
jmp 0x140023519
mov ebx, 0x10
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
mov byte [0x1400e8fd9], r11b
jne 0x1400233fd
cmp byte [0x1400fec05], 0
jne 0x1400233fd
xor sil, sil
jmp 0x140023400
mov sil, 1
mov rcx, rbx
call fcn.1400a9554
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140023428
lea rax, [0x1400c4ff0]
mov qword [rbx], rax
mov dword [rbx + 8], 1
jmp 0x14002342a
xor ebx, ebx
mov ecx, 0x7408
call fcn.1400a9554
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140023451
xor r8d, r8d
mov dl, sil
mov rcx, rax
call fcn.140022b00
mov rbp, rax
jmp 0x140023453
xor ebp, ebp
mov byte [0x1400e8fda], 0
mov byte [0x1400e8fdb], 1
mov byte [0x1400e8fd8], 0
neg sil
sbb r8d, r8d
and r8d, 2
inc r8d
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ole32.dll_DoDragDrop]
mov esi, eax
mov byte [0x1400e8fdb], 0
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x10]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x10]
mov ebx, 0x40100
cmp byte [0x1400e8fd9], 0
je 0x1400234cf
cmp byte [0x1400fec05], 0
je 0x1400234cf
cmp esi, ebx
jne 0x1400234cf
call fcn.1400905b0
lea rcx, [0x1401055a0]
call fcn.1400447d4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x140023519
cmp byte [0x1400e8fd8], 0
jne 0x140023519
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x140023519
mov ecx, 0x53c
call fcn.140061d94
mov rcx, rax
call fcn.140096028
lea rcx, [0x1400ec668]
call fcn.1400286f0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400240cc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r9, dword [rdx]
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp r9d, dword [r8]
jbe 0x14002413b
mov r8d, 1
cmp dword [rbx], r8d
jb 0x14002411c
mov rcx, rdi
mov r9, rsi
lea rdx, [rbx + 4]
sub rcx, rbx
sub r9, rbx
mov eax, dword [rcx + rdx]
inc r8d
xor eax, dword [rdx]
mov dword [r9 + rdx], eax
add rdx, 4
cmp r8d, dword [rbx]
jbe 0x140024107
mov ecx, r8d
mov r8d, dword [rdi]
sub r8d, dword [rbx]
lea rdx, [rdi + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.1400a8fe0
mov r11d, dword [rdi]
jmp 0x140024187
jae 0x14002418c
mov edx, 1
cmp r9d, edx
jb 0x14002416b
lea rcx, [r8 + 4]
mov r8, rdi
mov r9, rsi
sub r8, rbx
sub r9, rbx
mov eax, dword [rcx + r8]
inc edx
xor eax, dword [rcx]
mov dword [rcx + r9], eax
add rcx, 4
cmp edx, dword [rdi]
jbe 0x140024157
mov r8d, dword [rbx]
mov ecx, edx
sub r8d, dword [rdi]
lea rdx, [rbx + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.1400a8fe0
mov r11d, dword [rbx]
mov dword [rsi], r11d
jmp 0x1400241d2
or r8d, 0xffffffff
test r9d, r9d
je 0x1400241ac
lea rcx, [rbx + r9*4]
sub rdx, rbx
mov eax, dword [rcx + rdx]
xor eax, dword [rcx]
jne 0x1400241ac
sub rcx, 4
add r9d, r8d
jne 0x14002419c
mov dword [rsi], r9d
movsxd rax, r9d
test r9d, r9d
je 0x1400241d2
sub rdi, rbx
lea rcx, [rbx + rax*4]
sub rsi, rbx
mov eax, dword [rcx + rdi]
xor eax, dword [rcx]
mov dword [rcx + rsi], eax
sub rcx, 4
add r9d, r8d
jne 0x1400241c1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400241e4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
cmp dword [rdx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140024301
cmp dword [r8], 0
je 0x140024301
movsxd r9, dword [r8]
mov rbp, qword [0x1400e8fe8]
test r9, r9
je 0x140024244
lea rax, [rax - 0x58]
mov rdx, r8
sub rdx, rax
lea rax, [rdx + r9*4]
sub r9, 1
mov ecx, dword [rsp + rax + 0x20]
mov eax, dword [rbp + rcx*4]
mov dword [rsp + r9*4 + 0x24], eax
jne 0x14002422d
xor edx, edx
mov r8d, 0x90
mov rcx, rbx
call fcn.1400a9314
movsxd r9, dword [rsi]
test r9, r9
je 0x1400242b4
mov r11, qword [0x1400e8fe0]
mov eax, dword [rsi + r9*4]
mov r10d, dword [rbp + rax*4]
cmp r10d, 0x7fff
je 0x1400242ae
movsxd r8, dword [rdi]
test r8, r8
je 0x1400242ae
mov eax, dword [rsp + r8*4 + 0x20]
cmp eax, 0x7fff
je 0x1400242a8
lea ecx, [rax + r10]
lea rdx, [r8 + r9]
cmp ecx, 0x7fff
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [r11 + rcx*4]
xor dword [rbx + rdx*4 - 4], ecx
sub r8, 1
jne 0x14002427d
sub r9, 1
jne 0x140024263
mov eax, dword [rdi]
mov ecx, dword [rsi]
lea edx, [rcx + rax - 1]
movsxd rax, edx
mov dword [rbx], edx
cmp rax, 0x11
jle 0x1400242e6
lea rcx, [rbx + rax*4 - 0x38]
lea rdx, [rax - 0x11]
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x1400242d0
cmp dword [rbx], 0x11
jbe 0x140024304
mov dword [rbx], 0x11
mov eax, dword [rbx]
cmp dword [rbx + rax*4], 0
jne 0x140024304
dec eax
mov dword [rbx], eax
jne 0x1400242f1
jmp 0x140024304
and dword [rcx], 0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002431c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
cmp dword [rdx], 0
mov r9, rdx
mov r8, rcx
je 0x14002440a
movsxd rdx, dword [rdx]
mov r11, qword [0x1400e8fe8]
mov rbx, qword [0x1400e8fe0]
mov eax, dword [r9 + rdx*4]
mov esi, 0x7fff
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x14002436e
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r8 + rdx*8 - 4], ecx
jmp 0x140024374
and dword [r8 + rdx*8 - 4], 0
mov eax, dword [r9]
sub eax, 1
movsxd rdx, eax
je 0x1400243b8
lea r10, [r8 + rdx*8 - 4]
and dword [r8 + rdx*8], 0
mov eax, dword [r9 + rdx*4]
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x1400243aa
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r10], ecx
jmp 0x1400243ae
and dword [r10], 0
sub r10, 8
sub rdx, 1
jne 0x140024384
mov eax, dword [r9]
lea eax, [rax + rax - 1]
movsxd rdx, eax
mov dword [r8], eax
cmp rdx, 0x11
jle 0x1400243ea
lea rcx, [r8 + rdx*4 - 0x38]
add rdx, 0xffffffffffffffef
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x1400243d4
cmp dword [r8], 0x11
jbe 0x14002440d
mov dword [r8], 0x11
mov eax, dword [r8]
cmp dword [r8 + rax*4], 0
jne 0x14002440d
dec eax
mov dword [r8], eax
jne 0x1400243f7
jmp 0x14002440d
and dword [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x1400260c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
xor r9d, r9d
mov qword [rcx], rbx
movzx eax, word [rsi]
mov r8, rdx
mov r10, rcx
mov rdx, r9
mov r15b, 1
mov ecx, r9d
jmp 0x14002610c
mov edi, 0xff
cmp ax, di
ja 0x140026114
inc ecx
inc rdx
mov ax, word [rsi + rdx*2]
cmp ax, r9w
jne 0x1400260f9
jmp 0x14002611c
movsxd rax, ecx
mov r15b, byte [rsi + rax*2 + 1]
mov rax, qword [r10 + 0x18]
or rcx, 0xffffffffffffffff
mov rdi, r8
mov byte [rbx + rax], r15b
mov rax, qword [r10 + 0x18]
mov r11, r9
inc rax
mov qword [r10 + 0x10], rax
inc rax
mov qword [r10 + 0x18], rax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x60], rcx
cmp word [rsi], r9w
je 0x1400262b2
lea rdx, [rsi + r11*2]
mov r12b, byte [rdx + 1]
mov r14b, byte [rdx]
cmp r11, rax
jae 0x140026250
lea rbp, [r11 + r8]
mov edi, r9d
xor r13d, r13d
mov r9, rbp
mov r8, rdx
cmp word [r8], r13w
je 0x1400261a3
movzx ecx, word [r8]
movsx eax, byte [r9]
cmp ecx, eax
jne 0x1400261a3
inc edi
add r8, 2
inc r9
cmp edi, 0x81
jl 0x140026180
cmp edi, 2
jl 0x1400261d0
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.140025ee0
mov rax, qword [r10 + 0x18]
sub dil, 2
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
jmp 0x14002629a
mov r13b, r14b
sub r13b, byte [rbp]
xor r9d, r9d
mov edi, r9d
mov r8w, word [rdx]
cmp r8w, r9w
je 0x140026217
movzx ecx, r8w
shr cx, 8
cmp cl, r15b
jne 0x140026217
movsx ecx, byte [rbp]
movzx eax, r13b
add ecx, eax
xor ecx, r8d
cmp cl, r9b
jne 0x140026217
inc edi
inc rbp
add rdx, 2
cmp edi, 0x81
jl 0x1400261dd
cmp edi, 2
jl 0x140026250
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.140025ee0
mov rax, qword [r10 + 0x18]
sub dil, 2
or dil, 0x80
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r13b
jmp 0x1400261c7
mov rcx, r10
cmp r12b, r9b
jne 0x140026269
xor edx, edx
call fcn.140025ee0
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
jmp 0x140026293
cmp r12b, r15b
jne 0x140026275
mov edx, 1
jmp 0x14002625a
mov edx, 2
call fcn.140025ee0
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r12b
inc qword [r10 + 0x18]
inc r11
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
xor r9d, r9d
cmp word [rsi + r11*2], r9w
jne 0x14002615c
mov dl, byte [r10 + 8]
mov rax, qword [r10 + 0x10]
mov ecx, 8
sub ecx, dword [r10 + 0xc]
shl dl, cl
mov byte [rbx + rax], dl
mov rax, qword [r10 + 0x18]
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026314
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0xb00
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0xaf0], rax
mov qword [rcx], rdx
mov rbx, rcx
lea r8, [rsp + 0x30]
lea rcx, [0x1400c4d00]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x140026391
lea rcx, [rsp + 0x2f0]
mov edx, 0x400
call fcn.1400861fc
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x2f0]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rbx]
mov r9, rax
xor r8d, r8d
mov edx, 0x1109
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0xaf0]
xor rcx, rsp
call fcn.1400a86e0
add rsp, 0xb00
pop rbx
ret

Function at 0x1400267f4
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rdx
mov rdi, r8
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x4009
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11d, dword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
xor edx, edx
mov rcx, rbx
mov dword [rdi + 0x24], r11d
mov dword [rsp + 0x20], 0x400b
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11d, dword [rsp + 0x38]
mov dword [rdi + 0x28], r11d
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400a86e0
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rdi
ret
Function at 0x140027c24
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10b0
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
xor r9d, r9d
mov rsi, rcx
mov rcx, qword [rcx]
lea r8d, [r9 + 9]
mov edx, 0x110a
call qword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
cmp rax, rbp
je 0x140027d60
mov rcx, qword [rsi]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x113e
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebp
je 0x140027d60
mov rcx, qword [rsp + 0x88]
cmp rcx, rbp
je 0x140027d60
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x8a0]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebp
je 0x140027d60
lea ecx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x90]
mov bx, ax
mov r8d, 0x400
shr ebx, 0xf
not bl
and bl, 1
call fcn.14006b658
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x90]
lea r8d, [rbp + 0x38]
repne scasw ax, word [rdi]
xor edx, edx
not rcx
mov word [rsp + rcx*2 + 0x90], bp
lea rcx, [rsp + 0x20]
call fcn.1400a9314
neg bl
lea rcx, [rsp + 0x20]
sbb ax, ax
mov dword [rsp + 0x28], 3
and ax, 0x40
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dl, byte [rsi + 0x10]
mov rcx, rsi
call fcn.140027b34
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140028594
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1030
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x140028657
lea r8, [rsp + 0x20]
mov r9d, 0x400
mov rdx, rbx
mov rcx, rdi
call fcn.1400529c4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.140053d90
test al, al
jne 0x140028631
lea rdx, [rsp + 0x820]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x820]
repne scasw ax, word [rdi]
not rcx
add rbx, rcx
mov edi, 0x104
cmp rbx, rdi
jbe 0x140028657
mov ecx, 0x564
call fcn.140061d94
lea rcx, [0x1400c54b8]
mov r8d, edi
mov rdx, rax
call fcn.14009666c
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400a86e0
mov rbx, qword [rsp + 0x1040]
add rsp, 0x1030
pop rdi
ret
Function at 0x14002f7c4
Capabilities:
Move file

Disassembly:
push rdi
mov eax, 0x3110
call fcn.1400baa60
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x3128], rbx
mov qword [rsp + 0x3130], rbp
mov qword [rsp + 0x3138], rsi
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x3100], rax
mov rdi, rcx
lea rcx, [rsp + 0xc44]
call fcn.14006e33c
lea rcx, [rsp + 0xc68]
call fcn.14006e33c
lea rcx, [rsp + 0xc8c]
call fcn.14006e33c
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rdi
xor ecx, ecx
call fcn.140034998
xor esi, esi
cmp al, sil
jne 0x14002f850
xor al, al
jmp 0x14002fa12
cmp word [rsp + 0xcb0], si
je 0x14002fa10
lea rcx, [rsp + 0x430]
call fcn.140052af8
mov rcx, rax
lea rdx, [rsp + 0xcb0]
call fcn.140073f2c
cmp eax, esi
je 0x14002fa10
mov rcx, rdi
call fcn.140052af8
mov rcx, rax
lea rdx, [rsp + 0xcb0]
call fcn.140073f2c
cmp eax, esi
jne 0x14002fa10
mov ax, si
mov word [rsp + 0x2100], ax
mov ebx, esi
mov ebp, 0x400
cmp ax, si
jne 0x14002f92e
mov r8, rbp
mov rdx, rdi
lea rcx, [rsp + 0x2100]
call fcn.14006b658
lea rcx, [rsp + 0x2100]
call fcn.140052af8
mov rcx, rax
mov r9d, ebx
lea r8, str.rtmp_d
mov rdx, rbp
call fcn.1400287d0
lea rdx, [rsp + 0x2100]
xor ecx, ecx
call fcn.1400310fc
cmp al, sil
je 0x14002f90f
mov eax, esi
mov word [rsp + 0x2100], ax
jmp 0x14002f917
mov ax, word [rsp + 0x2100]
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x14002f8b5
cmp ax, si
jne 0x14002f92e
xor al, al
jmp 0x14002fa12
mov r8, rbp
mov rdx, rdi
lea rcx, [rsp + 0x2900]
call fcn.14006b658
lea rcx, [rsp + 0x430]
call fcn.140052af8
mov rbx, rax
lea rcx, [rsp + 0x2900]
call fcn.140052af8
movzx ecx, word [rbx]
mov word [rax], cx
add rbx, 2
add rax, 2
cmp cx, si
jne 0x14002f95e
lea rdx, [rsp + 0x2100]
lea rcx, [rsp + 0x2900]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, esi
jne 0x14002f992
xor al, al
jmp 0x14002fa12
lea rcx, [rsp + 0x14d0]
call fcn.14002fddc
nop
mov bl, sil
mov rdx, rdi
xor ecx, ecx
call fcn.1400310fc
cmp al, sil
jne 0x14002f9c9
mov r9b, 1
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x14d0]
call fcn.1400303d0
mov bl, al
lea rdx, [rsp + 0x2900]
lea rcx, [rsp + 0x2100]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp bl, sil
je 0x14002f9ff
lea rcx, [rsp + 0x14d0]
call fcn.14002fe54
lea rcx, [rsp + 0x14d0]
call fcn.14002ff0c
nop
lea rcx, [rsp + 0x14d0]
call fcn.1400301b8
mov al, 1
jmp 0x14002fa12
xor al, al
mov rcx, qword [rsp + 0x3100]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0x3110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400300ec
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 0x1400301ec
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rbx, rcx
movzx eax, r9b
cmp byte [rcx + 0x1e], r14b
mov dword [rcx + 0xc20], r14d
mov ecx, 0xc0000000
lea r15d, [r14 + 1]
mov ebp, 0x80000000
mov rsi, r8
cmovne eax, r15d
cmp byte [rsp + 0x90], r14b
mov r13d, r15d
cmovne ebp, ecx
cmp al, r14b
mov al, byte [rbx + 0x1d]
lea ecx, [r14 + 3]
mov r12, rdx
cmovne r13d, ecx
neg al
sbb edi, edi
not edi
and edi, 0x8000000
call fcn.14003ed2c
cmp eax, r14d
je 0x140030296
cmp rsi, r14
je 0x140030296
cmp word [rsi], r14w
je 0x140030296
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1400302b8
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, r12
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
or r13, 0xffffffffffffffff
mov rdi, rax
cmp rax, r13
jne 0x1400302d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400302d6
mov dword [rbx + 0xc20], r15d
cmp rdi, r13
mov byte [rbx + 0x1a], r14b
mov dword [rbx + 0x14], r14d
setne bpl
mov byte [rbx + 0x18], r14b
cmp bpl, r14b
je 0x14003036b
mov qword [rbx + 8], rdi
cmp rsi, r14
je 0x14003031e
xor eax, eax
mov rcx, r13
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdx, rsi
not rcx
sub rcx, r15
lea r8, [rcx + rcx + 2]
lea rcx, [rbx + 0x420]
call fcn.1400a8fe0
jmp 0x140030326
mov word [rbx + 0x420], r14w
cmp r12, r14
je 0x14003034d
xor eax, eax
mov rcx, r13
mov rdi, r12
repne scasb al, byte [rdi]
mov rdx, r12
not rcx
sub rcx, r15
lea r8, [r15 + rcx]
lea rcx, [rbx + 0x1f]
call fcn.1400a8fe0
jmp 0x14003035f
lea rdx, [rbx + 0x1f]
mov r8d, 0x1000000
mov rcx, rsi
call fcn.140073c10
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.14002fe24
lea r11, [rsp + 0x40]
mov al, bpl
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003054c
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 rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x14003058a
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
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 0x1400305e4
mov rcx, rbx
call fcn.140030188
test al, al
je 0x1400305ca
cmp rdi, rbp
jbe 0x1400305ca
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.14003054c
jmp 0x1400305e8
cmp dword [rbx + 0x14], 1
jne 0x1400305df
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400305df
xor eax, eax
jmp 0x1400305e8
or eax, 0xffffffff
jmp 0x1400305e8
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 0x1400307f0
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.140030600
test al, al
je 0x14003081c
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400307bc
add rsp, 0x20
pop rbx
ret