joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439800
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 0x4398ea
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 0x439861
cmp esi, 0x103
jne 0x4398e4
xor rsi, rsi
jmp 0x4398e4
cmp word [rbp + 0x286], 0x2e
jne 0x4398c2
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 0x4398e4
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, [0x004399d4]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042fa70
mov rax, qword [0x00488a90]
cmp dword [rax], 0
je 0x4398dc
mov eax, 1
mov dword [rbp + 0x34], eax
jmp 0x439999
add ebx, 1
jmp 0x43982e
nop
jmp 0x439995
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
call fcn.00470b20
mov rcx, rax
mov qword [rbp + 0x28], rcx
mov dx, 0x20
call fcn.00429f50
test rax, rax
je 0x439910
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 0x439963
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, [0x004399d4]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042fa70
jmp 0x439995
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00488ac0]
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.00470130
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 0x43a920
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 0x43aa01
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041d3d0
cmp word [rbp + 0x14c], 0x5a4d
jne 0x43a9f9
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041d4b0
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041d3d0
cmp dword [rbp + 0x18c], 0x4550
jne 0x43a9f9
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041d3d0
cmp word [rbp + 0x148], 0
jbe 0x43a9f9
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041d3d0
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 0x43ac40
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.0043ac10
cmp eax, 0xffffffff
jne 0x43ae8b
mov rcx, rbx
call fcn.0040aa60
mov edi, eax
mov rax, qword [0x00488808]
mov rcx, qword [rax]
call fcn.0040c890
mov r13, rax
mov rcx, qword [0x00488808]
mov rdx, qword [0x00429c60]
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 [0x00488808]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x00488808]
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.0041dc50
mov rax, qword [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 [0x00488808]
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 0x43ae6c
add edx, 1
xor byte [rcx], 0xff
add rcx, 1
add eax, 1
cmp eax, edx
jne 0x43ae5e
nop
mov rax, qword [0x00488808]
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 0x43d080
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.00429fc0
mov ebx, eax
xor rcx, rcx
mov rsi, qword [rbp + 0x2f8]
jmp 0x43d0c6
add ecx, 1
jmp 0x43d0c0
add rsi, 2
cmp word [rsi], 0
jne 0x43d0bc
cmp word [rsi], 0
jne 0x43d0b7
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.0046ec50
mov r13, rax
mov rsi, qword [rbp + 0x2f8]
mov rdi, r13
jmp 0x43d141
mov rcx, rdi
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.00429eb0
movsxd rax, ebx
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.00429fe0
movsxd rax, ebx
add rax, rax
add rdi, rax
jmp 0x43d137
add rsi, 2
add rdi, 2
cmp word [rsi], 0
jne 0x43d12f
add rdi, 2
cmp word [rsi], 0
jne 0x43d106
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.0043e130
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 0x43d242
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.00429fe0
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x43d226
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043d254]
call fcn.0041dd20
test eax, eax
je 0x43d226
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043d258]
call fcn.0041dd20
test eax, eax
je 0x43d226
mov rcx, qword [rbp + 0x38]
call fcn.0042a170
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.0043d080
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x43d19c
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 0x43f5c0
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 [0x004886e8]
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 [0x004886e8]
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 0x43f62c
xor rax, rax
jmp 0x43f6e1
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x43f63e
xor rax, rax
jmp 0x43f6e1
mov rax, qword [rsp + 0x38]
mov esi, dword [rax]
mov eax, esi
test eax, eax
jbe 0x43f694
cmp eax, 3
jb 0x43f689
cmp byte [rbx], 0xa
jne 0x43f65b
cmp byte [rbx + 1], 0xd
je 0x43f666
cmp byte [rbx], 0xd
jne 0x43f689
cmp byte [rbx + 1], 0xa
jne 0x43f689
mov byte [rbx + 2], 0
mov esi, ebx
sub esi, dword [0x004886e8]
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 0x43f694
sub eax, 1
add rbx, 1
test eax, eax
ja 0x43f64b
nop
mov rax, qword [0x00488b30]
mov ecx, dword [rax]
call fcn.0043ab20
mov rcx, qword [0x00488b30]
mov ecx, dword [rcx]
test eax, eax
setne dl
movzx rdx, dl
mov r8, qword [0x004886e8]
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 0x46ba90
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 0x46baac
cmp dword [rcx], 0x4550
je 0x46bab4
mov eax, 1
jmp 0x46bb08
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 0x46baef
add esi, 1
cmp dword [rax + 0x14], r10d
jbe 0x46bae4
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 0x46bad2
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 0x46bb10
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 0x46bb5c
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 0x46bd7a
cmp dword [rbp + 0xa0], 0
jne 0x46bb89
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 0x46bbf5
mov rcx, qword [rbp + 0x80]
call fcn.0046b230
mov rcx, qword [0x0046a508]
mov dl, 1
lea r8, [0x0046be0c]
call fcn.00425d40
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 0x46bc5c
mov rcx, qword [rbp + 0x80]
call fcn.0046b230
mov rcx, qword [0x0046a508]
mov dl, 1
lea r8, [0x0046be34]
call fcn.00425d40
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.0046ba90
test eax, eax
jne 0x46bc8b
cmp dword [rbp + 0x50], 0
jbe 0x46bc8b
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 0x46bcda
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 0x46bcd1
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46bcda
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46bcac
nop
cmp dword [rbp + 0x58], 0
jge 0x46bd2a
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x46bd29
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 0x46bd20
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46bd29
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46bcfb
nop
cmp dword [rbp + 0x58], 0
jge 0x46bd59
mov rcx, qword [rbp + 0x80]
call fcn.0046b230
mov rcx, qword [0x0046a508]
mov dl, 1
lea r8, [0x0046be60]
call fcn.00425d40
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.0046b2b0
cmp byte [rbp + 0x88], 0
je 0x46bdd5
mov rcx, qword [rbp + 0x80]
call fcn.00407ec0
mov qword [rbp + 0x80], rax
jmp 0x46bdd5
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x46d7c0
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 [0x00487dfe], 0
je 0x46d7eb
mov byte [0x00487dfc], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x0046da2c]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x46da13
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046da76]
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 0x46d886
cmp dword [rsp + 0x50], 4
jne 0x46d86b
cmp dword [rbx], 0
setne al
mov byte [0x00487de6], al
jmp 0x46d886
cmp dword [rsp + 0x50], 1
jne 0x46d886
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00487de6], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046da96]
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 0x46d8e5
cmp dword [rsp + 0x50], 4
jne 0x46d8ca
cmp dword [rbx], 0
setne al
mov byte [0x00487dfc], al
jmp 0x46d8e5
cmp dword [rsp + 0x50], 1
jne 0x46d8e5
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00487dfc], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046dab8]
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 0x46d944
cmp dword [rsp + 0x50], 4
jne 0x46d929
cmp dword [rbx], 0
setne al
mov byte [0x00487dfd], al
jmp 0x46d944
cmp dword [rsp + 0x50], 1
jne 0x46d944
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00487dfd], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046dada]
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 0x46d9a5
cmp dword [rsp + 0x50], 4
jne 0x46d987
movzx rax, word [rbx]
mov word [0x00487e04], ax
jmp 0x46d9a5
cmp dword [rsp + 0x50], 1
jne 0x46d9a5
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00487e04], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046daf4]
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 0x46da06
cmp dword [rsp + 0x50], 4
jne 0x46d9e8
movzx rax, word [rbx]
mov word [0x00487e06], ax
jmp 0x46da06
cmp dword [rsp + 0x50], 1
jne 0x46da06
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00487e06], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x46d7ee
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x46e660
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.004309f0
test eax, eax
je 0x46e675
call fcn.0043b1f0
call fcn.0043aea0
cmp qword [0x004a5fe8], 0
je 0x46e724
xor rax, rax
mov rcx, qword [0x004a5fe8]
mov ebx, dword [rcx + 0x30]
sub ebx, 1
mov dword [0x004a5ff0], eax
cmp dword [0x004a5ff0], ebx
jg 0x46e717
add ebx, 1
lea rcx, [rbp + 0x38]
mov edx, 3
mov r8, qword [0x004a5ff8]
lea r9, [0x0046e780]
mov rax, qword [0x004a5fe8]
mov rax, qword [rax + 0x38]
movsxd r10, dword [0x004a5ff0]
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 [0x004a5ff0], 1
cmp dword [0x004a5ff0], ebx
jne 0x46e6ba
nop
mov rcx, qword [0x004a5fe8]
call fcn.00407520
mov rcx, qword [0x004a5ff8]
call fcn.0046e440
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 0x46ff20
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.0042caa0
mov rbx, rax
test rbx, rbx
je 0x46ff8b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x470017
test rbx, rbx
je 0x46ffa6
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.0042ce10
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x47000b
lea rcx, [rbp + 0x28]
mov rdx, qword [0x004886b0]
call fcn.0040eed0
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.00470130
test rbx, rbx
je 0x470017
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x00488e70]
xor rdx, rdx
call fcn.0042f1d0
nop
lea rcx, [rbp + 0x28]
call fcn.0040a270
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x470940
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 0x47096c
call sub.kernel32.dll_GetLastError_2
mov dword [0x0048813c], eax
test esi, esi
je 0x47097a
mov rcx, rbx
call fcn.00470990
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x471260
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 0x47135e
mov rax, qword [0x004887e8]
cmp qword [rax], 0
jne 0x47135e
mov rax, qword [0x004885a8]
cmp byte [rax], 0
jne 0x47135e
mov ecx, 0x20c
call fcn.00405270
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x47135e
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x47135e
mov rcx, rbx
call fcn.00429fc0
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x004a62ac]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.004052d0
cmp qword [rbp + 0x28], 0
je 0x47135e
mov rax, qword [0x00488940]
cmp byte [rax], 0
je 0x471317
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x004a62ac]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.00429fe0
jmp 0x47134c
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00471368]
call fcn.0042a000
mov rcx, qword [rbp + 0x28]
call fcn.00429fc0
mov dword [0x004a62ac], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.0042a000
mov rax, qword [0x00488940]
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 0x471370
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x4713ab
mov rax, qword [0x004887e8]
cmp qword [rax], 0
jne 0x4713ab
mov rax, qword [0x00488940]
cmp byte [rax], 0
je 0x4713ab
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x004a62ac], 0
mov rax, qword [0x00488940]
mov byte [rax], 0
add rsp, 0x28
ret

Function at 0x4716a0
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x004a6370]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405640
mov dword [0x004a62b4], 0xb7e15163
mov ebx, 1
lea rax, [0x004a62b4]
movsxd rcx, ebx
lea rdx, [0x004a62b0]
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 0x4716d3
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x004a62b4]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.004714f0
mov r13d, eax
lea rax, [0x004a62b4]
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.004714f0
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 0x47170f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret