joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438490
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 0x43857a
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 0x4384f1
cmp esi, 0x103
jne 0x438574
xor rsi, rsi
jmp 0x438574
cmp word [rbp + 0x286], 0x2e
jne 0x438552
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 0x438574
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, [0x00438664]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.004354a0
mov rax, qword [0x004898f8]
cmp dword [rax], 0
je 0x43856c
mov eax, 1
mov dword [rbp + 0x34], eax
jmp 0x438629
add ebx, 1
jmp 0x4384be
nop
jmp 0x438625
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
call fcn.0043d840
mov rcx, rax
mov qword [rbp + 0x28], rcx
mov dx, 0x20
call fcn.00429ce0
test rax, rax
je 0x4385a0
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 0x4385f3
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, [0x00438664]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.004354a0
jmp 0x438625
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00489928]
call fcn.0040eed0
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.0043cde0
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 0x439610
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 0x4396f1
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041d360
cmp word [rbp + 0x14c], 0x5a4d
jne 0x4396e9
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041d440
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041d360
cmp dword [rbp + 0x18c], 0x4550
jne 0x4396e9
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041d360
cmp word [rbp + 0x148], 0
jbe 0x4396e9
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 0x43cbd0
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.00432270
mov rbx, rax
test rbx, rbx
je 0x43cc3b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x43ccc7
test rbx, rbx
je 0x43cc56
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.004325e0
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x43ccbb
lea rcx, [rbp + 0x28]
mov rdx, qword [0x00489518]
call fcn.0040eed0
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.0043cde0
test rbx, rbx
je 0x43ccc7
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x00489cd8]
xor rdx, rdx
call fcn.00434760
nop
lea rcx, [rbp + 0x28]
call fcn.0040a270
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x43d5f0
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 0x43d61c
call sub.kernel32.dll_GetLastError_2
mov dword [0x00480240], eax
test esi, esi
je 0x43d62a
mov rcx, rbx
call fcn.0043d640
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x43d8c0
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 0x43d8f1
xor rax, rax
jmp 0x43d8f3
mov al, 1
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x43d900
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 0x43d933
mov al, 1
jmp 0x43d990
cmp eax, 2
je 0x43d98d
cmp eax, 5
je 0x43d98d
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 0x43d98d
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x43d98d
mov al, 1
jmp 0x43d990
xor rax, rax
lea rsp, [rbp + 0x260]
pop rbp
ret

Function at 0x43e010
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 0x43e12a
mov rax, qword [0x00489650]
cmp qword [rax], 0
jne 0x43e12a
mov rax, qword [0x00489410]
cmp byte [rax], 0
jne 0x43e12a
mov ecx, 0x20c
call fcn.00405270
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x43e12a
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x43e12a
test rbx, rbx
je 0x43e08c
mov rax, rbx
mov rcx, rax
call fcn.0040aa60
jmp 0x43e08f
xor rax, rax
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x004a7288]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.004052d0
cmp qword [rbp + 0x28], 0
je 0x43e12a
mov rax, qword [0x004897a8]
cmp byte [rax], 0
je 0x43e0d4
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x004a7288]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.00429d70
jmp 0x43e118
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0043e134]
call fcn.00429d90
cmp qword [rbp + 0x28], 0
je 0x43e0f9
mov rax, qword [rbp + 0x28]
mov rcx, rax
call fcn.0040aa60
jmp 0x43e0fc
xor rax, rax
mov dword [0x004a7288], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00429d90
mov rax, qword [0x004897a8]
mov byte [rax], 1
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_SetConsoleTitleW
mov rcx, qword [rbp + 0x28]
call fcn.004052a0
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x43e140
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x43e17b
mov rax, qword [0x00489650]
cmp qword [rax], 0
jne 0x43e17b
mov rax, qword [0x004897a8]
cmp byte [rax], 0
je 0x43e17b
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x004a7288], 0
mov rax, qword [0x004897a8]
mov byte [rax], 0
add rsp, 0x28
ret
Function at 0x43e700
Capabilities:
Encode data using xor
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.0043e6d0
cmp eax, 0xffffffff
jne 0x43e94b
mov rcx, rbx
call fcn.0040aa60
mov edi, eax
mov rax, qword [0x00489670]
mov rcx, qword [rax]
call fcn.0040c890
mov r13, rax
mov rcx, qword [0x00489670]
mov rdx, qword [0x004299f0]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040cc30
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.00405270
mov rcx, qword [0x00489670]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x00489670]
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.0041d9e0
mov rax, qword [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
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 [0x00489670]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x20]
xor rax, rax
mov rdx, qword [0x00489670]
mov rdx, qword [rdx]
movsxd r8, r13d
add r8, r8
lea r8, [r8 + r8*2]
mov edx, dword [rdx + r8*8 + 0x18]
sub edx, 1
cmp eax, edx
jg 0x43e92c
add edx, 1
xor byte [rcx], 0xff
add rcx, 1
add eax, 1
cmp eax, edx
jne 0x43e91e
nop
mov rax, qword [0x00489670]
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 0x43eb90
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ebx, ecx
mov rsi, rdx
mov edi, r8d
mov r13, r9
or r14d, 0xffffffff
mov rax, qword [0x00489670]
mov rcx, qword [rax]
call fcn.0040c8a0
xor rcx, rcx
mov edx, eax
mov eax, ecx
cmp eax, edx
jg 0x43ebee
add edx, 1
mov rcx, qword [0x00489670]
mov rcx, qword [rcx]
movsxd r8, eax
add r8, r8
lea r8, [r8 + r8*2]
cmp dword [rcx + r8*8 + 8], ebx
jne 0x43ebe7
mov r14d, eax
jmp 0x43ebee
add eax, 1
cmp eax, edx
jne 0x43ebc7
nop
mov rax, qword [0x00489670]
mov rax, qword [rax]
movsxd rcx, r14d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rdx, qword [0x00489670]
mov rdx, qword [rdx]
movsxd r8, r14d
add r8, r8
lea r8, [r8 + r8*2]
mov eax, dword [rax + rcx*8 + 0x18]
sub eax, dword [rdx + r8*8 + 0x28]
cmp eax, edi
jae 0x43ec2a
mov dword [r13], eax
jmp 0x43ec2e
mov dword [r13], edi
mov rax, qword [0x00489670]
mov rax, qword [rax]
movsxd rcx, r14d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rax, qword [rax + rcx*8 + 0x20]
mov rcx, qword [0x00489670]
mov rcx, qword [rcx]
movsxd rdx, r14d
add rdx, rdx
lea rdx, [rdx + rdx*2]
movsxd rcx, dword [rcx + rdx*8 + 0x28]
lea rax, [rax + rcx]
mov rcx, rax
mov rdx, rsi
mov r8d, dword [r13]
call fcn.00405640
xor rax, rax
mov ecx, dword [r13]
sub ecx, 1
cmp eax, ecx
jg 0x43ec92
add ecx, 1
xor byte [rsi], 0xff
add rsi, 1
add eax, 1
cmp eax, ecx
jne 0x43ec84
nop
mov rax, qword [0x00489670]
mov rax, qword [rax]
movsxd r14, r14d
add r14, r14
lea r14, [r14 + r14*2]
mov ecx, dword [r13]
add dword [rax + r14*8 + 0x28], ecx
mov al, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x440c70
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 rax, qword [rbp + 0x30]
test rax, rax
je 0x440ca9
mov rax, qword [rbp + 0x30]
mov rcx, rax
call fcn.0040aa60
mov ebx, eax
jmp 0x440cac
xor rbx, rbx
xor rax, rax
mov rsi, qword [rbp + 0x2f8]
jmp 0x440cc7
add eax, 1
jmp 0x440cc1
add rsi, 2
cmp word [rsi], 0
jne 0x440cbd
cmp word [rsi], 0
jne 0x440cb8
movsxd rcx, eax
movsxd r8, ebx
mov rax, qword [rbp + 0x2f8]
neg rax
lea rax, [rsi + rax]
mov r9d, 2
cqo
idiv r9
lea rax, [r8 + rax + 1]
imul rcx, rax
add rcx, rcx
call fcn.00405270
mov rdi, rax
mov rsi, qword [rbp + 0x2f8]
mov r13, rdi
jmp 0x440d49
mov rcx, r13
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.00429c40
movsxd rax, ebx
lea rcx, [r13 + rax*2]
mov rdx, rsi
call fcn.00429d70
movsxd rax, ebx
add rax, rax
add r13, rax
jmp 0x440d3f
add rsi, 2
add r13, 2
cmp word [rsi], 0
jne 0x440d37
add r13, 2
cmp word [rsi], 0
jne 0x440d0d
mov word [r13], 0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov r8d, dword [rbp + 0x2f0]
mov r9, rdi
mov byte [rsp + 0x20], 1
call fcn.00441d70
mov esi, eax
mov rcx, rdi
call fcn.004052a0
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 0x440e54
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.00429d70
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x440e38
lea rcx, [rbp + 0x7c]
lea rdx, [0x00440e64]
call fcn.0041dab0
test eax, eax
je 0x440e38
lea rcx, [rbp + 0x7c]
lea rdx, [0x00440e68]
call fcn.0041dab0
test eax, eax
je 0x440e38
mov rcx, qword [rbp + 0x38]
call fcn.00429f20
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.00440c70
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x440dae
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 0x46f720
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 0x46f73c
cmp dword [rcx], 0x4550
je 0x46f744
mov eax, 1
jmp 0x46f798
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 0x46f77f
add esi, 1
cmp dword [rax + 0x14], r10d
jbe 0x46f774
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 0x46f762
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 0x46f7a0
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 0x46f7ec
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 0x46fa0a
cmp dword [rbp + 0xa0], 0
jne 0x46f819
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 0x46f885
mov rcx, qword [rbp + 0x80]
call fcn.0046eec0
mov rcx, qword [0x0046e198]
mov dl, 1
lea r8, [0x0046fa9c]
call fcn.00425ad0
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 0x46f8ec
mov rcx, qword [rbp + 0x80]
call fcn.0046eec0
mov rcx, qword [0x0046e198]
mov dl, 1
lea r8, [0x0046fac4]
call fcn.00425ad0
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.0046f720
test eax, eax
jne 0x46f91b
cmp dword [rbp + 0x50], 0
jbe 0x46f91b
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 0x46f96a
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 0x46f961
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46f96a
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46f93c
nop
cmp dword [rbp + 0x58], 0
jge 0x46f9ba
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x46f9b9
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 0x46f9b0
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46f9b9
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46f98b
nop
cmp dword [rbp + 0x58], 0
jge 0x46f9e9
mov rcx, qword [rbp + 0x80]
call fcn.0046eec0
mov rcx, qword [0x0046e198]
mov dl, 1
lea r8, [0x0046faf0]
call fcn.00425ad0
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.0046ef40
cmp byte [rbp + 0x88], 0
je 0x46fa65
mov rcx, qword [rbp + 0x80]
call fcn.00407ec0
mov qword [rbp + 0x80], rax
jmp 0x46fa65
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x471460
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 [0x0048909e], 0
je 0x47148b
mov byte [0x0048909c], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x004716cc]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x4716b3
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x00471716]
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 0x471526
cmp dword [rsp + 0x50], 4
jne 0x47150b
cmp dword [rbx], 0
setne al
mov byte [0x00489086], al
jmp 0x471526
cmp dword [rsp + 0x50], 1
jne 0x471526
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00489086], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x00471736]
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 0x471585
cmp dword [rsp + 0x50], 4
jne 0x47156a
cmp dword [rbx], 0
setne al
mov byte [0x0048909c], al
jmp 0x471585
cmp dword [rsp + 0x50], 1
jne 0x471585
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0048909c], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x00471758]
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 0x4715e4
cmp dword [rsp + 0x50], 4
jne 0x4715c9
cmp dword [rbx], 0
setne al
mov byte [0x0048909d], al
jmp 0x4715e4
cmp dword [rsp + 0x50], 1
jne 0x4715e4
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0048909d], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0047177a]
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 0x471645
cmp dword [rsp + 0x50], 4
jne 0x471627
movzx rax, word [rbx]
mov word [0x004890a4], ax
jmp 0x471645
cmp dword [rsp + 0x50], 1
jne 0x471645
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x004890a4], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x00471794]
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 0x4716a6
cmp dword [rsp + 0x50], 4
jne 0x471688
movzx rax, word [rbx]
mov word [0x004890a6], ax
jmp 0x4716a6
cmp dword [rsp + 0x50], 1
jne 0x4716a6
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x004890a6], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x47148e
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x4722f0
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.0042f540
test eax, eax
je 0x472305
call fcn.0043ecc0
call fcn.0043e960
cmp qword [0x004a74a0], 0
je 0x4723b4
xor rax, rax
mov rcx, qword [0x004a74a0]
mov ebx, dword [rcx + 0x30]
sub ebx, 1
mov dword [0x004a74a8], eax
cmp dword [0x004a74a8], ebx
jg 0x4723a7
add ebx, 1
lea rcx, [rbp + 0x38]
mov edx, 3
mov r8, qword [0x004a74b0]
lea r9, [0x00472410]
mov rax, qword [0x004a74a0]
mov rax, qword [rax + 0x38]
movsxd r10, dword [0x004a74a8]
lea r10, [r10 + r10*4]
mov rax, qword [rax + r10*8 + 0x20]
mov qword [rsp + 0x20], rax
call fcn.0040bb80
mov rcx, qword [rbp + 0x38]
call fcn.0040b6c0
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
add dword [0x004a74a8], 1
cmp dword [0x004a74a8], ebx
jne 0x47234a
nop
mov rcx, qword [0x004a74a0]
call fcn.00407520
mov rcx, qword [0x004a74b0]
call fcn.0041d970
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 0x472660
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x004a7808]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405640
mov dword [0x004a774c], 0xb7e15163
mov ebx, 1
lea rax, [0x004a774c]
movsxd rcx, ebx
lea rdx, [0x004a7748]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x472693
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x004a774c]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.004724b0
mov r13d, eax
lea rax, [0x004a774c]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.004724b0
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x4726cf
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret