joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f500
Capabilities:
Read file via mapping

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
xor rsi, rsi
cmp byte [0x00ba5120], 0
jne 0x42f685
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x42f583
mov ecx, 0x40
mov edx, 0x10000
call sub.kernel32.dll_LocalAlloc
mov rdi, rax
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x8000
call sub.kernel32.dll_GetModuleFileNameW
mov rcx, rdi
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
mov rbx, rax
jmp 0x42f5dd
mov ecx, 0x40
mov edx, 0x105
call sub.kernel32.dll_LocalAlloc
mov rdi, rax
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x104
call sub.kernel32.dll_GetModuleFileNameA
mov rcx, rdi
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_CreateFileA
mov rbx, rax
mov rcx, rdi
call sub.kernel32.dll_LocalFree
cmp rbx, 0xffffffffffffffff
je 0x42f685
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x42f627
mov rcx, rbx
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov rdi, rax
jmp 0x42f650
mov rcx, rbx
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingA
mov rdi, rax
test rdi, rdi
je 0x42f67d
mov rcx, rdi
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov rsi, rax
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rax, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x444870
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 0x44488b
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.00444000
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 0x44494d
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.00444000
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 0x4449e1
nop
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
cmp eax, 4
jne 0x4449de
nop
lea rsp, [rbp + 0x58]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x444aa0
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, [0x00ba7cc8]
mov ecx, 9
rep movsq qword [rdi], qword [rsi]
lea rdi, [rbp + 0x58]
lea rsi, [0x00ba7d10]
mov ecx, 0x200
rep movsq qword [rdi], qword [rsi]
mov rcx, rbx
call fcn.00411760
mov rsi, rax
mov rcx, rbx
call fcn.00410cf0
mov rcx, rbp
mov rdx, rsi
mov r8d, eax
call fcn.00444870
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x38], rax
movzx rax, byte [rbp + 0x37]
test al, al
je 0x444b3c
lea rax, [rbp + 0x1058]
mov qword [rbp + 0x40], rax
mov esi, 1
jmp 0x444b4a
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 0x444ca8
add edi, 1
cmp qword [rbp + 0x10f0], 0
je 0x444c0c
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 0x444ba9
sub dword [rbp + 0x54], 1
cmp dword [rbp + 0x54], 0xffffffff
jne 0x444b76
nop
mov rcx, rbp
mov edx, dword [rbp + 0x10f0]
call fcn.00443fd0
mov dword [rbp + 0x54], eax
mov rcx, rbp
mov edx, dword [rbp + 0x10f4]
call fcn.00443fd0
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.00444000
mov rcx, rbp
mov edx, dword [rbp + 0x54]
call fcn.00443fd0
mov rcx, qword [rbp + 0x38]
xor dword [rcx], eax
mov rcx, rbp
mov edx, dword [rbp + 0x50]
call fcn.00443fd0
mov rcx, qword [rbp + 0x38]
xor dword [rcx + 4], eax
jmp 0x444c91
cmp byte [rbp + 0x10f8], 0
jne 0x444c75
mov rcx, rbp
mov rax, qword [rbp + 0x38]
mov edx, dword [rax]
call fcn.00443fd0
mov dword [rbp + 0x54], eax
mov rcx, rbp
mov rax, qword [rbp + 0x38]
mov edx, dword [rax + 4]
call fcn.00443fd0
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.00444000
mov rcx, rbp
mov edx, dword [rbp + 0x54]
call fcn.00443fd0
mov rcx, qword [rbp + 0x38]
mov dword [rcx], eax
mov rcx, rbp
mov edx, dword [rbp + 0x50]
call fcn.00443fd0
mov rcx, qword [rbp + 0x38]
mov dword [rcx + 4], eax
jmp 0x444c91
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.00444000
mov rax, qword [rbp + 0x38]
add rax, 8
mov qword [rbp + 0x38], rax
add ebx, 1
cmp ebx, edi
jne 0x444b61
nop
lea rsp, [rbp + 0x10a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x47c4a0
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 0x47c5bc
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 0x47c5a2
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.00412350
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.00412b50
test eax, eax
jle 0x47c5a2
xor rsi, rsi
cmp qword [rbp + 0x40], 0
je 0x47c552
mov rax, qword [rbp + 0x40]
mov esi, dword [rax - 4]
xor rdi, rdi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x47c565
mov rax, qword [rbp + 0x28]
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.004122f0
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.004128c0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.004126b0
jmp 0x47c5bb
add rbx, 2
cmp word [rbx], 0
jne 0x47c59e
add rbx, 4
test rbx, rbx
je 0x47c5bb
cmp word [rbx], 0
jne 0x47c4f2
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.004105a0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x468]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x47c750
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.004104c0
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 0x47c868
cmp dword [rbp + 0x288], 0
jne 0x47c868
mov ecx, 6
xor rdx, rdx
call fcn.0048ba90
test al, al
je 0x47c868
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x78]
mov r8d, 0x104
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x47c868
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.00412350
mov rcx, rbp
lea rdx, [rbp + 0x60]
mov r8, qword [rbp + 0x58]
call fcn.0047c4a0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x60]
call fcn.00410b10
mov byte [rbp + 0x28f], 1
jmp 0x47c9d3
cmp dword [rbp + 0x284], 0
jne 0x47c87e
cmp dword [rbp + 0x288], 0
je 0x47c96c
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 0x47c96c
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 0x47c95f
nop
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, qword [rbp + 0x298]
lea r8, [rbp + 0x78]
mov r9d, 0x104
call fcn.00469320
test eax, eax
jbe 0x47c952
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.00412350
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x48]
call fcn.0047c4a0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x50]
call fcn.00410b10
mov byte [rbp + 0x28f], 1
nop
mov rcx, qword [rbp + 0x298]
call sub.kernel32.dll_UnmapViewOfFile
nop
mov rcx, qword [rbp + 0x290]
call sub.kernel32.dll_CloseHandle
cmp byte [rbp + 0x28f], 0
jne 0x47c9d2
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x2b8]
call fcn.0047c610
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x40]
call fcn.00410b10
mov rax, qword [rbp + 0x2c0]
cmp qword [rax], 0
je 0x47c9d2
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov rax, qword [rbp + 0x2c0]
mov r8, qword [rax]
call fcn.0047c4a0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x38]
call fcn.00410b10
mov byte [rbp + 0x28f], 1
nop
lea rcx, [rbp + 0x38]
mov edx, 6
call fcn.004105a0
movzx rax, byte [rbp + 0x28f]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
Function at 0x47ca90
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.0048ba90
test al, al
je 0x47cba7
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
call fcn.0047f290
test al, al
je 0x47cba7
mov rcx, qword [rbp + 0x80]
call fcn.0047ee60
test al, 0x20
je 0x47cba7
mov rcx, qword [rbp + 0x80]
call fcn.00412250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 0xffffffff
je 0x47cba7
mov eax, dword [rbp + 0x5c]
test eax, 0x400
je 0x47cba7
mov eax, dword [rbp + 0x5c]
test eax, 0x10
je 0x47cb34
mov dword [rbp + 0x60], 0x2000000
jmp 0x47cb3b
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x80]
call fcn.00412250
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 0x47cba7
nop
mov rcx, rbp
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x88]
mov r9d, dword [rbp + 0x60]
call fcn.0047c750
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 0x47ee60
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 [0x0047edd8]
mov r8d, 1
mov r9d, 0x104
call fcn.00414120
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0047ee18]
mov r8d, 1
mov r9d, 0x104
call fcn.00414120
movzx rax, byte [0x0047f10c]
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0047f380
test al, al
jne 0x47ef04
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0047f290
test al, al
je 0x47f01c
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
call fcn.0047fea0
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.0048c0f0
mov rcx, qword [rbp + 0x88]
call fcn.00412250
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 0x47f017
mov eax, dword [rbp + 0x80]
test eax, 1
je 0x47ef8e
movzx rax, byte [rbp + 0x47]
or al, 1
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x80]
test eax, 2
je 0x47efa7
movzx rax, byte [rbp + 0x47]
or al, 2
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x80]
test eax, 0x80
je 0x47efc0
movzx rax, byte [rbp + 0x47]
or al, 0x20
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x88]
call fcn.00412250
mov rcx, rax
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x47eff0
sub eax, 1
test eax, eax
je 0x47effd
sub eax, 1
test eax, eax
je 0x47f00a
sub eax, 1
test eax, eax
jne 0x47f047
movzx rax, byte [rbp + 0x47]
or al, 0x10
mov byte [rbp + 0x47], al
jmp 0x47f047
movzx rax, byte [rbp + 0x47]
or al, 4
mov byte [rbp + 0x47], al
jmp 0x47f047
movzx rax, byte [rbp + 0x47]
or al, 8
mov byte [rbp + 0x47], al
jmp 0x47f047
call fcn.0048cdc0
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00c462e0]
call fcn.00416f10
mov rcx, qword [0x00474c60]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00489f00
mov rcx, rax
call fcn.0040f560
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.004105a0
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0047ee18]
call fcn.00414300
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0047edd8]
call fcn.00414300
lea rcx, [rbp + 0x88]
call fcn.004104c0
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x47f290
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.00412250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47f342
mov ecx, eax
test ecx, 0x400
je 0x47f337
test sil, sil
jne 0x47f2cf
mov al, 1
jmp 0x47f36c
test eax, 0x10
je 0x47f2df
xor rax, rax
jmp 0x47f36c
mov rcx, rbx
call fcn.00412250
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 0x47f32a
mov rcx, rax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x47f36c
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
sete al
jmp 0x47f36c
test eax, 0x10
sete al
jmp 0x47f36c
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x47f365
cmp eax, 3
je 0x47f365
cmp eax, 0x7b
je 0x47f365
mov rcx, rbp
mov rdx, rbx
call fcn.0047f240
test al, al
jne 0x47f36a
xor rax, rax
jmp 0x47f36c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x47f380
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.00412250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x47f489
mov eax, r13d
test eax, 0x400
jne 0x47f3ca
test r13d, 0x10
setne dil
jmp 0x47f4af
test sil, sil
je 0x47f42a
mov rcx, rbx
call fcn.00412250
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 0x47f4af
mov rcx, rax
call sub.kernel32.dll_CloseHandle
test r13d, 0x10
setne dil
jmp 0x47f4af
test r13d, 0x10
je 0x47f438
mov dil, 1
jmp 0x47f4af
mov rcx, rbx
call fcn.00412250
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 0x47f484
mov rcx, rax
call sub.kernel32.dll_CloseHandle
xor rdi, rdi
jmp 0x47f4af
mov dil, 1
jmp 0x47f4af
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x47f4a7
cmp eax, 3
je 0x47f4a7
cmp eax, 0x7b
je 0x47f4a7
cmp eax, 0x35
je 0x47f4a7
cmp eax, 0x15
jne 0x47f4ac
xor rdi, rdi
jmp 0x47f4af
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x47f770
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x2c], edx
mov byte [rbp + 0x3f], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
nop
xor rax, rax
mov dword [rbp + 0x28], eax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x30]
call fcn.00410b90
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x47f82f
mov rcx, qword [rbp + 0x30]
call fcn.00412250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
test eax, 0x400
je 0x47f82f
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call fcn.0047ca90
test al, al
je 0x47f82f
mov rcx, qword [rbp + 0x50]
call fcn.00480140
test al, al
je 0x47f822
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.0047fdb0
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.0048c0f0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x50]
call fcn.004126b0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.00410b90
mov rcx, qword [rbp + 0x58]
call fcn.00412250
mov rcx, rax
mov edx, dword [rbp + 0x2c]
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x47f84f
call sub.kernel32.dll_GetLastError
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.004105a0
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret

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

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
xor rax, rax
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x20]
call fcn.00412250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47f956
mov eax, ebx
test eax, 0x400
je 0x47f94a
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.0047ca90
test al, al
je 0x47f94a
mov rcx, qword [rbp + 0x48]
call fcn.00480140
test al, al
je 0x47f937
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.0047fdb0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0048c0f0
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.004126b0
mov rcx, qword [rbp + 0x48]
call fcn.00412250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
test ebx, 1
setne al
mov byte [rbp + 0x2f], al
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.004105a0
lea rcx, [rbp + 0x48]
call fcn.004104c0
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret

Function at 0x480210
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.00412250
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x48e070
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x828
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
call fcn.004104c0
mov rcx, rsi
call fcn.00412250
mov rcx, rax
lea rdx, [rbp + 0x20]
mov r8d, 0x400
call sub.kernel32.dll_GetEnvironmentVariableW
mov edi, eax
cmp edi, 0x400
jge 0x48e0c2
mov rcx, rbx
lea rdx, [rbp + 0x20]
mov r8d, edi
call fcn.00410780
jmp 0x48e0f0
mov rcx, rbx
mov edx, edi
sub edx, 1
call fcn.004124e0
mov rcx, rsi
call fcn.00412250
mov rsi, rax
mov rcx, qword [rbx]
call fcn.00412250
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableW
mov rax, rbx
lea rsp, [rbp + 0x828]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4ac4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rdx
mov rbx, r8
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x70]
call fcn.0042f230
test rax, rax
je 0x4ac5b2
cmp word [rax + 0x18], 0x20b
jne 0x4ac51c
lea rax, [rax + 0x90]
mov rcx, qword [rbp + 0x70]
mov edx, dword [rax]
lea rsi, [rcx + rdx]
mov r13d, dword [rax]
add r13d, dword [rax + 4]
jmp 0x4ac534
lea rax, [rax + 0x80]
mov rcx, qword [rbp + 0x70]
mov edx, dword [rax]
lea rsi, [rcx + rdx]
mov r13d, dword [rax]
add r13d, dword [rax + 4]
test rsi, rsi
je 0x4ac5b2
jmp 0x4ac5ab
cmp dword [rsi + 0x10], r13d
jbe 0x4ac54b
mov rcx, rbp
call fcn.004ac290
jmp 0x4ac5b1
cmp dword [rsi + 0x10], 0
je 0x4ac5a7
mov rax, qword [rbp + 0x70]
mov ecx, dword [rsi + 0x10]
lea rdi, [rax + rcx]
jmp 0x4ac5a1
mov rax, qword [rbp + 0x28]
cmp qword [rdi], rax
jne 0x4ac59d
mov rcx, rdi
mov edx, 8
mov r8d, 0x40
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4ac59d
mov qword [rdi], rbx
mov rcx, rdi
mov edx, 8
mov r8d, dword [rbp + 0x3c]
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
add rdi, 8
cmp qword [rdi], 0
jne 0x4ac55e
add rsi, 0x14
cmp dword [rsi + 0xc], 0
jne 0x4ac53b
nop
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret