joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140f70058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140f701df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f70089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f7006f
add dl, dl
jne 0x140f70096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f700f6
xor eax, eax
add dl, dl
jne 0x140f700a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f701ad
add dl, dl
jne 0x140f700b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f700c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f700d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f700dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f700ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f7007e
mov eax, 1
add dl, dl
jne 0x140f70106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f70113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f700fb
sub eax, ebx
mov ebx, 1
jne 0x140f7014c
mov ecx, 1
add dl, dl
jne 0x140f7012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f7013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f70123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f70168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f70175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f7015d
cmp eax, 0x7d00
jae 0x140f7019b
cmp eax, 0x500
jb 0x140f70196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7007e
cmp eax, 0x7f
ja 0x140f7019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f701d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f7007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rsi, rcx
mov ebp, dword [r8 + 0x24]
add r10, rcx
mov ebx, dword [r8 + 0x18]
add rbp, rcx
test ebx, ebx
je 0x140001153
nop dword [rax]
mov eax, dword [r10]
mov r8, rdi
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001143
inc rax
test ecx, ecx
jne 0x140001130
test edx, edx
je 0x14000116a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140001120
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x140001155
Function at 0x140001180
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
call fcn.1400013a0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1400011d3
lea rcx, str.____get_ntdll_failed_n
call fcn.140001070
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400019d0
add rsp, 0x30
pop rdi
ret
lea rdx, str.NtTraceEvent
mov qword [rsp + 0x40], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtTraceEvent
mov rcx, rdi
mov rbx, rax
call fcn.1400010d0
mov r8, rax
lea rcx, str.___realNtTraceEvent:__p_t_selfNtTraceEvent:__p_n
mov rdx, rbx
call fcn.140001070
lea rcx, str.D:codec_buildRelease_testdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140001237
lea rcx, str.____load_testdll_failed_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x14000136f
lea rdx, [0x1400033fc]
mov qword [rsp + 0x48], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400033fc]
mov rcx, rdi
mov rbx, rax
call fcn.1400010d0
mov r8, rax
lea rcx, str.___realAdd:__p_t_selfAdd:__p_n
mov rdx, rbx
call fcn.140001070
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
test rax, rax
je 0x140001387
mov edx, dword [rsp + 0x20]
cmp edx, 3
jl 0x140001387
lea rcx, str.___argc:__d_n
call fcn.140001070
cmp dword [rsp + 0x20], ebx
jle 0x1400012dd
mov rdi, rsi
nop dword [rax + rax]
mov r8, qword [rdi]
lea rcx, str.___argv__d_:__s_n
mov edx, ebx
call fcn.140001010
inc ebx
lea rdi, [rdi + 8]
cmp ebx, dword [rsp + 0x20]
jl 0x1400012c0
mov rdx, qword [rsi + 0x10]
lea r8, str.63d31762a50f937b535746c9e31fa33e
mov rcx, 0xffffffffffffffff
nop
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140001312
add rcx, 2
cmp rcx, 0x21
je 0x14000131e
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x1400012f0
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rsi + 8]
lea r8, str.thisistest
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r8 + rax*2 + 2]
jne 0x140001312
add rax, 2
cmp rax, 0xb
je 0x140001354
movzx ecx, word [rdx + rax*2]
cmp cx, word [r8 + rax*2]
je 0x140001330
jmp 0x140001312
lea rcx, str.___check_env_success_n
call fcn.140001070
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140001312
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400019d0
add rsp, 0x30
pop rdi
ret
lea rcx, str.____get_argv_failed_n
call fcn.140001070
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140002290
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400022da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400022da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400022da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400022da
cmp dword [rcx + 0x84], 0xe
jbe 0x1400022da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400022dc
xor al, al
add rsp, 0x28
ret
Function at 0x140005b0c
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140053670], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140005b6c
movdqa xmm0, xmmword [0x140039a80]
movdqa xmm1, xmmword [0x140039a70]
movdqa xmmword [0x14004a3e0], xmm0
movdqa xmm0, xmmword [0x140039a50]
movdqa xmmword [0x14004a3f0], xmm1
movdqa xmm1, xmmword [0x140039a60]
movdqa xmmword [0x14004a400], xmm0
movdqa xmmword [0x14004a410], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140024d90
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140039a30]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x140005b88
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 0x140006390
Capabilities:
Encode data using xor

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

Function at 0x140006568
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x1400065f4
and qword [r11 - 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x40], 0
lea r8, [r11 + 8]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x48], 0
mov rcx, rsi
and qword [r11 - 0x50], 0
mov dword [r11 + 8], eax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x58], rax
call fcn.140006e74
xor r9d, r9d
lea r10, [rsp + 0x50]
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 0x1400065d2
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000663c
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
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.140006e74
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400250c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140007158
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.1400250c0
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.140006e74
lea r13d, [rdi + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400250c0
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 0x1400072df
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.140006e74
mov r8, r13
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400250c0
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 0x1400072b5
sub rbx, 1
jne 0x140007256
mov rcx, qword [rsi]
lea rdx, [rbp - 0x68]
mov r8, r13
call fcn.1400250c0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000724b
lea edx, [r14 + 0x44]
lea rcx, [rbp - 0x40]
call fcn.1400111d0
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.1400111d0
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.1400111d0
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.1400111d0
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 0x14000a384
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x4f78]
mov eax, 0x5060
call fcn.140023d60
sub rsp, rax
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 0x14000a568
mov r8d, r15d
lea rdx, [rbp + 0x3f60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, edi
ja 0x14000a568
lea rcx, [rbp + 0x2f60]
call fcn.14000d924
mov rsi, rax
lea rcx, [rbp + 0x3f60]
call fcn.14000d924
mov rdi, rax
xor r14d, r14d
cmp word [rax], r14w
je 0x14000a568
mov rdx, rax
mov rcx, rsi
call fcn.1400141c0
test eax, eax
je 0x14000a568
mov rcx, rbx
call fcn.14000d924
mov rcx, rax
mov rdx, rdi
call fcn.1400141c0
test eax, eax
jne 0x14000a568
movzx eax, r14w
mov word [rsp + 0x20], ax
mov edi, r14d
test ax, ax
jne 0x14000a4ba
mov r8, r15
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400124e0
lea rcx, [rsp + 0x20]
call fcn.14000d924
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r15
call fcn.1400045e8
lea rcx, [rsp + 0x20]
call fcn.14000b3cc
test al, al
je 0x14000a4a1
mov eax, r14d
mov word [rsp + 0x20], ax
jmp 0x14000a4a6
movzx eax, word [rsp + 0x20]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000a455
test ax, ax
je 0x14000a568
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0x1f60]
call fcn.1400124e0
mov r8, r15
mov rdx, rsi
lea rcx, [rbp + 0x1f60]
call fcn.14000d9b0
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x1f60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000a568
lea rcx, [rbp + 0xf20]
call fcn.14000a588
nop
mov dil, r14b
mov rcx, rbx
call fcn.14000b3cc
test al, al
jne 0x14000a528
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rbp + 0xf20]
call fcn.14000a6b8
mov dil, al
lea rdx, [rbp + 0x1f60]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x14000a558
lea rcx, [rbp + 0xf20]
call fcn.14000a650
lea rcx, [rbp + 0xf20]
call fcn.14000a7e0
nop
lea rcx, [rbp + 0xf20]
call fcn.14000a5d0
mov al, 1
jmp 0x14000a56a
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 0x14000a7e0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000a817
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14000a803
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140039508]
cmp byte [rbx + 0x21], 0
je 0x14000a817
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.14000b36c
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000a820
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 0x14000a852
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 0x14000a8cf
mov rcx, rbx
call fcn.14000a988
test al, al
je 0x14000a895
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x14000a895
mov rdx, rbp
mov rcx, rbx
call fcn.14000a820
jmp 0x14000a8d3
cmp dword [rbx + 0x14], 1
jne 0x14000a8aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000a8aa
xor eax, eax
jmp 0x14000a8d3
cmp dword [rbx + 0x14], 0
jne 0x14000a8ca
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000a8ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000a8ca
mov r8d, edi
jmp 0x14000a888
or eax, 0xffffffff
jmp 0x14000a8d3
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 0x14000ab64
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000aba0
test al, al
je 0x14000ab98
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 [0x140039508]
add rsp, 0x20
pop rbx
ret

Function at 0x14000b030
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 0x14000b0b4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x14000b0df
mov al, 1
jmp 0x14000b1f7
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x14000b0f7
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
and dword [rsp + 0x70], 0
xor bpl, bpl
cmp dword [rdi + 0x14], 0
je 0x14000b151
xor ebx, ebx
test rsi, rsi
je 0x14000b177
mov eax, esi
lea rdx, [rbx + r15]
sub eax, ebx
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rcx, rsi
sub rcx, rbx
cmp rcx, r13
mov rcx, qword [r14]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
jne 0x14000b172
add rbx, r13
cmp rbx, rsi
jb 0x14000b112
jmp 0x14000b172
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
jne 0x14000b1f0
cmp byte [rdi + 0x22], 0
je 0x14000b1f0
cmp dword [rdi + 0x14], 0
jne 0x14000b1f0
xor r8d, r8d
lea rdx, [rdi + 0x3a]
lea rcx, [0x14004c510]
call fcn.1400075ac
test al, al
je 0x14000b1de
mov ecx, dword [rsp + 0x70]
cmp rcx, rsi
jae 0x14000b0fd
test ecx, ecx
je 0x14000b0fd
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140039508]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x140039508]
jmp 0x14000b0fd
lea r8, [rdi + 0x3a]
xor edx, edx
lea rcx, [0x14004c510]
call fcn.1400079f4
mov byte [rdi + 0x10], 1
mov al, bpl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret

Function at 0x14000b30c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140023d60
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b358
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000d01c
test al, al
je 0x14000b358
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 0x14000b36c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140023d60
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b3b8
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000d01c
test al, al
je 0x14000b3b8
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 0x14000b3e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140023d60
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000b427
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000d01c
test al, al
je 0x14000b427
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 0x14000b458
Capabilities:
Check if file exists
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.140023d60
sub rsp, rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.14000d8fc
xor ebx, ebx
cmp word [rax], 0x2e
je 0x14000b4a0
cmp word [rax], 0x20
je 0x14000b4a0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000b4d5
mov rcx, rdi
call fcn.14000b3e0
cmp eax, 0xffffffff
jne 0x14000b4e8
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000d01c
test al, al
je 0x14000b4e8
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000b4e8
test sil, sil
je 0x14000b4e4
mov edx, ebp
mov rcx, rdi
call fcn.14000b6f0
xor eax, eax
jmp 0x14000b503
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000b4fe
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14000b503
mov eax, 2
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 0x14000b6f0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.140023d60
sub rsp, rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b745
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000d01c
test al, al
je 0x14000b745
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
Function at 0x14000b918
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x1178]
mov eax, 0x1270
call fcn.140023d60
sub rsp, rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000b9c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000b9e0
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.14000d01c
test al, al
je 0x14000b99d
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000b9e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14000b9b7
cmp eax, 0x13
je 0x14000b9b7
xor al, al
jmp 0x14000b9b9
mov al, 1
mov byte [rdi + 0x1044], al
jmp 0x14000ba75
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000b9e0
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14000b9b9
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.1400124e0
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.14000d9b0
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1000], rcx
lea rcx, [rdi + 0x1010]
mov qword [rdi + 0x1038], rax
call fcn.14001376c
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14001376c
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14001376c
and dword [rdi + 0x1040], 0
lea r11, [rsp + 0x1270]
mov rsi, qword [r11 + 0x18]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000c224
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
xor bl, bl
cmp byte [0x14004c528], bl
jne 0x14000c277
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x14000c266
jne 0x14000c268
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14000c268
call fcn.14000c288
test al, al
jne 0x14000c268
mov bl, 1
mov byte [0x14004c529], bl
mov byte [0x14004c528], 1
jmp 0x14000c27d
mov bl, byte [0x14004c529]
mov al, bl
add rsp, 0x140
pop rbx
ret