joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f44
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.0040a2fc
mov ebx, eax
cmp eax, 1
je 0x407f71
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407fc2
test ebx, ebx
je 0x407fbd
lea rcx, [rsp + 0x28]
call fcn.004031b0
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040a978
test al, al
je 0x407fb3
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 0x407fc2
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x408a0c
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 0x408a5c
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [r12]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x408a58
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x408a34
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 0x408b50
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x408a9d
add rcx, rcx
call fcn.00403b94
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 0x408b46
cmp eax, edi
ja 0x408b46
lea rcx, [rsp + 0x28]
call fcn.004031b0
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x408b27
mov rbp, rbx
cmp word [rbp], 0
jne 0x408b1d
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.00403344
lea r13d, [rdi + 1]
mov ecx, InitCommonControls
call fcn.00403b94
mov qword [rsp + 0x88], rax
test rax, rax
je 0x408b10
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.004032bc
jmp 0x408b12
xor eax, eax
mov rdx, rax
mov rcx, r12
call fcn.004010c0
inc edi
add rbp, 2
cmp edi, esi
jb 0x408ad1
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 0x408b50
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 0x408bf4
Capabilities:
Get file size

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

Disassembly:
mov eax, dword [0x00480070]
cmp r8d, eax
cmova r8d, eax
jmp fcn.00408ce4

Function at 0x408de0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x00480070]
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 0x408e88
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.00408c50
xor ebx, ebx
cmp al, bl
je 0x408eb0
cmp qword [rsp + 0x50], rdi
je 0x408eb4
xor al, al
jmp 0x408ec2
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 0x40a10c
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.00403344
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret

Function at 0x40ad3c
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov r12, rcx
lea rcx, [0x0045ec88]
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 0x40ada2
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 0x40adf4
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
imul rcx, rax
test bpl, bpl
mov qword [rbx], rcx
jne 0x40adf2
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 0x40b5cc
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 0x40b5fc
Capabilities:
Set registry value

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

Function at 0x40b610
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 0x40b654
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 0x40b704
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 0x40b763
cmp eax, 0xea
jne 0x40b7d9
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40b778
mov rcx, rbx
call fcn.00402ec4
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 0x40b7d6
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40b7ca
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40b8d8
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.0040b884
test eax, eax
mov ebx, eax
jne 0x40b98c
mov ebx, 0x105
jmp 0x40b924
lea rdx, [rsp + 0x50]
call fcn.0040b8d8
test eax, eax
jne 0x40b98a
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 0x40b916
call fcn.0040b598
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
lea rcx, [rsp + 0x298]
call fcn.0040b598
mov eax, ebx
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x40b9a8
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 0x40b9f7
cmp eax, 0xea
jne 0x40ba59
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40ba2f
mov rcx, qword [rbx]
test rcx, rcx
je 0x40ba13
call sub.msvcrt.dll_free
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40ba2f
mov rcx, rdi
call fcn.00403b94
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 0x40ba64
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 0x40baa5
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 0x40ba91
cmp rbp, rsi
mov rbx, rsi
je 0x40baba
lea rcx, [rbp + rbp]
call fcn.00403b94
mov rbx, rax
cmp dword [r12 + 8], esi
mov r14d, esi
jbe 0x40baf8
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 0x40bac7
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 0x40bb40
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbp, rdx
mov r12, rcx
movsxd rbx, dword [rdx + 8]
mov rdi, rbx
test ebx, ebx
je 0x40bb91
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x40bb8d
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x40bb69
mov dword [rbp + 8], 0
lea rcx, [rsp + 0x48]
call fcn.004031b0
nop
xor edi, edi
mov esi, 0x105
mov dword [rsp + 0x98], esi
cmp dword [rsp + 0x54], esi
jae 0x40bbc3
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.00402ec4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8, qword [rsp + 0x48]
mov edx, edi
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov rax, qword [rsp + 0x48]
mov word [rax + 0x20a], 0
xor ecx, ecx
cmp word [rax], cx
je 0x40bc27
inc ecx
add rax, 2
cmp word [rax], 0
jne 0x40bc1b
mov dword [rsp + 0x50], ecx
cmp ebx, 0x103
je 0x40bc6f
test ebx, ebx
jne 0x40bc7d
lea ecx, [rbx + 0x10]
call fcn.00403b94
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x40bc5b
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.004032bc
jmp 0x40bc5d
xor eax, eax
mov rdx, rax
mov rcx, rbp
call fcn.004010c0
inc edi
jmp 0x40bbaa
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x40bc89
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40c3f4
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
call fcn.0040c3cc
xor r8d, r8d
cmp eax, r8d
je 0x40c433
cmp qword [rsp + 0x20], r8
je 0x40c433
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 0x40c418
mov eax, r8d
jmp 0x40c442
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x40c448
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 0x40c48a
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 0x40c540
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 0x40c5ab
cmp eax, dword [rdi + 0xc]
jbe 0x40c578
mov edx, eax
mov rcx, rdi
call fcn.00402ec4
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 0x40c59f
inc eax
add rcx, 2
cmp word [rcx], bx
jne 0x40c599
cmp esi, ebx
mov dword [rdi + 8], eax
jne 0x40c5b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
sete al
jmp 0x40c5ba
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4190bc
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov r13d, edx
xor edx, edx
mov rbp, r8
mov r14, rcx
lea r8d, [rdx + 0x40]
lea rcx, [rsp + 0x20]
mov rsi, r9
call sub.msvcrt.dll_memset
xor ebx, ebx
test rbp, rbp
je 0x419189
mov rdi, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc0]
test rdi, rdi
je 0x419118
test bl, bl
jne 0x419118
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + InitCommonControls]
test eax, eax
jne 0x41918b
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
mov r11, qword [r12]
mov r8d, r13d
mov rdx, r14
mov rcx, r12
call qword [r11 + 0x20]
mov r11, qword [r12]
lea rdx, [rsp + 0x20]
mov rcx, r12
call qword [r11 + 0x28]
mov r11, qword [r12]
mov rcx, r12
call qword [r11 + 0x30]
cmp eax, 0x40
ja 0x41919a
xor ecx, ecx
test eax, eax
je 0x419174
lea r8d, [rax - 1]
lea rdx, [rsp + 0x20]
shr r8d, 2
inc r8d
xor ecx, dword [rdx]
add rdx, 4
dec r8
jne 0x419169
test rsi, rsi
je 0x41917d
cmp ecx, dword [rsi]
jne 0x41919a
inc rbx
cmp rbx, rbp
jb 0x419102
xor eax, eax
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 1
jmp 0x41918b
Function at 0x4191a4
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x419337
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 0x4191ae
mov eax, ecx
ret

Function at 0x4193cc
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r11, rcx
cmp rdx, r10
jbe 0x419414
mov r9d, dword [r8]
mov ecx, dword [r8 + 4]
movzx eax, r9w
shr r9d, 0x10
imul eax, eax, 0x9069
add eax, r9d
mov dword [r8], eax
movzx eax, cx
shr ecx, 0x10
imul eax, eax, 0x4650
add eax, ecx
mov dword [r8 + 4], eax
xor al, byte [r8 + 8]
mov byte [r10 + r11], al
inc r10
cmp r10, rdx
jb 0x4193d7
mov rcx, r11
jmp fcn.0041938c

Function at 0x41a070
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.00419e28
add rsp, 0x50
pop rbx
ret
Function at 0x41a1dc
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 ebx, 0x159a55e5
mov edi, 0x1f123bb5
mov r10d, r12d
mov r11d, r12d
je 0x41a38c
movzx ecx, bx
shr ebx, 0x10
imul ecx, ecx, 0x9069
add ebx, ecx
movzx ecx, di
shr edi, 0x10
mov edx, ebx
shl edx, 0x10
imul ecx, ecx, 0x4650
add edi, ecx
add edx, edi
xor edx, r14d
mov eax, edx
shr edx, 1
and eax, r12d
je 0x41a379
cmp r9d, 0x400
jb 0x41a379
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 0x41a345
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 0x41a29d
add r11d, r12d
mov ecx, r11d
mov eax, r12d
shl eax, cl
cmp eax, r9d
jb 0x41a29a
cmp r15d, r11d
mov ecx, 5
mov esi, r15d
cmova esi, r11d
lea eax, [rcx - 1]
cmp esi, 0x15
cmovbe ecx, eax
mov eax, r12d
shl eax, cl
movzx ecx, bx
shr ebx, 0x10
lea r10d, [rax - 1]
and r10d, edx
movzx edx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add ebx, ecx
add r10d, 6
imul edx, edx, 0x4650
add edi, edx
mov edx, ebx
shl edx, 0x10
add edx, edi
xor edx, r14d
cmp r10d, esi
ja 0x41a2c7
mov ecx, r10d
mov r10d, 1
shl r10d, cl
dec r10d
and r10d, edx
cmp r10d, r9d
jb 0x41a33c
movzx ecx, bx
shr ebx, 0x10
imul ecx, ecx, 0x9069
add ebx, ecx
movzx ecx, di
shr edi, 0x10
mov edx, ebx
imul ecx, ecx, 0x4650
add edi, ecx
shl edx, 0x10
add edx, edi
xor edx, r14d
jmp 0x41a2c7
mov r12d, 1
add r10d, r12d
mov eax, ebp
mov ecx, r9d
sub eax, r9d
cmp r8d, eax
cmova r8d, eax
add rcx, r13
mov eax, r10d
mov rdx, rcx
add r9d, r8d
sub rdx, rax
test r8d, r8d
je 0x41a380
mov al, byte [rdx]
add rdx, r12
mov byte [rcx], al
add rcx, r12
sub r8, r12
jne 0x41a368
jmp 0x41a380
mov byte [r9 + r13], dl
add r9d, r12d
mov eax, r9d
cmp rax, rbp
jb 0x41a216
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x41a4a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
xor edx, edx
lea rcx, [0x004671c0]
call qword [0x004671c8]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov edx, 0x500
lea rcx, [0x004671c0]
call qword [0x004671c0]
mov rbp, rax
cmp rax, rdi
jne 0x41a4fa
jmp 0x41a5da
mov rax, rdi
mov r10d, 0x100
mov byte [rax + rbp], al
inc rax
cmp rax, r10
jb 0x41a503
mov r8d, 0xffffffff
mov r9, rdi
mov cl, byte [r9 + rbp]
xor cl, r8b
movzx edx, cl
lea rcx, [0x004811c0]
mov eax, r8d
shr eax, 8
mov r8d, dword [rcx + rdx*4]
xor r8d, eax
inc r9
cmp r9, r10
jb 0x41a517
not r8d
cmp r8d, 0x29058c73
je 0x41a54e
jmp 0x41a5da
mov r9d, 0x159a55e5
mov r8d, 0x1f123bb5
mov rdx, rdi
movzx ecx, r9w
imul ecx, ecx, 0x9069
shr r9d, 0x10
add r9d, ecx
movzx ecx, r8w
imul ecx, ecx, 0x4650
shr r8d, 0x10
add r8d, ecx
mov dword [rsp + 0x2c], r8d
mov al, r8b
mov byte [rdx + rbp + 0x100], r8b
inc rdx
cmp rdx, 0x400
jb 0x41a55d
mov rsi, rdi
mov r12d, edi
lea r13, [rsi + rbp]
mov edx, r12d
mov rcx, r13
call fcn.0041938c
mov ebx, eax
mov rcx, r13
call fcn.0045c600
cmp ebx, eax
jne 0x41a5d5
inc r12d
cmp r12d, 0x20
jb 0x41a5a5
inc rsi
cmp rsi, 0x4e0
jb 0x41a59e
jmp 0x41a5d7
jmp 0x41a5da
mov dil, 1
mov rdx, rbp
lea rcx, [0x004671c0]
call qword [0x004671c8]
mov al, dil
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret