joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014890
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0xb
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003a70
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.SYSTEMCurrentControlSetServices_bamStateUserSettings
mov rcx, 0xffffffff80000002
call fcn.140002dc0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e00
lea rdx, [0x140004fb0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140016b40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016b8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016b8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016b8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016b8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140016b8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140016b8c
xor al, al
add rsp, 0x28
ret
Function at 0x140a90000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140a9000a
jmp 0x140a9200f
jmp fcn.1407450b0
Function at 0x407428
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x407436
and edx, 0x3fff
jmp fcn.00407380

Function at 0x40743c
Capabilities:
Delete directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040b6e0
mov ebx, eax
cmp eax, 1
je 0x40746c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40746c
mov al, 1
jmp 0x4074bd
test ebx, ebx
je 0x4074bb
lea rcx, [rsp + 0x28]
call fcn.00403678
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040bdac
test al, al
je 0x4074b1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov al, bl
jmp 0x4074bd
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x4074e4
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rdx
mov r12, rcx
call fcn.0040b6e0
mov esi, eax
mov rcx, rbp
call fcn.0040b6e0
mov edi, eax
mov ebx, 1
cmp esi, ebx
je 0x407533
cmp eax, ebx
je 0x407533
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x407533
mov al, bl
jmp 0x4075c1
test esi, esi
jne 0x40753f
test edi, edi
je 0x4075bf
lea rcx, [rsp + 0x48]
call fcn.00403678
nop
lea rcx, [rsp + 0x38]
call fcn.00403678
nop
cmp esi, ebx
je 0x40755d
cmp edi, ebx
jne 0x40755f
xor bl, bl
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, rbp
mov rcx, r12
call fcn.0040bdf4
test al, al
je 0x4075aa
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x38]
call fcn.004024f4
nop
mov rcx, qword [rsp + 0x48]
call fcn.004024f4
mov al, bl
jmp 0x4075c1
mov rcx, qword [rsp + 0x38]
call fcn.004024f4
nop
mov rcx, qword [rsp + 0x48]
call fcn.004024f4
xor al, al
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x407764
Capabilities:
Create directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040b6e0
mov ebx, eax
cmp eax, 1
je 0x4077a3
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407796
mov al, 1
jmp 0x4077f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4077f4
test ebx, ebx
je 0x4077f4
lea rcx, [rsp + 0x28]
call fcn.00403678
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040bdac
test al, al
je 0x4077ea
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov al, bl
jmp 0x4077f6
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x407828
Capabilities:
Delete file

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call fcn.00408bbc
cmp eax, 0xffffffff
je 0x40785e
test al, 0x10
jne 0x40785e
test al, 1
je 0x40785e
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call fcn.00407380
test al, al
je 0x4078cf
mov rcx, rbx
call fcn.0040b6e0
mov edi, eax
cmp eax, 1
je 0x40787e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40787e
mov al, 1
jmp 0x4078cf
test edi, edi
je 0x4078cd
lea rcx, [rsp + 0x28]
call fcn.00403678
nop
cmp edi, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040bdac
test al, al
je 0x4078c3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov al, bl
jmp 0x4078cf
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x4078f8
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
cmp eax, ecx
setne al
add rsp, 0x28
ret

Function at 0x407910
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rcx + 8], 0
mov rax, qword [rcx]
mov word [rax], 0
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x407a12
cmp ebx, 0x114
jae 0x40797c
mov word [rsp + 0x268], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.0040385c
mov al, 1
jmp 0x407a12
lea rcx, [rsp + 0x20]
call fcn.00403678
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x407999
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.0040334c
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
test eax, eax
jne 0x4079bb
mov rcx, qword [rsp + 0x20]
call fcn.004024f4
xor al, al
jmp 0x407a12
mov rcx, qword [rsp + 0x20]
mov word [rcx + rbx*2], 0
xor eax, eax
cmp word [rcx], ax
je 0x4079d9
inc eax
add rcx, 2
cmp word [rcx], 0
jne 0x4079cd
mov dword [rsp + 0x28], eax
cmp eax, r11d
jne 0x407a06
lea eax, [rbx - 1]
cmp eax, r11d
jne 0x407a06
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.004038c4
nop
mov rcx, qword [rsp + 0x20]
call fcn.004024f4
mov al, 1
jmp 0x407a12
mov rcx, qword [rsp + 0x20]
call fcn.004024f4
xor al, al
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x407b04
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor edi, edi
mov ecx, 0x114
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov esi, eax
call fcn.0040385c
mov rcx, rbx
call fcn.0040b068
cmp esi, edi
je 0x407b51
cmp esi, 0x114
jae 0x407b51
mov edi, 1
mov al, dil
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x407b60
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, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
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
mov ebx, edi
lea r15d, [rdi + 1]
mov dword [rsi + 8], edi
mov rcx, qword [rsi]
mov byte [rcx], dil
cmp r12b, dil
je 0x407c28
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
and r8d, 0xf
shr r10d, 4
lea edx, [r8 + 0x30]
lea eax, [r8 + 0x37]
movzx ecx, al
movzx eax, dl
cmp r8d, 0xa
cmovb ecx, eax
mov byte [rsp + r9 + 0x38], cl
add r9, r15
sub r11, r15
jne 0x407bcc
mov byte [rsp + r9 + 0x38], dil
cmp rbp, rdi
je 0x407c0b
mov rcx, rsi
call fcn.00403e94
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.00403118
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
mov r12b, r15b
cmp rbp, rdi
je 0x407c3f
lea rdx, str..tmp
mov rcx, rsi
call fcn.00403118
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.004036e4
nop
mov rdx, qword [rsi]
lea rcx, [rsp + 0x28]
call fcn.00403b1c
mov rcx, qword [rsp + 0x28]
call fcn.004097d0
cmp al, dil
je 0x407c81
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
jmp 0x407cc8
cmp rbp, rdi
je 0x407c9d
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.0040a52c
cmp al, dil
jne 0x407cd6
jmp 0x407cac
mov rcx, qword [rsp + 0x28]
call fcn.00407764
cmp al, dil
jne 0x407ce5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x407cbe
cmp eax, 0xb7
jne 0x407cf4
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
add ebx, r15d
cmp ebx, 0x64
jb 0x407bb2
jmp 0x407cfe
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov al, r15b
jmp 0x407d09
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov al, r15b
jmp 0x407d09
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov dword [rsi + 8], edi
mov rax, qword [rsi]
mov byte [rax], dil
xor al, al
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x408bbc
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.0040b6e0
mov ebx, eax
cmp eax, 1
je 0x408be9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408c3a
test ebx, ebx
je 0x408c35
lea rcx, [rsp + 0x28]
call fcn.00403678
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040bdac
test al, al
je 0x408c2b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov eax, ebx
jmp 0x408c3a
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x409910
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 0x409960
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x40995c
mov rcx, qword [rsi]
call fcn.004024f4
mov rcx, rsi
call fcn.004024f4
test ebx, ebx
jne 0x409938
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 0x409a65
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x40999f
add rcx, rcx
call fcn.004024bc
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 0x409a5b
cmp eax, edi
ja 0x409a5b
lea rcx, [rsp + 0x28]
call fcn.00403678
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x409a3c
mov r12, rbx
cmp word [r12], 0
jne 0x409a32
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.0040385c
lea r13d, [rdi + 1]
mov rcx, rbp
call fcn.00444ea8
mov ecx, 0x10
call fcn.004024bc
mov qword [rsp + 0x88], rax
test rax, rax
je 0x409a1e
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.004037d4
mov r11, rax
jmp 0x409a21
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 0x4099d3
cmp r13d, esi
sete dil
mov rcx, qword [rsp + 0x28]
call fcn.004024f4
nop
mov rcx, rbx
call fcn.004024f4
mov al, dil
jmp 0x409a65
mov rcx, rbx
call fcn.004024f4
xor al, al
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x409b34
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x409b53
cmp byte [rcx + 0xa], 0
je 0x409b53
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x409b8f
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 0x409b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409b7e
xor al, al
jmp 0x409b91
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 0x409cb4
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 0x409cf0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x400000
cmp r8d, eax
cmova r8d, eax
jmp fcn.00409cb4

Function at 0x409db4
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 0x409ec8
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.00409bf4
xor ebx, ebx
cmp al, bl
je 0x409ef0
cmp qword [rsp + 0x50], rdi
je 0x409ef4
xor al, al
jmp 0x409f02
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 0x40c144
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov r12, rcx
lea rcx, [0x004a4c90]
mov rdi, r9
mov rsi, r8
mov rbx, rdx
xor bpl, bpl
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetDiskFreeSpaceExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x40c1aa
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r12
call rax
test eax, eax
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rax, qword [rsp + 0x48]
setne bpl
mov qword [rdi], rax
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40c1fc
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
imul rcx, rax
test bpl, bpl
mov qword [rbx], rcx
jne 0x40c1fa
mov eax, dword [rsp + 0x38]
imul rax, rcx
mov qword [rsi], rax
mov eax, dword [rsp + 0x3c]
imul rax, qword [rbx]
mov qword [rdi], rax
mov al, 1
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x40cb64
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 0x40cbb3
cmp eax, 0xea
jne 0x40cc15
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40cbeb
mov rcx, qword [rbx]
test rcx, rcx
je 0x40cbcf
call fcn.004024f4
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40cbeb
mov rcx, rdi
call fcn.004024bc
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 0x40cc68
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
call fcn.0040cc40
xor r8d, r8d
cmp eax, r8d
je 0x40cca7
cmp qword [rsp + 0x20], r8
je 0x40cca7
mov rcx, r8
lea eax, [r8 + 0x40]
mov rdx, qword [rsp + 0x20]
shr rdx, cl
inc rcx
and edx, 1
add r8d, edx
dec rax
jne 0x40cc8c
mov eax, r8d
jmp 0x40ccb6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x40ccbc
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 0x40ccfe
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 0x40d0f4
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
xor ecx, ecx
mov rax, qword [rbx]
mov dword [rbx + 8], ecx
mov byte [rax], cl
mov rax, qword [rdx]
mov dword [rdx + 8], ecx
mov byte [rax], cl
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.0040cecc
add rsp, 0x50
pop rbx
ret
Function at 0x41fd18
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x41feab
mov eax, edx
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
dec rax
jne 0x41fd22
mov eax, ecx
ret
Function at 0x420688
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, qword [rcx + 8]
mov r13, qword [rcx]
xor r9d, r9d
test rbp, rbp
lea r12d, [r9 + 1]
mov r14d, r8d
mov r15d, edx
mov edi, 0x159a55e5
mov esi, 0x1f123bb5
mov r10, r12
mov r11d, r12d
je 0x42083d
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
shl edx, 0x10
imul ecx, ecx, 0x4650
add esi, ecx
add edx, esi
xor edx, r14d
mov eax, edx
shr edx, 1
and eax, r12d
je 0x42082c
cmp r9, 0x400
jb 0x42082c
mov ecx, edx
shr edx, 2
mov r8d, r12d
and ecx, 3
inc ecx
shl r8d, cl
sub r8d, r12d
and r8d, edx
shr edx, cl
mov eax, edx
inc r8d
shr edx, 3
and eax, 7
je 0x4207f5
mov ecx, edx
shr edx, 2
mov eax, r12d
and ecx, 3
inc ecx
shl eax, cl
sub eax, r12d
and eax, edx
shr edx, cl
add r8d, eax
jmp 0x420749
add r11d, r12d
mov ecx, r11d
mov rax, r12
shl rax, cl
cmp rax, r9
jb 0x420746
cmp r15d, r11d
mov ecx, 5
mov ebx, r15d
cmova ebx, r11d
lea eax, [rcx - 1]
cmp ebx, 0x15
cmovbe ecx, eax
shl r12d, cl
add r12d, 0xffffffff
movzx ecx, di
shr edi, 0x10
mov r10d, r12d
and r10d, edx
movzx edx, si
shr esi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
add r10d, 6
imul edx, edx, 0x4650
add esi, edx
mov edx, edi
shl edx, 0x10
add edx, esi
xor edx, r14d
cmp r10d, ebx
ja 0x420776
mov ecx, r10d
mov r10d, 1
mov eax, edx
shl r10, cl
dec r10
and r10, rax
cmp r10, r9
jb 0x4207ec
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
imul ecx, ecx, 0x4650
add esi, ecx
shl edx, 0x10
add edx, esi
xor edx, r14d
jmp 0x420776
mov r12d, 1
add r10, r12
mov eax, r8d
lea rdx, [r13 + r9]
mov rcx, rbp
sub rcx, r9
cmp rax, rcx
cmova r8d, ecx
mov rcx, rdx
mov ebx, r8d
sub rcx, r10
add r9, rbx
test r8d, r8d
je 0x420834
mov al, byte [rcx]
add rcx, r12
mov byte [rdx], al
add rdx, r12
sub rbx, r12
jne 0x42081b
jmp 0x420834
mov byte [r13 + r9], dl
add r9, r12
cmp r9, rbp
jb 0x4206c2
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x476af4
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
cmp rdx, 0x200
mov rbx, rdx
mov r11, rcx
mov dword [r8], 0
mov dword [r8 + 4], 0
mov dword [r8 + 8], 0
jb 0x476bd4
cmp word [rcx], 0x5a4d
jne 0x476bd4
mov r9d, dword [rcx + 0x3c]
cmp r9d, 0x1000
jae 0x476bd4
lea ecx, [r9 + 0x200]
cmp rcx, rdx
ja 0x476bd4
test r9b, 7
jne 0x476bd4
lea rdx, [r11 + r9]
cmp dword [rdx], 0x4550
jne 0x476bd4
movzx ecx, word [rdx + 4]
sub ecx, 0x14c
je 0x476bae
sub ecx, 0x74
je 0x476ba7
sub ecx, 2
je 0x476ba7
sub ecx, 2
je 0x476ba0
sub ecx, 0x3c
je 0x476b99
sub ecx, 0x8464
je 0x476bae
cmp ecx, 0x2400
jne 0x476bd4
mov eax, 0xa
jmp 0x476bb3
mov eax, 0x3030401
jmp 0x476bb3
mov eax, 0x3030701
jmp 0x476bb3
mov eax, 0x3030501
jmp 0x476bb3
mov eax, 0x3030103
cmp word [rdx + 0x14], 0x400
ja 0x476bd4
movzx ecx, word [rdx + 0x18]
cmp ecx, 0x10b
je 0x476bcf
cmp ecx, 0x20b
jne 0x476bd4
mov dword [r8], eax
jmp 0x476bf2
mov rdx, rbx
mov rcx, r11
call fcn.004768bc
test eax, eax
jne 0x476bf2
mov rdx, rbx
mov rcx, r11
call fcn.00476984
test eax, eax
je 0x476bf9
mov eax, 1
jmp 0x476c04
mov rdx, rbx
mov rcx, r11
call fcn.00476a48
add rsp, 0x20
pop rbx
ret