joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.00409bc0
mov ebx, eax
cmp eax, 1
je 0x406d39
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406d8a
test ebx, ebx
je 0x406d85
lea rcx, [rsp + 0x28]
call fcn.00402700
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040a23c
test al, al
je 0x406d7b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x406d8a
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x407b50
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, rcx
movsxd rbx, dword [rcx + 8]
mov rdi, rbx
test ebx, ebx
je 0x407ba0
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x407b9c
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x407b78
mov dword [rbp + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test eax, eax
je 0x407ca5
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x407bdf
add rcx, rcx
call fcn.00403208
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x407c9b
cmp eax, edi
ja 0x407c9b
lea rcx, [rsp + 0x28]
call fcn.00402700
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x407c7c
mov r12, rbx
cmp word [r12], 0
jne 0x407c72
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.00402914
lea r13d, [rdi + 1]
mov rcx, rbp
call fcn.00430608
mov ecx, InitCommonControls
call fcn.00403208
mov qword [rsp + 0x88], rax
test rax, rax
je 0x407c5e
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.0040288c
mov r11, rax
jmp 0x407c61
xor r11d, r11d
mov ecx, dword [rbp + 8]
lea eax, [rcx + 1]
mov dword [rbp + 8], eax
mov rax, qword [rbp]
mov qword [rax + rcx*8], r11
inc edi
add r12, 2
cmp edi, esi
jb 0x407c13
cmp r13d, esi
sete dil
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
mov al, dil
jmp 0x407ca5
mov rcx, rbx
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x407d74
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x407d93
cmp byte [rcx + 0xa], 0
je 0x407d93
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x407dcf
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x407dbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407dbe
xor al, al
jmp 0x407dd1
mov ecx, dword [rsp + 0x40]
mov rax, rdi
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x407ef4
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
setne al
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret

Function at 0x407f30
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x400000
cmp r8d, eax
cmova r8d, eax
jmp fcn.00407ef4

Function at 0x408064
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, 0x400000
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
cmova r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x408178
Capabilities:
Clear file content

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.00407e34
xor ebx, ebx
cmp al, bl
je 0x4081a0
cmp qword [rsp + 0x50], rdi
je 0x4081a4
xor al, al
jmp 0x4081b2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x4099d0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [rcx]
xor esi, esi
mov rdi, rcx
mov dword [rcx + 8], esi
lea rdx, [rsp + 0x20]
mov ecx, 0x105
mov word [rax], si
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.00402914
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret
Function at 0x40aa30
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x128
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x40aa6d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40aa6d
mov qword [rbx], 0
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.0040279c
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.0040a978
nop
mov r8w, 0x20
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.0040aa10
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.0040263c
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov dword [rsp + 0xb0], 0x68
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xec], 0
mov word [rsp + 0xf2], 0
mov qword [rsp + 0xf8], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40ab7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40ab99
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x90]
mov qword [rbx], r11
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x128
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40b6ac
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40b6dc
Capabilities:
Set registry value

Disassembly:
mov al, r8b
xor r8d, r8d
cmp al, r8b
setne r8b
jmp fcn.0040b6ac

Function at 0x40b6f0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, r8
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x40b734
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x40b75c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x48
ret
Function at 0x40b810
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0x40
mov rax, qword [r8]
mov dword [r8 + 8], 0
mov rsi, rcx
mov word [rax], 0
mov rcx, qword [rcx]
lea rax, [r11 + 0x30]
mov rbx, r8
mov qword [r11 - 0x18], rax
lea r9, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x20], 0
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b86f
cmp eax, 0xea
jne 0x40b8e5
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40b884
mov rcx, rbx
call fcn.00402394
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rbx]
cmp ecx, dword [rsp + 0x78]
cmova ecx, dword [rsp + 0x78]
mov dword [rsp + 0x70], ecx
shr rcx, 1
mov word [rdx + rcx*2], 0
xor ecx, ecx
cmp word [rdx], cx
je 0x40b8e2
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40b8d6
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40b9e4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
mov rax, rsp
sub rsp, 0x260
mov rdi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rsi, rcx
lea rcx, [rax + 0x38]
mov r9d, 0x2001f
mov qword [rax + 0x38], 0
call fcn.0040b990
test eax, eax
mov ebx, eax
jne 0x40ba98
mov ebx, 0x105
jmp 0x40ba30
lea rdx, [rsp + 0x50]
call fcn.0040b9e4
test eax, eax
jne 0x40ba96
mov rcx, qword [rsp + 0x298]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x290], ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x298]
test eax, eax
je 0x40ba22
call fcn.0040b678
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
lea rcx, [rsp + 0x298]
call fcn.0040b678
mov eax, ebx
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x40bab4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov rax, rsp
sub rsp, 0x40
mov dword [r9], 0
mov qword [rax - 0x18], r9
mov r12, rcx
mov rcx, qword [rcx]
mov rsi, r9
mov rbx, r8
lea r9, [rax + 0x48]
xor r8d, r8d
mov rbp, rdx
mov dword [rax + 0x48], 0
mov qword [rax - 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40bb03
cmp eax, 0xea
jne 0x40bb65
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40bb3b
mov rcx, qword [rbx]
test rcx, rcx
je 0x40bb1f
call sub.msvcrt.dll_free
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40bb3b
mov rcx, rdi
call fcn.00403208
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov rax, qword [rbx]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40bb70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
xor esi, esi
mov r12, r8
mov r15, rdx
cmp dword [r8 + 8], esi
mov rbp, rsi
jbe 0x40bbb1
mov r9, qword [r8]
mov r8d, dword [r8 + 8]
mov rax, qword [r9]
add r9, 8
mov eax, dword [rax + 8]
inc eax
add rbp, rax
dec r8
jne 0x40bb9d
cmp rbp, rsi
mov rbx, rsi
je 0x40bbc6
lea rcx, [rbp + rbp]
call fcn.00403208
mov rbx, rax
cmp dword [r12 + 8], esi
mov r14d, esi
jbe 0x40bc04
mov r13, rsi
mov rax, qword [r12]
lea rcx, [rbx + rsi*2]
mov rdx, qword [r13 + rax]
mov eax, dword [rdx + 8]
mov rdx, qword [rdx]
inc eax
mov edi, eax
lea r8, [rax + rax]
call sub.msvcrt.dll_memcpy
inc r14d
add rsi, rdi
add r13, 8
cmp r14d, dword [r12 + 8]
jb 0x40bbd3
mov rcx, qword [rsp + 0x80]
lea eax, [rbp + rbp]
mov r9d, 3
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
mov edi, eax
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40c4c8
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40c50a
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x40c5f0
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rdx]
xor ebx, ebx
mov rbp, rcx
mov dword [rdx + 8], ebx
mov word [rax], bx
mov rcx, qword [rcx]
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
mov esi, eax
je 0x40c65b
cmp eax, dword [rdi + 0xc]
jbe 0x40c628
mov edx, eax
mov rcx, rdi
call fcn.00402394
mov rdx, qword [rdi]
mov rcx, qword [rbp]
lea r8d, [rsi + 1]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
cmp esi, eax
cmova esi, eax
mov eax, ebx
mov word [rcx + rsi*2], bx
jmp 0x40c64f
inc eax
add rcx, 2
cmp word [rcx], bx
jne 0x40c649
cmp esi, ebx
mov dword [rdi + 8], eax
jne 0x40c668
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
sete al
jmp 0x40c66a
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4236d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r12, rcx
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.CreateEncoder
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.GetMethodProperty
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
xor edi, edi
cmp rax, rdi
je 0x4238a4
mov dword [rsp + 0xb0], 1
lea rdx, str.GetNumberOfMethods
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x423773
lea rcx, [rsp + 0xb0]
call rax
cmp eax, edi
jne 0x42392b
mov ebp, edi
cmp dword [rsp + 0xb0], edi
jbe 0x4238a4
mov eax, dword [r12 + 0x20]
dec eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], ebp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, 3
mov edx, ebp
mov rcx, qword [rsi + 0x30]
call fcn.0042259c
cmp eax, edi
jne 0x42392b
lea rax, [rsp + 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
mov r8d, 2
mov edx, ebp
mov rcx, qword [rsi + 0x30]
call fcn.0042259c
cmp eax, edi
jne 0x42392b
mov rax, qword [rsi + 0x30]
mov word [rsp + 0x38], di
mov word [rsp + 0x3a], di
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x5a], dil
mov byte [rsp + 0x5b], dil
lea r8, [rsp + 0x38]
mov edx, 0xa
mov ecx, ebp
call rax
mov ebx, eax
cmp eax, edi
je 0x42381e
lea rcx, [rsp + 0x38]
call fcn.0040accc
jmp 0x42384a
cmp word [rsp + 0x38], 0xb
jne 0x423837
mov byte [rsp + 0x5b], 1
cmp word [rsp + 0x40], di
setne byte [rsp + 0x5a]
jmp 0x42383e
cmp word [rsp + 0x38], di
jne 0x42388e
lea rcx, [rsp + 0x38]
call fcn.0040accc
mov ebx, edi
cmp ebx, edi
jne 0x42389d
lea rcx, [r12 + 0x70]
call fcn.00422a0c
mov ecx, dword [r12 + 0x78]
lea eax, [rcx + 1]
mov dword [r12 + 0x78], eax
imul rcx, rcx, 0x2c
add rcx, qword [r12 + 0x70]
lea rdx, [rsp + 0x50]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
inc ebp
cmp ebp, dword [rsp + 0xb0]
jae 0x4238a4
jmp 0x423782
lea rcx, [rsp + 0x38]
call fcn.0040accc
mov ebx, 0x80004005
mov eax, ebx
jmp 0x42392b
lea rdx, str.GetHashers
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x423929
lea rcx, [rsi + 0x50]
call rax
cmp eax, edi
jne 0x42392b
mov rcx, qword [rsi + 0x50]
cmp rcx, rdi
je 0x423929
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
cmp eax, edi
jbe 0x423929
mov ecx, dword [r12 + 0x20]
dec ecx
mov dword [rsp + 0xb0], ecx
mov dword [rsp + 0xb4], edi
lea rcx, [r12 + 0x80]
call fcn.00430608
mov r11d, dword [r12 + 0x88]
lea eax, [r11 + 1]
mov dword [r12 + 0x88], eax
mov rcx, qword [r12 + 0x80]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + r11*8], rax
inc edi
cmp edi, esi
jb 0x4238d9
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x434330
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r13, r9
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x88], 0
mov edi, dword [rdx]
cmp byte [rdx + 0x18], 0
je 0x4343bc
mov edi, 1
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.0041061c
mov rcx, qword [rsp + 0x28]
cmp word [rcx + 2], 0x3a
jne 0x4343b7
cmp word [rcx + 4], 0x5c
jne 0x4343b7
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4343a9
cmp eax, 2
jne 0x4343b2
mov edi, dword [rsi]
mov rcx, qword [rsp + 0x28]
jmp 0x4343b7
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rcx, rbp
call fcn.00402cdc
lea r12d, [rax + 1]
mov rax, qword [rbp]
lea rdx, [rax + r12*2]
mov rcx, r13
call fcn.00402914
dec edi
je 0x434470
dec edi
je 0x43443a
lea rcx, [rsp + 0x28]
call fcn.00402700
nop
lea rcx, [rsp + 0x28]
call fcn.00405d80
test al, al
jne 0x43441d
mov dword [rsp + 0x88], 0x22995
lea rdx, [0x004cd3a0]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040288c
nop
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rax, rbx
jmp 0x434481
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.0040288c
nop
lea rcx, [rsp + 0x28]
call fcn.004094ac
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040288c
nop
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rax, rbx
jmp 0x434481
mov r8d, r12d
mov rdx, rbx
mov rcx, rbp
call fcn.0041061c
mov rax, rbx
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4492bc
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
je 0x4493f5
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x38]
test eax, eax
jne 0x4493ee
xor ebx, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x4493ee
mov qword [rsp + 0x78], 0
mov rax, qword [rdi]
lea r8, [rsp + 0x78]
mov edx, ebx
mov rcx, rdi
call qword [rax + 0x40]
test eax, eax
jne 0x4493d2
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x4493d7
mov qword [rsp + 0x70], 0
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
mov edx, 0x80058000
call qword [rax + 0x28]
test eax, eax
jne 0x4493c0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x4493c5
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.0040279c
nop
mov rcx, rsi
call fcn.00430608
mov ecx, InitCommonControls
call fcn.00403208
mov qword [rsp + 0x28], rax
test rax, rax
je 0x44939c
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.0040288c
mov r11, rax
jmp 0x44939f
xor r11d, r11d
mov ecx, dword [rsi + 8]
lea eax, [rcx + 1]
mov dword [rsi + 8], eax
mov rax, qword [rsi]
mov qword [rax + rcx*8], r11
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x70]
jmp 0x4493c5
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x78]
jmp 0x4493d7
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x4493e2
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x449302
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x4499a4
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
test edx, edx
jne 0x4499be
mov rdx, rcx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4499e3
mov rax, qword [0x004d06d0]
test rax, rax
jne 0x4499d1
mov eax, 0x80004001
jmp 0x4499e3
mov r8d, edx
mov rdx, rcx
xor r9d, r9d
mov rcx, 0xffffffff80000000
call rax
add rsp, 0x28
ret
Function at 0x45ae54
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x38]
xor ebx, ebx
mov r10, r8
cmp rax, rbx
mov r11, rdx
mov dword [rsp + 0x40], ebx
je 0x45ae95
lea rdx, [rsp + 0x40]
mov r9, rcx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
lea r8, [0x0045ad8c]
mov rcx, r11
mov rdx, r10
call rax
jmp 0x45aea7
mov r8d, 1
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x45c948
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
cmp bx, ax
jne 0x45cad4
movzx ecx, ax
and cx, 0x3ff
shr di, 0xa
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
movzx ecx, cx
lea rdx, [rsp + 0x28]
call fcn.0045c7cc
lea rcx, [rsp + 0x48]
call fcn.0045c3fc
nop
xor esi, esi
movzx r12d, di
movsxd rbx, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
xor eax, eax
test esi, esi
cmove eax, r12d
cmp eax, ebx
jae 0x45ca2f
mov rbp, qword [rdi + rax*8]
cmp dword [rbp + 8], 0
je 0x45ca2f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.0040288c
nop
mov rdx, qword [rbp]
lea rcx, [rsp + 0x38]
call fcn.00402bd4
lea rdx, str..txt
lea rcx, [rsp + 0x38]
call fcn.00402bd4
lea r8, [0x0049dcf0]
mov rdx, qword [rsp + 0x38]
lea rcx, [0x004d0cd8]
call fcn.00401818
test al, al
jne 0x45ca38
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
inc esi
cmp esi, 2
jb 0x45c9c4
jmp 0x45ca95
mov rdx, qword [rbp]
lea rcx, [0x004d0cc8]
call fcn.00402a8c
nop
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
nop
test ebx, ebx
je 0x45ca8b
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x45ca87
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x45ca67
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x45cad4
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
nop
test ebx, ebx
je 0x45cacc
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x45cac8
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x45caa8
mov rcx, rdi
call sub.msvcrt.dll_free
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret