joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180086ad0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
cmp byte [rcx + 8], 0
je 0x180086c5e
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180086c5e
mov rsi, qword [0x1800ebad8]
cmp qword [rsi + 8], 0
je 0x180086c5e
mov rbx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x14
lea rdx, str.rightClickDelayTimer
lea rcx, [rsp + 0x20]
call fcn.1800634a0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x1800eb978]
call fcn.18006cda0
mov rdx, qword [rbx]
mov r9, qword [rdx + 0x320]
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, rbx
call r9
mov ebx, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x180086ba8
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180086ba3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180086ba3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008ffe0
cmp ebx, 4
jne 0x180086c5e
mov rsi, qword [0x1800ebad8]
mov edi, dword [rdi + 0x10]
cmp qword [rsi + 8], 0
je 0x180086c5e
mov rbx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x14
lea rdx, str.rightClickDelayTimer
lea rcx, [rsp + 0x20]
call fcn.1800634a0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x1800eb978]
call fcn.18006cda0
mov r8, qword [rbx]
mov r10, qword [r8 + 0x368]
mov r9d, edi
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, rbx
call r10
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x180086c5e
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180086c59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180086c59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008ffe0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18008f630
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800ea010]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.180086920
call fcn.18008e290
mov rbx, qword [0x1800ebad8]
test rbx, rbx
je 0x18008f670
mov rcx, rbx
call fcn.1800674b0
mov edx, 0xa8
mov rcx, rbx
call fcn.18008ffe0
call fcn.180063ad0
cmp qword [0x1800eb6e8], 0
je 0x18008f69c
lea r8, [0x1800eb6e8]
lea rdx, [rsp + 0x40]
call fcn.180073470
mov rcx, qword [rax]
add rcx, 0x18
call fcn.180070c20
mov rbx, qword [0x1800eb718]
test rbx, rbx
je 0x18008f6bd
mov rcx, rbx
call fcn.180071510
mov edx, 0x10
mov rcx, rbx
call fcn.18008ffe0
mov rcx, qword [0x1800eb710]
test rcx, rcx
je 0x18008f6d5
mov rax, qword [rcx]
mov rdx, qword [rax + 0x3f0]
call rdx
mov byte [0x1800eb709], 0
mov rdx, qword [0x1800eb5c8]
mov rcx, qword [0x1800eb5d0]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
call fcn.18003ef80
call fcn.1800404d0
call fcn.1800087e0
mov r8, qword [0x1800eb5d8]
mov edx, 0xfffffffc
mov rcx, qword [0x1800eb700]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rdx, qword [0x1800eb5f8]
mov rcx, qword [0x1800eb5d0]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov rcx, qword [0x1800eb5c8]
call qword [sym.imp.OPENGL32.dll_wglDeleteContext]
mov rcx, qword [0x1800eb5e0]
test rcx, rcx
je 0x18008f74a
call fcn.180069ba0
mov rcx, qword [0x1800eb698]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x1800eb6b8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x1800eb6b0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rcx, qword [0x1800eb6c0]
test rcx, rcx
je 0x18008f788
call fcn.180069ba0
mov ecx, 0x10
call fcn.180090058
mov rcx, qword [0x1800eb738]
mov qword [rax], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18008f850]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18008f81c
cmp dword [rsp + 0x38], 0
je 0x18008f810
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18008f810
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18008f910
add rsp, 0x60
pop rbx
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140001000
Capabilities:
Encrypt data using aes
Inspect section memory permissions
Reference aes constants

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8, rdx
mov r9d, 4
mov dword [rsp], 0x1000000
mov r11, r8
mov dword [rsp + 4], 0x2000000
mov dword [rsp + 8], 0x4000000
mov dword [rsp + 0xc], 0x8000000
mov dword [rsp + 0x10], 0x10000000
mov dword [rsp + 0x14], 0x20000000
sub r11, rcx
mov dword [rsp + 0x18], 0x40000000
mov dword [rsp + 0x1c], 0x80000000
mov dword [rsp + 0x20], 0x1b000000
mov dword [rsp + 0x24], 0x36000000
mov dword [rsp + 0x28], 0x6c000000
mov dword [rsp + 0x2c], 0xd8000000
mov dword [rsp + 0x30], 0xab000000
mov dword [rsp + 0x34], 0x4d000000
mov dword [rsp + 0x38], 0x9a000000
lea rdx, [rcx + 2]
mov r10d, r9d
movzx eax, byte [rdx - 1]
movzx ecx, byte [rdx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
mov dword [r11 + rdx - 2], ecx
add rdx, r9
dec r10
jne 0x1400010a0
lea r11, [0x140012d50]
mov r10d, dword [r8 + 0xc]
mov eax, r9d
and eax, 0x80000003
jge 0x1400010e7
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x14000118e
rol r10d, 8
mov edx, r10d
mov ecx, r10d
mov eax, r10d
shr rax, 0x10
shr rcx, 0x14
and eax, 0xf
and ecx, 0xf
shl rcx, 4
add rcx, rax
mov eax, edx
movzx r10d, byte [rcx + r11]
shr rax, 8
mov ecx, edx
and eax, 0xf
shr rcx, 0xc
shl r10d, 0x10
and ecx, 0xf
shl rcx, 4
add rcx, rax
movzx eax, byte [rcx + r11]
mov ecx, edx
shl eax, 8
shr rcx, 0x1c
add r10d, eax
mov eax, edx
shl rcx, 4
shr rax, 0x18
and eax, 0xf
add rcx, rax
movzx eax, byte [rcx + r11]
shl eax, 0x18
add r10d, eax
mov eax, edx
and edx, 0xf
shr rax, 4
and eax, 0xf
shl rax, 4
add rax, rdx
movzx eax, byte [rax + r11]
add r10d, eax
lea eax, [r9 - 1]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rcx, eax
xor r10d, dword [rsp + rcx*4]
xor r10d, dword [r8]
inc r9d
add r8, 4
mov dword [r8 + 0xc], r10d
cmp r9d, 0x2c
jl 0x1400010d2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400030f0
add rsp, 0x58
ret
Function at 0x1400011c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx eax, byte [rcx]
mov r8, rcx
lea r9, [0x140012e50]
mov edx, eax
and eax, 0xf
and rdx, 0xfffffffffffffff0
add rdx, rax
movzx eax, byte [rdx + r9]
mov byte [rcx], al
movzx eax, byte [rcx + 1]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 1], al
movzx eax, byte [r8 + 2]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 2], al
movzx eax, byte [r8 + 3]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 3], al
movzx eax, byte [r8 + 4]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 4], al
movzx eax, byte [r8 + 5]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 5], al
movzx eax, byte [r8 + 6]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 6], al
movzx eax, byte [r8 + 7]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 7], al
movzx eax, byte [r8 + 8]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 8], al
movzx eax, byte [r8 + 9]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 9], al
movzx eax, byte [r8 + 0xa]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 0xa], al
movzx eax, byte [r8 + 0xb]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 0xb], al
movzx eax, byte [r8 + 0xc]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 0xc], al
movzx eax, byte [r8 + 0xd]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 0xd], al
movzx eax, byte [r8 + 0xe]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 0xe], al
movzx eax, byte [r8 + 0xf]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r9]
mov byte [r8 + 0xf], al
ret
Function at 0x1400025d0
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rcx
mov rsi, r8
mov r14d, edx
mov r12d, 0x80
lea rcx, [rbp - 0x69]
xor edx, edx
mov r8d, r12d
mov dword [rsp + 0x20], 0x6a09e667
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rbp - 0x7d], 0xa54ff53a
mov dword [rbp - 0x79], 0x510e527f
mov dword [rbp - 0x75], 0x9b05688c
mov dword [rbp - 0x71], 0x1f83d9ab
mov dword [rbp - 0x6d], 0x5be0cd19
call fcn.140004c50
mov r13d, r14d
mov edi, r14d
and r13d, 0x3f
shr edi, 6
mov eax, 0x40
cmp r13d, 0x38
cmovb r12d, eax
test r13d, r13d
je 0x140002680
mov edx, edi
lea rcx, [rbp - 0x69]
mov r8d, r13d
shl edx, 6
add rdx, rbx
call fcn.140008130
lea eax, [r12 - 4]
lea r8d, [r14*8]
mov byte [rbp + r13 - 0x69], 0x80
mov edx, r8d
shl r14b, 3
shr edx, 0x18
mov byte [rbp + rax - 0x69], dl
lea eax, [r12 - 3]
mov edx, r8d
shr edx, 0x10
shr r8d, 8
mov byte [rbp + rax - 0x69], dl
lea eax, [r12 - 2]
mov byte [rbp + rax - 0x69], r8b
lea eax, [r12 - 1]
mov byte [rbp + rax - 0x69], r14b
test edi, edi
je 0x1400026e6
nop dword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002180
add rbx, 0x40
dec rdi
jne 0x1400026d0
shr r12d, 6
lea rbx, [rbp - 0x69]
test r12d, r12d
je 0x140002716
mov edi, r12d
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002180
add rbx, 0x40
dec rdi
jne 0x140002700
test rsi, rsi
je 0x14000274d
mov eax, dword [rsp + 0x20]
mov dword [rsi], eax
mov eax, dword [rsp + 0x24]
mov dword [rsi + 4], eax
mov eax, dword [rsp + 0x28]
mov dword [rsi + 8], eax
mov eax, dword [rbp - 0x7d]
mov dword [rsi + 0xc], eax
mov eax, dword [rbp - 0x79]
mov dword [rsi + 0x10], eax
mov eax, dword [rbp - 0x75]
mov dword [rsi + 0x14], eax
mov eax, dword [rbp - 0x71]
mov dword [rsi + 0x18], eax
mov eax, dword [rbp - 0x6d]
mov dword [rsi + 0x1c], eax
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400030f0
add rsp, 0xd0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004037
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140015008]
jne 0x14000310a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003106
repz ret
ror rcx, 0x10
jmp 0x140003f90
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400355a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140035698]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004015
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400355a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140004037
mov rax, qword [rsp + 0x88]
mov qword [0x140035698], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140035638], rax
mov rax, qword [0x140035698]
mov qword [0x140035510], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140035620], rax
mov dword [0x140035500], 0xc0000409
mov dword [0x140035504], 1
mov rax, qword [0x140015008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140015010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140035598], eax
mov ecx, 1
call fcn.14000a6a4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140011328]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140035598], 0
jne 0x1400040be
mov ecx, 1
call fcn.14000a6a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14000443c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400042ac

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14000964a
call fcn.14000482c
and dword [rax], 0
call fcn.14000480c
mov ebx, 0x16
mov dword [rax], ebx
call fcn.140004c20
mov eax, ebx
jmp 0x14000969a
test edx, 0xfffffff9
jne 0x14000962d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140009673
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000484c
call fcn.14000480c
mov eax, dword [rax]
jmp 0x14000969a
test al, 0x10
jne 0x140009698
test al, 1
je 0x140009698
test bl, 2
je 0x140009698
call fcn.14000482c
mov dword [rax], 5
call fcn.14000480c
mov dword [rax], 0xd
jmp 0x14000966a
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000aea8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000a2a4
xor ebx, ebx
cmp qword [0x1400364b0], rbx
mov rdi, rax
jne 0x14000afbb
lea rcx, [0x140012070]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000b092
lea rdx, [0x140012060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b092
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140012050]
mov rcx, rsi
mov qword [0x1400364b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140012038]
mov rcx, rsi
mov qword [0x1400364b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140012018]
mov rcx, rsi
mov qword [0x1400364c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400364d0], rax
test rax, rax
je 0x14000afb2
lea rdx, [0x140012000]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400364c8], rax
jmp 0x14000afc2
mov rax, qword [0x1400364c8]
jmp 0x14000afc9
mov rax, qword [0x1400364c8]
mov r11, qword [0x1400364d0]
cmp rax, rdi
je 0x14000b030
cmp r11, rdi
je 0x14000b030
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400364d0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000b030
test rax, rax
je 0x14000b030
call rsi
test rax, rax
je 0x14000b02a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000b02a
test byte [rsp + 0x40], 1
jne 0x14000b030
bts ebp, 0x15
jmp 0x14000b070
mov rcx, qword [0x1400364b8]
cmp rcx, rdi
je 0x14000b070
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000b070
call rax
mov rbx, rax
test rax, rax
je 0x14000b070
mov rcx, qword [0x1400364c0]
cmp rcx, rdi
je 0x14000b070
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000b070
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400364b0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000b092
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000b094
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400030f0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002788
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 0x1400027b5
mov al, 1
jmp 0x1400028de
cmp dword [rcx + 0x14], 1
jne 0x1400027ca
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 0x140002828
xor ebx, ebx
test rbp, rbp
je 0x140002853
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 0x140002853
add rbx, r12
cmp rbx, rbp
jb 0x1400027e5
jmp 0x14000284a
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 0x1400028d7
cmp byte [rsi + 0x22], 0
je 0x1400028d7
cmp dword [rsi + 0x14], 0
jne 0x1400028d7
xor r8d, r8d
lea rdx, [rsi + 0x2c]
lea rcx, [0x140059040]
call fcn.140001980
test al, al
je 0x1400028c5
mov ecx, dword [rsp + 0x60]
mov eax, ecx
cmp rcx, rbp
jae 0x1400027d0
test ecx, ecx
je 0x1400027d0
mov rdi, qword [rsi]
mov rcx, qword [rdi + 0x28]
call qword [fcn.14001a2b0]
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.14001a2b0]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rdi + 0x20]
jmp 0x1400027d0
lea r8, [rsi + 0x2c]
xor edx, edx
lea rcx, [0x140059040]
call fcn.140001cfc
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 0x140002a04
Capabilities:
Delete file

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140016560
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140002abf
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003b20
test al, al
je 0x140002abf
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 0x140002afc
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.140016560
sub rsp, rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.140003eec
xor ebx, ebx
cmp word [rax], 0x20
je 0x140002b44
cmp word [rax], 0x2e
je 0x140002b44
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002b79
mov rcx, rdi
call fcn.140002a78
cmp eax, 0xffffffff
jne 0x140002b8c
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003b20
test al, al
je 0x140002b8c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002b8c
test sil, sil
je 0x140002b88
mov edx, ebp
mov rcx, rdi
call fcn.140002d8c
xor eax, eax
jmp 0x140002b9e
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 0x140002d8c
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.140016560
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 0x140002de1
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140003b20
test al, al
je 0x140002de1
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 0x140002fb4
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.140016560
sub rsp, rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140003067
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003091
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.140003b20
test al, al
je 0x14000303d
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003091
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140003057
cmp eax, 0x13
je 0x140003057
xor eax, eax
jmp 0x14000305c
mov eax, 1
mov byte [rdi + 0x1044], al
jmp 0x140003126
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003087
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140003126
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140007668
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.140004010
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.1400082e8
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.1400082e8
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.1400082e8
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