joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x1400774e0]
sar r8, 3
cmp rdx, 7
jle 0x140047410
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x140047370
shl r8, 3
cmp r10, r8
jle 0x140047408
add r8, r9
lea rcx, [0x1400774e0]
add r9, r10
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x1400473f0
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x1400473de
Function at 0x14005a8e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movdqu xmm6, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm5, xmmword [rcx + 0x30]
movd xmm0, r8d
lea rax, [rdx - 0x40]
pxor xmm0, xmm6
cmp rax, 0x3f
jle 0x14005ab20
lea r8, [rdx - 0x80]
movdqu xmm4, xmmword [0x14008b390]
lea rax, [rcx + 0x40]
mov rdx, r8
and rdx, 0xffffffffffffffc0
lea rdx, [rcx + rdx + 0x80]
nop dword [rax]
movdqu xmm7, xmm3
movdqu xmm6, xmm2
movdqu xmm1, xmm5
add rax, 0x40
movdqu xmm8, xmm0
pclmulqdq xmm7, xmm4, 0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm8, xmm4, 0
pclmulqdq xmm5, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm3, xmm4, 0x11
pclmulqdq xmm2, xmm4, 0x11
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
movdqu xmm8, xmmword [rax - 0x40]
pxor xmm1, xmm5
movdqu xmm7, xmmword [rax - 0x30]
movdqu xmm6, xmmword [rax - 0x20]
movdqu xmm5, xmmword [rax - 0x10]
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
pxor xmm5, xmm1
cmp rax, rdx
jne 0x14005a940
mov rax, r8
shr rax, 6
lea rdx, [rax + 2]
shl rax, 6
mov r9, rax
mov rax, r8
shl rdx, 6
sub rax, r9
movdqu xmm1, xmmword [0x14008b380]
movdqu xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pclmulqdq xmm0, xmm1, 0x11
pxor xmm0, xmm4
pxor xmm3, xmm0
movdqu xmm0, xmm3
pclmulqdq xmm3, xmm1, 0x11
pclmulqdq xmm0, xmm1, 0
pxor xmm3, xmm0
pxor xmm2, xmm3
movdqu xmm3, xmm2
pclmulqdq xmm2, xmm1, 0x11
pclmulqdq xmm3, xmm1, 0
movdqu xmm0, xmm2
pxor xmm0, xmm3
pxor xmm0, xmm5
cmp rax, 0xf
jle 0x14005aaa1
movdqu xmm2, xmm0
movdqu xmm7, xmmword [rcx + rdx]
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm7
cmp rax, 0x1f
jle 0x14005aaa1
movdqu xmm2, xmm0
movdqu xmm7, xmmword [rcx + rdx + 0x10]
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm7
cmp rax, 0x2f
jle 0x14005aaa1
movdqu xmm2, xmm0
movdqu xmm3, xmmword [rcx + rdx + 0x20]
pclmulqdq xmm0, xmm1, 0x11
pclmulqdq xmm2, xmm1, 0
pxor xmm0, xmm2
pxor xmm0, xmm3
movdqu xmm2, xmm0
psrldq xmm0, 8
movups xmm6, xmmword [rsp]
movdqu xmm3, xmmword [0x14008b3c0]
pclmulqdq xmm2, xmm1, 0x10
movups xmm7, xmmword [rsp + 0x10]
movups xmm8, xmmword [rsp + 0x20]
pxor xmm2, xmm0
movdqu xmm1, xmm2
movdqu xmm0, xmm2
movdqu xmm2, xmmword [0x14008b3a0]
psrldq xmm0, 4
pand xmm1, xmm2
pclmulqdq xmm1, xmmword [0x14008b3b0], 0
pxor xmm1, xmm0
movdqu xmm0, xmm1
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0x10
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
add rsp, 0x38
ret
mov edx, 0x40
jmp 0x14005a9e2
Function at 0x14005ab30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x14008b3e0]
sar r8, 3
cmp rdx, 7
jle 0x14005ac00
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x14005ab60
shl r8, 3
cmp r10, r8
jle 0x14005abf8
add r8, r9
lea rcx, [0x14008b3e0]
add r9, r10
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x14005abe0
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x14005abce
Function at 0x140063fa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.14006dbd0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call fcn.14006dbd0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140064010
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1400b20b4]
mov rbx, rcx
test esi, esi
jle 0x140064140
mov rax, qword [0x1400b20b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14006405b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400640e3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140064040
mov rcx, rbx
call fcn.140064ac0
mov rdi, rax
test rax, rax
je 0x140064162
mov rax, qword [0x1400b20b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140064c00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400b20b8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140064147
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400640dc
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400640f0
add dword [0x1400b20b4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400b20b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400640dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140063fa0
nop word [rax + rax]
xor esi, esi
jmp 0x140064068
mov rax, qword [0x1400b20b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140063fa0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140063fa0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400646f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1400b2120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b2100]
test rbx, rbx
je 0x140064755
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14006474c
test eax, eax
jne 0x14006474c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140064730
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140064ac0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140090de0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140064ae0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140064ae8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140064ae0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140064b3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140064b34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140064ae0
add rax, 0x28
cmp rax, r9
jne 0x140064b20
xor eax, eax
ret

Function at 0x140064b40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140090de0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140064b5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140064b68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140064b5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140064c00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140090de0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140064c1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140064c28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1412eb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1412eb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1412eb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412eb06f
add dl, dl
jne 0x1412eb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412eb0f6
xor eax, eax
add dl, dl
jne 0x1412eb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412eb1ad
add dl, dl
jne 0x1412eb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412eb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412eb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412eb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412eb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1412eb07e
mov eax, 1
add dl, dl
jne 0x1412eb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412eb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412eb0fb
sub eax, ebx
mov ebx, 1
jne 0x1412eb14c
mov ecx, 1
add dl, dl
jne 0x1412eb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1412eb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412eb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412eb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1412eb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1412eb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412eb15d
cmp eax, 0x7d00
jae 0x1412eb19b
cmp eax, 0x500
jb 0x1412eb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412eb07e
cmp eax, 0x7f
ja 0x1412eb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412eb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412eb1d2
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 0x1412eb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov dword [rsp + 0x80], WSASetLastError
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x100]
call fcn.140018fc0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001e00
lea rdx, str.CreateProcess_failed:
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140010b50
mov qword [rsp + 0x60], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x60]
call fcn.140010d80
nop
jmp 0x140001e17
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0xf0
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140018fe0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001fac
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x140001fac
mov dword [rsp + 0x24], 1
jmp 0x140001fb4
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140018fe0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14000200c
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14000200c
mov dword [rsp + 0x24], 1
jmp 0x140002014
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x140002030
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x1400ed980]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14000206b
xor al, al
jmp 0x1400020ce
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400020c1
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x290]
call fcn.140006920
movzx eax, al
test eax, eax
je 0x1400020ae
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400020ce
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140002086
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008a780
add rsp, 0x288
ret

Function at 0x140002540
Capabilities:
Delete file

Disassembly:
sub rsp, 0x48
lea rcx, [0x1400bd890]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140002581
lea rdx, [0x1400bd8a8]
lea rcx, [0x1400ef610]
call fcn.140006160
mov qword [rsp + 0x28], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x28]
call fcn.140010d80
nop
jmp 0x1400025c8
lea rdx, [0x1400bd8d0]
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140010b50
mov qword [rsp + 0x38], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x38]
call fcn.140010d80
nop
add rsp, 0x48
ret

Function at 0x1400025e0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x1400bd8e8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400026df
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
je 0x14000268c
lea rdx, [0x1400bd918]
lea rcx, [0x1400ef610]
call fcn.140006160
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.140010b50
lea rdx, [0x1400bd900]
mov rcx, rax
call fcn.140006160
mov qword [rsp + 0x58], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x58]
call fcn.140010d80
nop
jmp 0x1400026d3
lea rdx, [0x1400bd928]
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140010b50
mov qword [rsp + 0x68], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x68]
call fcn.140010d80
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x78
ret
Function at 0x1400026f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x108
mov rax, qword [0x1400ed980]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, str.example.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140002834
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x80
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400027e1
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x80
jae 0x140002789
jmp 0x14000278f
call fcn.14008a354
nop
mov rax, qword [rsp + 0x50]
mov byte [rsp + rax + 0x70], 0
lea rdx, [0x1400bd978]
lea rcx, [0x1400ef610]
call fcn.140006160
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140006160
lea rdx, str.__ReadFile_.
mov rcx, rax
call fcn.140006160
mov qword [rsp + 0x58], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x58]
call fcn.140010d80
nop
jmp 0x140002828
lea rdx, [0x1400bd990]
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140010b50
mov qword [rsp + 0x68], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x68]
call fcn.140010d80
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14008a780
add rsp, 0x108
ret

Function at 0x140002860
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x1400bd9a8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x14000298d
lea rax, [0x1400bd9c0]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400b9730
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000293a
lea rdx, [0x1400bd9f0]
lea rcx, [0x1400ef610]
call fcn.140006160
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140010b50
lea rdx, [0x1400bd9d0]
mov rcx, rax
call fcn.140006160
mov qword [rsp + 0x68], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x68]
call fcn.140010d80
nop
jmp 0x140002981
lea rdx, [0x1400bda00]
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140010b50
mov qword [rsp + 0x78], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x78]
call fcn.140010d80
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x88
ret
Function at 0x1400029a0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
xor edx, edx
lea rcx, [0x1400bda18]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400029e3
lea rdx, [0x1400bda38]
lea rcx, [0x1400ef610]
call fcn.140006160
mov qword [rsp + 0x28], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x28]
call fcn.140010d80
nop
jmp 0x140002a2a
lea rdx, [0x1400bda68]
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140010b50
mov qword [rsp + 0x38], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x38]
call fcn.140010d80
nop
add rsp, 0x48
ret

Function at 0x140002a40
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x48
lea rcx, str.NewDirectory
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140002a81
lea rdx, [0x1400bdaa8]
lea rcx, [0x1400ef610]
call fcn.140006160
mov qword [rsp + 0x28], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x28]
call fcn.140010d80
nop
jmp 0x140002ac8
lea rdx, [0x1400bdad8]
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140010b50
mov qword [rsp + 0x38], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x38]
call fcn.140010d80
nop
add rsp, 0x48
ret

Function at 0x140002ae0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x268
mov rax, qword [0x1400ed980]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140002b5c
lea rdx, [0x1400bdb28]
lea rcx, [0x1400ef850]
call fcn.140006510
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140006510
lea rdx, str.__GetCurrentDirectory_.
mov rcx, rax
call fcn.140006510
mov qword [rsp + 0x28], rax
lea rdx, [0x14000c260]
mov rcx, qword [rsp + 0x28]
call fcn.140010d80
nop
jmp 0x140002ba3
lea rdx, [0x1400bdb58]
lea rcx, [0x1400ef730]
call fcn.140006160
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.140010b50
mov qword [rsp + 0x38], rax
lea rdx, [0x14000c200]
mov rcx, qword [rsp + 0x38]
call fcn.140010d80
nop
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008a780
add rsp, 0x268
ret