joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
cmp qword [rdx + 0x28], 0
jle 0x43ed97
mov ecx, 0x100000
mov rax, qword [rdx + 0x28]
cqo
idiv rcx
mov rsi, rdx
test esi, esi
jne 0x43eca4
mov esi, 0x100000
lea rax, [rbx + rbp + 0xd0]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43ed10
lea rax, [rbx + rbp + 0xe8]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43ed10
lea rax, [rbx + rbp + 0xe8]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov ecx, dword [rax]
lea rax, [rbx + rbp + 0xd0]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
mov r8d, esi
call fcn.00442b90
lea rcx, [rbx + rbp + 0xe8]
mov rdx, rbp
neg rdx
mov rcx, qword [rcx + rdx]
mov dword [rcx], eax
lea rax, [rbx + rbp + 0xa8]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x43ed97
lea rax, [rbx + rbp + 0xb8]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
jne 0x43ed97
lea rax, [rbx + rbp + 0xa8]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
lea rax, [rbx + rbp + 0x80]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
mov r8d, esi
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x43ed7c
cmp esi, dword [rbp + 0x3c]
je 0x43ed97
mov rcx, qword [0x00422518]
lea rdx, [0x0043edac]
call fcn.00422780
mov rcx, rax
call fcn.0040f400
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

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

Disassembly:
mov eax, ecx
xor rcx, rcx
sub r8d, 1
cmp ecx, r8d
jg 0x442bcc
add r8d, 1
lea r9, [0x00ae65b0]
movsxd r10, ecx
mov r11d, eax
xor r11b, byte [rdx + r10]
movzx r11, r11b
shr eax, 8
mov r9d, dword [r9 + r11*4]
xor r9d, eax
mov eax, r9d
add ecx, 1
cmp ecx, r8d
jne 0x442ba2
nop
ret
Function at 0x4440e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov rcx, rdx
xor rbx, rbx
xor rax, rax
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x30]
lea r9, [rax + rbp + 0x1058]
mov rax, rbp
neg rax
lea r9, [r9 + rax]
mov r10d, dword [rbp + 0x3c]
mov r10d, r10d
mov rax, qword [rbp + 0x30]
lea r11, [rax + rbp + 0x1058]
mov rax, rbp
neg rax
lea r11, [r11 + rax]
mov esi, dword [rbp + 0x3c]
mov esi, esi
mov eax, ebx
movzx rdi, byte [rcx + rax]
shl edi, 0x18
mov eax, ebx
add eax, 1
xor edx, edx
div r8d
mov edx, edx
movzx rax, byte [rcx + rdx]
shl eax, 0x10
add edi, eax
mov eax, ebx
add eax, 2
xor edx, edx
div r8d
mov edx, edx
movzx rax, byte [rcx + rdx]
shl eax, 8
add edi, eax
mov eax, ebx
add eax, 3
xor edx, edx
div r8d
mov edx, edx
movzx rax, byte [rcx + rdx]
add edi, eax
mov eax, dword [r11 + rsi*4]
xor eax, edi
mov dword [r9 + r10*4], eax
mov eax, ebx
add eax, 4
xor edx, edx
div r8d
mov rbx, rdx
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
cmp eax, 0x12
jne 0x4440fb
nop
mov dword [rbp + 0x4c], 0
mov dword [rbp + 0x48], 0
xor rax, rax
mov dword [rbp + 0x3c], eax
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x4c]
lea r8, [rbp + 0x48]
mov rax, qword [rbp + 0x30]
lea rax, [rax + rbp + 0x1058]
mov r9, rbp
neg r9
lea r9, [rax + r9]
mov dword [rsp + 0x20], 1
call fcn.00443870
mov rax, qword [rbp + 0x30]
lea rax, [rax + rbp + 0x1058]
mov rcx, rbp
neg rcx
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x3c]
add ecx, ecx
mov ecx, ecx
mov edx, dword [rbp + 0x4c]
mov dword [rax + rcx*4], edx
mov rax, qword [rbp + 0x30]
lea rax, [rax + rbp + 0x105c]
mov rcx, rbp
neg rcx
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x3c]
add ecx, ecx
mov ecx, ecx
mov edx, dword [rbp + 0x48]
mov dword [rax + rcx*4], edx
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
cmp eax, 9
jne 0x4441bd
nop
xor rax, rax
mov dword [rbp + 0x3c], eax
xor rbx, rbx
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x4c]
lea r8, [rbp + 0x48]
mov rax, qword [rbp + 0x30]
lea rax, [rax + rbp + 0x1058]
mov r9, rbp
neg r9
lea r9, [rax + r9]
mov dword [rsp + 0x20], 1
call fcn.00443870
mov rax, qword [rbp + 0x30]
lea rax, [rax + rbp + 0x58]
mov rcx, rbp
neg rcx
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x3c]
mov ecx, ecx
shl rcx, 7
lea rax, [rax + rcx*8]
mov ecx, ebx
add ecx, ecx
mov ecx, ecx
mov edx, dword [rbp + 0x4c]
mov dword [rax + rcx*4], edx
mov rax, qword [rbp + 0x30]
lea rax, [rax + rbp + 0x5c]
mov rcx, rbp
neg rcx
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x3c]
mov ecx, ecx
shl rcx, 7
lea rax, [rax + rcx*8]
mov ecx, ebx
add ecx, ecx
mov ecx, ecx
mov edx, dword [rbp + 0x48]
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x80
jne 0x444251
nop
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
cmp eax, 4
jne 0x44424e
nop
lea rsp, [rbp + 0x58]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x444310
Capabilities:
Encrypt data using blowfish

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov byte [rsp - 0xa8], 0
mov byte [rsp - 0x10a8], 0
sub rsp, 0x10a8
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov dword [rbp + 0x30], edx
mov byte [rbp + 0x37], r8b
mov rbx, r9
lea rdi, [rbp + 0x1058]
lea rsi, [0x00ae6c28]
mov ecx, 9
rep movsq qword [rdi], qword [rsi]
lea rdi, [rbp + 0x58]
lea rsi, [0x00ae6c70]
mov ecx, 0x200
rep movsq qword [rdi], qword [rsi]
mov rcx, rbx
call fcn.004115a0
mov rsi, rax
mov rcx, rbx
call fcn.00410b90
mov rcx, rbp
mov rdx, rsi
mov r8d, eax
call fcn.004440e0
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x38], rax
movzx rax, byte [rbp + 0x37]
test al, al
je 0x4443ac
lea rax, [rbp + 0x1058]
mov qword [rbp + 0x40], rax
mov esi, 1
jmp 0x4443ba
lea rax, [rbp + 0x109c]
mov qword [rbp + 0x40], rax
or esi, 0xffffffff
xor rbx, rbx
mov edi, dword [rbp + 0x30]
shr edi, 3
sub edi, 1
cmp ebx, edi
jg 0x444518
add edi, 1
cmp qword [rbp + 0x10f0], 0
je 0x44447c
mov dword [rbp + 0x54], 7
mov eax, dword [rbp + 0x54]
mov ecx, dword [rbp + 0x54]
movzx rcx, byte [rcx + rbp + 0x10f0]
add cl, 1
and cl, 0xff
mov byte [rax + rbp + 0x10f0], cl
mov eax, dword [rbp + 0x54]
cmp byte [rax + rbp + 0x10f0], 0
jne 0x444419
sub dword [rbp + 0x54], 1
cmp dword [rbp + 0x54], 0xffffffff
jne 0x4443e6
nop
mov rcx, rbp
mov edx, dword [rbp + 0x10f0]
call fcn.00443840
mov dword [rbp + 0x54], eax
mov rcx, rbp
mov edx, dword [rbp + 0x10f4]
call fcn.00443840
mov dword [rbp + 0x50], eax
mov rcx, rbp
lea rdx, [rbp + 0x54]
lea r8, [rbp + 0x50]
mov r9, qword [rbp + 0x40]
mov dword [rsp + 0x20], esi
call fcn.00443870
mov rcx, rbp
mov edx, dword [rbp + 0x54]
call fcn.00443840
mov rcx, qword [rbp + 0x38]
xor dword [rcx], eax
mov rcx, rbp
mov edx, dword [rbp + 0x50]
call fcn.00443840
mov rcx, qword [rbp + 0x38]
xor dword [rcx + 4], eax
jmp 0x444501
cmp byte [rbp + 0x10f8], 0
jne 0x4444e5
mov rcx, rbp
mov rax, qword [rbp + 0x38]
mov edx, dword [rax]
call fcn.00443840
mov dword [rbp + 0x54], eax
mov rcx, rbp
mov rax, qword [rbp + 0x38]
mov edx, dword [rax + 4]
call fcn.00443840
mov dword [rbp + 0x50], eax
mov rcx, rbp
lea rdx, [rbp + 0x54]
lea r8, [rbp + 0x50]
mov r9, qword [rbp + 0x40]
mov dword [rsp + 0x20], esi
call fcn.00443870
mov rcx, rbp
mov edx, dword [rbp + 0x54]
call fcn.00443840
mov rcx, qword [rbp + 0x38]
mov dword [rcx], eax
mov rcx, rbp
mov edx, dword [rbp + 0x50]
call fcn.00443840
mov rcx, qword [rbp + 0x38]
mov dword [rcx + 4], eax
jmp 0x444501
mov rcx, rbp
mov rax, qword [rbp + 0x38]
lea rdx, [rax + 4]
mov r8, qword [rbp + 0x38]
mov r9, qword [rbp + 0x40]
mov dword [rsp + 0x20], esi
call fcn.00443870
mov rax, qword [rbp + 0x38]
add rax, 8
mov qword [rbp + 0x38], rax
add ebx, 1
cmp ebx, edi
jne 0x4443d1
nop
lea rsp, [rbp + 0x10a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4446c0
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
test edi, edi
jle 0x444890
mov rcx, rbx
mov eax, edi
add eax, 2
mov r8d, 3
cdq
idiv r8d
mov rdx, rax
add edx, edx
add edx, edx
xor r8, r8
call fcn.00411810
mov rcx, qword [rbx]
mov r8d, 1
mov r9d, 3
mov eax, edi
cdq
idiv r9d
mov r9, rax
mov eax, r8d
cmp eax, r9d
jg 0x4447c0
add r9d, 1
movzx rdx, byte [rsi]
shl edx, 0x10
movzx r8, byte [rsi + 1]
shl r8d, 8
add edx, r8d
movzx r8, byte [rsi + 2]
add edx, r8d
lea r8, [0x00ae7c70]
mov r10d, edx
shr r10d, 0x12
and r10d, 0x3f
mov r10d, r10d
movzx r8, byte [r8 + r10]
mov byte [rcx], r8b
lea r8, [0x00ae7c70]
mov r10d, edx
shr r10d, 0xc
and r10d, 0x3f
mov r10d, r10d
movzx r8, byte [r8 + r10]
mov byte [rcx + 1], r8b
lea r8, [0x00ae7c70]
mov r10d, edx
shr r10d, 6
and r10d, 0x3f
mov r10d, r10d
movzx r8, byte [r8 + r10]
mov byte [rcx + 2], r8b
lea r8, [0x00ae7c70]
and edx, 0x3f
mov edx, edx
movzx rdx, byte [r8 + rdx]
mov byte [rcx + 3], dl
add rcx, 4
add rsi, 3
add eax, 1
cmp eax, r9d
jne 0x444724
nop
mov r8d, 3
mov eax, edi
cdq
idiv r8d
mov rax, rdx
sub eax, 1
test eax, eax
je 0x4447e5
sub eax, 1
test eax, eax
jne 0x444898
jmp 0x444829
movzx rdx, byte [rsi]
shl edx, 0x10
lea rax, [0x00ae7c70]
mov r8d, edx
shr r8d, 0x12
and r8d, 0x3f
mov r8d, r8d
movzx rax, byte [rax + r8]
mov byte [rcx], al
lea rax, [0x00ae7c70]
shr edx, 0xc
and edx, 0x3f
mov edx, edx
movzx rax, byte [rax + rdx]
mov byte [rcx + 1], al
mov byte [rcx + 2], 0x3d
mov byte [rcx + 3], 0x3d
jmp 0x444898
movzx rdx, byte [rsi]
shl edx, 0x10
movzx rax, byte [rsi + 1]
shl eax, 8
add edx, eax
lea rax, [0x00ae7c70]
mov r8d, edx
shr r8d, 0x12
and r8d, 0x3f
mov r8d, r8d
movzx rax, byte [rax + r8]
mov byte [rcx], al
lea rax, [0x00ae7c70]
mov r8d, edx
shr r8d, 0xc
and r8d, 0x3f
mov r8d, r8d
movzx rax, byte [rax + r8]
mov byte [rcx + 1], al
lea rax, [0x00ae7c70]
shr edx, 6
and edx, 0x3f
mov edx, edx
movzx rax, byte [rax + rdx]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
jmp 0x444898
mov rcx, rbx
call fcn.004103b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x446de0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
nop
mov byte [rbp + 0x67], 0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x446e3c
mov rcx, qword [rbp + 0x88]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x446e7a
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x446faf
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x88]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x50]
call fcn.004115a0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x446faf
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x446eca
mov rcx, qword [rbp + 0x88]
call fcn.00412090
mov rcx, rax
mov edx, 0x80000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x68], rax
jmp 0x446f1b
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x88]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x48]
call fcn.004115a0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileA
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x446faf
nop
mov rcx, qword [rbp + 0x68]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize
mov rcx, qword [rbp + 0x90]
mov edx, eax
xor r8, r8
call fcn.00411810
mov rax, qword [rbp + 0x90]
cmp qword [rax], 0
je 0x446f9b
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax]
call fcn.00410b90
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x90]
mov rdx, qword [rdx]
mov r8d, eax
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x446f9b
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax]
call fcn.00410b90
cmp dword [rbp + 0x60], eax
je 0x446fa0
xor rax, rax
jmp 0x446fa2
mov al, 1
mov byte [rbp + 0x67], al
nop
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.00410470
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x45a5e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx rax, r9b
cmp word [rdx + rax*2], 0xffff
jne 0x45a62d
mov ecx, 0x7fffffff
xor rax, rax
movzx r10, r9b
movsxd r11, eax
lea r11, [r11 + r11*2]
movzx r11, byte [r8 + r11]
sub r10d, r11d
movsxd r11, r10d
shr r11, 0x20
xor r10d, r11d
sub r10d, r11d
cmp r10d, ecx
jge 0x45a624
movzx rcx, r9b
mov word [rdx + rcx*2], ax
mov ecx, r10d
add eax, 1
cmp eax, 0x10
jne 0x45a5f4
nop
movzx r9, r9b
movzx rax, byte [rdx + r9*2]
ret
Function at 0x460da0
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x28], 0
je 0x460ea6
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x460e3b
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x28]
mov edx, 0xe
xor r8, r8
xor r9, r9
call sub.user32.dll_SendMessageW
mov rcx, qword [rbp + 0x28]
lea rcx, [rcx + 0x78]
lea rdx, [rax + 1]
call fcn.00412320
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x78]
call fcn.00410b80
mov rcx, qword [rbp + 0x28]
mov rcx, qword [rcx + 0x28]
mov edx, 0xd
movsxd r8, eax
mov rax, qword [rbp + 0x28]
mov r9, qword [rax + 0x78]
call sub.user32.dll_SendMessageW
mov rcx, qword [rbp + 0x28]
lea rcx, [rcx + 0x78]
mov edx, eax
call fcn.00412320
jmp 0x460ea6
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x28]
mov edx, 0xe
xor r8, r8
xor r9, r9
call sub.user32.dll_SendMessageA
lea rcx, [rbp + 0x38]
lea rdx, [rax + 1]
xor r8, r8
call fcn.00411810
mov rcx, qword [rbp + 0x38]
call fcn.00410b90

Function at 0x47bd00
Capabilities:
Get disk information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov rbp, rsp
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], r8
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
nop
mov ecx, 0x104
lea rdx, [rbp + 0x254]
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x47be1c
lea rbx, [rbp + 0x254]
mov word [rbx + 4], 0
mov rcx, rbx
lea rdx, [rbp + 0x48]
mov r8d, 0x104
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x47be02
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.00412190
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.00412990
test eax, eax
jle 0x47be02
xor rsi, rsi
cmp qword [rbp + 0x40], 0
je 0x47bdb2
mov rax, qword [rbp + 0x40]
mov esi, dword [rax - 4]
xor rdi, rdi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x47bdc5
mov rax, qword [rbp + 0x28]
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.00412130
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00412700
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.004124f0
jmp 0x47be1b
add rbx, 2
cmp word [rbx], 0
jne 0x47bdfe
add rbx, 4
test rbx, rbx
je 0x47be1b
cmp word [rbx], 0
jne 0x47bd52
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.00410440
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x468]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x47bfb0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x2b0], rcx
mov qword [rbp + 0x2b8], rdx
mov qword [rbp + 0x2c0], r8
mov dword [rbp + 0x2c8], r9d
nop
mov byte [rbp + 0x28f], 0
mov rcx, qword [rbp + 0x2c0]
call fcn.00410360
mov dword [rbp + 0x288], 0
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x288]
call sub.kernel32.dll_GetFileSize
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
jne 0x47c0c8
cmp dword [rbp + 0x288], 0
jne 0x47c0c8
mov ecx, 6
xor rdx, rdx
call fcn.0048b110
test al, al
je 0x47c0c8
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x78]
mov r8d, 0x104
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x47c0c8
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.00412190
mov rcx, rbp
lea rdx, [rbp + 0x60]
mov r8, qword [rbp + 0x58]
call fcn.0047bd00
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x60]
call fcn.004109b0
mov byte [rbp + 0x28f], 1
jmp 0x47c233
cmp dword [rbp + 0x284], 0
jne 0x47c0de
cmp dword [rbp + 0x288], 0
je 0x47c1cc
mov rcx, qword [rbp + 0x2b8]
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov qword [rbp + 0x290], rax
cmp qword [rbp + 0x290], 0x3ee
je 0x47c1cc
nop
mov rcx, qword [rbp + 0x290]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 1
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0x298], rax
cmp qword [rbp + 0x298], 0
je 0x47c1bf
nop
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
ror dword [rax - 0x75], 0x95
cwde
add al, byte [rax]
add byte [rbp + rcx*4 + 0x45], cl
js 0x47c1a9
mov ecx, 0x104
Function at 0x47c2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov byte [rbp + 0x67], 0
mov ecx, 6
xor rdx, rdx
call fcn.0048b110
test al, al
je 0x47c407
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
call fcn.0047eaf0
test al, al
je 0x47c407
mov rcx, qword [rbp + 0x80]
call fcn.0047e6c0
test al, 0x20
je 0x47c407
mov rcx, qword [rbp + 0x80]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 0xffffffff
je 0x47c407
mov eax, dword [rbp + 0x5c]
test eax, 0x400
je 0x47c407
mov eax, dword [rbp + 0x5c]
test eax, 0x10
je 0x47c394
mov dword [rbp + 0x60], 0x2000000
jmp 0x47c39b
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x80]
call fcn.00412090
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x47c407
nop
mov rcx, rbp
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x88]
mov r9d, dword [rbp + 0x60]
call fcn.0047bfb0
mov byte [rbp + 0x67], al
nop
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x47e6c0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
nop
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0047e638]
mov r8d, 1
mov r9d, 0x104
call fcn.00413f10
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0047e678]
mov r8d, 1
mov r9d, 0x104
call fcn.00413f10
movzx rax, byte [0x0047e96c]
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0047ebe0
test al, al
jne 0x47e764
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0047eaf0
test al, al
je 0x47e87c
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
call fcn.0047f700
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.0048b770
mov rcx, qword [rbp + 0x88]
call fcn.00412090
mov rcx, rax
mov rdx, qword [rbp + 0x70]
mov r8d, 0x104
lea r9, [rbp + 0x84]
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x47e877
mov eax, dword [rbp + 0x80]
test eax, 1
je 0x47e7ee
movzx rax, byte [rbp + 0x47]
or al, 1
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x80]
test eax, 2
je 0x47e807
movzx rax, byte [rbp + 0x47]
or al, 2
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x80]
test eax, 0x80
je 0x47e820
movzx rax, byte [rbp + 0x47]
or al, 0x20
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x88]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x47e850
sub eax, 1
test eax, eax
je 0x47e85d
sub eax, 1
test eax, eax
je 0x47e86a
sub eax, 1
test eax, eax
jne 0x47e8a7
movzx rax, byte [rbp + 0x47]
or al, 0x10
mov byte [rbp + 0x47], al
jmp 0x47e8a7
movzx rax, byte [rbp + 0x47]
or al, 4
mov byte [rbp + 0x47], al
jmp 0x47e8a7
movzx rax, byte [rbp + 0x47]
or al, 8
mov byte [rbp + 0x47], al
jmp 0x47e8a7
call fcn.0048c290
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00b6ff60]
call fcn.00416c50
mov rcx, qword [0x004744c0]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00489580
mov rcx, rax
call fcn.0040f400
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.00410440
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0047e678]
call fcn.004140f0
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0047e638]
call fcn.004140f0
lea rcx, [rbp + 0x88]
call fcn.00410360
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x47eaf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47eba2
mov ecx, eax
test ecx, 0x400
je 0x47eb97
test sil, sil
jne 0x47eb2f
mov al, 1
jmp 0x47ebcc
test eax, 0x10
je 0x47eb3f
xor rax, rax
jmp 0x47ebcc
mov rcx, rbx
call fcn.00412090
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x47eb8a
mov rcx, rax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x47ebcc
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
sete al
jmp 0x47ebcc
test eax, 0x10
sete al
jmp 0x47ebcc
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x47ebc5
cmp eax, 3
je 0x47ebc5
cmp eax, 0x7b
je 0x47ebc5
mov rcx, rbp
mov rdx, rbx
call fcn.0047eaa0
test al, al
jne 0x47ebca
xor rax, rax
jmp 0x47ebcc
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

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

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x47ece9
mov eax, r13d
test eax, 0x400
jne 0x47ec2a
invalid
test r13d, 0x10
setne dil
jmp 0x47ed0f
test sil, sil
je 0x47ec8a
mov rcx, rbx
call fcn.00412090
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x47ed0f
mov rcx, rax
call sub.kernel32.dll_CloseHandle
test r13d, 0x10
setne dil
jmp 0x47ed0f
test r13d, 0x10
je 0x47ec98
mov dil, 1
jmp 0x47ed0f
mov rcx, rbx
call fcn.00412090
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x47ece4
mov rcx, rax
call sub.kernel32.dll_CloseHandle
xor rdi, rdi
jmp 0x47ed0f
mov dil, 1
jmp 0x47ed0f
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x47ed07
cmp eax, 3
je 0x47ed07
cmp eax, 0x7b
je 0x47ed07
cmp eax, 0x35
je 0x47ed07
cmp eax, 0x15
jne 0x47ed0c
xor rdi, rdi
jmp 0x47ed0f
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret