joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f250
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 0x42f27a
cmp word [rcx + 2], 0x5c
jne 0x42f27a
mov eax, 0x23bd
jmp 0x42f4bc
call fcn.0042f210
mov rsi, rax
mov rdi, rax
test rax, rax
jne 0x42f295
mov eax, 8
jmp 0x42f4bc
mov rcx, rsi
call fcn.00429e60
cmp eax, 1
jl 0x42f2bf
movsxd rcx, eax
cmp word [rsi + rcx*2 - 2], 0x20
je 0x42f2b8
movsxd rax, eax
mov word [rsi + rax*2], 0
jmp 0x42f2bf
sub eax, 1
test eax, eax
jne 0x42f2a2
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 0x42f2ed
movzx r13, word [rbp + 0x2e]
and r13w, 0xffdf
mov word [rbp + 0x26], 0x3d
movzx rcx, word [rsi]
call fcn.0042a030
test al, al
je 0x42f327
cmp word [rsi + 2], 0x3a
jne 0x42f327
movzx rax, word [rsi]
movzx rcx, word [rsi]
sub cx, 0x61
cmp cx, 0x1a
jae 0x42f321
movzx rax, word [rsi]
and ax, 0xffdf
mov word [rbp + 0x28], ax
jmp 0x42f32c
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 0x42f368
call sub.kernel32.dll_GetLastError_2
jmp 0x42f4bc
cmp eax, 0x104
jbe 0x42f37b
mov eax, 0xce
jmp 0x42f4bc
cmp word [rbp + 0x2e], 0
je 0x42f389
cmp word [rbp + 0x30], 0x3a
je 0x42f394
mov eax, 3
jmp 0x42f4bc
cmp qword [rbp + 0x238], 0
jne 0x42f3b6
lea rcx, [rbp + 0x2e]
call fcn.00429e60
movsxd rax, eax
lea rax, [rbp + rax*2 + 0x2e]
mov qword [rbp + 0x238], rax
mov rax, qword [rbp + 0x238]
cmp word [rax], 0
jne 0x42f3f2
lea rax, [rbp + 0x34]
cmp qword [rbp + 0x238], rax
jbe 0x42f3f2
mov rax, qword [rbp + 0x238]
cmp word [rax - 2], 0x5c
jne 0x42f3f2
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 0x42f418
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42f418
cmp eax, 3
je 0x42f418
cmp eax, 0x7b
jne 0x42f4bc
mov rax, qword [0x00488798]
cmp byte [rax], 0
je 0x42f430
lea rcx, [rbp + 0x2e]
xor rdx, rdx
call fcn.0042f070
cmp ebx, 2
je 0x42f45d
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42f455
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x42f4bc
mov eax, 3
jmp 0x42f4bc
test eax, 0x410
je 0x42f4b6
test ebx, ebx
je 0x42f46d
cmp ebx, 1
jne 0x42f47a
cmp r13w, word [rbp + 0x28]
jne 0x42f47a
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x42f4af
lea rcx, [rbp + 0x26]
lea rdx, [rbp + 0x2e]
call fcn.0042cbf0
test eax, eax
jne 0x42f4a7
mov rcx, qword [0x00488e80]
xor rdx, rdx
call fcn.0042efb0
mov rcx, rdi
call fcn.0046e970
xor rax, rax
jmp 0x42f4bc
mov eax, 8
jmp 0x42f4bc
call sub.kernel32.dll_GetLastError_2
jmp 0x42f4bc
mov eax, 0x10b
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x42f520
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.00470ab0
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 0x42f680
lea rdi, [rbp + 0x36]
mov rcx, rdi
lea rdx, [0x0042f694]
mov r8d, 4
call fcn.0041dca0
test eax, eax
jne 0x42f5f8
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041ddf0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x42f5d7
cmp qword [rbp + 0x28], rbx
jbe 0x42f5d7
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 0x42f5cf
test esi, esi
setne al
jmp 0x42f685
xor rax, rax
jmp 0x42f685
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42f5f0
test esi, esi
setne al
jmp 0x42f685
xor rax, rax
jmp 0x42f685
cmp qword [rbp + 0x28], 0
je 0x42f609
mov rax, qword [rbp + 0x28]
cmp word [rax], 0
jne 0x42f61e
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne sil
movzx rsi, sil
jmp 0x42f680
mov rcx, rdi
mov edx, 0x37
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x448]
call fcn.0042e980
mov esi, eax
movzx rsi, sil
mov rcx, qword [rbp + 0x448]
call fcn.0042ea50
test esi, esi
jne 0x42f680
cmp word [rdi + 2], 0x5c
je 0x42f66d
cmp word [rdi + 2], 0x3a
jne 0x42f680
cmp word [rdi + 4], 0x5c
jne 0x42f680
cmp word [rdi + 6], 0
jne 0x42f680
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x42f680
mov esi, 1
test esi, esi
setne al
lea rsp, [rbp + 0x6a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4395e0
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 0x4396ca
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 0x439641
cmp esi, 0x103
jne 0x4396c4
xor rsi, rsi
jmp 0x4396c4
cmp word [rbp + 0x286], 0x2e
jne 0x4396a2
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 0x4396c4
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, [0x004397b4]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042f850
mov rax, qword [0x00488aa8]
cmp dword [rax], 0
je 0x4396bc
mov eax, 1
mov dword [rbp + 0x34], eax
jmp 0x439779
add ebx, 1
jmp 0x43960e
nop
jmp 0x439775
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
call fcn.004708e0
mov rcx, rax
mov qword [rbp + 0x28], rcx
mov dx, 0x20
call fcn.00429df0
test rax, rax
je 0x4396f0
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 0x439743
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, [0x004397b4]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042f850
jmp 0x439775
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00488ad8]
call fcn.0040ed70
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.0046fef0
mov dword [rbp + 0x34], esi
nop
lea rcx, [rbp + 0x48]
call fcn.0040a270
mov eax, dword [rbp + 0x34]
lea rsp, [rbp + 0x490]
pop rbx
pop rsi
pop rbp
ret
Function at 0x43a700
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 0x43a7e1
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041d260
cmp word [rbp + 0x14c], 0x5a4d
jne 0x43a7d9
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041d340
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041d260
cmp dword [rbp + 0x18c], 0x4550
jne 0x43a7d9
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041d260
cmp word [rbp + 0x148], 0
jbe 0x43a7d9
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041d260
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 0x43aa20
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.0043a9f0
cmp eax, 0xffffffff
jne 0x43ac53
mov rcx, rbx
call fcn.0040aa00
mov edi, eax
mov rax, qword [0x00488820]
mov rcx, qword [rax]
call fcn.0040c730
mov r13, rax
mov rcx, qword [0x00488820]
mov rdx, qword [0x00429af0]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040cad0
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.00405270
mov rcx, qword [0x00488820]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x00488820]
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.0041dae0
mov rax, qword [0x00488820]
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 [0x00488820]
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 [0x00488820]
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 [0x00488820]
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 [0x00488820]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
movsxd rcx, dword [rax + rcx*8 + 0x18]
call fcn.00405270
mov rcx, qword [0x00488820]
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 [0x00488820]
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 [0x00488820]
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 [0x00488820]
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 [0x00488820]
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 [0x00488820]
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 [0x00488820]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov edx, dword [rax + rdx*8 + 0x18]
call fcn.0042a2a0
mov rax, qword [0x00488820]
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 0x43ce40
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.00429e60
mov ebx, eax
xor rcx, rcx
mov rsi, qword [rbp + 0x2f8]
jmp 0x43ce86
add ecx, 1
jmp 0x43ce80
add rsi, 2
cmp word [rsi], 0
jne 0x43ce7c
cmp word [rsi], 0
jne 0x43ce77
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.0046ea10
mov r13, rax
mov rsi, qword [rbp + 0x2f8]
mov rdi, r13
jmp 0x43cf01
mov rcx, rdi
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.00429d50
movsxd rax, ebx
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.00429e80
movsxd rax, ebx
add rax, rax
add rdi, rax
jmp 0x43cef7
add rsi, 2
add rdi, 2
cmp word [rsi], 0
jne 0x43ceef
add rdi, 2
cmp word [rsi], 0
jne 0x43cec6
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.0043def0
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 0x43d002
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.00429e80
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x43cfe6
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043d014]
call fcn.0041dbb0
test eax, eax
je 0x43cfe6
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043d018]
call fcn.0041dbb0
test eax, eax
je 0x43cfe6
mov rcx, qword [rbp + 0x38]
call fcn.0042a010
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.0043ce40
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x43cf5c
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 0x43f380
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 [0x00488700]
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 [0x00488700]
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 0x43f3ec
xor rax, rax
jmp 0x43f4a1
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x43f3fe
xor rax, rax
jmp 0x43f4a1
mov rax, qword [rsp + 0x38]
mov esi, dword [rax]
mov eax, esi
test eax, eax
jbe 0x43f454
cmp eax, 3
jb 0x43f449
cmp byte [rbx], 0xa
jne 0x43f41b
cmp byte [rbx + 1], 0xd
je 0x43f426
cmp byte [rbx], 0xd
jne 0x43f449
cmp byte [rbx + 1], 0xa
jne 0x43f449
mov byte [rbx + 2], 0
mov esi, ebx
sub esi, dword [0x00488700]
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 0x43f454
sub eax, 1
add rbx, 1
test eax, eax
ja 0x43f40b
nop
mov rax, qword [0x00488b48]
mov ecx, dword [rax]
call fcn.0043a900
mov rcx, qword [0x00488b48]
mov ecx, dword [rcx]
test eax, eax
setne dl
movzx rdx, dl
mov r8, qword [0x00488700]
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 0x46b850
Capabilities:
Parse pe header

Disassembly:
push rsi
push rbx
mov rax, rcx
movsxd r10, dword [rax + 0x3c]
lea rcx, [rcx + r10]
cmp word [rax], 0x5a4d
jne 0x46b86c
cmp dword [rcx], 0x4550
je 0x46b874
mov eax, 1
jmp 0x46b8c8
lea rax, [rcx + 0x108]
xor r10, r10
xor r11, r11
xor rbx, rbx
movzx esi, word [rcx + 6]
sub esi, 1
cmp ebx, esi
jg 0x46b8af
add esi, 1
cmp dword [rax + 0x14], r10d
jbe 0x46b8a4
mov r10d, dword [rax + 0x14]
mov r11d, dword [rax + 0x14]
add r11d, dword [rax + 0x10]
add rax, 0x28
add ebx, 1
cmp ebx, esi
jne 0x46b892
nop
mov dword [rdx], r11d
lea rax, [rcx + 0xa8]
mov ecx, dword [rax]
mov dword [r8], ecx
mov eax, dword [rax + 4]
mov dword [r9], eax
xor rax, rax
pop rbx
pop rsi
ret
Function at 0x46b8d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
mov qword [rbp + 0x90], r8
mov dword [rbp + 0x98], r9d
cmp byte [rbp + 0x88], 0
je 0x46b91c
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.00407e80
mov qword [rbp + 0x80], rax
nop
cmp qword [rbp + 0x90], 0
jbe 0x46bb3a
cmp dword [rbp + 0xa0], 0
jne 0x46b949
mov rcx, qword [rbp + 0x90]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize_1
mov dword [rbp + 0xa0], eax
mov rcx, qword [rbp + 0x90]
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 rcx, qword [rbp + 0x80]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x80]
cmp qword [rax + 0x28], 0
jne 0x46b9b5
mov rcx, qword [rbp + 0x80]
call fcn.0046aff0
mov rcx, qword [0x0046a2c8]
mov dl, 1
lea r8, [0x0046bbcc]
call fcn.00425bd0
mov rcx, rax
call fcn.004094d0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax + 0x28]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x80]
cmp qword [rax + 8], 0
jne 0x46ba1c
mov rcx, qword [rbp + 0x80]
call fcn.0046aff0
mov rcx, qword [0x0046a2c8]
mov dl, 1
lea r8, [0x0046bbf4]
call fcn.00425bd0
mov rcx, rax
call fcn.004094d0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax + 8]
lea rdx, [rbp + 0x54]
lea r8, [rbp + 0x50]
lea r9, [rbp + 0x4c]
call fcn.0046b850
test eax, eax
jne 0x46ba4b
cmp dword [rbp + 0x50], 0
jbe 0x46ba4b
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0xa0], eax
mov dword [rbp + 0x58], 0xffffffff
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x46ba9a
add ecx, 1
mov rax, qword [rbp + 0x80]
mov rax, qword [rax + 8]
movsxd rdx, dword [rbp + 0x5c]
mov eax, dword [rax + rdx]
add eax, 1
cmp eax, 0x4034b51
jne 0x46ba91
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46ba9a
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46ba6c
nop
cmp dword [rbp + 0x58], 0
jge 0x46baea
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x46bae9
add ecx, 1
mov rax, qword [rbp + 0x80]
mov rax, qword [rax + 8]
movsxd rdx, dword [rbp + 0x5c]
mov eax, dword [rax + rdx]
add eax, 1
cmp eax, 0x6054b51
jne 0x46bae0
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46bae9
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46babb
nop
cmp dword [rbp + 0x58], 0
jge 0x46bb19
mov rcx, qword [rbp + 0x80]
call fcn.0046aff0
mov rcx, qword [0x0046a2c8]
mov dl, 1
lea r8, [0x0046bc20]
call fcn.00425bd0
mov rcx, rax
call fcn.004094d0
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
mov rax, qword [rbp + 0x80]
mov r8, qword [rax + 8]
mov r9d, dword [rbp + 0xa0]
call fcn.0046b070
cmp byte [rbp + 0x88], 0
je 0x46bb95
mov rcx, qword [rbp + 0x80]
call fcn.00407ec0
mov qword [rbp + 0x80], rax
jmp 0x46bb95
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x46d580
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 [0x00487dbe], 0
je 0x46d5ab
mov byte [0x00487dbc], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x0046d7ec]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x46d7d3
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046d836]
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 0x46d646
cmp dword [rsp + 0x50], 4
jne 0x46d62b
cmp dword [rbx], 0
setne al
mov byte [0x00487da6], al
jmp 0x46d646
cmp dword [rsp + 0x50], 1
jne 0x46d646
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00487da6], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046d856]
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 0x46d6a5
cmp dword [rsp + 0x50], 4
jne 0x46d68a
cmp dword [rbx], 0
setne al
mov byte [0x00487dbc], al
jmp 0x46d6a5
cmp dword [rsp + 0x50], 1
jne 0x46d6a5
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00487dbc], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046d878]
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 0x46d704
cmp dword [rsp + 0x50], 4
jne 0x46d6e9
cmp dword [rbx], 0
setne al
mov byte [0x00487dbd], al
jmp 0x46d704
cmp dword [rsp + 0x50], 1
jne 0x46d704
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00487dbd], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046d89a]
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 0x46d765
cmp dword [rsp + 0x50], 4
jne 0x46d747
movzx rax, word [rbx]
mov word [0x00487dc4], ax
jmp 0x46d765
cmp dword [rsp + 0x50], 1
jne 0x46d765
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00487dc4], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046d8b4]
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 0x46d7c6
cmp dword [rsp + 0x50], 4
jne 0x46d7a8
movzx rax, word [rbx]
mov word [0x00487dc6], ax
jmp 0x46d7c6
cmp dword [rsp + 0x50], 1
jne 0x46d7c6
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00487dc6], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x46d5ae
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x46e420
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov dword [rbp + 0x34], ecx
mov qword [rbp + 0x38], 0
nop
xor rcx, rcx
call fcn.004307d0
test eax, eax
je 0x46e435
call fcn.0043afb0
call fcn.0043ac60
cmp qword [0x004a5fe0], 0
je 0x46e4e4
xor rax, rax
mov rcx, qword [0x004a5fe0]
mov ebx, dword [rcx + 0x30]
sub ebx, 1
mov dword [0x004a5fe8], eax
cmp dword [0x004a5fe8], ebx
jg 0x46e4d7
add ebx, 1
lea rcx, [rbp + 0x38]
mov edx, 3
mov r8, qword [0x004a5ff0]
lea r9, [0x0046e540]
mov rax, qword [0x004a5fe0]
mov rax, qword [rax + 0x38]
movsxd r10, dword [0x004a5fe8]
lea r10, [r10 + r10*4]
mov rax, qword [rax + r10*8 + 0x20]
mov qword [rsp + 0x20], rax
call fcn.0040ba20
mov rcx, qword [rbp + 0x38]
call fcn.0040b560
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
add dword [0x004a5fe8], 1
cmp dword [0x004a5fe8], ebx
jne 0x46e47a
nop
mov rcx, qword [0x004a5fe0]
call fcn.00407520
mov rcx, qword [0x004a5ff0]
call fcn.0046e200
mov ecx, dword [rbp + 0x34]
call sub.kernel32.dll_ExitProcess_1
nop
lea rcx, [rbp + 0x38]
call fcn.0040a270
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret
Function at 0x46fce0
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.0042c880
mov rbx, rax
test rbx, rbx
je 0x46fd4b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x46fdd7
test rbx, rbx
je 0x46fd66
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.0042cbf0
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x46fdcb
lea rcx, [rbp + 0x28]
mov rdx, qword [0x004886c8]
call fcn.0040ed70
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.0046fef0
test rbx, rbx
je 0x46fdd7
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x00488e80]
xor rdx, rdx
call fcn.0042efb0
nop
lea rcx, [rbp + 0x28]
call fcn.0040a270
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret