joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405444
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_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.00402460
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret

Function at 0x40549c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r13d, eax
xor r13d, edi
xor edi, edi
lea r15d, [rdi + 1]
mov ebx, edi
mov rdx, r14
mov rcx, rsi
call fcn.00402460
cmp r12b, dil
je 0x40557f
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
shr r10d, 4
and r8d, 0xf
cmp r8d, 0xa
lea eax, [r8 + 0x37]
lea edx, [r8 + 0x30]
movzx ecx, al
movzx eax, dl
cmovb ecx, eax
mov byte [rsp + r9 + 0x20], cl
add r9, r15
sub r11, r15
jne 0x405505
cmp rbp, rdi
mov byte [rsp + r9 + 0x20], dil
je 0x405562
mov eax, dword [rsi + 8]
cmp dword [rsi + 0xc], eax
jne 0x40554c
mov rcx, rsi
call fcn.00402038
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov word [rcx + rdx*2], 0x2e
add edx, r15d
mov word [rcx + rdx*2], di
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.00402734
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
cmp rbp, rdi
mov r12b, r15b
je 0x405596
lea rdx, str..tmp
mov rcx, rsi
call fcn.00402734
mov rcx, qword [rsi]
call fcn.00406e88
cmp al, dil
je 0x4055b0
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4055e4
cmp rbp, rdi
je 0x4055c5
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbp
call fcn.00407918
jmp 0x4055cd
mov rcx, qword [rsi]
call fcn.004051f4
cmp al, dil
jne 0x40560c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4055e4
cmp eax, 0xb7
jne 0x4055f0
add ebx, r15d
cmp ebx, 0x64
jb 0x4054e5
mov rax, qword [rsi]
mov dword [rsi + 8], edi
mov word [rax], di
xor al, al
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov al, r15b
jmp 0x4055fb
Function at 0x406328
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.00408994
mov ebx, eax
cmp eax, 1
je 0x406355
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4063a6
test ebx, ebx
je 0x4063a1
lea rcx, [rsp + 0x28]
call fcn.0040229c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.00409010
test al, al
je 0x406397
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 0x4063a6
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x406f10
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 r12, rcx
movsxd rbx, dword [rcx + 8]
mov rdi, rbx
test ebx, ebx
je 0x406f60
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [r12]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x406f5c
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x406f38
mov dword [r12 + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test eax, eax
je 0x407054
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x406fa1
add rcx, rcx
call fcn.00402d48
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 0x40704a
cmp eax, edi
ja 0x40704a
lea rcx, [rsp + 0x28]
call fcn.0040229c
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x40702b
mov rbp, rbx
cmp word [rbp], 0
jne 0x407021
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.00402460
lea r13d, [rdi + 1]
mov ecx, InitCommonControls
call fcn.00402d48
mov qword [rsp + 0x88], rax
test rax, rax
je 0x407014
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.004023d8
jmp 0x407016
xor eax, eax
mov rdx, rax
mov rcx, r12
call fcn.0040c234
inc edi
add rbp, 2
cmp edi, esi
jb 0x406fd5
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 0x407054
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 0x4070f8
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 8], 0
mov rbx, rdx
je 0x407117
cmp byte [rcx + 9], 0
je 0x407117
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x40714b
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x40713a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40713a
xor al, al
jmp 0x40714d
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 0x4071e8
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 0x407224
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x004bb070]
cmp r8d, eax
cmova r8d, eax
jmp fcn.004071e8

Function at 0x4072c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x004bb070]
mov rcx, qword [rcx]
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 0x407368
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.00407154
xor ebx, ebx
cmp al, bl
je 0x407390
cmp qword [rsp + 0x50], rdi
je 0x407394
xor al, al
jmp 0x4073a2
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 0x4087a4
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.00402460
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret
Function at 0x4097e8
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 0x409825
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x409825
mov qword [rbx], 0
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.00402338
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.00409730
nop
mov r8w, 0x20
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.004097c8
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.004021d8
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 0x409936
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x409951
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 0x40a364
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 0x40a394
Capabilities:
Set registry value

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

Function at 0x40a3a8
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 0x40a3ec
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 0x40a414
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 0x40a4c4
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 0x40a523
cmp eax, 0xea
jne 0x40a599
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40a538
mov rcx, rbx
call fcn.00401fb0
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 0x40a596
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40a58a
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40a698
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.0040a644
test eax, eax
mov ebx, eax
jne 0x40a74c
mov ebx, 0x105
jmp 0x40a6e4
lea rdx, [rsp + 0x50]
call fcn.0040a698
test eax, eax
jne 0x40a74a
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 0x40a6d6
call fcn.0040a33c
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
lea rcx, [rsp + 0x298]
call fcn.0040a33c
mov eax, ebx
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x40a768
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 0x40a7b7
cmp eax, 0xea
jne 0x40a819
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40a7ef
mov rcx, qword [rbx]
test rcx, rcx
je 0x40a7d3
call sub.msvcrt.dll_free
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40a7ef
mov rcx, rdi
call fcn.00402d48
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 0x40a824
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 0x40a865
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 0x40a851
cmp rbp, rsi
mov rbx, rsi
je 0x40a87a
lea rcx, [rbp + rbp]
call fcn.00402d48
mov rbx, rax
cmp dword [r12 + 8], esi
mov r14d, esi
jbe 0x40a8b8
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 0x40a887
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 0x40b1c4
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 0x40b206
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 0x40b2bc
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 0x40b327
cmp eax, dword [rdi + 0xc]
jbe 0x40b2f4
mov edx, eax
mov rcx, rdi
call fcn.00401fb0
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
cmovg esi, eax
mov eax, ebx
mov word [rcx + rsi*2], bx
jmp 0x40b31b
inc eax
add rcx, 2
cmp word [rcx], bx
jne 0x40b315
cmp esi, ebx
mov dword [rdi + 8], eax
jne 0x40b334
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
sete al
jmp 0x40b336
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x41960c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rbp, rcx
mov rsi, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x10]
lea rdx, str.CreateEncoder
mov qword [rsi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x10]
lea rdx, str.GetMethodProperty
mov qword [rsi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp rax, rbx
mov qword [rsi + 0x30], rax
je 0x419742
mov rcx, qword [rsi + 0x10]
lea rdx, str.GetNumberOfMethods
mov dword [rsp + 0xc0], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
je 0x4196a4
lea rcx, [rsp + 0xc0]
call rax
cmp eax, ebx
jne 0x4197a3
cmp dword [rsp + 0xc0], ebx
mov edi, ebx
jbe 0x419742
mov eax, dword [rbp + 0x20]
mov rcx, qword [rsi + 0x30]
lea r9, [rsp + 0x3c]
dec eax
mov r8d, 3
mov edx, edi
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x38]
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], rax
call fcn.00418ff8
cmp eax, ebx
jne 0x4197a3
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x39]
lea r9, [rsp + 0x4c]
mov r8d, 2
mov edx, edi
mov qword [rsp + 0x20], rax
call fcn.00418ff8
cmp eax, ebx
jne 0x4197a3
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
lea rcx, [rbp + 0x60]
lea rdx, [rsp + 0x60]
call fcn.0041930c
inc edi
cmp edi, dword [rsp + 0xc0]
jb 0x4196b3
mov rcx, qword [rsi + 0x10]
lea rdx, str.GetHashers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
je 0x4197a1
lea rcx, [rsi + 0x50]
call rax
cmp eax, ebx
jne 0x4197a3
mov rcx, qword [rsi + 0x50]
cmp rcx, rbx
je 0x4197a1
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, ebx
mov edi, eax
jbe 0x4197a1
mov ecx, dword [rbp + 0x20]
mov dword [rsp + 0xc4], ebx
dec ecx
mov dword [rsp + 0xc0], ecx
mov rdx, qword [rsp + 0xc0]
lea rcx, [rbp + 0x70]
call fcn.0042b5dc
inc ebx
cmp ebx, edi
jb 0x419777
xor eax, eax
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x42a0b0
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 0x42a13c
mov edi, 1
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.0040ec24
mov rcx, qword [rsp + 0x28]
cmp word [rcx + 2], 0x3a
jne 0x42a137
cmp word [rcx + 4], 0x5c
jne 0x42a137
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x42a129
cmp eax, 2
jne 0x42a132
mov edi, dword [rsi]
mov rcx, qword [rsp + 0x28]
jmp 0x42a137
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rcx, rbp
call fcn.00402830
lea r12d, [rax + 1]
mov rax, qword [rbp]
lea rdx, [rax + r12*2]
mov rcx, r13
call fcn.00402460
dec edi
je 0x42a1f0
dec edi
je 0x42a1ba
lea rcx, [rsp + 0x28]
call fcn.0040229c
nop
lea rcx, [rsp + 0x28]
call fcn.00405444
test al, al
jne 0x42a19d
mov dword [rsp + 0x88], 0x22995
lea rdx, [0x004b8158]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.004023d8
nop
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rax, rbx
jmp 0x42a201
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.004023d8
nop
lea rcx, [rsp + 0x28]
call fcn.004082a8
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.004023d8
nop
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov rax, rbx
jmp 0x42a201
mov r8d, r12d
mov rdx, rbx
mov rcx, rbp
call fcn.0040ec24
mov rax, rbx
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x43dc08
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
test edx, edx
jne 0x43dc22
mov rdx, rcx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x43dc47
mov rax, qword [0x004bb6e8]
test rax, rax
jne 0x43dc35
mov eax, 0x80004001
jmp 0x43dc47
mov r8d, edx
mov rdx, rcx
xor r9d, r9d
mov rcx, 0xffffffff80000000
call rax
add rsp, 0x28
ret
Function at 0x44e25c
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 0x44e29d
lea rdx, [rsp + 0x40]
mov r9, rcx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
lea r8, [0x0044e194]
mov rcx, r11
mov rdx, r10
call rax
jmp 0x44e2af
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 0x44fc94
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 0x44fe20
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.0044fb28
lea rcx, [rsp + 0x48]
call fcn.0044f758
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 0x44fd7b
mov rbp, qword [rdi + rax*8]
cmp dword [rbp + 8], 0
je 0x44fd7b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.004023d8
nop
mov rdx, qword [rbp]
lea rcx, [rsp + 0x38]
call fcn.00402734
lea rdx, str..txt
lea rcx, [rsp + 0x38]
call fcn.00402734
lea r8, [0x0048ccc8]
mov rdx, qword [rsp + 0x38]
lea rcx, [0x004bbcd8]
call fcn.00401624
test al, al
jne 0x44fd84
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
inc esi
cmp esi, 2
jb 0x44fd10
jmp 0x44fde1
mov rdx, qword [rbp]
lea rcx, [0x004bbcc8]
call fcn.004025dc
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 0x44fdd7
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x44fdd3
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x44fdb3
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x44fe20
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
nop
test ebx, ebx
je 0x44fe18
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x44fe14
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x44fdf4
mov rcx, rdi
call sub.msvcrt.dll_free
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret