joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ecb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push r13
push r12
push rdi
sub rsp, 0x238
mov r12, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test r12, r12
je 0x50ee20
cmp word [r12], 0
je 0x50ee10
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50ee30
test al, 0x10
je 0x50ee10
lea r13, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, r13
call sub.msvcrt.dll__wfullpath
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rcx, [0x0062aee0]
mov r12, rax
call sub.msvcrt.dll_wcslen
lea rcx, [0x0062aee4]
add r12, rax
call sub.msvcrt.dll_wcslen
lea rcx, [r12 + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x50ee43
lea r14, [rax + 0x44c]
mov rdx, r13
mov rcx, r14
call sub.msvcrt.dll_wcscpy
cmp word [r12 + 0x44c], 0
jne 0x50edd0
lea rdx, [0x0062aee4]
mov rcx, r14
call sub.msvcrt.dll_wcscat
lea rdx, [r12 + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [r12 + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [r12 + 0x448], 0
mov qword [r12 + 0x230], 0
rep stosq qword [rdi], rax
mov rax, r12
add rsp, 0x238
pop rdi
pop r12
pop r13
pop r14
ret
mov rcx, r14
call sub.msvcrt.dll_wcslen
cmp word [r12 + rax*2 + 0x44a], 0x2f
je 0x50ed71
mov rcx, r14
call sub.msvcrt.dll_wcslen
cmp word [r12 + rax*2 + 0x44a], 0x5c
je 0x50ed71
lea rdx, [0x0062aee0]
mov rcx, r14
call sub.msvcrt.dll_wcscat
jmp 0x50ed71
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x50edb9
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x50edb9
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x50edb9
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x50edb9
Function at 0x50f6b0
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r13d, ecx
mov rbx, rdx
cmp ecx, 0xffffffff
je 0x50f766
test rdx, rdx
js 0x50f766
call sub.msvcrt.dll__get_osfhandle
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x50f900
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x50f900
mov ecx, r13d
call sub.msvcrt.dll__telli64
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x50f766
lea rdx, [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50f900
cmp rbx, qword [rsp + 0x58]
ja 0x50f7c0
xor r9d, r9d
mov qword [rsp + 0x60], rbx
lea r8, [rsp + 0x64]
mov edx, ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x50f780
cmp dword [rsp + 0x60], 0xffffffff
je 0x50f780
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
je 0x50f8c8
mov ecx, 0x16
call fcn.0050dd10
mov eax, 0xffffffff
jmp 0x50f7a3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x50f766
xor r8d, r8d
mov rdx, r15
mov ecx, r13d
call sub.msvcrt.dll__lseeki64
cmp rax, 0xffffffffffffffff
je 0x50f766
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x50f766
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov r14, rax
call sub.msvcrt.dll_calloc
mov rsi, rax
test r14, r14
je 0x50f900
test rax, rax
je 0x50f900
mov edx, 0x32
mov rcx, r14
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rdi, rax
jmp 0x50f83a
mov r8d, 0x32
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x50f8e0
mov dword [rsp + 0x38], 0
mov r9, rbp
mov rdx, rsi
mov r8d, 0x105
mov qword [rsp + 0x30], 0
mov rcx, r14
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x7c], eax
jne 0x50f820
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rsi
call fcn.00518f30
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, r14
mov esi, eax
call fcn.00518f30
test esi, esi
je 0x50f8c8
mov rax, rbx
sub rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0x50]
jbe 0x50f731
nop word [rax + rax]
mov ecx, 0x1b
call fcn.0050dd10
mov eax, 0xffffffff
jmp 0x50f7a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r14
xor r14d, r14d
call fcn.00518f30
jmp 0x50f885
mov ecx, 9
call fcn.0050dd10
mov eax, 0xffffffff
jmp 0x50f7a3
Function at 0x51a970
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x51a9b0
call fcn.005ccae0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x51a9d8
call fcn.005ccaf0
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call fcn.0059a4a0
cmp al, 2
jne 0x51a9bd
xor eax, eax
jmp 0x51a99f
Function at 0x51d300
Capabilities:
Create process on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x60
mov r12, qword [rcx + 0x38]
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
cmp r12, rcx
je 0x51d38c
mov rbx, r12
mov r8d, 0x3f
mov rdx, r12
mov qword [rsp + 0x38], rcx
sub rbx, rcx
mov rax, rbx
sar rax, 5
bsr rax, rax
xor rax, 0x3f
sub r8d, eax
movsxd r8, r8d
add r8, r8
call fcn.004063f0
cmp rbx, 0x200
mov rcx, qword [rsp + 0x38]
jle 0x51d381
lea rbx, [rcx + 0x200]
xor r8d, r8d
mov rdx, rbx
call fcn.005fa610
cmp r12, rbx
je 0x51d38c
mov rcx, rbx
xor edx, edx
add rbx, 0x20
call fcn.005fb6e0
jmp 0x51d36c
xor r8d, r8d
mov rdx, r12
call fcn.005fa610
mov r12, qword [rsi + 0x38]
mov rdi, qword [rsi + 0x30]
cmp rdi, r12
je 0x51d3e5
mov rbx, rdi
add rdi, 0x20
cmp r12, rdi
je 0x51d3e5
mov rdx, rdi
mov rcx, rbx
call fcn.005fec00
test al, al
je 0x51d399
cmp r12, rbx
je 0x51d3e8
mov r13, rbx
add rdi, 0x20
lea rbx, [r13 + 0x20]
cmp r12, rdi
je 0x51d3e8
mov rdx, rdi
mov rcx, r13
call fcn.005fec00
test al, al
jne 0x51d3bc
mov rdx, rdi
mov rcx, rbx
call fcn.005d8960
jmp 0x51d3b9
mov rbx, rdi
mov rdx, qword [rsi + 0x38]
cmp rdx, rbx
je 0x51d3fd
mov rcx, rbx
call fcn.005a7ba0
mov qword [rsi + 0x38], rbx
mov r12, qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rdi, qword [rsi + 0x38]
lea r13, [rsp + 0x40]
mov rbx, qword [rsi + 0x30]
lea rsi, str.open
cmp rdi, rbx
je 0x51d46b
mov rdx, rbx
mov rcx, r13
call fcn.005d8360
mov r8, qword [rsp + 0x40]
xor r9d, r9d
mov rdx, rsi
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov qword [rsp + 0x20], 0
call r12
mov rcx, r13
add rbx, 0x20
call fcn.005d5f80
jmp 0x51d418
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x526400
Capabilities:
Get socket status

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x248
mov rdi, qword [sym.imp.WS2_32.dll_select]
mov qword [rsp + 0x40], rcx
mov rbx, rcx
lea rsi, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
lea rax, [rsp + 0x30]
lea ecx, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call rdi
movsxd r12, eax
test r12, r12
jns 0x52645c
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x526431
mov rax, r12
add rsp, 0x248
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x5267b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [sym.imp.WS2_32.dll_recv]
mov rbx, rcx
mov r8, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rax, qword [rbx]
mov r9d, dword [r8]
mov r8d, dword [rcx]
mov rdx, qword [rdx]
mov rcx, qword [rax]
call rsi
movsxd r12, eax
test r12, r12
jns 0x5267f2
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x5267c2
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x526d80
Capabilities:
Get socket status

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x248
mov rdi, qword [sym.imp.WS2_32.dll_select]
mov qword [rsp + 0x40], rcx
mov rbx, rcx
lea rsi, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
lea rax, [rsp + 0x30]
lea ecx, [rbx + 1]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
call rdi
movsxd r12, eax
test r12, r12
jns 0x526ddb
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x526db1
mov rax, r12
add rsp, 0x248
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x526df0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
xor eax, eax
cmp qword [rdx + 8], 0
mov rsi, qword [rsp + 0x100]
mov bpl, byte [rsp + 0xf8]
lea r14, [rsp + 0x60]
mov r10, rcx
mov ecx, 0xc
mov rdi, r14
rep stosd dword [rdi], eax
mov qword [rsp + 0x68], 1
je 0x526e43
mov qword [rsp + 0x60], 4
mov r12, qword [rdx]
jmp 0x526e60
xor r12d, r12d
cmp qword [r10 + 8], 0
je 0x526e50
mov r12, qword [r10]
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x64], r9d
mov dword [rsp + 0x60], eax
lea r13, [rsp + 0x40]
mov edx, r8d
mov rcx, r13
call fcn.005eb250
mov rdx, qword [rsp + 0x40]
mov r8, r14
mov rcx, r12
lea r9, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x526e93
or r12, 0xffffffffffffffff
jmp 0x526fb9
mov rbx, qword [rsp + 0x30]
mov r14, qword [sym.imp.WS2_32.dll_WSASocketW]
test rbx, rbx
je 0x526f96
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
xor r9d, r9d
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
call r14
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x526ef0
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx + 0xc]
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x526ef0
mov rbx, qword [rbx + 0x28]
jmp 0x526e9f
test bpl, bpl
je 0x526f1e
mov dword [rsp + 0x38], 1
lea r9, [rsp + 0x38]
mov r8d, 1
mov rcx, r12
mov dword [rsp + 0x20], 4
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp qword [rsi + 0x10], 0
je 0x526f35
mov qword [rsp + 0x38], r12
lea rdx, [rsp + 0x38]
mov rcx, rsi
call qword [rsi + 0x18]
cmp dword [rbx + 4], 0x17
jne 0x526f64
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8d, 0x1b
mov rcx, r12
mov dword [rsp + 0x20], 4
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x108]
mov r8, rbx
mov rdx, r12
call fcn.00602bb0
test al, al
je 0x526f88
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x526fb9
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x526eea
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x526e8a
mov rcx, r13
call fcn.005d5f80
mov rax, r12
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x527630
Capabilities:
Resolve dns

Disassembly:
push r13
push r12
push rdi
sub rsp, 0x450
xor eax, eax
mov r9d, 0x401
mov r10, rcx
lea rdi, [rsp + 0x4f]
mov ecx, 0x401
mov r12, r8
rep stosb byte [rdi], al
lea r13, [rsp + 0x4f]
mov dword [rsp + 0x30], 2
mov rcx, r10
mov r8, r13
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x40177a
mov rdx, r13
mov rcx, r12
call fcn.005d8a20
mov al, 1
add rsp, 0x450
pop rdi
pop r12
pop r13
ret
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx]
mov r12, rcx
mov r13d, edx
mov rsi, r8
mov rbx, r9
cmp ax, 2
je 0x527654
cmp ax, 0x17
jne 0x52767d
movzx ecx, word [r12 + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8, rsi
mov edx, r13d
mov rcx, r12
movzx eax, ax
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp 0x401713
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret

Function at 0x529b90
Capabilities:
Get socket status

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x668
mov dword [rsp + 0x40], edx
mov r12, rcx
lea rdi, [rsp + 0x250]
lea rsi, [rsp + 0x48]
mov dword [rsp + 0x44], r8d
lea r13, [rsp + 0x250]
lea r14, [rsp + 0x48]
mov qword [rsp + 0x50], rcx
mov ecx, 0x82
lea ebx, [r12 + 1]
mov dword [rsp + 0x48], 1
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x458]
lea rsi, [rsp + 0x48]
mov ecx, 0x82
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [sym.imp.WS2_32.dll_select]
lea rdi, [rsp + 0x458]
lea rax, [rsp + 0x40]
mov r9, rdi
mov r8, r13
mov rdx, r14
mov qword [rsp + 0x20], rax
mov ecx, ebx
call rsi
cdqe
test rax, rax
jns 0x529c2d
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
jne 0x529c95
jmp 0x529c02
mov eax, 0xd
je 0x529c9a
mov rdx, r14
mov rcx, r12
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x529c7c
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8d, 0x1007
mov dword [rsp + 0x3c], 4
mov edx, 0xffff
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jns 0x529c8d
jmp 0x529c95
mov rdx, r13
mov rcx, r12
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x529c95
jmp 0x529c43
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x529c9a
mov eax, 2
add rsp, 0x668
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
Function at 0x52af40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push r13
push r12
sub rsp, 0x48
mov r13, rdx
mov r12, rcx
call fcn.0052b010
mov rcx, r13
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov r8d, 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
mov qword [r12], rax
xor eax, eax
cmp rcx, 0xffffffffffffffff
je 0x52b006
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [r12]
xor r9d, r9d
xor edx, edx
mov eax, eax
mov dword [rsp + 0x20], 0
mov r8d, 2
mov qword [r12 + 0x10], rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [r12 + 8], rax
mov rcx, rax
test rax, rax
jne 0x52afe0
mov rcx, r12
call fcn.0052b010
xor eax, eax
jmp 0x52b006
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r12 + 0x18], rax
test rax, rax
je 0x52afd4
mov al, 1
add rsp, 0x48
pop r12
pop r13
ret
Function at 0x52c5e0
Capabilities:
Encrypt data using speck

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov eax, r8d
mov r13, rcx
mov r9, rdx
mov ebp, r8d
and eax, 0xfffffff7
cmp eax, 0x10
je 0x52c628
cmp r8d, 0x20
je 0x52c628
mov ecx, 0x10
call fcn.00604320
lea rdx, str.Invalid_key_size
mov rcx, rax
mov r12, rax
call fcn.005c74a0
jmp 0x52c67e
mov eax, ebp
lea rdi, [rsp + 0x34]
mov ecx, 0xb
lea rsi, [0x00609020]
cdq
rep movsd dword [rdi], dword [rsi]
mov ecx, 4
idiv ecx
mov dword [rsp + 0x28], eax
cmp ebp, 0x18
je 0x52c694
mov ebx, 0xe
cmp ebp, 0x20
je 0x52c699
mov ebx, 0xa
cmp ebp, 0x10
je 0x52c699
mov ecx, 0x10
call fcn.00604320
lea rdx, str.Invalid_key_size
mov rcx, rax
mov r12, rax
call fcn.005c74a0
lea r8, [0x005c7550]
lea rdx, [0x0062f400]
mov rcx, r12
call fcn.006049f0
mov ebx, 0xc
inc ebx
mov qword [rsp + 0xb8], r9
lea r15d, [rbx*4]
movsxd rdi, r15d
lea r14, [rdi*4]
mov rcx, r14
call fcn.00604240
mov r9, qword [rsp + 0xb8]
mov r12, rax
xor eax, eax
jmp 0x52c6d2
mov dword [r12 + rax*4], 0
inc rax
cmp rdi, rax
jne 0x52c6d2
xor eax, eax
cmp dword [rsp + 0x28], eax
jg 0x52c6f4
movsxd rsi, dword [rsp + 0x28]
mov rdi, r12
jmp 0x52c713
mov edx, dword [r9 + rax*4]
mov dword [r12 + rax*4], edx
inc rax
jmp 0x52c6e4
cmp edx, 4
je 0x52c73f
xor ecx, dword [rdi]
add rdi, 4
mov dword [r12 + rsi*4], ecx
inc rsi
mov eax, esi
cmp r15d, esi
jle 0x52c74d
cdq
mov ecx, dword [r12 + rsi*4 - 4]
idiv dword [rsp + 0x28]
mov dword [rsp + 0x2c], eax
test edx, edx
jne 0x52c701
ror ecx, 8
call fcn.0052db00
movsxd rdx, dword [rsp + 0x2c]
xor eax, dword [rsp + rdx*4 + 0x34]
jmp 0x52c749
cmp ebp, 0x1b
jle 0x52c706
call fcn.0052db00
mov ecx, eax
jmp 0x52c706
mov qword [r13], 0
mov rcx, r14
movsxd rbx, ebx
mov qword [r13 + 8], 0
mov qword [r13 + 0x10], 0
call fcn.00604240
mov qword [r13], rax
lea rdx, [rax + r14]
mov rcx, rbx
mov qword [r13 + 0x10], rdx
mov rdx, rax
mov dword [rdx], 0
add rdx, 0x10
mov dword [rdx - 0xc], 0
mov dword [rdx - 8], 0
mov dword [rdx - 4], 0
dec rcx
jne 0x52c782
jmp 0x52c7c8
mov rdi, rax
mov rsi, r12
mov rcx, r14
shl rbx, 4
rep movsb byte [rdi], byte [rsi]
add rbx, rax
mov rcx, r12
mov qword [r13 + 8], rbx
call fcn.006041f0
mov rax, r13
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x52c800
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x10
mov r8d, 1
mov r11d, 0xff
mov rdx, qword [rcx]
mov qword [rsp], rdx
mov rdx, qword [rcx + 8]
mov rax, rcx
mov qword [rsp + 8], rdx
lea ecx, [r8*8]
mov ebx, r11d
xor edx, edx
shl ebx, cl
lea r9d, [r8 + rdx]
mov r10d, dword [rax + rdx*4]
and r9d, 3
mov ecx, dword [rsp + r9*4]
xor ecx, r10d
and ecx, ebx
xor ecx, r10d
mov dword [rax + rdx*4], ecx
inc rdx
cmp rdx, 4
jne 0x52c833
inc r8d
cmp r8d, 4
jne 0x52c824
add rsp, 0x10
pop rbx
ret

Function at 0x52c920
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8d, dword [rcx + rax]
xor dword [rdx + rax], r8d
add rax, 4
cmp rax, 0x10
jne 0x52c922
ret
Function at 0x52ca00
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [r8]
lea rbx, [rsp + 0x90]
mov r12, rcx
movups xmmword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x30], xmm1
call fcn.00403960
xor eax, eax
xor ecx, ecx
xor edx, edx
lea r9, str.11100001
mov r10d, 7
mov dword [rsp + 0x80], 0
mov r11d, 1
mov r8b, byte [r9 + rax]
cmp r8b, 0x30
je 0x52ca90
cmp r8b, 0x31
jne 0x52ca79
mov ecx, r10d
mov esi, r11d
sub ecx, eax
shl esi, cl
mov cl, 1
or edx, esi
jmp 0x52ca90
test cl, cl
je 0x52ca84
mov dword [rsp + 0x80], edx
lea rcx, str.bitset::_M_copy_from_ptr
call fcn.00607970
inc rax
cmp rax, 8
jne 0x52ca59
test cl, cl
je 0x52caa4
mov dword [rsp + 0x80], edx
lea rdi, [rsp + 0x80]
lea rbp, [rsp + 0x50]
mov r8, rbx
mov esi, 0x7f
mov rdx, rdi
mov rcx, rbp
mov r14d, 1
call fcn.0052d6d0
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x40]
call fcn.00537f30
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
lea r13, [rsp + 0x20]
call fcn.00537f30
mov rax, rsi
mov edx, r14d
mov ecx, esi
shr rax, 5
shl edx, cl
test dword [rsp + rax*4 + 0x60], edx
je 0x52cb3f
movups xmm2, xmmword [rsp + 0x70]
xor eax, eax
movups xmmword [rsp + 0x90], xmm2
mov edx, dword [rbx + rax*4]
xor edx, dword [rdi + rax*4]
mov dword [rbx + rax*4], edx
inc rax
cmp rax, 4
jne 0x52cb20
movups xmm3, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x70], xmm3
mov r8d, 1
mov rdx, rdi
mov rcx, r13
test byte [rsp + 0x80], 1
jne 0x52cb69
call fcn.005433a0
movups xmm4, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x80], xmm4
jmp 0x52cba0
call fcn.005433a0
movups xmm5, xmmword [rsp + 0x20]
xor eax, eax
movups xmmword [rsp + 0x90], xmm5
mov edx, dword [rbx + rax*4]
xor edx, dword [rbp + rax*4]
mov dword [rbx + rax*4], edx
inc rax
cmp rax, 4
jne 0x52cb7d
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x80], xmm0
dec rsi
cmp rsi, 0xffffffffffffffff
jne 0x52cafd
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.0052d220
mov rax, r12
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x537fb0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rsi, rdx
mov rbx, r8
call fcn.0052d2d0
xor r9d, r9d
mov al, byte [rsi + r9]
xor al, byte [rbx + r9]
inc r9
mov byte [r9 + r12 - 1], al
cmp r9, 0x10
jne 0x537fc9
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
Function at 0x59a1f0
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call fcn.00595b70
test al, al
je 0x59a257
cmp al, 0xff
je 0x59a248
mov rdx, rbx
mov rcx, rsi
call fcn.0059a4a0
cmp al, 2
je 0x59a260
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x59a26d
mov eax, dword [rbx]
test eax, eax
jne 0x59a257
call fcn.005ccaf0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x59a259
call fcn.005ccae0
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x59a218
call fcn.005ccae0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x59a380
Capabilities:
Move file

Disassembly:
push r12
sub rsp, 0x20
mov rdx, qword [rdx]
mov rcx, qword [rcx]
mov r12, r8
call qword [sym.imp.msvcrt.dll__wrename]
test eax, eax
jne 0x59a3b8
call fcn.005ccae0
mov dword [r12], 0
mov qword [r12 + 8], rax
add rsp, 0x20
pop r12
ret
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.00595240

Function at 0x5a3750
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call fcn.005ccae0
mov rbx, rax
test esi, esi
je 0x5a37f8
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x5a37b9
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x5a37c7
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x5a37f0
mov dword [r13], 0
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x5a37d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [r13 + 8], rbx
mov dword [r13], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x5a8d40
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x5a8d67
call rbp
cmp dword [rax], 4
jne 0x5a8d84
mov rcx, rdi
call fcn.005a8b40
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x5a8d60
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x5cc6a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov rax, rcx
lea r11, [rcx + 0x38c]
mov rdx, rcx
nop dword [rax]
mov r9d, dword [rdx]
mov r8d, dword [rdx + 4]
and r9d, 0x80000000
and r8d, 0x7fffffff
or r9d, r8d
mov r8d, r9d
shr r8d, 1
xor r8d, dword [rdx + 0x634]
mov r10d, r8d
xor r10d, 0x9908b0df
and r9d, 1
cmovne r8d, r10d
add rdx, 4
mov dword [rdx - 4], r8d
cmp r11, rdx
jne 0x5cc6b0
lea r10, [rcx + 0x630]
nop dword [rax + rax]
mov r8d, dword [rax + 0x38c]
mov edx, dword [rax + 0x390]
and r8d, 0x80000000
and edx, 0x7fffffff
or r8d, edx
mov edx, r8d
shr edx, 1
xor edx, dword [rax]
mov r9d, edx
xor r9d, 0x9908b0df
and r8d, 1
cmovne edx, r9d
add rax, 4
mov dword [rax + 0x388], edx
cmp r10, rax
jne 0x5cc700
mov edx, dword [rcx + 0x9bc]
mov eax, dword [rcx]
mov qword [rcx + 0x9c0], 0
and eax, 0x7fffffff
and edx, 0x80000000
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [rcx + 0x630]
mov r8d, eax
xor r8d, 0x9908b0df
and edx, 1
cmovne eax, r8d
mov dword [rcx + 0x9bc], eax
ret