joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bed0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov ebx, edx
cmp word [rcx], 0x5c
jne 0x42befa
cmp word [rcx + 2], 0x5c
jne 0x42befa
mov eax, 0x23bd
jmp 0x42c13c
call fcn.0042be90
mov rsi, rax
mov rdi, rax
test rax, rax
jne 0x42bf15
mov eax, 8
jmp 0x42c13c
mov rcx, rsi
call fcn.00426cd0
cmp eax, 1
jl 0x42bf3f
movsxd rcx, eax
cmp word [rsi + rcx*2 - 2], 0x20
je 0x42bf38
movsxd rax, eax
mov word [rsi + rax*2], 0
jmp 0x42bf3f
sub eax, 1
test eax, eax
jne 0x42bf22
nop
mov ecx, 0x104
lea rdx, [rbp + 0x2e]
call sub.kernel32.dll_GetCurrentDirectoryW
movzx r13, word [rbp + 0x2e]
movzx rax, word [rbp + 0x2e]
sub ax, 0x61
cmp ax, 0x1a
jae 0x42bf6d
movzx r13, word [rbp + 0x2e]
and r13w, 0xffdf
mov word [rbp + 0x26], 0x3d
movzx rcx, word [rsi]
call fcn.00426ea0
test al, al
je 0x42bfa7
cmp word [rsi + 2], 0x3a
jne 0x42bfa7
movzx rax, word [rsi]
movzx rcx, word [rsi]
sub cx, 0x61
cmp cx, 0x1a
jae 0x42bfa1
movzx rax, word [rsi]
and ax, 0xffdf
mov word [rbp + 0x28], ax
jmp 0x42bfac
mov word [rbp + 0x28], r13w
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0
mov word [rbp + 0x234], 0
mov rcx, rsi
mov edx, 0x104
lea r8, [rbp + 0x2e]
lea r9, [rbp + 0x238]
call sub.kernel32.dll_GetFullPathNameW
test eax, eax
jne 0x42bfe8
call sub.kernel32.dll_GetLastError_2
jmp 0x42c13c
cmp eax, 0x104
jbe 0x42bffb
mov eax, 0xce
jmp 0x42c13c
cmp word [rbp + 0x2e], 0
je 0x42c009
cmp word [rbp + 0x30], 0x3a
je 0x42c014
mov eax, 3
jmp 0x42c13c
cmp qword [rbp + 0x238], 0
jne 0x42c036
lea rcx, [rbp + 0x2e]
call fcn.00426cd0
movsxd rax, eax
lea rax, [rbp + rax*2 + 0x2e]
mov qword [rbp + 0x238], rax
mov rax, qword [rbp + 0x238]
cmp word [rax], 0
jne 0x42c072
lea rax, [rbp + 0x34]
cmp qword [rbp + 0x238], rax
jbe 0x42c072
mov rax, qword [rbp + 0x238]
cmp word [rax - 2], 0x5c
jne 0x42c072
sub qword [rbp + 0x238], 2
mov rax, qword [rbp + 0x238]
mov word [rax], 0
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42c098
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42c098
cmp eax, 3
je 0x42c098
cmp eax, 0x7b
jne 0x42c13c
mov rax, qword [0x0044cd30]
cmp byte [rax], 0
je 0x42c0b0
lea rcx, [rbp + 0x2e]
xor rdx, rdx
call fcn.0042bcf0
cmp ebx, 2
je 0x42c0dd
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42c0d5
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x42c13c
mov eax, 3
jmp 0x42c13c
test eax, 0x410
je 0x42c136
test ebx, ebx
je 0x42c0ed
cmp ebx, 1
jne 0x42c0fa
cmp r13w, word [rbp + 0x28]
jne 0x42c0fa
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x42c12f
lea rcx, [rbp + 0x26]
lea rdx, [rbp + 0x2e]
call fcn.00429870
test eax, eax
jne 0x42c127
mov rcx, qword [0x0044d358]
xor rdx, rdx
call fcn.0042bc30
mov rcx, rdi
call fcn.0043d8a0
xor rax, rax
jmp 0x42c13c
mov eax, 8
jmp 0x42c13c
call sub.kernel32.dll_GetLastError_2
jmp 0x42c13c
mov eax, 0x10b
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x42c1a0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6a8
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0043f9e0
mov rdi, rax
mov rcx, rdi
mov edx, 0x208
lea r8, [rbp + 0x36]
lea r9, [rbp + 0x28]
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x42c300
lea rdi, [rbp + 0x36]
mov rcx, rdi
lea rdx, [0x0042c314]
mov r8d, 4
call fcn.0041d7e0
test eax, eax
jne 0x42c278
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041d930
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x42c257
cmp qword [rbp + 0x28], rbx
jbe 0x42c257
mov rax, qword [rbp + 0x28]
movzx rdi, word [rax]
mov rax, qword [rbp + 0x28]
mov word [rax], 0
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov rax, qword [rbp + 0x28]
mov word [rax], di
cmp esi, 0xffffffff
je 0x42c24f
test esi, esi
setne al
jmp 0x42c305
xor rax, rax
jmp 0x42c305
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42c270
test esi, esi
setne al
jmp 0x42c305
xor rax, rax
jmp 0x42c305
cmp qword [rbp + 0x28], 0
je 0x42c289
mov rax, qword [rbp + 0x28]
cmp word [rax], 0
jne 0x42c29e
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne sil
movzx rsi, sil
jmp 0x42c300
mov rcx, rdi
mov edx, 0x37
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x448]
call fcn.0042b600
mov esi, eax
movzx rsi, sil
mov rcx, qword [rbp + 0x448]
call fcn.0042b6d0
test esi, esi
jne 0x42c300
cmp word [rdi + 2], 0x5c
je 0x42c2ed
cmp word [rdi + 2], 0x3a
jne 0x42c300
cmp word [rdi + 4], 0x5c
jne 0x42c300
cmp word [rdi + 6], 0
jne 0x42c300
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x42c300
mov esi, 1
test esi, esi
setne al
lea rsp, [rbp + 0x6a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x436260
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x490
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x48], 0
nop
mov rax, qword [rbp + 0x28]
test rax, rax
jne 0x43634a
xor rbx, rbx
mov rcx, qword [rbp + 0x20]
mov edx, ebx
lea r8, [rbp + 0x286]
mov r9d, 0x20a
call sub.advapi32.dll_RegEnumKeyW
mov esi, eax
test esi, esi
je 0x4362c1
cmp esi, 0x103
jne 0x436344
xor rsi, rsi
jmp 0x436344
cmp word [rbp + 0x286], 0x2e
jne 0x436322
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x286]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x436344
lea rax, [rbp + 0x286]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00436434]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042c4d0
mov rax, qword [0x0044cff8]
cmp dword [rax], 0
je 0x43633c
mov eax, 1
mov dword [rbp + 0x34], eax
jmp 0x4363f9
add ebx, 1
jmp 0x43628e
nop
jmp 0x4363f5
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
call fcn.0043f810
mov rcx, rax
mov qword [rbp + 0x28], rcx
mov dx, 0x20
call fcn.00426c60
test rax, rax
je 0x436370
mov word [rax], 0
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x4363c3
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00436434]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042c4d0
jmp 0x4363f5
lea rcx, [rbp + 0x48]
mov rdx, qword [0x0044d028]
call fcn.0040eb30
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x40], 0xa
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8, [rbp + 0x38]
xor r9, r9
call fcn.0043ee20
mov dword [rbp + 0x34], esi
nop
lea rcx, [rbp + 0x48]
call fcn.0040a860
mov eax, dword [rbp + 0x34]
lea rsp, [rbp + 0x490]
pop rbx
pop rsi
pop rbp
ret
Function at 0x437380
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x190
mov rbp, rsp
xor rbx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov rsi, rax
test rsi, rsi
je 0x437461
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041d360
cmp word [rbp + 0x14c], 0x5a4d
jne 0x437459
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041d390
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041d360
cmp dword [rbp + 0x18c], 0x4550
jne 0x437459
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041d360
cmp word [rbp + 0x148], 0
jbe 0x437459
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041d360
movzx rbx, word [rbp + 0x8c]
mov rcx, rsi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
lea rsp, [rbp + 0x190]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4376a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.00437670
cmp eax, 0xffffffff
jne 0x4378d3
mov rcx, rbx
call fcn.0040af20
mov edi, eax
mov rax, qword [0x0044cdb0]
mov rcx, qword [rax]
call fcn.0040c580
mov r13, rax
mov rcx, qword [0x0044cdb0]
mov rdx, qword [0x00426960]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040c920
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.00405280
mov rcx, qword [0x0044cdb0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8]
mov rdx, rbx
call fcn.0041d630
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov dword [rax + rcx*8 + 8], esi
mov ecx, esi
call sub.msvcrt.dll__get_osfhandle
mov rcx, qword [0x0044cdb0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x10], rax
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
xor rdx, rdx
xor r8, r8
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
mov rcx, qword [0x0044cdb0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov dword [rcx + rdx*8 + 0x18], eax
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
movsxd rcx, dword [rax + rcx*8 + 0x18]
call fcn.00405280
mov rcx, qword [0x0044cdb0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x20], rax
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer_1
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov rdx, qword [rax + rdx*8 + 0x20]
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd r8, r13d
add r8, r8
lea r8, [r8 + r8*2]
mov r8d, dword [rax + r8*8 + 0x18]
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile_1
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x20]
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov edx, dword [rax + rdx*8 + 0x18]
call fcn.00427110
mov rax, qword [0x0044cdb0]
mov rax, qword [rax]
movsxd r13, r13d
add r13, r13
lea r13, [r13 + r13*2]
mov dword [rax + r13*8 + 0x28], 0
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x439ac0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x48], r9
mov rcx, qword [rbp + 0x30]
call fcn.00426cd0
mov ebx, eax
xor rcx, rcx
mov rsi, qword [rbp + 0x2f8]
jmp 0x439b06
add ecx, 1
jmp 0x439b00
add rsi, 2
cmp word [rsi], 0
jne 0x439afc
cmp word [rsi], 0
jne 0x439af7
mov rax, qword [rbp + 0x2f8]
neg rax
lea rax, [rsi + rax]
mov r8d, 2
cqo
idiv r8
mov edx, ebx
add edx, eax
add edx, 1
imul ecx, edx
add ecx, ecx
call fcn.0043d940
mov r13, rax
mov rsi, qword [rbp + 0x2f8]
mov rdi, r13
jmp 0x439b81
mov rcx, rdi
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.00426bc0
movsxd rax, ebx
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.00426cf0
movsxd rax, ebx
add rax, rax
add rdi, rax
jmp 0x439b77
add rsi, 2
add rdi, 2
cmp word [rsi], 0
jne 0x439b6f
add rdi, 2
cmp word [rsi], 0
jne 0x439b46
mov word [rdi], 0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov r8d, dword [rbp + 0x2f0]
mov r9, r13
mov byte [rsp + 0x20], 1
call fcn.0043ab70
mov esi, eax
mov rax, qword [rbp + 0x38]
mov word [rax], 0x2a
mov word [rax + 2], 0
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindFirstFileW_1
mov rbx, rax
mov rax, qword [rbp + 0x38]
mov word [rax], 0
cmp rbx, 0xffffffffffffffff
je 0x439c82
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.00426cf0
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x439c66
lea rcx, [rbp + 0x7c]
lea rdx, [0x00439c94]
call fcn.0041d700
test eax, eax
je 0x439c66
lea rcx, [rbp + 0x7c]
lea rdx, [0x00439c98]
call fcn.0041d700
test eax, eax
je 0x439c66
mov rcx, qword [rbp + 0x38]
call fcn.00426e80
mov rsi, rax
add rsi, 2
mov word [rsi], 0x5c
add rsi, 2
mov word [rsi], 0
mov rcx, qword [rbp + 0x30]
mov rdx, rsi
mov r8, qword [rbp + 0x40]
mov r9, qword [rbp + 0x48]
mov eax, dword [rbp + 0x2f0]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x2f8]
mov qword [rsp + 0x28], rax
call fcn.00439ac0
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x439bdc
mov rcx, rbx
call sub.kernel32.dll_FindClose_1
mov eax, esi
lea rsp, [rbp + 0x2a0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x43c000
Capabilities:
Read file on windows

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x58
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x44], r8d
mov qword [rsp + 0x38], r9
call sub.msvcrt.dll__get_osfhandle
mov r13, rax
mov rbx, qword [0x0044cc98]
mov rcx, r13
xor rdx, rdx
xor r8, r8
mov r9d, 1
call sub.kernel32.dll_SetFilePointer_1
mov edi, eax
mov rcx, r13
mov rdx, qword [0x0044cc98]
mov r8d, dword [rsp + 0x44]
mov r9, qword [rsp + 0x38]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x43c06c
xor rax, rax
jmp 0x43c121
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x43c07e
xor rax, rax
jmp 0x43c121
mov rax, qword [rsp + 0x38]
mov esi, dword [rax]
mov eax, esi
test eax, eax
jbe 0x43c0d4
cmp eax, 3
jb 0x43c0c9
cmp byte [rbx], 0xa
jne 0x43c09b
cmp byte [rbx + 1], 0xd
je 0x43c0a6
cmp byte [rbx], 0xd
jne 0x43c0c9
cmp byte [rbx + 1], 0xa
jne 0x43c0c9
mov byte [rbx + 2], 0
mov esi, ebx
sub esi, dword [0x0044cc98]
add esi, 2
mov rcx, r13
mov edx, edi
add edx, esi
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer_1
jmp 0x43c0d4
sub eax, 1
add rbx, 1
test eax, eax
ja 0x43c08b
nop
mov rax, qword [0x0044d090]
mov ecx, dword [rax]
call fcn.00437580
mov rcx, qword [0x0044d090]
mov ecx, dword [rcx]
test eax, eax
setne dl
movzx rdx, dl
mov r8, qword [0x0044cc98]
mov r9d, esi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x43c810
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov qword [rsp + 0x40], 0xffffffff80000002
mov qword [rsp + 0x48], 0xffffffff80000001
cmp byte [0x0044c04e], 0
je 0x43c83b
mov byte [0x0044c04c], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x0043ca7c]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x43ca63
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043cac6]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c8d6
cmp dword [rsp + 0x50], 4
jne 0x43c8bb
cmp dword [rbx], 0
setne al
mov byte [0x0044c036], al
jmp 0x43c8d6
cmp dword [rsp + 0x50], 1
jne 0x43c8d6
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0044c036], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043cae6]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c935
cmp dword [rsp + 0x50], 4
jne 0x43c91a
cmp dword [rbx], 0
setne al
mov byte [0x0044c04c], al
jmp 0x43c935
cmp dword [rsp + 0x50], 1
jne 0x43c935
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0044c04c], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043cb08]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c994
cmp dword [rsp + 0x50], 4
jne 0x43c979
cmp dword [rbx], 0
setne al
mov byte [0x0044c04d], al
jmp 0x43c994
cmp dword [rsp + 0x50], 1
jne 0x43c994
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0044c04d], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043cb2a]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c9f5
cmp dword [rsp + 0x50], 4
jne 0x43c9d7
movzx rax, word [rbx]
mov word [0x0044c054], ax
jmp 0x43c9f5
cmp dword [rsp + 0x50], 1
jne 0x43c9f5
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x0044c054], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043cb44]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43ca56
cmp dword [rsp + 0x50], 4
jne 0x43ca38
movzx rax, word [rbx]
mov word [0x0044c056], ax
jmp 0x43ca56
cmp dword [rsp + 0x50], 1
jne 0x43ca56
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x0044c056], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x43c83e
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x43ec10
Capabilities:
Set current directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rbp, rsp
mov dword [rbp + 0x24], ecx
mov qword [rbp + 0x28], 0
nop
xor rdi, rdi
mov word [rbp + 0x248], 0x3d
mov eax, dword [rbp + 0x24]
add ax, 0x40
mov word [rbp + 0x24a], ax
mov word [rbp + 0x24c], 0x3a
mov word [rbp + 0x24e], 0
xor rsi, rsi
lea rcx, [rbp + 0x248]
call fcn.00429500
mov rbx, rax
test rbx, rbx
je 0x43ec7b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x43ed07
test rbx, rbx
je 0x43ec96
mov ecx, 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx rax, word [rbp + 0x24a]
mov word [rbp + 0x3e], ax
movzx rax, word [rbp + 0x24c]
mov word [rbp + 0x40], ax
mov word [rbp + 0x42], 0x5c
mov word [rbp + 0x44], 0
lea rcx, [rbp + 0x248]
lea rdx, [rbp + 0x3e]
call fcn.00429870
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x43ecfb
lea rcx, [rbp + 0x28]
mov rdx, qword [0x0044cc78]
call fcn.0040eb30
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.0043ee20
test rbx, rbx
je 0x43ed07
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x0044d358]
xor rdx, rdx
call fcn.0042bc30
nop
lea rcx, [rbp + 0x28]
call fcn.0040a860
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x43f630
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
mov edx, 1
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x43f65c
call sub.kernel32.dll_GetLastError_2
mov dword [0x0044c2ec], eax
test esi, esi
je 0x43f66a
mov rcx, rbx
call fcn.0043f680
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x43f890
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov word [rbp + 0x28], cx
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0x5c
mov word [rbp + 0x2e], 0
lea rcx, [rbp + 0x28]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x43f8c1
xor rax, rax
jmp 0x43f8c3
mov al, 1
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x43f8d0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x260
mov rbp, rsp
mov word [rbp + 0x44], cx
mov word [rbp + 0x46], 0x3a
mov word [rbp + 0x48], 0x5c
mov word [rbp + 0x4a], 0
lea rcx, [rbp + 0x44]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x43f903
mov al, 1
jmp 0x43f960
cmp eax, 2
je 0x43f95d
cmp eax, 5
je 0x43f95d
lea rcx, [rbp + 0x44]
lea rdx, [rbp + 0x4e]
mov r8d, 0x104
lea r9, [rbp + 0x258]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x43f95d
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x43f95d
mov al, 1
jmp 0x43f960
xor rax, rax
lea rsp, [rbp + 0x260]
pop rbp
ret

Function at 0x43ff50
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov rbx, rcx
test rbx, rbx
je 0x44004e
mov rax, qword [0x0044cd88]
cmp qword [rax], 0
jne 0x44004e
mov rax, qword [0x0044cb80]
cmp byte [rax], 0
jne 0x44004e
mov ecx, 0x20c
call fcn.00405280
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x44004e
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x44004e
mov rcx, rbx
call fcn.00426cd0
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x0046b0c4]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.004052e0
cmp qword [rbp + 0x28], 0
je 0x44004e
mov rax, qword [0x0044cef0]
cmp byte [rax], 0
je 0x440007
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x0046b0c4]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.00426cf0
jmp 0x44003c
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00440058]
call fcn.00426d10
mov rcx, qword [rbp + 0x28]
call fcn.00426cd0
mov dword [0x0046b0c4], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00426d10
mov rax, qword [0x0044cef0]
mov byte [rax], 1
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_SetConsoleTitleW
mov rcx, qword [rbp + 0x28]
call fcn.004052b0
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret