joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8902a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8902b0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8902c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d890301
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8902f8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d890303
add rax, 0x28
cmp rax, r9
jne 0x6d8902e4
xor eax, eax
ret

Function at 0x6d8903a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ad1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d89040d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89040d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89040d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d890404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d89040f
add rax, 0x28
cmp rax, r9
jne 0x6d8903f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d890510
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ad1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d890530
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d890528
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89058d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d890584
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d890594
add rax, 0x28
cmp rax, r9
jne 0x6d890570
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8905b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8ad1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d89061e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89061e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d89061e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d89061e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d890615
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d890625
add rcx, 0x28
cmp rcx, rax
jne 0x6d890600
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d890638
jmp 0x6d89061e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d890646
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d89061e
test r9d, r9d
jg 0x6d890630
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8909b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4071b8
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x4071c6
and edx, 0x3fff
jmp fcn.00407110

Function at 0x4071cc
Capabilities:
Delete directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040aae4
mov ebx, eax
cmp eax, 1
je 0x4071fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4071fc
mov al, 1
jmp 0x40724d
test ebx, ebx
je 0x40724b
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040b160
test al, al
je 0x407241
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x40724d
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x407274
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.0040aae4
mov esi, eax
mov rcx, rbp
call fcn.0040aae4
mov edi, eax
mov ebx, 1
cmp esi, ebx
je 0x4072c3
cmp eax, ebx
je 0x4072c3
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4072c3
mov al, bl
jmp 0x407351
test esi, esi
jne 0x4072cf
test edi, edi
je 0x40734f
lea rcx, [rsp + 0x48]
call fcn.0040365c
nop
lea rcx, [rsp + 0x38]
call fcn.0040365c
nop
cmp esi, ebx
je 0x4072ed
cmp edi, ebx
jne 0x4072ef
xor bl, bl
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, rbp
mov rcx, r12
call fcn.0040b1a0
test al, al
je 0x40733a
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 sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x407351
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4074f4
Capabilities:
Create directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040aae4
mov ebx, eax
cmp eax, 1
je 0x407533
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407526
mov al, 1
jmp 0x407586
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407584
test ebx, ebx
je 0x407584
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040b160
test al, al
je 0x40757a
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 sub.msvcrt.dll_free
mov al, bl
jmp 0x407586
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x4075ac
Capabilities:
Delete file

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call fcn.00408710
cmp eax, 0xffffffff
je 0x4075e2
test al, 0x10
jne 0x4075e2
test al, 1
je 0x4075e2
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call fcn.00407110
test al, al
je 0x407653
mov rcx, rbx
call fcn.0040aae4
mov edi, eax
cmp eax, 1
je 0x407602
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407602
mov al, 1
jmp 0x407653
test edi, edi
je 0x407651
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp edi, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040b160
test al, al
je 0x407647
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x407653
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x40767c
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 0x407694
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.004037f0
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret

Function at 0x4077b4
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [rcx]
xor esi, esi
mov rdi, rcx
mov dword [rcx + 8], esi
lea rdx, [rsp + 0x20]
mov ecx, 0x105
mov word [rax], si
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.004037f0
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret
Function at 0x40780c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r13d, eax
xor r13d, edi
xor edi, edi
lea r15d, [rdi + 1]
mov ebx, edi
mov rdx, r14
mov rcx, rsi
call fcn.004037f0
cmp r12b, dil
je 0x4078ef
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
shr r10d, 4
and r8d, 0xf
cmp r8d, 0xa
lea eax, [r8 + 0x37]
lea edx, [r8 + 0x30]
movzx ecx, al
movzx eax, dl
cmovb ecx, eax
mov byte [rsp + r9 + 0x20], cl
add r9, r15
sub r11, r15
jne 0x407875
cmp rbp, rdi
mov byte [rsp + r9 + 0x20], dil
je 0x4078d2
mov eax, dword [rsi + 8]
cmp dword [rsi + 0xc], eax
jne 0x4078bc
mov rcx, rsi
call fcn.00403440
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov word [rcx + rdx*2], 0x2e
add edx, r15d
mov word [rcx + rdx*2], di
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.00403ac4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
cmp rbp, rdi
mov r12b, r15b
je 0x407906
lea rdx, str..tmp
mov rcx, rsi
call fcn.00403ac4
mov rcx, qword [rsi]
call fcn.00409158
cmp al, dil
je 0x407920
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x407954
cmp rbp, rdi
je 0x407935
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbp
call fcn.00409c0c
jmp 0x40793d
mov rcx, qword [rsi]
call fcn.004074f4
cmp al, dil
jne 0x40797c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x407954
cmp eax, 0xb7
jne 0x407960
add ebx, r15d
cmp ebx, 0x64
jb 0x407855
mov rax, qword [rsi]
mov dword [rsi + 8], edi
mov word [rax], di
xor al, al
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov al, r15b
jmp 0x40796b
Function at 0x408710
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.0040aae4
mov ebx, eax
cmp eax, 1
je 0x40873d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40878e
test ebx, ebx
je 0x408789
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040b160
test al, al
je 0x40877f
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 0x40878e
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x4091e0
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 0x409230
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [r12]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x40922c
mov rcx, qword [rsi]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x409208
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 0x409324
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x409271
add rcx, rcx
call fcn.00402388
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 0x40931a
cmp eax, edi
ja 0x40931a
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x4092fb
mov rbp, rbx
cmp word [rbp], 0
jne 0x4092f1
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.004037f0
lea r13d, [rdi + 1]
mov ecx, 0x10
call fcn.00402388
mov qword [rsp + 0x88], rax
test rax, rax
je 0x4092e4
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.00403768
jmp 0x4092e6
xor eax, eax
mov rdx, rax
mov rcx, r12
call fcn.004010c0
inc edi
add rbp, 2
cmp edi, esi
jb 0x4092a5
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 0x409324
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 0x4093c8
Capabilities:
Get file size

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

Disassembly:
mov eax, dword [0x00509070]
cmp r8d, eax
cmova r8d, eax
jmp fcn.004094b8

Function at 0x4095b4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x00509070]
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 0x40965c
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.00409424
xor ebx, ebx
cmp al, bl
je 0x409684
cmp qword [rsp + 0x50], rdi
je 0x409688
xor al, al
jmp 0x409696
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 0x40b524
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov r12, rcx
lea rcx, [0x004d0d20]
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 0x40b58a
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 0x40b5dc
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
imul rcx, rax
test bpl, bpl
mov qword [rbx], rcx
jne 0x40b5da
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 0x40c010
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
call fcn.0040bfe8
xor r8d, r8d
cmp eax, r8d
je 0x40c04f
cmp qword [rsp + 0x20], r8
je 0x40c04f
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 0x40c034
mov eax, r8d
jmp 0x40c05e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x40c064
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 0x40c0a6
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 0x4284b8
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 0x428585
mov rdi, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc0]
test rdi, rdi
je 0x428514
test bl, bl
jne 0x428514
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test eax, eax
jne 0x428587
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 0x428596
xor ecx, ecx
test eax, eax
je 0x428570
lea r8d, [rax - 1]
lea rdx, [rsp + 0x20]
shr r8d, 2
inc r8d
xor ecx, dword [rdx]
add rdx, 4
dec r8
jne 0x428565
test rsi, rsi
je 0x428579
cmp ecx, dword [rsi]
jne 0x428596
inc rbx
cmp rbx, rbp
jb 0x4284fe
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 0x428587
Function at 0x4285a0
Capabilities:
Encode data using xor

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

Function at 0x4287c8
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r11, rcx
cmp rdx, r10
jbe 0x428810
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 0x4287d3
mov rcx, r11
jmp fcn.00428788

Function at 0x42946c
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.00429224
add rsp, 0x50
pop rbx
ret
Function at 0x4295d8
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 0x429788
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 0x429775
cmp r9d, 0x400
jb 0x429775
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 0x429741
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 0x429699
add r11d, r12d
mov ecx, r11d
mov eax, r12d
shl eax, cl
cmp eax, r9d
jb 0x429696
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 0x4296c3
mov ecx, r10d
mov r10d, 1
shl r10d, cl
dec r10d
and r10d, edx
cmp r10d, r9d
jb 0x429738
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 0x4296c3
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 0x42977c
mov al, byte [rdx]
add rdx, r12
mov byte [rcx], al
add rcx, r12
sub r8, r12
jne 0x429764
jmp 0x42977c
mov byte [r9 + r13], dl
add r9d, r12d
mov eax, r9d
cmp rax, rbp
jb 0x429612
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x42989c
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, [0x004deda8]
call qword [0x004dedb0]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov edx, 0x500
lea rcx, [0x004deda8]
call qword [0x004deda8]
mov rbp, rax
cmp rax, rdi
jne 0x4298f6
jmp 0x4299d6
mov rax, rdi
mov r10d, 0x100
mov byte [rax + rbp], al
inc rax
cmp rax, r10
jb 0x4298ff
mov r8d, 0xffffffff
mov r9, rdi
mov cl, byte [r9 + rbp]
xor cl, r8b
movzx edx, cl
lea rcx, [0x0050e820]
mov eax, r8d
shr eax, 8
mov r8d, dword [rcx + rdx*4]
xor r8d, eax
inc r9
cmp r9, r10
jb 0x429913
not r8d
cmp r8d, 0x29058c73
je 0x42994a
jmp 0x4299d6
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 0x429959
mov rsi, rdi
mov r12d, edi
lea r13, [rsi + rbp]
mov edx, r12d
mov rcx, r13
call fcn.00428788
mov ebx, eax
mov rcx, r13
call fcn.004cca10
cmp ebx, eax
jne 0x4299d1
inc r12d
cmp r12d, 0x20
jb 0x4299a1
inc rsi
cmp rsi, 0x4e0
jb 0x42999a
jmp 0x4299d3
jmp 0x4299d6
mov dil, 1
mov rdx, rbp
lea rcx, [0x004deda8]
call qword [0x004dedb0]
mov al, dil
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret