joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f4784
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800f47b4
xor eax, eax
jmp 0x1800f4877
mov rbp, rbx
cmp word [rax], si
je 0x1800f47d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800f47c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800f47bc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800f46a4
movsxd r14, eax
test eax, eax
jne 0x1800f4817
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800f47ad
mov rcx, r14
call fcn.1800f0938
mov rdi, rax
test rax, rax
jne 0x1800f4830
xor ecx, ecx
call fcn.1800ed9a8
jmp 0x1800f480c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800f46a4
test eax, eax
jne 0x1800f4861
mov rcx, rdi
call fcn.1800ed9a8
jmp 0x1800f486b
xor ecx, ecx
call fcn.1800ed9a8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800f4894
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1800f491b
mov rsi, rbx
cmp word [rax], bp
je 0x1800f48da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800f48c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800f48c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800f0938
mov rdi, rax
test rax, rax
je 0x1800f4908
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180100cc0
mov rbp, rdi
xor ecx, ecx
call fcn.1800ed9a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800fa1d8
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800ec364
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800ec364
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800fa328
cmp rax, 0xffffffffffffffff
je 0x1800fa328
xor edi, edi
test rbp, rbp
jle 0x1800fa2d3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800ed930
mov rbx, rax
test rax, rax
jne 0x1800fa260
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800fa2c9
mov edx, 0x8000
mov ecx, r14d
call fcn.1800fa05c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800eebfc
cmp eax, 0xffffffff
je 0x1800fa2a9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800fa270
mov edx, r15d
mov ecx, r14d
call fcn.1800fa05c
jmp 0x1800fa2c9
cmp byte [rsi + 0x38], dil
je 0x1800fa2c0
cmp dword [rsi + 0x34], 5
jne 0x1800fa2c0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800fa2c9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800ed9a8
jmp 0x1800fa33c
jns 0x1800fa33c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800ec364
cmp rax, 0xffffffffffffffff
jne 0x1800fa2f4
cmp byte [rsi + 0x30], dil
je 0x1800fa33c
mov edi, dword [rsi + 0x2c]
jmp 0x1800fa33c
mov ecx, r14d
call fcn.1800f57cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800fa33c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800fa33c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800fa335
mov eax, dword [rsi + 0x2c]
jmp 0x1800fa33a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800ec364
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800fb240
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800fb268
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800fb268
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc54aad0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc54bbb0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc54b4d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc56e108]
test eax, eax
je 0x2fc54b56a
lea rax, [0x2fc56e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc56e110]
mov qword [rbp - 8], rax
jmp 0x2fc54b54e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc54b542
cmp qword [rbp - 0x10], 0
je 0x2fc54b542
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc54b508
lea rax, [0x2fc56e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc54b56b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc54b670
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc54b698
mov eax, 0
jmp 0x2fc54b6e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc54b6c1
mov eax, 0
jmp 0x2fc54b6e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc54b6e1
mov eax, 0
jmp 0x2fc54b6e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc54b6ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc54b76a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc54b761
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc54b761
mov rax, qword [rbp - 8]
jmp 0x2fc54b77f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc54b734
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005a78
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140053690], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140005ad8
movdqa xmm0, xmmword [0x140038bf0]
movdqa xmm1, xmmword [0x140038be0]
movdqa xmmword [0x14004a240], xmm0
movdqa xmm0, xmmword [0x140038bc0]
movdqa xmmword [0x14004a250], xmm1
movdqa xmm1, xmmword [0x140038bd0]
movdqa xmmword [0x14004a260], xmm0
movdqa xmmword [0x14004a270], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140025010
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140038ba0]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x140005af4
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 0x14000638c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [0x14004a280]
mov r10, r8
mov rbx, rdx
mov r11d, ecx
test r8, r8
je 0x1400063d5
test bl, 7
je 0x1400063d5
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x1400063b0
cmp r10, 8
jb 0x14000647f
mov rdi, r10
shr rdi, 3
imul rax, rdi, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
mov r8d, dword [rsi + rdx*4]
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r11d
shr eax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1000]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8d, dword [rsi + rcx*4 + 0x1400]
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 0x1400063ed
test r10, r10
je 0x1400064a4
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x140006484
mov rbx, qword [rsp + 8]
mov eax, r11d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

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

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x1400064ff
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 0x1400064cd
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x1400064c4
ret
Function at 0x140006668
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rdi
sub rsp, 0x70
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov ebp, 0x20
jne 0x1400066ea
and qword [r11 - 0x38], 0
lea r9d, [rbp - 0x1c]
mov eax, dword [rcx + 4]
lea r8, [r11 + 8]
and qword [r11 - 0x40], 0
mov edx, ebp
and qword [r11 - 0x48], 0
mov rcx, rdi
and qword [r11 - 0x50], 0
mov dword [r11 + 8], eax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x58], rax
call fcn.140006f6c
and dword [rbx + 4], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
movzx eax, byte [r9]
mov ecx, r8d
and ecx, 3
inc r8d
shl ecx, 3
inc r9
shl eax, cl
xor edx, eax
cmp r8d, ebp
jb 0x1400066cb
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140006734
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
and qword [rsp + 0x38], 0
lea r8, [rbx + 4]
and qword [rsp + 0x30], 0
mov r9, rbp
and qword [rsp + 0x28], 0
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140006f6c
mov r8, rbp
lea rdx, [rsp + 0x50]
lea rcx, [rbx + 4]
call fcn.1400251c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007250
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov rax, r8
mov r15, rdx
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
lea rcx, [rbp - 0x40]
mov rdx, rax
mov rbx, r9
cmovb r8, r9
call fcn.1400251c0
xor edi, edi
mov dword [rbp + rbx - 0x40], 0x1000000
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
lea r9, [rbx + 4]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x40]
mov qword [rsp + 0x28], rdi
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140006f6c
lea r13d, [rdi + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400251c0
mov eax, dword [rbp + 0x178]
lea rsi, [rbp - 0x80]
dec eax
mov byte [rbp + 0x178], dil
mov dword [rsp + 0x50], eax
lea r14d, [r13 - 0x1d]
mov rax, qword [rbp + 0x160]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x170]
mov byte [rbp + 0x160], dil
lea rdi, [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x54], 0x10
mov dword [rsp + 0x58], 0x10
cmp dword [rdi], 0
jbe 0x1400073d7
mov ebx, dword [rdi]
lea rax, [rbp + 0x178]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x60]
lea rax, [rbp + 0x30]
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, r12
lea rax, [rbp + 0x160]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140006f6c
mov r8, r13
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400251c0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax - 0x68]
movdqu xmm1, xmmword [rsp + rax + 0x60]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x78], xmm1
sub rcx, 1
jne 0x1400073ad
sub rbx, 1
jne 0x14000734e
mov rcx, qword [rsi]
lea rdx, [rbp - 0x68]
mov r8, r13
call fcn.1400251c0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x140007343
lea edx, [r14 + 0x44]
lea rcx, [rbp - 0x40]
call fcn.140010e40
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140010e40
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140010e40
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140010e40
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000a510
Capabilities:
Move file

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x4f60]
mov eax, 0x5060
call fcn.140024290
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5080], rbx
mov qword [rsp + 0x5088], rsi
mov qword [rsp + 0x5090], rdi
mov rbx, rcx
mov r15d, 0x800
mov r8d, r15d
lea rdx, [rbp + 0x2f60]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
lea edi, [r15 - 2]
cmp eax, edi
ja 0x14000a708
mov r8d, r15d
lea rdx, [rbp + 0x3f60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, edi
ja 0x14000a708
lea rcx, [rbp + 0x2f60]
call fcn.14000d51c
mov rsi, rax
lea rcx, [rbp + 0x3f60]
call fcn.14000d51c
mov rdi, rax
xor r14d, r14d
cmp word [rax], r14w
je 0x14000a708
mov rdx, rax
mov rcx, rsi
call fcn.140013e08
test eax, eax
je 0x14000a708
mov rcx, rbx
call fcn.14000d51c
mov rcx, rax
mov rdx, rdi
call fcn.140013e08
test eax, eax
jne 0x14000a708
movzx eax, r14w
mov word [rsp + 0x30], ax
mov edi, r14d
test ax, ax
jne 0x14000a65a
mov r8, r15
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140012128
lea rcx, [rsp + 0x30]
call fcn.14000d51c
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r15
call fcn.140004560
lea rcx, [rsp + 0x30]
call fcn.14000b550
test al, al
je 0x14000a641
mov eax, r14d
mov word [rsp + 0x30], ax
jmp 0x14000a646
movzx eax, word [rsp + 0x30]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000a5f5
test ax, ax
je 0x14000a708
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0x1f60]
call fcn.140012128
mov r8, r15
mov rdx, rsi
lea rcx, [rbp + 0x1f60]
call fcn.14000d5a8
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1f60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000a708
lea rcx, [rbp + 0xf30]
call fcn.14000a728
nop
mov dil, r14b
mov rcx, rbx
call fcn.14000b550
test al, al
jne 0x14000a6c8
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rbp + 0xf30]
call fcn.14000a858
mov dil, al
lea rdx, [rbp + 0x1f60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x14000a6f8
lea rcx, [rbp + 0xf30]
call fcn.14000a7f0
lea rcx, [rbp + 0xf30]
call fcn.14000a98c
nop
lea rcx, [rbp + 0xf30]
call fcn.14000a768
mov al, 1
jmp 0x14000a70a
xor al, al
lea r11, [rsp + 0x5060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000a9dc
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 0x14000aa09
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, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000aa88
mov rcx, rbx
call fcn.14000ab78
test al, al
je 0x14000aa4c
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x14000aa4c
mov rdx, rsi
mov rcx, rbx
call fcn.14000a9dc
jmp 0x14000aa8c
cmp dword [rbx + 0x14], 1
jne 0x14000aa61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000aa61
xor eax, eax
jmp 0x14000aa8c
cmp dword [rbx + 0x14], 0
jne 0x14000aa83
cmp rdi, 0x8000
jbe 0x14000aa83
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000aa83
mov r8d, 0x8000
jmp 0x14000aa3f
or eax, 0xffffffff
jmp 0x14000aa8c
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ad68
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor r8d, r8d
mov rdi, rcx
call fcn.14000adb0
test al, al
je 0x14000ada5
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.140024230]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b16c
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 0x14000b214
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 r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jne 0x14000b241
mov al, 1
jmp 0x14000b36a
cmp dword [rcx + 0x14], 1
jne 0x14000b256
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov r12d, 0x4000
and dword [rsp + 0x60], 0
xor dil, dil
cmp dword [rsi + 0x14], 0
je 0x14000b2b4
xor ebx, ebx
test rbp, rbp
je 0x14000b2df
mov eax, ebp
lea rdx, [rbx + r14]
sub eax, ebx
lea r9, [rsp + 0x60]
mov r8d, r12d
mov rcx, rbp
sub rcx, rbx
cmp rcx, r12
mov rcx, qword [rsi + 8]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete dil
test dil, dil
je 0x14000b2df
add rbx, r12
cmp rbx, rbp
jb 0x14000b271
jmp 0x14000b2d6
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x60]
and qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete dil
test dil, dil
jne 0x14000b363
cmp byte [rsi + 0x22], 0
je 0x14000b363
cmp dword [rsi + 0x14], 0
jne 0x14000b363
xor r8d, r8d
lea rdx, [rsi + 0x2c]
lea rcx, [0x14004c3c0]
call fcn.1400076b0
test al, al
je 0x14000b351
mov ecx, dword [rsp + 0x60]
mov eax, ecx
cmp rcx, rbp
jae 0x14000b25c
test ecx, ecx
je 0x14000b25c
mov rdi, qword [rsi]
mov rcx, qword [rdi + 0x28]
call qword [fcn.140024230]
mov rcx, rsi
call qword [rdi + 0x28]
mov ecx, dword [rsp + 0x60]
mov rbx, rax
sub rbx, rcx
mov rcx, qword [rdi + 0x20]
call qword [fcn.140024230]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rdi + 0x20]
jmp 0x14000b25c
lea r8, [rsi + 0x2c]
xor edx, edx
lea rcx, [0x14004c3c0]
call fcn.140007a08
mov byte [rsi + 0x10], 1
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret

Function at 0x14000b490
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140024290
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14000b4dc
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000cda0
test al, al
je 0x14000b4dc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x14000b4f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140024290
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x14000b53c
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000cda0
test al, al
je 0x14000b53c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret
Function at 0x14000b564
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140024290
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000b5ab
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000cda0
test al, al
je 0x14000b5ab
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x14000b5e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1020
call fcn.140024290
sub rsp, rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.14000d4f4
xor ebx, ebx
cmp word [rax], 0x20
je 0x14000b628
cmp word [rax], 0x2e
je 0x14000b628
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000b65d
mov rcx, rdi
call fcn.14000b564
cmp eax, 0xffffffff
jne 0x14000b670
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000cda0
test al, al
je 0x14000b670
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000b670
test sil, sil
je 0x14000b66c
mov edx, ebp
mov rcx, rdi
call fcn.14000b870
xor eax, eax
jmp 0x14000b682
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
setbe bl
lea eax, [rbx + 1]
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000b870
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.140024290
sub rsp, rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x14000b8c5
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000cda0
test al, al
je 0x14000b8c5
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea r11, [rsp + 0x1020]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret