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

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov byte [rbp + 0x67], 0
mov ecx, 6
xor rdx, rdx
call fcn.00431680
test al, al
je 0x4258d7
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
call fcn.00427960
test al, al
je 0x4258d7
mov rcx, qword [rbp + 0x80]
call fcn.004273d0
test al, 0x20
je 0x4258d7
mov rcx, qword [rbp + 0x80]
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 0xffffffff
je 0x4258d7
mov eax, dword [rbp + 0x5c]
test eax, 0x400
je 0x4258d7
mov eax, dword [rbp + 0x5c]
test eax, 0x10
je 0x425864
mov dword [rbp + 0x60], 0x2000000
jmp 0x42586b
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x80]
call fcn.0040c300
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x4258d7
nop
mov rcx, rbp
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x88]
mov r9d, dword [rbp + 0x60]
call fcn.00425480
mov byte [rbp + 0x67], al
nop
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle_1
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x4273d0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x490
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x488], 0
nop
movzx rax, byte [0x004275e0]
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.00427a50
test al, al
jne 0x427428
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.00427960
test al, al
je 0x427546
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
call fcn.00428420
lea rcx, [rbp + 0x488]
mov rdx, qword [rbp + 0x58]
call fcn.00431c90
mov rcx, qword [rbp + 0x488]
call fcn.0040c300
mov rcx, rax
lea rdx, [rbp + 0x274]
mov r8d, 0x104
lea r9, [rbp + 0x484]
lea rax, [rbp + 0x47c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x427541
mov eax, dword [rbp + 0x480]
test eax, 1
je 0x4274b8
movzx rax, byte [rbp + 0x47]
or al, 1
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x480]
test eax, 2
je 0x4274d1
movzx rax, byte [rbp + 0x47]
or al, 2
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x480]
test eax, 0x80
je 0x4274ea
movzx rax, byte [rbp + 0x47]
or al, 0x20
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x488]
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x42751a
sub eax, 1
test eax, eax
je 0x427527
sub eax, 1
test eax, eax
je 0x427534
sub eax, 1
test eax, eax
jne 0x427571
movzx rax, byte [rbp + 0x47]
or al, 0x10
mov byte [rbp + 0x47], al
jmp 0x427571
movzx rax, byte [rbp + 0x47]
or al, 4
mov byte [rbp + 0x47], al
jmp 0x427571
movzx rax, byte [rbp + 0x47]
or al, 8
mov byte [rbp + 0x47], al
jmp 0x427571
call fcn.00432a20
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00532850]
call fcn.00410770
mov rcx, qword [0x004204c0]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00430220
mov rcx, rax
call fcn.00409ad0
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0040aae0
lea rcx, [rbp + 0x488]
call fcn.0040aa00
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x490]
pop rbp
ret
Function at 0x4276f0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp + 0x3e], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x60], 0
nop
xor rbx, rbx
mov rcx, qword [rbp + 0x30]
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
setne sil
mov eax, dword [rbp + 0x6c]
test eax, 0x400
je 0x4277be
movzx rax, byte [rbp + 0x3e]
test al, al
je 0x4277be
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x60]
call fcn.004257c0
test al, al
je 0x4277be
mov rcx, qword [rbp + 0x60]
call fcn.004286a0
test al, al
je 0x4277a0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.00428350
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00431c90
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x60]
call fcn.0040c720
mov rcx, qword [rbp + 0x60]
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
setne sil
test sil, sil
jne 0x4277fb
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
mov eax, ebx
sub eax, 0x20
cmp eax, 2
jae 0x4277fb
mov rcx, qword [rbp + 0x30]
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call fcn.004276a0
test eax, eax
jne 0x4277f8
mov ebx, 0x20
jmp 0x4277fb
xor rbx, rbx
test ebx, ebx
jne 0x427834
mov eax, dword [rbp + 0x6c]
test eax, 0x10
jne 0x42782e
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x28]
call sub.kernel32.dll_FileTimeToLocalFileTime
test eax, eax
jne 0x427834
mov ebx, 0x20
jmp 0x427834
mov ebx, 0x20
test ebx, ebx
sete al
mov byte [rbp + 0x3f], al
nop
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0040aae0
lea rcx, [rbp + 0x60]
call fcn.0040aa00
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x90]
pop rbx
pop rsi
pop rbp
ret

Function at 0x427960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427a12
mov ecx, eax
test ecx, 0x400
je 0x427a07
test sil, sil
jne 0x42799f
mov al, 1
jmp 0x427a3c
test eax, 0x10
je 0x4279af
xor rax, rax
jmp 0x427a3c
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x4279fa
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x427a3c
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x427a3c
test eax, 0x10
sete al
jmp 0x427a3c
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x427a35
cmp eax, 3
je 0x427a35
cmp eax, 0x7b
je 0x427a35
mov rcx, rbp
mov rdx, rbx
call fcn.00427910
test al, al
jne 0x427a3a
xor rax, rax
jmp 0x427a3c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x427a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x427b59
mov eax, r13d
test eax, 0x400
jne 0x427a9a
test r13d, 0x10
setne dil
jmp 0x427b7a
test sil, sil
je 0x427afa
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x427b7a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x427b7a
test r13d, 0x10
je 0x427b08
mov dil, 1
jmp 0x427b7a
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x427b54
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x427b7a
mov dil, 1
jmp 0x427b7a
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x427b72
cmp eax, 3
je 0x427b72
cmp eax, 0x7b
je 0x427b72
cmp eax, 0x35
jne 0x427b77
xor rdi, rdi
jmp 0x427b7a
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x427cf0
Capabilities:
Get file attributes

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
mov rcx, qword [rbp + 0x20]
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, 0x400
je 0x427da3
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x427da3
or eax, 0xffffffff
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.004257c0
test al, al
je 0x427da3
mov rcx, qword [rbp + 0x48]
call fcn.004286a0
test al, al
je 0x427d8f
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.00428350
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.00431c90
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.0040c720
mov rcx, qword [rbp + 0x48]
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040aae0
lea rcx, [rbp + 0x48]
call fcn.0040aa00
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x427e10
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x2c], edx
mov byte [rbp + 0x3f], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
nop
xor rax, rax
mov dword [rbp + 0x28], eax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x30]
call fcn.0040b0d0
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x427ecf
mov rcx, qword [rbp + 0x30]
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
test eax, 0x400
je 0x427ecf
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call fcn.004257c0
test al, al
je 0x427ecf
mov rcx, qword [rbp + 0x50]
call fcn.004286a0
test al, al
je 0x427ec2
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.00428350
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00431c90
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x50]
call fcn.0040c720
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.0040b0d0
mov rcx, qword [rbp + 0x58]
call fcn.0040c300
mov rcx, rax
mov edx, dword [rbp + 0x2c]
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x427eef
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.0040aae0
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x4280a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x428112
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42810b
mov ecx, eax
test ecx, 0x400
je 0x42810b
test eax, 0x10
je 0x42810b
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x428112
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x428860
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x428880
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x42ed60
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42ed87
movzx rax, word [rbp + 0x2c]
jmp 0x42ed89
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x430020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.0042fdd0
mov ebx, eax
mov rax, qword [0x00532738]
cmp byte [rax], 0
je 0x430158
mov rcx, qword [0x00532280]
call fcn.00406d50
call fcn.00405cc0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042ffd8]
mov r8d, 1
movsxd r9, esi
call fcn.0040df60
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x004301f4]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43019e
mov rcx, qword [0x00537d68]
call fcn.0040e0c0
mov rcx, rax
mov rax, qword [0x005321e0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042ffd8]
call fcn.0040dfa0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x432730
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040b240
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00410840
mov esi, eax
cmp esi, 0x104
jbe 0x43278d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405990
mov rdi, rax
jmp 0x432791
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00410840
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x4327e7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x4327cb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4327f9
mov rcx, rdi
call fcn.004059c0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4600f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x460127
mov rcx, rbp
call fcn.0045ffe0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x460146
mov rcx, rbp
call fcn.0045ffe0
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.0045fb60
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x46a030
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x14], 0
jne 0x46a063
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x46a0c1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x46a0c1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x60], 0
jne 0x46a0c1
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x16], 0
mov byte [rax + 0x14], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x46a0eb
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00532668]
call fcn.00410770
mov rcx, qword [0x004543f8]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00430220
mov rcx, rax
call fcn.00409ad0
jmp 0x46a0eb
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00532668]
call fcn.00410770
mov rcx, qword [0x004543f8]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00430220
mov rcx, rax
call fcn.00409ad0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040aae0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x46a590
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x16]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x16], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.00469f00
jmp 0x46a5eb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x46a610
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 8]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00469f00
cmp esi, 1
jne 0x46a63a
mov byte [rbx + 0x16], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x473240
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040c300
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x00473318]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x4732ec
xor rdi, rdi
test rsi, rsi
je 0x4732aa
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040c300
mov rbx, rax
mov rcx, rsi
call fcn.0040c300
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x47330d
mov rcx, qword [0x00470248]
mov dl, 1
mov r8, qword [0x005322b8]
call fcn.004303b0
mov rcx, rax
call fcn.00409ad0
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x473320
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040c300
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x473340
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], r9
mov rcx, qword [rbp + 0x70]
call fcn.0040aa00
mov rcx, qword [rbp + 0x78]
call fcn.0040c300
mov rcx, qword [rbp + 0x88]
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x47342d
nop
mov dword [rbp + 0x44], pe_nt_image_headers64
mov rcx, qword [rbp + 0x70]
mov edx, dword [rbp + 0x44]
call fcn.0040c570
mov eax, dword [rbp + 0x44]
add eax, eax
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x80]
call fcn.0040c300
mov rbx, rax
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
call fcn.0040c300
mov rcx, qword [rbp + 0x48]
mov rdx, rbx
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47341a
mov rcx, qword [rbp + 0x70]
mov r8d, 2
mov eax, dword [rbp + 0x44]
xor edx, edx
div r8d
mov rdx, rax
sub edx, 1
call fcn.0040c570
jmp 0x473423
mov rcx, qword [rbp + 0x70]
call fcn.0040aa00
nop
mov rcx, qword [rbp + 0x48]
call sub.advapi32.dll_RegCloseKey_1
mov rax, qword [rbp + 0x70]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret
Function at 0x481900
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0x78], dl
nop
mov dword [rbp + 0x5c], 0
nop
cmp byte [rbp + 0x78], 0
je 0x481968
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
call fcn.0040c490
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.00426280
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x30]
mov r8w, 0xfde9
call fcn.0040b690
jmp 0x48197a
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x70]
mov r8w, 0xfde9
call fcn.0040bd40
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x40], 0
cmp qword [rbp + 0x50], 0
je 0x481999
mov rax, qword [rbp + 0x50]
mov eax, dword [rax - 4]
mov dword [rbp + 0x40], eax
mov eax, 1
mov ecx, dword [rbp + 0x40]
mov dword [rbp + 0x4c], eax
cmp dword [rbp + 0x4c], ecx
jg 0x4819db
add ecx, 1
imul eax, dword [rbp + 0x48], 0x5517e877
mov dword [rbp + 0x48], eax
lea rax, [0x00522eb4]
mov rdx, qword [rbp + 0x50]
movsxd r8, dword [rbp + 0x4c]
movzx rdx, byte [rdx + r8 - 1]
mov eax, dword [rax + rdx*4]
xor dword [rbp + 0x48], eax
add dword [rbp + 0x4c], 1
cmp dword [rbp + 0x4c], ecx
jne 0x4819ad
nop
mov eax, dword [rbp + 0x48]
mov dword [rbp + 0x5c], eax
jmp 0x4819ec
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040ab40
lea rcx, [rbp + 0x50]
call fcn.0040aa50
mov eax, dword [rbp + 0x5c]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x481a60
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
nop
mov qword [rbp + 0x68], 0
nop
cmp byte [rbp + 0x88], 0
je 0x481ad5
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x80]
call fcn.0040c490
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.00426280
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x30]
mov r8w, 0xfde9
call fcn.0040b690
jmp 0x481aea
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x80]
mov r8w, 0xfde9
call fcn.0040bd40
mov qword [rbp + 0x50], 1
mov dword [rbp + 0x48], 0
cmp qword [rbp + 0x60], 0
je 0x481b0a
mov rax, qword [rbp + 0x60]
mov eax, dword [rax - 4]
mov dword [rbp + 0x48], eax
mov eax, 1
mov ecx, dword [rbp + 0x48]
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x481b53
add ecx, 1
mov rax, qword [rbp + 0x50]
imul rax, rax, 0x5517e877
mov qword [rbp + 0x50], rax
lea rax, [0x005232b8]
mov rdx, qword [rbp + 0x60]
movsxd r8, dword [rbp + 0x5c]
movzx rdx, byte [rdx + r8 - 1]
mov rax, qword [rax + rdx*8]
xor qword [rbp + 0x50], rax
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x481b1e
nop
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x68], rax
jmp 0x481b66
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040ab40
lea rcx, [rbp + 0x60]
call fcn.0040aa50
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x70]
pop rbp
ret