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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.1400d39ce]
mov rdi, rax
test rax, rax
jne 0x1400d1e32
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d1e79
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d1ed2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400d1e90
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d1f13
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e5562]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e5563]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d1ee0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d2590
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400d2e5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d2ea6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d2ea6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d2ea6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d2ea6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d2ea6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d2ea8
xor al, al
add rsp, 0x28
ret
Function at 0x1400d32a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400d3324
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400d3324
dec r8
sub rdx, 1
jne 0x1400d330a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140114540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14011456d
xor al, al
jmp 0x1401146cf
mov rax, qword [0x1401346c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401346c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401346d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401346d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401346e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401346e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401346f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401346f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140134700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1401146c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140114619
mov r11d, 2
jmp 0x14011463d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140114633
mov r11d, 1
jmp 0x14011463d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1401146e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140114682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14011469a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1401146aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1401146b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140114600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1401146ca
Function at 0x1400031a6
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x36
syscall
ret

Function at 0x14000ce68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000cc58
Function at 0x140012ff8
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 0x140013028
xor eax, eax
jmp 0x1400130eb
mov rbp, rbx
cmp word [rax], si
je 0x14001304d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013034
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013030
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.140012f48
movsxd r14, eax
test eax, eax
jne 0x14001308b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013021
mov rcx, r14
call fcn.14000e52c
mov rdi, rax
test rax, rax
jne 0x1400130a4
xor ecx, ecx
call fcn.14000d8b8
jmp 0x140013080
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.140012f48
test eax, eax
jne 0x1400130d5
mov rcx, rdi
call fcn.14000d8b8
jmp 0x1400130df
xor ecx, ecx
call fcn.14000d8b8
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 0x140018a5c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000bcdc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140018ae6
cmp byte [rbp - 0x21], r15b
je 0x140018ae1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018b1c
call fcn.14000db0c
test eax, eax
jne 0x140018b08
cmp byte [rbp - 0x21], r15b
je 0x140018b00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018b1c
cmp byte [rbp - 0x21], r15b
je 0x140018b19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010e9c
test eax, eax
jne 0x140018bbc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bcdc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140018b5b
cmp byte [rbp - 0x21], r15b
je 0x140018b90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018b90
call fcn.14000db0c
test eax, eax
jne 0x140018b7c
cmp byte [rbp - 0x21], r15b
je 0x140018b75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018b90
cmp byte [rbp - 0x21], r15b
je 0x140018b8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010e9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018bbc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140018bbf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018bcd
mov rcx, rdi
call fcn.14000d8b8
cmp byte [rbp + 0x3f], r15b
je 0x140018bdc
mov rcx, qword [rbp + 0x27]
call fcn.14000d8b8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001019
Capabilities:
Terminate process

Disassembly:
jmp 0x1400ef6c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14000119a
test al, al
je 0x1400ef587
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140001118
mov bl, al
mov ecx, dword [0x1400f67e8]
cmp ecx, 1
je 0x1400ef592
test ecx, ecx
jne 0x1400ef4bd
mov dword [0x1400f67e8], 1
lea rdx, [0x1400f4660]
lea rcx, [0x1400f4330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x1400ef49e
mov eax, 0xff
jmp 0x1400ef577
lea rdx, [0x1400f4220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x1400f67e8], 2
jmp 0x1400ef4c5
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011d6
call fcn.1400010eb
mov rbx, rax
cmp qword [rax], 0
je 0x1400ef4f8
mov rcx, rax
call fcn.140001145
test al, al
je 0x1400ef4f8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1400f9010]
call fcn.140001113
mov rbx, rax
cmp qword [rax], 0
je 0x1400ef51a
mov rcx, rax
call fcn.140001145
test al, al
je 0x1400ef51a
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rdi, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov rbx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov r8, rax
mov rdx, rdi
mov ecx, dword [rbx]
call fcn.1400010b9
mov ebx, eax
call fcn.140001181
test al, al
je 0x1400ef59c
test sil, sil
jne 0x1400ef551
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.140001186
mov eax, ebx
jmp 0x1400ef577
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140001140
nop
mov ecx, 7
call fcn.140001140
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.1400011b3
add rsp, 0x28
jmp 0x1400ef430

Function at 0x140001041
Capabilities:
Terminate process

Disassembly:
jmp 0x1400ef6d8
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001145
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1400eff94
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400f0022
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400f0022
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f0022
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400f0009
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400f0003
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400f000b
add rdx, 0x28
jmp 0x1400effe8
xor edx, edx
test rdx, rdx
jne 0x1400f0014
xor al, al
jmp 0x1400f0028
cmp dword [rdx + 0x24], 0
jge 0x1400f001e
xor al, al
jmp 0x1400f0028
mov al, 1
jmp 0x1400f0028
xor al, al
jmp 0x1400f0028
add rsp, 0x18
ret

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

Disassembly:
jmp 0x1400ef090
xor r8d, r8d
mov r9d, edx
mov r10, rcx
test edx, edx
jle 0x1400ef0e4
lea r11, str.Mo.wAYtKXiWz
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x2aaaaaab
lea r10, [r10 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
inc r8d
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
movzx eax, byte [rcx + r11]
xor byte [r10 - 1], al
cmp r8d, r9d
jl 0x1400ef0b0
mov eax, r9d
ret

Function at 0x140001181
Capabilities:
Parse pe header

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

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

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

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x1400017a7
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
test cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140001775
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x14000176c
ret

Function at 0x140002264
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000229b
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140002287
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002e478]
cmp byte [rbx + 0x21], 0
je 0x14000229b
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.140002d6c
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400022a4
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 0x1400022d6
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 0x140002353
mov rcx, rbx
call fcn.1400023e0
test al, al
je 0x140002319
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140002319
mov rdx, rbp
mov rcx, rbx
call fcn.1400022a4
jmp 0x140002357
cmp dword [rbx + 0x14], 1
jne 0x14000232e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000232e
xor eax, eax
jmp 0x140002357
cmp dword [rbx + 0x14], 0
jne 0x14000234e
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000234e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000234e
mov r8d, edi
jmp 0x14000230c
or eax, 0xffffffff
jmp 0x140002357
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 0x140002ac0
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 0x140002adc
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 0x140002b07
mov al, 1
jmp 0x140002c1f
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x140002b1f
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 0x140002b79
xor ebx, ebx
test rsi, rsi
je 0x140002b9f
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 0x140002b9a
add rbx, r13
cmp rbx, rsi
jb 0x140002b3a
jmp 0x140002b9a
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 0x140002c18
cmp byte [rdi + 0x22], 0
je 0x140002c18
cmp dword [rdi + 0x14], 0
jne 0x140002c18
xor r8d, r8d
lea rdx, [rdi + 0x3a]
lea rcx, [0x140065260]
call fcn.140001ab8
test al, al
je 0x140002c06
mov ecx, dword [rsp + 0x70]
cmp rcx, rsi
jae 0x140002b25
test ecx, ecx
je 0x140002b25
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x14002e478]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x14002e478]
jmp 0x140002b25
lea r8, [rdi + 0x3a]
xor edx, edx
lea rcx, [0x140065260]
call fcn.140001f90
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 0x140002d6c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140019560
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140002dca
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003f30
test al, al
je 0x140002dca
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140019520
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140002e04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140019560
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140002e5d
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003f30
test al, al
je 0x140002e5d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140019520
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x140002ea4
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov eax, 0x1030
call fcn.140019560
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.140004310
xor ebx, ebx
cmp word [rax], 0x2e
je 0x140002ef6
cmp word [rax], 0x20
je 0x140002ef6
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002f2b
mov rcx, rdi
call fcn.140002e04
cmp eax, 0xffffffff
jne 0x140002f3e
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003f30
test al, al
je 0x140002f3e
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002f3e
test sil, sil
je 0x140002f3a
mov edx, ebp
mov rcx, rdi
call fcn.14000314c
xor eax, eax
jmp 0x140002f59
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140002f54
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140002f59
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140019520
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1030
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000314c
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.140019560
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x1400031b3
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140003f30
test al, al
je 0x1400031b3
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140019520
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400033ec
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.140019560
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000349d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400034b9
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.140003f30
test al, al
je 0x140003476
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400034b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140003490
cmp eax, 0x13
je 0x140003490
xor al, al
jmp 0x140003492
mov al, 1
mov byte [rdi + 0x1044], al
jmp 0x14000354e
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400034b9
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x140003492
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140007d74
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.140004440
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.1400089e0
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.1400089e0
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.1400089e0
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.140019520
add rsp, 0x1280
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret