joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417980
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00417970
mov ebx, eax
test ebx, ebx
je 0x4179cb
cmp dword [0x0088b120], 0xffffffff
jne 0x4179a4
mov ecx, 0xe2
call fcn.0040e3a0
mov ecx, ebx
call fcn.00417950
test rax, rax
jne 0x4179bd
mov ecx, 0xe2
call fcn.0040e3a0
jmp 0x4179cb
mov ecx, dword [0x0088b120]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x4179e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x008ba268], 0
je 0x417a1b
mov ecx, dword [0x0088b120]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x417a2e
call fcn.00417980
mov ecx, dword [0x0088b120]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x417a2e
mov rax, qword [0x008ba2a0]
jmp 0x417a2e
mov rax, qword gs:[0x58]
mov ecx, dword [0x0088b120]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42c0f0
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 0x42c204
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 0x42c1ea
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.0040fcc0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.004103b0
test eax, eax
jle 0x42c1ea
xor esi, esi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x42c19f
mov esi, dword [rax - 4]
xor edi, edi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x42c1ad
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.0040fc90
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00410220
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.00410000
jmp 0x42c203
add rbx, 2
cmp word [rbx], 0
jne 0x42c1e6
add rbx, 4
test rbx, rbx
je 0x42c203
cmp word [rbx], 0
jne 0x42c142
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.0040e7a0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x468]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x42c3a0
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.0040e6c0
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 0x42c4b7
cmp dword [rbp + 0x288], 0
jne 0x42c4b7
mov ecx, 6
xor edx, edx
call fcn.004382d0
test al, al
je 0x42c4b7
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x78]
mov r8d, 0x104
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42c4b7
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.0040fcc0
mov rcx, rbp
lea rdx, [rbp + 0x60]
mov r8, qword [rbp + 0x58]
call fcn.0042c0f0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x60]
call fcn.0040ecf0
mov byte [rbp + 0x28f], 1
jmp 0x42c621
cmp dword [rbp + 0x284], 0
jne 0x42c4cd
cmp dword [rbp + 0x288], 0
je 0x42c5ba
mov rcx, qword [rbp + 0x2b8]
xor edx, edx
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 0x42c5ba
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 0x42c5ad
nop
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, qword [rbp + 0x298]
lea r8, [rbp + 0x78]
mov r9d, 0x104
call fcn.0041be20
test eax, eax
jbe 0x42c5a0
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.0040fcc0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x48]
call fcn.0042c0f0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x50]
call fcn.0040ecf0
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_1
cmp byte [rbp + 0x28f], 0
jne 0x42c620
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x2b8]
call fcn.0042c250
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x40]
call fcn.0040ecf0
mov rax, qword [rbp + 0x2c0]
cmp qword [rax], 0
je 0x42c620
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov rax, qword [rbp + 0x2c0]
mov r8, qword [rax]
call fcn.0042c0f0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x38]
call fcn.0040ecf0
mov byte [rbp + 0x28f], 1
nop
lea rcx, [rbp + 0x38]
mov edx, 6
call fcn.0040e7a0
movzx rax, byte [rbp + 0x28f]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
Function at 0x42c6b0
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 edx, edx
call fcn.004382d0
test al, al
je 0x42c7c5
mov rcx, qword [rbp + 0x80]
xor edx, edx
call fcn.0042e380
test al, al
je 0x42c7c5
mov rcx, qword [rbp + 0x80]
call fcn.0042df70
test al, 0x20
je 0x42c7c5
mov rcx, qword [rbp + 0x80]
call fcn.0040fbf0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 0xffffffff
je 0x42c7c5
mov eax, dword [rbp + 0x5c]
test eax, 0x400
je 0x42c7c5
mov eax, dword [rbp + 0x5c]
test eax, 0x10
je 0x42c752
mov dword [rbp + 0x60], 0x2000000
jmp 0x42c759
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x80]
call fcn.0040fbf0
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 0x42c7c5
nop
mov rcx, rbp
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x88]
mov r9d, dword [rbp + 0x60]
call fcn.0042c3a0
mov byte [rbp + 0x67], al
nop
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle_1
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x42df70
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 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 [0x0042def0]
mov r8d, 1
mov r9d, 0x104
call fcn.00411c40
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042df30]
mov r8d, 1
mov r9d, 0x104
call fcn.00411c40
movzx rax, byte [0x0042e1f0]
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042e460
test al, al
jne 0x42e015
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042e380
test al, al
je 0x42e124
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x40]
call fcn.0042eaf0
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.004389a0
mov rcx, qword [rbp + 0x88]
call fcn.0040fbf0
mov rbx, rax
mov rcx, rbx
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 0x42e11f
mov eax, dword [rbp + 0x80]
test eax, 1
je 0x42e0a2
movzx rax, byte [rbp + 0x4f]
or al, 1
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 2
je 0x42e0bb
movzx rax, byte [rbp + 0x4f]
or al, 2
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 0x80
je 0x42e0d4
movzx rax, byte [rbp + 0x4f]
or al, 0x20
mov byte [rbp + 0x4f], al
mov rcx, rbx
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x42e0f8
sub eax, 1
test eax, eax
je 0x42e105
sub eax, 1
test eax, eax
je 0x42e112
sub eax, 1
test eax, eax
jne 0x42e14f
movzx rax, byte [rbp + 0x4f]
or al, 0x10
mov byte [rbp + 0x4f], al
jmp 0x42e14f
movzx rax, byte [rbp + 0x4f]
or al, 4
mov byte [rbp + 0x4f], al
jmp 0x42e14f
movzx rax, byte [rbp + 0x4f]
or al, 8
mov byte [rbp + 0x4f], al
jmp 0x42e14f
call fcn.00439be0
lea rcx, [rbp + 0x50]
mov rdx, qword [0x008b2ee8]
call fcn.00416040
mov rcx, qword [0x004233e0]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.004367b0
mov rcx, rax
call fcn.0040d940
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0040e7a0
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042df30]
call fcn.00411e10
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0042def0]
call fcn.00411e10
lea rcx, [rbp + 0x88]
call fcn.0040e6c0
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x42e380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040fbf0
mov rdi, rax
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42e42d
mov ecx, eax
test ecx, 0x400
je 0x42e422
test sil, sil
jne 0x42e3c3
mov al, 1
jmp 0x42e456
test eax, 0x10
je 0x42e3d2
xor eax, eax
jmp 0x42e456
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
cmp rax, 0xffffffffffffffff
je 0x42e415
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42e456
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42e456
test eax, 0x10
sete al
jmp 0x42e456
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42e450
cmp eax, 3
je 0x42e450
cmp eax, 0x7b
je 0x42e450
mov rcx, rbp
mov rdx, rbx
call fcn.0042e330
test al, al
jne 0x42e454
xor eax, eax
jmp 0x42e456
mov al, 1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov ebx, edx
xor esi, esi
call fcn.0040fbf0
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x42e54e
mov eax, edi
test eax, 0x400
jne 0x42e4a2
test edi, 0x10
setne sil
jmp 0x42e581
test bl, bl
je 0x42e4f8
mov rcx, r13
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 0x42e581
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test edi, 0x10
setne sil
jmp 0x42e581
test edi, 0x10
je 0x42e505
mov sil, 1
jmp 0x42e581
mov rcx, r13
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 0x42e549
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor esi, esi
jmp 0x42e581
mov sil, 1
jmp 0x42e581
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42e579
cmp eax, 3
je 0x42e579
cmp eax, 0xa1
je 0x42e579
cmp eax, 0x7b
je 0x42e579
cmp eax, 0x35
je 0x42e579
cmp eax, 0x15
je 0x42e579
cmp eax, 0x43
jne 0x42e57e
xor esi, esi
jmp 0x42e581
mov sil, 1
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x42ee20
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.0040fbf0
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x434b20
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x434b47
movzx rax, word [rbp + 0x2c]
jmp 0x434b49
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x4365c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00436370
mov ebx, eax
mov rax, qword [0x008b2de0]
cmp byte [rax], 0
je 0x4366f6
mov rcx, qword [0x008b2a30]
call fcn.0040a8e0
call fcn.00409350
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436580]
mov r8d, 1
movsxd r9, esi
call fcn.00411c40
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0043678c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43673b
mov rcx, qword [0x008ba270]
call fcn.004123e0
mov rcx, rax
mov rax, qword [0x008b29b0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436580]
call fcn.00411e10
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4382f0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040ed70
lea rcx, [rbp + 0x58]
call fcn.0040ef40
mov rcx, qword [rbp + 0x58]
call fcn.0040fbf0
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x438400
mov ecx, dword [rbp + 0x54]
call fcn.00409030
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040fbf0
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4383f6
mov rcx, qword [rbp + 0x68]
lea rdx, [0x00438458]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4383f6
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.00409060
nop
lea rcx, [rbp + 0x58]
call fcn.0040e6c0
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x439830
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040ee90
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00416110
mov esi, eax
cmp esi, 0x104
jbe 0x43988c
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00409030
mov rdi, rax
jmp 0x439890
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00416110
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x4398e7
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x4398c8
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4398f9
mov rcx, rdi
call fcn.00409060
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x77f250
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
movzx rax, byte [rax + 0x19]
movzx rcx, byte [rbp + 0x2f]
or al, cl
test al, al
je 0x77f2e2
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x77f2e2
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x40], 0
jne 0x77f2e2
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x77f30c
lea rcx, [rbp + 0x38]
mov rdx, qword [0x008b2d38]
call fcn.00416040
mov rcx, qword [0x00749cf0]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.004367b0
mov rcx, rax
call fcn.0040d940
jmp 0x77f30c
lea rcx, [rbp + 0x30]
mov rdx, qword [0x008b2d38]
call fcn.00416040
mov rcx, qword [0x00749cf0]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.004367b0
mov rcx, rax
call fcn.0040d940
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e7a0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77fe80
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0077f090
jmp 0x77fedb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77ff00
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0077f090
cmp esi, 1
jne 0x77ff2a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x8169b0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x8169b7
nop
ret

Function at 0x838600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.0040e870
nop
mov qword [rbp + 0x58], 0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x80]
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rax + rcx]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x88], 0
je 0x838737
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x88]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x48], rax
xor eax, eax
mov rcx, qword [rbp + 0x48]
mov ebx, dword [rcx + 0x18]
sub ebx, 1
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], ebx
jg 0x838736
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040f200
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x28]
call fcn.0040f5c0
test eax, eax
jne 0x838727
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
movzx eax, word [rax + rcx*2]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x34]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x58], rax
jmp 0x838736
add dword [rbp + 0x44], 1
sub ebx, 1
test ebx, ebx
jne 0x838695
nop
nop
lea rcx, [rbp + 0x28]
call fcn.0040e710
lea rcx, [rbp + 0x88]
call fcn.0040e710
mov rax, qword [rbp + 0x58]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x838790
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0xa0], rcx
nop
lea rcx, [0x00838980]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x58]
lea rdx, [0x0083899a]
xor r8, r8
call fcn.0040f200
mov rcx, rbx
mov rdx, qword [rbp + 0x58]
call fcn.00838600
mov qword [0x008aa490], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040f850
mov rcx, rax
call qword [0x008aa490]
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0xffffffff
je 0x83891e
mov eax, dword [rbp + 0x78]
test eax, 0x400
je 0x83890d
mov eax, dword [rbp + 0x78]
test eax, 0x10
je 0x838836
mov byte [rbp + 0x7f], 0
jmp 0x838942
lea rcx, [0x00838980]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x50]
lea rdx, [0x008389ad]
xor r8, r8
call fcn.0040f200
mov rcx, rbx
mov rdx, qword [rbp + 0x50]
call fcn.00838600
mov qword [0x008aa488], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040f850
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 qword [0x008aa488]
mov qword [rbp + 0x70], rax
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp qword [rbp + 0x70], 0xffffffffffffffff
je 0x838901
lea rcx, [0x00838980]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x48]
lea rdx, [0x008389b9]
xor r8, r8
call fcn.0040f200
mov rcx, rbx
mov rdx, qword [rbp + 0x48]
call fcn.00838600
mov qword [0x008aa480], rax
mov rcx, qword [rbp + 0x70]
call qword [0x008aa480]
mov byte [rbp + 0x7f], 1
jmp 0x838942
cmp dword [rbp + 0x6c], 0x20
sete al
mov byte [rbp + 0x7f], al
jmp 0x838942
mov eax, dword [rbp + 0x78]
test eax, 0x10
sete al
mov byte [rbp + 0x7f], al
jmp 0x838942
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x6c], 2
je 0x838938
cmp dword [rbp + 0x6c], 3
je 0x838938
cmp dword [rbp + 0x6c], 0x7b
jne 0x83893c
xor eax, eax
jmp 0x83893e
mov al, 1
mov byte [rbp + 0x7f], al
nop
lea rcx, [rbp + 0x48]
mov edx, 3
call fcn.0040e7d0
movzx rax, byte [rbp + 0x7f]
lea rsp, [rbp + 0x88]
pop rbx
pop rbp
ret

Function at 0x83d280
Capabilities:
Get disk information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov qword [rsp + 0x40], rcx
xor ebx, ebx
cmp qword [rsp + 0x40], 0
je 0x83d2f7
mov rcx, qword [rsp + 0x40]
call fcn.0083d620
test al, al
je 0x83d2f7
mov rcx, qword [rsp + 0x40]
call fcn.0083d370
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov rcx, qword [rsp + 0x40]
sub esi, 1
movsxd rsi, esi
movzx rcx, word [rcx + rsi*2]
mov edx, ecx
mov r8d, ecx
sub r8w, 0x61
cmp r8w, 0x1a
jae 0x83d2db
mov edx, ecx
and dx, 0xffdf
mov ecx, edx
cmp cx, 0x41
jb 0x83d2f7
cmp cx, 0x5a
ja 0x83d2f7
sub cl, 0x41
shr eax, cl
and eax, 1
cmp eax, 1
sete bl
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret