joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b470
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.0043b440
cmp eax, 0xffffffff
jne 0x43b6a3
mov rcx, rbx
call fcn.0040b270
mov edi, eax
mov rax, qword [0x00489d38]
mov rcx, qword [rax]
call fcn.0040d170
mov r13, rax
mov rcx, qword [0x00489d38]
mov rdx, qword [0x0042a540]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040d510
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.00405270
mov rcx, qword [0x00489d38]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x00489d38]
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.0041e530
mov rax, qword [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
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 [0x00489d38]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov edx, dword [rax + rdx*8 + 0x18]
call fcn.0042acf0
mov rax, qword [0x00489d38]
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 0x43d890
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.0042a8b0
mov ebx, eax
xor rcx, rcx
mov rsi, qword [rbp + 0x2f8]
jmp 0x43d8d6
add ecx, 1
jmp 0x43d8d0
add rsi, 2
cmp word [rsi], 0
jne 0x43d8cc
cmp word [rsi], 0
jne 0x43d8c7
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.0046f460
mov r13, rax
mov rsi, qword [rbp + 0x2f8]
mov rdi, r13
jmp 0x43d951
mov rcx, rdi
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.0042a7a0
movsxd rax, ebx
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.0042a8d0
movsxd rax, ebx
add rax, rax
add rdi, rax
jmp 0x43d947
add rsi, 2
add rdi, 2
cmp word [rsi], 0
jne 0x43d93f
add rdi, 2
cmp word [rsi], 0
jne 0x43d916
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.0043e940
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 0x43da52
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.0042a8d0
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x43da36
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043da64]
call fcn.0041e600
test eax, eax
je 0x43da36
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043da68]
call fcn.0041e600
test eax, eax
je 0x43da36
mov rcx, qword [rbp + 0x38]
call fcn.0042aa60
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.0043d890
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x43d9ac
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 0x43fdd0
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 [0x00489c18]
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 [0x00489c18]
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 0x43fe3c
xor rax, rax
jmp 0x43fef1
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x43fe4e
xor rax, rax
jmp 0x43fef1
mov rax, qword [rsp + 0x38]
mov esi, dword [rax]
mov eax, esi
test eax, eax
jbe 0x43fea4
cmp eax, 3
jb 0x43fe99
cmp byte [rbx], 0xa
jne 0x43fe6b
cmp byte [rbx + 1], 0xd
je 0x43fe76
cmp byte [rbx], 0xd
jne 0x43fe99
cmp byte [rbx + 1], 0xa
jne 0x43fe99
mov byte [rbx + 2], 0
mov esi, ebx
sub esi, dword [0x00489c18]
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 0x43fea4
sub eax, 1
add rbx, 1
test eax, eax
ja 0x43fe5b
nop
mov rax, qword [0x0048a068]
mov ecx, dword [rax]
call fcn.0043b350
mov rcx, qword [0x0048a068]
mov ecx, dword [rcx]
test eax, eax
setne dl
movzx rdx, dl
mov r8, qword [0x00489c18]
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 0x464190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
cmp qword [rsp + 0xc0], 0
je 0x4641e5
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x28], 0
je 0x4641e5
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x10], 0
je 0x4641e5
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
jne 0x4641ef
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 8], 0
je 0x4641ef
mov eax, 0xfffffffe
jmp 0x4670e3
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0xb
jne 0x46421e
mov rax, qword [rsp + 0x80]
mov dword [rax], 0xc
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x4c], eax
xor eax, eax
test eax, eax
jne 0x46421e
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x60], 0
Function at 0x46c2a0
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 0x46c2bc
cmp dword [rcx], 0x4550
je 0x46c2c4
mov eax, 1
jmp 0x46c318
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 0x46c2ff
add esi, 1
cmp dword [rax + 0x14], r10d
jbe 0x46c2f4
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 0x46c2e2
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 0x46c320
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 0x46c36c
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.004086f0
mov qword [rbp + 0x80], rax
nop
cmp qword [rbp + 0x90], 0
jbe 0x46c58a
cmp dword [rbp + 0xa0], 0
jne 0x46c399
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 0x46c405
mov rcx, qword [rbp + 0x80]
call fcn.0046ba40
mov rcx, qword [0x0046ad18]
mov dl, 1
lea r8, [0x0046c61c]
call fcn.00426620
mov rcx, rax
call fcn.00409d40
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 0x46c46c
mov rcx, qword [rbp + 0x80]
call fcn.0046ba40
mov rcx, qword [0x0046ad18]
mov dl, 1
lea r8, [0x0046c644]
call fcn.00426620
mov rcx, rax
call fcn.00409d40
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax + 8]
lea rdx, [rbp + 0x54]
lea r8, [rbp + 0x50]
lea r9, [rbp + 0x4c]
call fcn.0046c2a0
test eax, eax
jne 0x46c49b
cmp dword [rbp + 0x50], 0
jbe 0x46c49b
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 0x46c4ea
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 0x46c4e1
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46c4ea
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46c4bc
nop
cmp dword [rbp + 0x58], 0
jge 0x46c53a
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x46c539
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 0x46c530
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x46c539
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x46c50b
nop
cmp dword [rbp + 0x58], 0
jge 0x46c569
mov rcx, qword [rbp + 0x80]
call fcn.0046ba40
mov rcx, qword [0x0046ad18]
mov dl, 1
lea r8, [0x0046c670]
call fcn.00426620
mov rcx, rax
call fcn.00409d40
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.0046bac0
cmp byte [rbp + 0x88], 0
je 0x46c5e5
mov rcx, qword [rbp + 0x80]
call fcn.00408730
mov qword [rbp + 0x80], rax
jmp 0x46c5e5
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x46dfd0
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 [0x00488e9e], 0
je 0x46dffb
mov byte [0x00488e9c], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x0046e23c]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x46e223
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046e286]
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 0x46e096
cmp dword [rsp + 0x50], 4
jne 0x46e07b
cmp dword [rbx], 0
setne al
mov byte [0x00488e86], al
jmp 0x46e096
cmp dword [rsp + 0x50], 1
jne 0x46e096
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00488e86], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046e2a6]
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 0x46e0f5
cmp dword [rsp + 0x50], 4
jne 0x46e0da
cmp dword [rbx], 0
setne al
mov byte [0x00488e9c], al
jmp 0x46e0f5
cmp dword [rsp + 0x50], 1
jne 0x46e0f5
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00488e9c], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046e2c8]
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 0x46e154
cmp dword [rsp + 0x50], 4
jne 0x46e139
cmp dword [rbx], 0
setne al
mov byte [0x00488e9d], al
jmp 0x46e154
cmp dword [rsp + 0x50], 1
jne 0x46e154
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00488e9d], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046e2ea]
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 0x46e1b5
cmp dword [rsp + 0x50], 4
jne 0x46e197
movzx rax, word [rbx]
mov word [0x00488ea4], ax
jmp 0x46e1b5
cmp dword [rsp + 0x50], 1
jne 0x46e1b5
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00488ea4], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0046e304]
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 0x46e216
cmp dword [rsp + 0x50], 4
jne 0x46e1f8
movzx rax, word [rbx]
mov word [0x00488ea6], ax
jmp 0x46e216
cmp dword [rsp + 0x50], 1
jne 0x46e216
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00488ea6], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x46dffe
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x46ee70
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.00431220
test eax, eax
je 0x46ee85
call fcn.0043ba00
call fcn.0043b6b0
cmp qword [0x004a7fe0], 0
je 0x46ef34
xor rax, rax
mov rcx, qword [0x004a7fe0]
mov ebx, dword [rcx + 0x30]
sub ebx, 1
mov dword [0x004a7fe8], eax
cmp dword [0x004a7fe8], ebx
jg 0x46ef27
add ebx, 1
lea rcx, [rbp + 0x38]
mov edx, 3
mov r8, qword [0x004a7ff0]
lea r9, [0x0046ef90]
mov rax, qword [0x004a7fe0]
mov rax, qword [rax + 0x38]
movsxd r10, dword [0x004a7fe8]
lea r10, [r10 + r10*4]
mov rax, qword [rax + r10*8 + 0x20]
mov qword [rsp + 0x20], rax
call fcn.0040c290
mov rcx, qword [rbp + 0x38]
call fcn.0040bdd0
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
add dword [0x004a7fe8], 1
cmp dword [0x004a7fe8], ebx
jne 0x46eeca
nop
mov rcx, qword [0x004a7fe0]
call fcn.00407d90
mov rcx, qword [0x004a7ff0]
call fcn.0046ec50
mov ecx, dword [rbp + 0x34]
call sub.kernel32.dll_ExitProcess_1
nop
lea rcx, [rbp + 0x38]
call fcn.0040aae0
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret
Function at 0x470730
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.0042d2d0
mov rbx, rax
test rbx, rbx
je 0x47079b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x470827
test rbx, rbx
je 0x4707b6
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.0042d640
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x47081b
lea rcx, [rbp + 0x28]
mov rdx, qword [0x00489be0]
call fcn.0040f7b0
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.00470940
test rbx, rbx
je 0x470827
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x0048a3a0]
xor rdx, rdx
call fcn.0042fa00
nop
lea rcx, [rbp + 0x28]
call fcn.0040aae0
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x471150
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 0x47117c
call sub.kernel32.dll_GetLastError_2
mov dword [0x004891dc], eax
test esi, esi
je 0x47118a
mov rcx, rbx
call fcn.004711a0
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x471a70
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 0x471b6e
mov rax, qword [0x00489d18]
cmp qword [rax], 0
jne 0x471b6e
mov rax, qword [0x00489ad8]
cmp byte [rax], 0
jne 0x471b6e
mov ecx, 0x20c
call fcn.00405270
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x471b6e
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x471b6e
mov rcx, rbx
call fcn.0042a8b0
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x004a82a4]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.004052d0
cmp qword [rbp + 0x28], 0
je 0x471b6e
mov rax, qword [0x00489e70]
cmp byte [rax], 0
je 0x471b27
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x004a82a4]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.0042a8d0
jmp 0x471b5c
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00471b78]
call fcn.0042a8f0
mov rcx, qword [rbp + 0x28]
call fcn.0042a8b0
mov dword [0x004a82a4], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.0042a8f0
mov rax, qword [0x00489e70]
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 0x471b80
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x471bbb
mov rax, qword [0x00489d18]
cmp qword [rax], 0
jne 0x471bbb
mov rax, qword [0x00489e70]
cmp byte [rax], 0
je 0x471bbb
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x004a82a4], 0
mov rax, qword [0x00489e70]
mov byte [rax], 0
add rsp, 0x28
ret

Function at 0x472410
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov rax, qword [rbp + 0x28]
movzx rbx, word [rax]
mov rax, qword [rbp + 0x28]
movzx rax, word [rax + 2]
mov word [rbp + 0x3c], ax
mov rax, qword [rbp + 0x28]
movzx rsi, word [rax + 4]
mov rax, qword [rbp + 0x28]
movzx rax, word [rax + 6]
mov word [rbp + 0x3e], ax
mov qword [rbp + 0x30], rdx
mov r13d, 1
mov rcx, rbp
mov edx, ebx
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.004723c0
mov ebx, eax
mov rcx, qword [rbp + 0x30]
add rcx, 2
mov qword [rbp + 0x30], rcx
movzx rax, word [rbp + 0x3c]
add ax, word [rcx]
mov word [rbp + 0x3c], ax
add rcx, 2
mov qword [rbp + 0x30], rcx
add si, word [rcx]
add rcx, 2
mov qword [rbp + 0x30], rcx
mov rcx, rbp
movzx rdx, word [rbp + 0x3e]
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.004723c0
mov word [rbp + 0x3e], ax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
mov edi, ebx
xor di, si
mov rcx, rbp
mov edx, edi
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.004723c0
mov edi, eax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
movzx rax, word [rbp + 0x3c]
movzx rcx, word [rbp + 0x3e]
xor ax, cx
mov ecx, edi
add cx, ax
mov eax, ecx
mov rcx, rbp
mov edx, eax
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.004723c0
mov rcx, qword [rbp + 0x30]
add rcx, 2
mov qword [rbp + 0x30], rcx
add di, ax
xor bx, ax
movzx rcx, word [rbp + 0x3e]
xor cx, di
mov word [rbp + 0x3e], cx
movzx rcx, word [rbp + 0x3c]
xor di, cx
xor si, ax
mov word [rbp + 0x3c], si
mov esi, edi
add r13d, 1
cmp r13d, 9
jne 0x472457
nop
mov rcx, rbp
mov edx, ebx
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.004723c0
mov ebx, eax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x28]
mov word [rax], bx
mov rax, qword [rbp + 0x30]
add si, word [rax]
mov rax, qword [rbp + 0x28]
mov word [rax + 2], si
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
movzx rax, word [rbp + 0x3c]
mov rcx, qword [rbp + 0x30]
add ax, word [rcx]
mov rcx, qword [rbp + 0x28]
mov word [rcx + 4], ax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
mov rcx, rbp
movzx rdx, word [rbp + 0x3e]
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.004723c0
mov rcx, qword [rbp + 0x28]
mov word [rcx + 6], ax
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret