joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4377d0
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2b0
mov rbp, rsp
mov rbx, rcx
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], r8
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [rbp + 0x9e]
lea rdx, [0x00437a68]
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00426e70
mov rcx, rbx
lea rdx, [rbp + 0x9e]
lea r8, [rbp + 0x2a8]
call sub.advapi32.dll_RegOpenKeyW
mov r13d, eax
test r13d, r13d
je 0x437949
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x43784f
mov rax, qword [rbp + 0x58]
cmp word [rax], 0
jne 0x437885
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00437aa0]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440100
mov eax, r13d
jmp 0x437a58
lea rdi, [rbp + 0x9e]
jmp 0x437892
add rdi, 2
cmp word [rdi], 0
je 0x43789e
cmp word [rdi], 0x5c
jne 0x43788e
movzx rsi, word [rdi]
mov word [rdi], 0
mov rcx, rbx
lea rdx, [rbp + 0x9e]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x2a8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov r13d, eax
test r13d, r13d
je 0x43792b
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00437aa0]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440100
mov eax, r13d
jmp 0x437a58
test si, si
je 0x437948
mov word [rdi], si
add rdi, 2
mov rcx, qword [rbp + 0x2a8]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x437892
nop
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x43795c
mov rax, qword [rbp + 0x58]
cmp word [rax], 0
jne 0x4379aa
mov rcx, qword [rbp + 0x2a8]
xor rdx, rdx
call sub.advapi32.dll_RegDeleteKeyW
mov r13d, eax
test r13d, r13d
je 0x437a49
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00437aa0]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440100
jmp 0x437a49
mov rcx, qword [rbp + 0x58]
call fcn.00426d10
mov rcx, qword [rbp + 0x2a8]
lea rdx, [0x00437b24]
xor r8, r8
mov r9d, 2
mov r10, qword [rbp + 0x58]
mov qword [rsp + 0x20], r10
add eax, 1
add eax, eax
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExW
mov r13d, eax
test r13d, r13d
jne 0x437a1b
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0x78], 0xa
lea rcx, [0x00437b26]
lea rdx, [rbp + 0x60]
mov r8d, 1
call fcn.0042c130
jmp 0x437a49
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00437b44]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440100
mov rcx, qword [rbp + 0x2a8]
call sub.advapi32.dll_RegCloseKey_1
mov eax, r13d
lea rsp, [rbp + 0x2b0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x437ed0
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 0x437fb1
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041ca80
cmp word [rbp + 0x14c], 0x5a4d
jne 0x437fa9
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041cab0
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041ca80
cmp dword [rbp + 0x18c], 0x4550
jne 0x437fa9
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041ca80
cmp word [rbp + 0x148], 0
jbe 0x437fa9
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041ca80
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 0x4381f0
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.004381c0
cmp eax, 0xffffffff
jne 0x438424
mov rcx, rbx
call fcn.0040a4f0
mov edi, eax
mov rax, qword [0x0044d1e0]
mov r13, qword [rax]
test r13, r13
je 0x438230
mov r13, qword [r13 - 8]
mov rcx, qword [0x0044d1e0]
mov rdx, qword [0x004269b0]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040bce0
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.004051c0
mov rcx, qword [0x0044d1e0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x0044d1e0]
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.0041cd50
mov rax, qword [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
movsxd rcx, dword [rax + rcx*8 + 0x18]
call fcn.004051c0
mov rcx, qword [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
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 [0x0044d1e0]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov edx, dword [rax + rdx*8 + 0x18]
call fcn.004271a0
mov rax, qword [0x0044d1e0]
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 0x43a800
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.00426d10
mov ebx, eax
xor rcx, rcx
mov rsi, qword [rbp + 0x2f8]
jmp 0x43a846
add ecx, 1
jmp 0x43a840
add rsi, 2
cmp word [rsi], 0
jne 0x43a83c
cmp word [rsi], 0
jne 0x43a837
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.0043ea20
mov r13, rax
mov rsi, qword [rbp + 0x2f8]
mov rdi, r13
jmp 0x43a8c1
mov rcx, rdi
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.00426c00
movsxd rax, ebx
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.00426d30
movsxd rax, ebx
add rax, rax
add rdi, rax
jmp 0x43a8b7
add rsi, 2
add rdi, 2
cmp word [rsi], 0
jne 0x43a8af
add rdi, 2
cmp word [rsi], 0
jne 0x43a886
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.0043b940
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 0x43a9c2
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.00426d30
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x43a9a6
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043a9d4]
call fcn.0041ce20
test eax, eax
je 0x43a9a6
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043a9d8]
call fcn.0041ce20
test eax, eax
je 0x43a9a6
mov rcx, qword [rbp + 0x38]
call fcn.00426f10
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.0043a800
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x43a91c
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 0x43ce30
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 [0x0044d0f8]
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 [0x0044d0f8]
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 0x43ce9c
xor rax, rax
jmp 0x43cf51
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x43ceae
xor rax, rax
jmp 0x43cf51
mov rax, qword [rsp + 0x38]
mov esi, dword [rax]
mov eax, esi
test eax, eax
jbe 0x43cf04
cmp eax, 3
jb 0x43cef9
cmp byte [rbx], 0xa
jne 0x43cecb
cmp byte [rbx + 1], 0xd
je 0x43ced6
cmp byte [rbx], 0xd
jne 0x43cef9
cmp byte [rbx + 1], 0xa
jne 0x43cef9
mov byte [rbx + 2], 0
mov esi, ebx
sub esi, dword [0x0044d0f8]
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 0x43cf04
sub eax, 1
add rbx, 1
test eax, eax
ja 0x43cebb
nop
mov rax, qword [0x0044d3e8]
mov ecx, dword [rax]
call fcn.004380d0
mov rcx, qword [0x0044d3e8]
mov ecx, dword [rcx]
test eax, eax
setne dl
movzx rdx, dl
mov r8, qword [0x0044d0f8]
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 0x43d820
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 [0x0044caba], 0
je 0x43d84b
mov byte [0x0044cab8], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x0043da8c]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x43da73
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043dad6]
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 0x43d8e6
cmp dword [rsp + 0x50], 4
jne 0x43d8cb
cmp dword [rbx], 0
setne al
mov byte [0x0044caa2], al
jmp 0x43d8e6
cmp dword [rsp + 0x50], 1
jne 0x43d8e6
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0044caa2], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043daf6]
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 0x43d945
cmp dword [rsp + 0x50], 4
jne 0x43d92a
cmp dword [rbx], 0
setne al
mov byte [0x0044cab8], al
jmp 0x43d945
cmp dword [rsp + 0x50], 1
jne 0x43d945
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0044cab8], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043db18]
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 0x43d9a4
cmp dword [rsp + 0x50], 4
jne 0x43d989
cmp dword [rbx], 0
setne al
mov byte [0x0044cab9], al
jmp 0x43d9a4
cmp dword [rsp + 0x50], 1
jne 0x43d9a4
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x0044cab9], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043db3a]
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 0x43da05
cmp dword [rsp + 0x50], 4
jne 0x43d9e7
movzx rax, word [rbx]
mov word [0x0044cac0], ax
jmp 0x43da05
cmp dword [rsp + 0x50], 1
jne 0x43da05
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x0044cac0], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043db54]
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 0x43da66
cmp dword [rsp + 0x50], 4
jne 0x43da48
movzx rax, word [rbx]
mov word [0x0044cac2], ax
jmp 0x43da66
cmp dword [rsp + 0x50], 1
jne 0x43da66
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x0044cac2], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x43d84e
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x43feb0
Capabilities:
Set current directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x248
mov rbp, rsp
xor rdi, rdi
mov word [rbp + 0x238], 0x3d
add cx, 0x40
mov word [rbp + 0x23a], cx
mov word [rbp + 0x23c], 0x3a
mov word [rbp + 0x23e], 0
xor rsi, rsi
lea rcx, [rbp + 0x238]
call fcn.004291e0
mov rbx, rax
test rbx, rbx
je 0x43ff0c
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x43ff87
test rbx, rbx
je 0x43ff23
mov ecx, 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx rax, word [rbp + 0x23a]
mov word [rbp + 0x2e], ax
movzx rax, word [rbp + 0x23c]
mov word [rbp + 0x30], ax
mov word [rbp + 0x32], 0x5c
mov word [rbp + 0x34], 0
lea rcx, [rbp + 0x238]
lea rdx, [rbp + 0x2e]
call fcn.00429550
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x43ff7b
lea rcx, [0x0043ffb0]
xor rdx, rdx
lea r8, [rbp + 0x20]
or r9d, 0xffffffff
call fcn.00440100
test rbx, rbx
je 0x43ff87
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x0044d600]
xor rdx, rdx
call fcn.0042b8a0
lea rsp, [rbp + 0x248]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4409b0
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 0x4409dc
call sub.kernel32.dll_GetLastError_2
mov dword [0x0044ccb0], eax
test esi, esi
je 0x4409ea
mov rcx, rbx
call fcn.00440a00
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x4412d0
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 0x4413ce
mov rax, qword [0x0044d1b8]
cmp qword [rax], 0
jne 0x4413ce
mov rax, qword [0x0044d038]
cmp byte [rax], 0
jne 0x4413ce
mov ecx, 0x20c
call fcn.004051c0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x4413ce
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x4413ce
mov rcx, rbx
call fcn.00426d10
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x0046b2a4]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.00405220
cmp qword [rbp + 0x28], 0
je 0x4413ce
mov rax, qword [0x0044d2b0]
cmp byte [rax], 0
je 0x441387
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x0046b2a4]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.00426d30
jmp 0x4413bc
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004413d8]
call fcn.00426d50
mov rcx, qword [rbp + 0x28]
call fcn.00426d10
mov dword [0x0046b2a4], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00426d50
mov rax, qword [0x0044d2b0]
mov byte [rax], 1
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_SetConsoleTitleW
mov rcx, qword [rbp + 0x28]
call fcn.004051f0
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4413e0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x44141b
mov rax, qword [0x0044d1b8]
cmp qword [rax], 0
jne 0x44141b
mov rax, qword [0x0044d2b0]
cmp byte [rax], 0
je 0x44141b
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x0046b2a4], 0
mov rax, qword [0x0044d2b0]
mov byte [rax], 0
add rsp, 0x28
ret
Function at 0x1800059d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180005a01
xor eax, eax
lea r8, [0x1800056f0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140016ce0
Capabilities:
Get file version info

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
movsxd rax, dword [rsp + 0x40]
mov ecx, 0xab19a096
cmp rax, rcx
jne 0x140016d55
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [0x1400d5de0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400d5de0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400d5de0]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterA]
call qword [sym.imp.MAGNIFICATION.dll_MagInitialize]
lea r8, [0x1400d5de0]
lea rdx, [0x1400d5de0]
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140016de4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140016e1c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
test eax, eax
jne 0x140016e24
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140016e1e
Function at 0x140017044
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400f0748]
test rax, rax
je 0x140017074
call rax
mov al, 1
jmp 0x1400171f1
xor eax, eax
mov dword [rbp - 0x30], 0xdd16b536
mov dword [rbp - 0x2c], 0xffb0a044
xor r9d, r9d
mov word [rbp - 0x28], 0x5e97
movabs rsi, 0x1825ef713
mov byte [rbp - 0x26], al
movabs rdi, 0x8080808080808081
lea r11d, [rax + 0xa]
movabs r10, 0xf17b5a6c8
movabs r14, 0x1825ef714
mov cl, r9b
mov rax, rdi
mul r10
and cl, 7
mov r8, rsi
shl cl, 3
shr r8, cl
mov rcx, r10
shr rdx, 7
add r10, r14
imul rax, rdx, 0xff
sub rcx, rax
mov rax, rdi
mul r11
xor r8b, cl
mov rcx, r11
shr rdx, 7
add r11, 0xa
imul rax, rdx, 0xff
sub rcx, rax
movabs rax, 0x1e2f6b4d90
xor r8b, cl
xor r8b, r9b
xor byte [rbp + r9 - 0x30], r8b
inc r9
cmp r10, rax
jb 0x1400170bc
lea rcx, [rbp - 0x30]
mov byte [rbp - 0x26], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9, rax
test rax, rax
je 0x1400171ef
movdqa xmm0, xmmword [0x1400d7250]
xor r10d, r10d
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x7180ad45
movabs r11, 0x1fb1ca44a4
mov word [rbp - 0xc], Ordinal_211
lea ebx, [r10 + 0x15]
mov cl, r10b
mov rax, rdi
mul r11
and cl, 7
mov r8, rsi
shl cl, 3
shr r8, cl
mov rcx, r11
shr rdx, 7
add r11, r14
imul rax, rdx, 0xff
sub rcx, rax
mov rax, rdi
xor r8b, cl
mov rcx, rbx
mul rbx
add rbx, 0x15
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
movabs rax, 0x3f63948948
xor r8b, cl
xor r8b, byte [rbp + r10 - 0x20]
xor r8b, r10b
mov byte [rbp + r10 - 0x20], r8b
inc r10
cmp r11, rax
jb 0x140017165
lea rdx, [rbp - 0x20]
mov byte [rbp - 0xb], 0
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f0748], rax
test rax, rax
jne 0x14001706b
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret

Function at 0x14001720c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400e1700]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov esi, ecx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140017287
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140017274
cmp dword [rsp + 0x28], esi
je 0x14001727a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140017260
jmp 0x14001727e
mov ebx, dword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140085ca0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14001731c
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x1400e1700]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.1400afd80
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400173f8
mov edi, dword [rsp + 0x60]
xor ebx, ebx
mov rdx, rdi
lea rcx, [0x1400172b0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [0x1400f0740], 0
jne 0x1400173e0
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x3a98
jl 0x1400173b2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140085ca0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret