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

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x2929872ab
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x292987264
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x292987281
cmp rdx, 0
je 0x2929872cd
test rdx, 0xf
je 0x29298725d
test rdx, 7
jne 0x292987281
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x29298725d
ret
Function at 0x292988c60
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x292988c9f
jb 0x292988cb4
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x292988d20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x292988df4
jb 0x292988e53
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.292988c00
aeskeygenassist xmm1, xmm0, 1
call fcn.292988c20
aeskeygenassist xmm1, xmm2, 2
call fcn.292988c00
aeskeygenassist xmm1, xmm0, 2
call fcn.292988c20
aeskeygenassist xmm1, xmm2, 4
call fcn.292988c00
aeskeygenassist xmm1, xmm0, 4
call fcn.292988c20
aeskeygenassist xmm1, xmm2, 8
call fcn.292988c00
aeskeygenassist xmm1, xmm0, 8
call fcn.292988c20
aeskeygenassist xmm1, xmm2, 0x10
call fcn.292988c00
aeskeygenassist xmm1, xmm0, 0x10
call fcn.292988c20
aeskeygenassist xmm1, xmm2, 0x20
call fcn.292988c00
aeskeygenassist xmm1, xmm0, 0x20
call fcn.292988c20
aeskeygenassist xmm1, xmm2, 0x40
call fcn.292988c00
jmp 0x292988ec1
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.292988b60
aeskeygenassist xmm1, xmm2, 2
call fcn.292988bc0
aeskeygenassist xmm1, xmm2, 4
call fcn.292988b60
aeskeygenassist xmm1, xmm2, 8
call fcn.292988bc0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.292988b60
aeskeygenassist xmm1, xmm2, 0x20
call fcn.292988bc0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.292988b60
aeskeygenassist xmm1, xmm2, 0x80
call fcn.292988bc0
jmp 0x292988ec1
aeskeygenassist xmm1, xmm0, 1
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 2
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 4
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 8
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 0x10
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 0x20
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 0x40
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 0x80
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.292988b20
aeskeygenassist xmm1, xmm0, 0x36
call fcn.292988b20
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x292988ece
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret

Function at 0x2929892a0
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x80
cmp ecx, 4
jle 0x2929892e0
cmp ecx, 0x10
jle 0x2929892d6
int 3
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x88
pop rcx
mov dword [rsp + 0x28], eax
ret
Function at 0x29298b460
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x29298b477
inc rax
cmp rax, 4
jge 0x29298b48f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x29298b474
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x29298b4a0
inc rax
cmp rax, 4
jge 0x29298b4ae
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x29298b4d7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x29298b4bb
jmp 0x29298b49d
Function at 0x2929955c0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x292995859
push rbp
mov rbp, rsp
sub rsp, 0x98
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rax
nop
lea rax, [0x2929cf900]
call fcn.2928ecb40
mov qword [rsp + 0x70], rax
mov qword [rax + 8], 9
lea rcx, [0x2929db32a]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x2929cf900]
call fcn.2928ecb40
mov qword [rsp + 0x68], rax
mov qword [rax + 8], 8
lea rcx, [0x2929db0ba]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x2929cf9c0]
call fcn.2928ecb40
cmp dword [0x292b0a860], 0
jne 0x292995657
mov rcx, qword [rsp + 0x70]
jmp 0x292995664
call fcn.2929415a0
mov rcx, qword [rsp + 0x70]
mov qword [r11], rcx
mov qword [rsp + 0x60], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xd
lea rcx, [0x2929dc12c]
mov qword [rax], rcx
nop
lea rax, [0x2929cf9c0]
call fcn.2928ecb40
cmp dword [0x292b0a860], 0
jne 0x2929956a0
mov rcx, qword [rsp + 0x68]
jmp 0x2929956ad
call fcn.2929415a0
mov rcx, qword [rsp + 0x68]
mov qword [r11], rcx
mov qword [rsp + 0x58], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xc
lea rcx, [0x2929dbcac]
mov qword [rax], rcx
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
lea rax, [0x2929c0160]
call fcn.2928ecb40
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], 0x3000
mov qword [rax + 0x18], 0x40
mov rbx, rax
mov edi, 4
mov rax, qword [rsp + 0x58]
mov rcx, rdi
call fcn.29298e8c0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
jbe 0x29299584e
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x90], rcx
lea rax, [0x2929c0100]
call fcn.2928ecb40
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
mov rbx, rax
mov ecx, 3
mov rdi, rcx
mov rax, qword [rsp + 0x60]
nop dword [rax]
call fcn.29298e8c0
movzx ecx, word [0x292b0a5e2]
mov word [rsp + 0x3e], cx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x80], rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x78], rdx
lea rax, [0x2929c01c0]
nop dword [rax]
call fcn.2928ecb40
mov qword [rax], 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0x20
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
movzx ecx, word [rsp + 0x3e]
mov word [rsp], cx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 5
mov qword [rsp + 0x18], 5
call fcn.2929892a0
xorps xmm15, xmm15
mov r14, qword [0x292b0a810]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x40]
xor ebx, ebx
mov rcx, rbx
mov rdi, rcx
mov rsi, rcx
nop dword [rax]
call fcn.29293e140
add rsp, 0x98
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.292941920
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.29293f680
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
jmp fcn.2929955c0
Function at 0x29299bba0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.29299ca20
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 [rsp + 0x28]
mov ecx, 2
call fcn.29299ca20
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 0x29299bc10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x292b0f1c4]
mov rbx, rcx
test esi, esi
jle 0x29299bd40
mov rax, qword [0x292b0f1c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x29299bc5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x29299bce5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x29299bc40
mov rcx, rbx
call fcn.29299c470
mov rdi, rax
test rax, rax
je 0x29299bd62
mov rax, qword [0x292b0f1c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.29299c5b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x292b0f1c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x29299bd47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x29299bcde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x29299bcf0
add dword [0x292b0f1c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x292b0f1c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x29299bcde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.29299bba0
nop dword [rax]
xor esi, esi
jmp 0x29299bc68
mov rax, qword [0x292b0f1c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.29299bba0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.29299bba0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x29299c0e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x292b0f200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x292b0f1e0]
test rbx, rbx
je 0x29299c13c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x29299c133
test rsi, rsi
je 0x29299c133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x29299c118
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x29299c470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x292aaf950]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x29299c490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x29299c498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x29299c490
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x29299c4ed
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 0x29299c4e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x29299c490
add rax, 0x28
cmp rax, r9
jne 0x29299c4d0
xor eax, eax
ret

Function at 0x29299c4f0
Capabilities:
Parse pe header

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

Function at 0x29299c5b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x292aaf950]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x29299c5cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x29299c5d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14004e91c
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1ff60]
mov eax, 0x20060
call fcn.1400357e0
sub rsp, rax
mov dil, r8b
mov rbx, rdx
lea r8, [rbp + 0xff60]
mov edx, 0x7fff
call fcn.14004fc08
lea r8, [rsp + 0x60]
mov edx, 0x7fff
mov rcx, rbx
call fcn.14004fc08
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
jne 0x14004e9b7
test dil, dil
je 0x14004e9b0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call fcn.140025918
test eax, eax
je 0x14004e9a9
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xff60]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x14004ea5f
xor al, al
jmp 0x14004ea5f
lea rcx, [rbp + 0xff60]
call fcn.14005017c
test al, al
je 0x14004e9b0
lea rcx, [rsp + 0x60]
call fcn.14005017c
test al, al
je 0x14004ea74
test dil, dil
je 0x14004e9b0
lea rdx, [0x1400c6fa8]
lea rcx, [rbp + 0xff60]
call fcn.140024e54
lea rcx, [rbp + 0xff60]
call fcn.140024e38
lea rcx, [rsp + 0x60]
mov word [rbp + rax*2 + 0xff62], bx
call fcn.140024e38
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
lea rax, [rbp + 0xff60]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 2
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x20060]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x60]
call fcn.14004ed18
test al, al
je 0x14004e9b0
lea rcx, [rsp + 0x60]
call fcn.14005017c
test al, al
jmp 0x14004e9dc
Function at 0x14004ea98
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

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 - 0x407b8]
mov eax, 0x40890
call fcn.1400357e0
sub rsp, rax
mov r12b, r8b
mov rbx, rdx
mov r14d, 0x7fff
lea r8, [rbp + 0x10790]
xor edi, edi
mov edx, r14d
mov r15b, r9b
mov sil, dil
call fcn.14004fc08
lea r8, [rbp + 0x30790]
mov edx, r14d
mov rcx, rbx
call fcn.14004fc08
lea rdx, [rbp + 0x30790]
lea rcx, [rbp + 0x10790]
call fcn.1400500e4
lea rcx, [rbp + 0x10790]
mov r13b, al
call fcn.14005017c
test al, al
je 0x14004eb32
lea rdx, [0x1400c6fa8]
lea rcx, [rbp + 0x10790]
call fcn.140024e54
lea rcx, [rbp + 0x30790]
call fcn.14005017c
test al, al
je 0x14004eb55
lea rdx, [0x1400c6fa8]
lea rcx, [rbp + 0x30790]
call fcn.140024e54
lea rax, [rbp + 0x590]
lea r9, [rbp + 0x390]
lea r8, [rbp + 0x190]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x10790]
mov qword [rsp + 0x20], rax
call fcn.140026104
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10790]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14b, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004ece7
cmp r14b, 1
jne 0x14004ece7
test byte [rsp + 0x40], 0x10
jne 0x14004ecbc
lea rax, [rbp + 0x20790]
lea r9, [rbp + 0x30790]
lea r8, [rbp + 0x590]
lea rdx, [rbp + 0x390]
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
call fcn.14004f4d8
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x790]
call fcn.140024e80
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x790]
call fcn.140024e54
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x790]
call fcn.140024e54
lea rcx, [rbp + 0x20790]
call fcn.14004ef58
test al, al
je 0x14004ec55
test r12b, r12b
je 0x14004ecda
lea rdx, [rbp + 0x20790]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004ec76
lea rcx, [rbp + 0x20790]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x20790]
lea rcx, [rbp + 0x790]
cmp r15b, 1
jne 0x14004ecac
test r13b, r13b
jne 0x14004ec90
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14004ecb5
lea rdx, [rbp + 0x20790]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14004ecea
jmp 0x14004ecb9
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004ecda
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14004ecb5
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004ecda
mov sil, 1
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004eba2
mov r14b, dil
jmp 0x14004eba2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004ecf6
mov dil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, dil
lea r11, [rsp + 0x40890]
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 0x14004ed18
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10020
call fcn.1400357e0
sub rsp, rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x7fff
call fcn.1400051e4
lea rcx, [rsp + 0x20]
call fcn.140024e38
xor esi, esi
mov edi, 0x5c
test rax, rax
je 0x14004ed65
cmp word [rsp + rax*2 + 0x1e], di
jne 0x14004ed65
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004edf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14004ed95
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14004ed9a
mov al, 1
jmp 0x14004edf6
cmp eax, 3
jne 0x14004edf4
lea rcx, [rsp + 0x20]
call fcn.140007bb0
mov edx, edi
mov rcx, rax
mov rbx, rax
call fcn.140026960
mov rcx, rbx
test rax, rax
jne 0x14004edc0
call fcn.140024d50
jmp 0x14004edf4
mov word [rax], si
call fcn.14004ed18
mov rcx, rbx
mov dil, al
call fcn.140024d50
test dil, dil
je 0x14004edeb
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne dil
mov al, dil
jmp 0x14004edf6
test al, 0x10
jne 0x14004ed91
xor al, al
lea r11, [rsp + 0x10020]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14004ee0c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10380]
mov eax, 0x10480
call fcn.1400357e0
sub rsp, rax
lea r8, [rbp + 0x380]
xor ebx, ebx
mov edx, 0x7fff
mov r14b, bl
call fcn.14004fc08
lea rcx, [rbp + 0x380]
call fcn.14005017c
test al, al
je 0x14004ee68
lea rdx, [0x1400c6fa8]
lea rcx, [rbp + 0x380]
call fcn.140024e54
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0x103a8]
lea rcx, [rbp + 0x380]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call fcn.140026104
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov sil, 1
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004ef18
cmp sil, 1
jne 0x14004ef18
test byte [rsp + 0x30], 0x10
jne 0x14004ef01
lea rdx, [rbp + 0x103a8]
lea rcx, [rbp + 0x380]
mov r14b, sil
call fcn.140024e80
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x380]
call fcn.140024e54
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x380]
call fcn.140024e54
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x14004ef1b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004eea8
mov sil, bl
jmp 0x14004eea8
mov bl, r14b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x10480]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1401e89f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.140217130
sub rsp, rax
mov rax, qword [0x14025af18]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.140211a40
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401e8a6d
lea rcx, [rsp + 0x70]
call fcn.1402293f0
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140217100
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140217100
add rsp, 0x10088
ret

Function at 0x1401e8f50
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14025af18]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.1401fc1d0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.140211a40
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1401e9013
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python310.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x1401e9001
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1401e9033
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1401e9033
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1401e9033
mov rcx, rbp
call fcn.140022b80
sub qword [rdi], 1
jne 0x1401e9043
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1401e9053
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140217100
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140211af0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140211bb4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x140211b10
not eax
ret