joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b760
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x40b8b9
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0
jmp 0x40b7fc
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jae 0x40b8b9
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
mov ecx, dword [r8 + rcx + 8]
cmp dword [rdx + rax + 0x10], ecx
jbe 0x40b84b
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x44], eax
jmp 0x40b860
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 8]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rsp + 0x20], eax
jb 0x40b8b4
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
add eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jae 0x40b8b4
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x40b8b9
jmp 0x40b7f2
mov rax, qword [rsp + 0x28]
add rsp, 0x58
ret
Function at 0x40b8d0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x40b9d5
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_strlen
cmp rax, 8
jae 0x40b95d
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_strlen
mov qword [rsp + 0x48], rax
jmp 0x40b966
mov qword [rsp + 0x48], 8
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 0
jmp 0x40b982
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x40b9d5
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, qword [rsp + 0x68]
call sub.ntoskrnl.exe__strnicmp
test eax, eax
jne 0x40b9d3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x40b9d5
jmp 0x40b978
mov rax, qword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x40c950
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x10], 0
je 0x40c9fa
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x1c], 0
jne 0x40c9b2
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
add rax, 0x58
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0040ff90]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x40c9f5
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
add rax, 0x58
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x1c]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0040ff70]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x40caee
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
test eax, eax
je 0x40ca92
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x1c], 0
jne 0x40ca4e
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
add rcx, 0x58
mov dword [rsp + 0x20], eax
mov r9, rcx
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0040ff50]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x40ca90
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
add rcx, 0x58
mov rdx, qword [rsp + 0x48]
mov edx, dword [rdx + 0x1c]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
mov r9, rcx
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0040ff30]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x40caee
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x40cad4
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
add rax, 0x58
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x1c]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0040ff10]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x40caee
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0040fef0]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x38
ret

Function at 0x410058
Capabilities:
Create device object
Print debug messages

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call section.INIT
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00408c90
Function at 0x140d6e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d6e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140d6e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6e06f
add dl, dl
jne 0x140d6e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6e0f6
xor eax, eax
add dl, dl
jne 0x140d6e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6e1ad
add dl, dl
jne 0x140d6e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d6e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d6e07e
mov eax, 1
add dl, dl
jne 0x140d6e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6e0fb
sub eax, ebx
mov ebx, 1
jne 0x140d6e14c
mov ecx, 1
add dl, dl
jne 0x140d6e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d6e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d6e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d6e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6e15d
cmp eax, 0x7d00
jae 0x140d6e19b
cmp eax, 0x500
jb 0x140d6e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6e07e
cmp eax, 0x7f
ja 0x140d6e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d6e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140d6e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400706a0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x14007075d
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14007075d
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xa183ca9b
lea rcx, [r14 + r11*4]
mov ecx, dword [rcx + rbx]
add rcx, rbx
movzx r9d, byte [rcx]
inc rcx
test r9b, r9b
je 0x140070758
nop
movsx edx, r9b
lea rcx, [rcx + 1]
sub r9b, 0x41
mov r8d, edx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rcx - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x140070720
cmp r10d, 0x99857b1a
je 0x140070765
test r11d, r11d
jne 0x140070700
mov rax, qword [rax]
jmp 0x1400706d0
mov ecx, dword [rsi + 0x24]
mov rdi, qword [rsp + 0x18]
add rcx, rbx
mov r14, qword [rsp + 0x20]
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
mov rsi, qword [rsp + 0x10]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov rbx, qword [rsp + 8]
ret

Function at 0x1400707a0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x14007085d
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14007085d
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x552c5094
lea rcx, [r14 + r11*4]
mov ecx, dword [rcx + rbx]
add rcx, rbx
movzx r9d, byte [rcx]
inc rcx
test r9b, r9b
je 0x140070858
nop
movsx edx, r9b
lea rcx, [rcx + 1]
sub r9b, 0x41
mov r8d, edx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rcx - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x140070820
cmp r10d, 0x966005cf
je 0x140070865
test r11d, r11d
jne 0x140070800
mov rax, qword [rax]
jmp 0x1400707d0
mov ecx, dword [rsi + 0x24]
mov rdi, qword [rsp + 0x18]
add rcx, rbx
mov r14, qword [rsp + 0x20]
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
mov rsi, qword [rsp + 0x10]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov rbx, qword [rsp + 8]
ret
Function at 0x140080820
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
movzx eax, dl
mov r15, rcx
xor al, 1
mov byte [rcx + 0x4e], al
test dl, dl
je 0x140080848
mov ebp, dword [rcx + 0x50]
jmp 0x14008084a
xor ebp, ebp
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x1400808ed
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x1400808ed
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x2c48823d
lea rcx, [r14 + r11*4]
mov ecx, dword [rcx + rbx]
add rcx, rbx
movzx r9d, byte [rcx]
inc rcx
test r9b, r9b
je 0x1400808e8
nop
movsx edx, r9b
lea rcx, [rcx + 1]
sub r9b, 0x41
mov r8d, edx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rcx - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x1400808b0
cmp r10d, 0x6e4f2b68
je 0x1400808f5
test r11d, r11d
jne 0x140080890
mov rax, qword [rax]
jmp 0x140080860
mov ecx, dword [rsi + 0x24]
mov edx, ebp
add rcx, rbx
movzx r8d, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + r8*4]
mov rcx, qword [r15]
add rax, rbx
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
pop r15
pop r14
pop rdi
jmp rax
Function at 0x140084b60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140084b82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140084bfc
mov rdi, r14
mov rcx, rbx
call fcn.14007ec70
test rax, rax
jle 0x140084bd4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140395690
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140084bec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140084bf4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140084b96
sub r14, rdi
jmp 0x140084cdf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140084c13
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140084c15
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140084c47
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140395690
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140084cdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140084c82
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140084cbd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14036b978
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140084cdc
cmp rbp, rax
ja 0x140084c90
test rbp, rbp
je 0x140084cdc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14036b978
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140084d00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140084d98
test r8, r8
jle 0x140084d90
nop word [rax + rax]
mov rcx, rdi
call fcn.14007eda0
test rax, rax
jle 0x140084d6e
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140395690
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140084d88
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140084d90
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140084d30
sub r14, rbx
mov rax, r14
jmp 0x140084e16
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x140084db1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140084db3
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x140084e0b
test ecx, ecx
jle 0x140084dec
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140395690
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x140084e0b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140084e0b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14036ad7c
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400860f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403e9140]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14008611d
xor eax, eax
jmp 0x14008626b
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140086157
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140086157
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14008626b
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14008625e
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14008619a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400861a9
movsx ecx, dil
jmp 0x1400861fd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + gethostname]
test eax, eax
je 0x140086217
sub eax, 1
je 0x140086217
cmp eax, 2
jne 0x14008625e
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14036ae18
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140086263
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140086244
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14036ad7c
cmp rsi, rax
jne 0x14008625e
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140086263
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140362750
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400a5750
Capabilities:
Hash data using sha512

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x1403e9140]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
lea rax, vtable.sw::templates::basic_sha512_char_.0
mov qword [rsp + 0x30], rax
movabs rax, 0x6a09e667f3bcc908
mov qword [rsp + 0x40], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rsp + 0x48], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rsp + 0x50], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x58], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x60], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x68], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x70], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], ecx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x84]
call fcn.140395dd0
nop
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400a5e30
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400a5910
nop
mov rax, rsi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140362750
add rsp, 0x1a0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400bc310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1403e9140]
xor rax, rsp
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, dword [rsp + 0x3c]
mov dword [rsp + 0x20], 0x40
xor edx, edx
lea rcx, [rdx - 1]
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400bc3e8
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x1400bc388
mov byte [rbx], 0xc3
mov eax, dword [rsp + 0x3c]
mov r8d, eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x140
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400bc3e8
call rbx
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
lea rcx, [r8 - 1]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
jmp 0x1400bc3ea
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140362750
add rsp, 0x80
pop rbx
ret

Function at 0x1400bc510
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1403e9140]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x1400bc5d9
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x1400bc5d9
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xb8ab9054
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx ecx, byte [r9]
inc r9
test cl, cl
je 0x1400bc5d4
nop
movsx edx, cl
lea r9, [r9 + 1]
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
movzx ecx, byte [r9 - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test cl, cl
jne 0x1400bc5a0
cmp r10d, 0xdc128021
je 0x1400bc5e1
test r11d, r11d
jne 0x1400bc580
mov rax, qword [rax]
jmp 0x1400bc550
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x28]
mov rcx, qword [0x1403e9ce0]
add rax, rbx
call rax
mov eax, dword [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, qword [0x1403ee148]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rcx]
call qword [rax + 0x1d0]
shr eax, 0x1f
xor al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140362750
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x1400c4b90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
xor r8d, r8d
lea rdx, [0x1403c45b8]
mov rcx, rbx
call fcn.140091300
mov dword [rsp + 0x20], 1
mov rcx, qword [0x1403e9ce0]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400c4c35
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400c4c2f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400c4c26
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400c4c10
mov rdx, rax
mov rcx, rbx
call fcn.1400915e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret