joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007ec80
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x20], r15
mov r15d, ecx
call fcn.18000e9c0
mov edx, dword [0x18048f6d8]
xor ebx, ebx
movzx r12d, al
test edx, edx
je 0x18007edf5
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x30], r13
lea r13, [0x18048fc10]
mov qword [rsp + 0x28], r14
nop dword [rax]
call fcn.18000cd00
test al, al
je 0x18007ed03
call fcn.180013f00
mov ecx, eax
movzx r11d, word [r13 + rcx*2]
mov ecx, dword [0x18048f6dc]
cmp r11d, ecx
jl 0x18007eda8
mov eax, r11d
cdq
idiv ecx
mov r11d, edx
jmp 0x18007eda8
mov eax, 1
lock xadd dword [0x18048fc0c], eax
mov esi, dword [0x18048fc08]
inc eax
mov edi, dword [0x18048f6dc]
xor edx, edx
mov r14, qword [0x18048fc00]
xor r11d, r11d
div esi
xor r10d, r10d
mov ebx, 0x3b9aca00
mov ebp, edx
mov ecx, ebx
test edi, edi
jle 0x18007eda8
nop dword [rax]
rdtsc
shl rdx, 0x20
or rax, rdx
mov r9, rax
rdtsc
mov r8d, r10d
shl rdx, 0x20
imul r8d, esi
or rax, rdx
inc r8d
add r8d, ebp
shl r8d, 7
movzx r8d, byte [r8 + r14]
sub r8d, r9d
add r8d, eax
cmp r8d, ebx
jge 0x18007ed80
mov ecx, ebx
mov r11d, r10d
mov ebx, r8d
jmp 0x18007ed87
cmp r8d, ecx
cmovl ecx, r8d
inc r10d
cmp r10d, edi
jl 0x18007ed40
lea eax, [rbx + rbx]
cmp eax, ecx
jge 0x18007eda8
mov ecx, r11d
imul ecx, esi
inc ecx
add ecx, ebp
shl ecx, 7
and byte [rcx + r14], 1
mov rax, qword [0x18048ee10]
xor r8d, r8d
movsxd rcx, r11d
mov edx, r15d
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx + 0x1588]
mov rcx, qword [rax + 8]
call fcn.1800151e0
mov ecx, dword [0x18048f6d8]
mov ebx, eax
test ecx, ecx
jne 0x18007ecd0
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
test r12b, r12b
mov r12, qword [rsp + 0x38]
je 0x18007ee09
call fcn.18000e930
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x18008f400
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x90
mov r8d, dword [rdx + 0x50]
lea r14, [rdx + 0x50]
mov rax, qword [rcx + 0x50]
lea rbp, [r14 + 8]
mov r10, qword [rcx + 0x60]
mov rsi, rcx
shl r8d, 3
mov ecx, 0x1505
mov dword [rsp + 0x2c], r8d
add r8, rbp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0x20], rbp
cmp rbp, r8
jae 0x18008f461
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
imul ecx, ecx, 0x21
xor ecx, eax
cmp rdx, r8
jb 0x18008f451
mov dword [rsp + 0x28], ecx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rdx, r10
call fcn.18009b0b0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x18008f5ae
mov qword [rsp + 0xc0], rbx
lea rdx, [0x1803e82d0]
mov qword [rsp + 0x88], rdi
mov edi, dword [rsi + 0x80]
mov qword [rsp + 0x80], r12
inc edi
mov r12d, dword [rsp + 0x28]
mov qword [rsp + 0x78], r13
mov dword [rsi + 0x80], edi
mov qword [rsp + 0x70], r15
mov r15d, dword [r14]
shl r15d, 3
mov r13d, r15d
lea rcx, [r15 + 0x14]
call fcn.1800b9c84
mov rbx, rax
test rax, rax
jne 0x18008f4e1
jmp 0x18008f4fe
lea rcx, [rax + 0x14]
mov dword [rax + 0x10], edi
mov r8, r13
mov qword [rax], rcx
mov rdx, rbp
mov dword [rax + 8], r12d
mov dword [rax + 0xc], r15d
call fcn.1800ba9d0
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
test rbx, rbx
je 0x18008f53c
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov r9, rbx
mov r8, rbx
call fcn.18009b410
mov eax, dword [rax + 0x18]
test al, al
jne 0x18008f53c
mov rcx, rbx
call fcn.1800b9bb0
mov rbx, qword [rsp + 0xb8]
mov r8, r14
mov rcx, rbx
mov edx, edi
call fcn.18008e900
test al, al
jne 0x18008f590
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18008f583
cmp byte [rcx + 0xc], al
jne 0x18008f583
mov rdx, qword [rsi + 0x50]
test rdx, rdx
je 0x18008f583
mov eax, dword [rdx + 0x20]
cmp eax, dword [rdx + 0x18]
je 0x18008f583
call fcn.18008bf20
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov r8, r14
mov edx, edi
mov rcx, rbx
call fcn.18008e900
mov rbx, qword [rsp + 0xc0]
mov eax, edi
mov rdi, qword [rsp + 0x88]
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x10]
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret

Function at 0x180090190
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
add rsp, 0x28
jmp fcn.18008d650

Function at 0x180090330
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x38
ret
Function at 0x18009deb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x18047f9c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov rbp, r9
mov r12d, r8d
mov r14, rdx
mov r15, rcx
mov edi, esi
test rdx, rdx
je 0x18009df90
lea rbx, [rcx + 8]
mov rax, qword [rbx - 8]
mov byte [rbx + 8], sil
test rax, rax
je 0x18009df16
mov rax, qword [rax + 0x118]
mov qword [rsp + rdi*8 + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x18009df80
mov byte [rbx + 8], 4
jmp 0x18009df80
mov rcx, qword [rbx]
mov dword [rsp + 0x30], 1
cmp byte [rcx + 0x30], sil
jne 0x18009df77
lea rax, [rcx + 8]
xor r8d, r8d
mov rcx, qword [rcx + 0x28]
lea r9, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov rax, qword [rbx]
mov byte [rax + 0x30], 1
test ecx, ecx
jne 0x18009df69
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x18009dfee
cmp eax, 0x3e5
jne 0x18009dfd5
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov qword [rsp + rdi*8 + 0x40], rcx
jmp 0x18009df80
mov rax, qword [rcx + 0x20]
mov qword [rsp + rdi*8 + 0x40], rax
inc rdi
add rbx, 0x20
cmp rdi, r14
jb 0x18009def1
mov r9d, r12d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp eax, 0x102
je 0x18009e0dd
cmp ecx, 0xffffffff
jne 0x18009dffd
test rbp, rbp
je 0x18009e0d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WaitForMultipleObjects_failed
call rbp
jmp 0x18009e0d8
test rbp, rbp
je 0x18009e0d8
mov edx, eax
lea rcx, str.0_byte_async_read_on_client_connection_failed
call rbp
jmp 0x18009e0d8
shl rdi, 5
mov byte [rdi + r15 + 0x10], 2
jmp 0x18009e0d8
lea rdx, [r14 - 1]
mov rax, rcx
cmp rcx, rdx
ja 0x18009e0bc
shl rax, 5
cmp qword [rax + r15], rsi
lea rbx, [rax + r15]
jne 0x18009e0ab
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], esi
xor r9d, r9d
lea rdx, [rcx + 8]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
test eax, eax
jne 0x18009e073
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x18009e073
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], esi
mov r9d, 1
lea rdx, [rcx + 8]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
mov rax, qword [rbx + 8]
mov byte [rax + 0x30], sil
test edi, edi
jne 0x18009e0ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x18009e0a7
cmp eax, 0x6d
je 0x18009e0a7
test rbp, rbp
je 0x18009e0a1
mov edx, eax
lea rcx, str.Client_connection_error
call rbp
mov byte [rbx + 0x10], 4
jmp 0x18009e0d8
mov cl, 2
jmp 0x18009e0ad
mov cl, 1
mov eax, 0x10
mov byte [rax + rbx], cl
mov eax, 1
jmp 0x18009e0df
lea eax, [rcx - 0x80]
mov ecx, eax
test eax, eax
jne 0x18009e0ce
cmp rcx, rdx
jae 0x18009dfb6
shl rcx, 5
mov byte [rcx + r15 + 0x10], 2
mov esi, 0xffffffff
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800b9c50
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180116d00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
mov edi, dword [rsi + 8]
mov edx, edi
add edx, dword [rbx + 8]
movsxd rdx, edx
lea rcx, [0x1802e3b38]
call fcn.180005740
mov rbp, rax
mov dword [rsp + 0x20], edi
mov rcx, rsi
mov r8, rbp
xor edx, edx
xor r9d, r9d
call fcn.180122340
mov r9d, dword [rbx + 8]
mov dword [rsp + 0x20], r9d
mov r9d, edi
mov rcx, rbx
mov r8, rbp
xor edx, edx
call fcn.180122340
lea rcx, [0x1802e3b38]
mov edx, pe_nt_image_headers64
call fcn.180005740
mov rbx, rax
xor eax, eax
mov byte [rbx + rax + 0x10], al
inc eax
cmp eax, 0x100
jl 0x180116d6b
xor ecx, ecx
xor r8d, r8d
mov esi, dword [rbp + 8]
mov r10d, r8d
movzx r9d, byte [rbx + r10 + 0x10]
add ecx, r9d
mov eax, r8d
cdq
idiv esi
cmp edx, esi
jae 0x180116f9f
movzx edx, byte [rbp + rdx + 0x10]
add edx, ecx
mov ecx, edx
sar ecx, 0x1f
and ecx, 0xff
add ecx, edx
and ecx, 0xffffff00
sub edx, ecx
mov ecx, edx
cmp ecx, 0x100
jae 0x180116f9f
mov edx, ecx
movzx eax, byte [rbx + rdx + 0x10]
mov byte [rbx + r10 + 0x10], al
mov byte [rbx + rdx + 0x10], r9b
inc r8d
cmp r8d, 0x100
jl 0x180116d80
mov edx, esi
lea rcx, [0x1802e3b38]
call fcn.180005740
xor ecx, ecx
xor edx, edx
xor r8d, r8d
test esi, esi
jle 0x180116ec7
cmp dword [rax + 8], esi
jl 0x180116ed0
inc ecx
mov r10d, ecx
sar r10d, 0x1f
and r10d, 0xff
add r10d, ecx
and r10d, 0xffffff00
sub ecx, r10d
cmp ecx, 0x100
jae 0x180116f9f
mov r10d, ecx
movzx r9d, byte [rbx + r10 + 0x10]
add edx, r9d
mov r11d, edx
sar r11d, 0x1f
and r11d, 0xff
add r11d, edx
and r11d, 0xffffff00
sub edx, r11d
cmp edx, 0x100
jae 0x180116f9f
mov r11d, edx
movzx edi, byte [rbx + r11 + 0x10]
mov byte [rbx + r10 + 0x10], dil
mov byte [rbx + r11 + 0x10], r9b
movzx r9d, byte [rbx + r10 + 0x10]
movzx r10d, byte [rbx + r11 + 0x10]
add r10d, r9d
mov r9d, r10d
sar r9d, 0x1f
and r9d, 0xff
add r9d, r10d
and r9d, 0xffffff00
sub r10d, r9d
cmp r10d, 0x100
jae 0x180116f9f
movzx r10d, byte [rbx + r10 + 0x10]
mov r9d, r8d
mov byte [rax + r9 + 0x10], r10b
inc r8d
cmp esi, r8d
jg 0x180116e07
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret
inc ecx
mov r10d, ecx
sar r10d, 0x1f
and r10d, 0xff
add r10d, ecx
and r10d, 0xffffff00
sub ecx, r10d
cmp ecx, 0x100
jae 0x180116f9f
mov r10d, ecx
movzx r9d, byte [rbx + r10 + 0x10]
add edx, r9d
mov r10d, edx
sar r10d, 0x1f
and r10d, 0xff
add r10d, edx
and r10d, 0xffffff00
sub edx, r10d
cmp edx, 0x100
jae 0x180116f9f
mov r10d, edx
movzx edi, byte [rbx + r10 + 0x10]
mov r10d, ecx
mov byte [rbx + r10 + 0x10], dil
mov r10d, edx
mov byte [rbx + r10 + 0x10], r9b
mov r10d, ecx
movzx r10d, byte [rbx + r10 + 0x10]
mov r9d, edx
movzx r9d, byte [rbx + r9 + 0x10]
add r10d, r9d
mov r9d, r10d
sar r9d, 0x1f
and r9d, 0xff
add r9d, r10d
and r9d, 0xffffff00
sub r10d, r9d
cmp r10d, 0x100
jae 0x180116f9f
movzx r10d, byte [rbx + r10 + 0x10]
cmp r8d, dword [rax + 8]
jae 0x180116f9f
mov r9d, r8d
mov byte [rax + r9 + 0x10], r10b
inc r8d
cmp esi, r8d
jg 0x180116ed0
jmp 0x180116ec7
call fcn.1801c9040
int3
Function at 0x18011fbb0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x64], r8d
mov rdx, rcx
mov qword [rbp - 0x70], rdx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov r9d, 2
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0x60]
call fcn.180007330
mov r8d, dword [rbp - 0x64]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x68]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.180007380
test ebx, ebx
jne 0x18011fc24
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
je 0x18011fc4c
lea rcx, [0x1802a0488]
call fcn.180005620
mov rbx, rax
mov rcx, rbx
call fcn.180146c40
mov rcx, rbx
call fcn.180005b90
int3
lea rcx, [0x1802a0d00]
call fcn.180005620
mov rbx, rax
mov rcx, rbx
call fcn.18014b620
mov rcx, rbx
call fcn.180005b90
int3

Function at 0x180120120
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x18012013d
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.1801cc9f0
mov ecx, eax
test ecx, ecx
jne 0x1801201ca
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.1801cc8c0
mov ecx, eax
lea rdx, [0x18026a0b0]
xor r8d, r8d
call fcn.1801815d0
mov rcx, rax
call fcn.180005b90
int3

Function at 0x180125a20
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x180125a32
add rsp, 0x28
jmp fcn.180126800
lea rcx, [0x180291940]
call fcn.180135140
int3
Function at 0x180125da0
Capabilities:
Get session user name

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov rbx, rcx
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov rcx, qword gs:[0x58]
mov eax, dword [0x180492ef8]
mov edx, 0x10
add rdx, qword [rcx + rax*8]
mov rsi, qword [rdx]
test rsi, rsi
je 0x180125eb9
mov qword [rbp - 0x78], rsi
jmp 0x180125df5
sub edx, dword [rbx + 8]
mov rcx, rbx
call fcn.180179a70
mov qword [rbp + 0x10], rbx
mov rdi, qword [rbx + 0x10]
lea r14, [rbp - 0x3c]
mov qword [rbp - 0x48], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r8, r14
mov qword [rbp - 0x84], r8
mov rdx, rdi
mov qword [rbp - 0x8c], rdx
mov ecx, 2
mov dword [rbp - 0x7c], ecx
lea rcx, [rbp - 0x70]
call fcn.180007330
mov r8, qword [rbp - 0x84]
mov rdx, qword [rbp - 0x8c]
mov ecx, dword [rbp - 0x7c]
call sub.Secur32.dll_GetUserNameExW
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.180007380
movzx ebx, bl
call sub.KERNEL32.dll_GetLastError
xor edx, edx
mov qword [rbp - 0x48], rdx
mov rsi, qword [rbp - 0x78]
mov dword [rsi + 0x80], eax
test ebx, ebx
je 0x180125e89
mov edx, dword [rbp - 0x3c]
mov rbx, qword [rbp + 0x10]
mov dword [rbx + 8], edx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp dword [rsi + 0x80], 0xea
jne 0x180125eae
mov edx, dword [rbp - 0x3c]
test edx, edx
jl 0x180125ecd
mov rbx, qword [rbp + 0x10]
cmp edx, dword [rbx + 0x18]
jbe 0x180125df5
jmp 0x180125dea
xor ecx, ecx
mov rbx, qword [rbp + 0x10]
mov dword [rbx + 8], ecx
jmp 0x180125e78
mov rcx, rdx
lea rax, [0x1801c5650]
call rax
mov rsi, rax
jmp 0x180125de4
call fcn.1801c9010
int3

Function at 0x180146ee0
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 8
jae 0x180146f1d
cmp edx, 4
jae 0x180146f7a
mov eax, 0x80
test dl, 1
je 0x180146f07
mov eax, edx
and rax, 2
movzx eax, byte [rcx + rax]
or eax, 0x8000
test dl, 2
je 0x180146fb4
shl eax, 0x10
movzx edx, word [rcx]
or eax, edx
jmp 0x180146fb4
mov eax, edx
shr eax, 3
add r8d, dword [rcx]
mov r10d, dword [rcx + 4]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
add r10d, r8d
mov r8d, r9d
xor r8d, r10d
rol r10d, 0x14
add r10d, r8d
rol r8d, 9
xor r8d, r10d
rol r10d, 0x1b
add r10d, r8d
rol r8d, 0x13
mov r9d, r8d
add rcx, 8
dec eax
mov r8d, r10d
jne 0x180146f22
test dl, 4
je 0x180146f99
add r8d, dword [rcx]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
mov eax, edx
and rax, 7
mov eax, dword [rcx + rax - 4]
shr eax, 8
or eax, 0x80000000
mov ecx, edx
not ecx
shl ecx, 3
shr eax, cl
add eax, r8d
mov ecx, r9d
xor ecx, eax
rol eax, 0x14
add eax, ecx
rol ecx, 9
xor ecx, eax
rol eax, 0x1b
add eax, ecx
rol ecx, 0x13
xor ecx, eax
rol eax, 0x14
add eax, ecx
rol ecx, 9
xor ecx, eax
rol eax, 0x1b
add eax, ecx
rol ecx, 0x13
xor eax, ecx
ret
Function at 0x18014cb40
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
mov rsi, rcx
mov rdi, r8
mov r8d, edx
mov ebx, r9d
test ebx, ebx
jne 0x18014cb87
xor eax, eax
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x58
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
lea ebp, [rbx - 1]
test ebp, ebp
jne 0x18014cbc5
movsx rdx, word [rdi]
movzx ecx, dx
dec ecx
cmp ecx, 0xfe
jae 0x18014cd6d
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x58
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
jmp fcn.18025dcc0
xor r14d, r14d
movzx r15d, word [rdi]
sub r8d, ebp
mov r13d, r8d
cmp r13d, 8
jge 0x18014cc48
add rdi, 2
test r13d, r13d
jle 0x18014cccb
lea rcx, [rsi + r14*2]
movsx rdx, r15w
mov r8d, r13d
call fcn.1802511a0
test eax, eax
jl 0x18014cccb
sub r13d, eax
movsxd rcx, eax
add r14, rcx
test r13d, r13d
jle 0x18014cccb
lea rcx, [rsi + r14*2 + 2]
mov r8d, ebp
add r8, r8
mov rdx, rdi
call fcn.18014c720
test eax, eax
je 0x18014cd59
mov eax, r14d
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x58
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movsxd rax, ebp
movzx eax, word [rdi + rax*2]
movsxd rbp, ebp
jmp 0x18014cc5b
dec rbp
movzx eax, word [rdi + rbp*2]
cmp eax, r15d
jne 0x18014cc66
cmp rbp, 1
jg 0x18014cc54
movd xmm0, r15d
movaps xmm6, xmm0
punpcklwd xmm6, xmm0
pshufd xmm6, xmm6, 0
movd xmm0, eax
movaps xmm7, xmm0
punpcklwd xmm7, xmm0
pshufd xmm7, xmm7, 0
movsxd r15, r13d
lea r13, [r15 - 8]
jmp 0x18014cc93
mov r14, r13
movups xmm0, xmmword [rsi + r14*2]
pcmpeqw xmm0, xmm6
lea rax, [r14 + rbp]
movups xmm1, xmmword [rsi + rax*2]
pcmpeqw xmm1, xmm7
pand xmm0, xmm1
xorps xmm1, xmm1
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x18014cceb
add r14, 8
cmp r14, r15
jne 0x18014cd4b
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x58
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
pmovmskb r12d, xmm0
test r12d, r12d
jne 0x18014ccfc
mov ecx, 0x20
jmp 0x18014cd00
bsf ecx, r12d
shr ecx, 1
mov eax, ecx
mov qword [rsp + 0x28], rax
cmp ebx, 2
je 0x18014cd2d
lea rcx, [r14 + rax]
lea rcx, [rsi + rcx*2]
mov r8d, ebx
add r8, r8
mov rdx, rdi
call fcn.18014c720
test eax, eax
mov rax, qword [rsp + 0x28]
je 0x18014cd35
add eax, r14d
jmp 0x18014cc2d
lea ecx, [r12 - 1]
and ecx, r12d
lea r12d, [rcx - 1]
and r12d, ecx
jne 0x18014ccf0
jmp 0x18014ccbe
cmp r14, r13
jle 0x18014cc93
jmp 0x18014cc90
dec r13d
inc r14
test r13d, r13d
jg 0x18014cbe5
jmp 0x18014cccb
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x58
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1802511a0
Function at 0x1801561d0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp qword [rbx], 0
jne 0x1801561fa
lea rcx, [0x1802e4310]
mov edx, 0x55
call fcn.180005740
mov rdx, rax
mov rcx, rbx
call fcn.1800058a0
xor eax, eax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
cmp dword [rax + 8], 0x50
jbe 0x180156268
mov dword [rax + 0x150], 0x67452301
mov rax, qword [rbx]
cmp dword [rax + 8], 0x51
jbe 0x180156268
mov dword [rax + 0x154], 0xefcdab89
mov rax, qword [rbx]
cmp dword [rax + 8], 0x52
jbe 0x180156268
mov dword [rax + 0x158], 0x98badcfe
mov rax, qword [rbx]
cmp dword [rax + 8], 0x53
jbe 0x180156268
mov dword [rax + 0x15c], 0x10325476
mov rax, qword [rbx]
cmp dword [rax + 8], 0x54
jbe 0x180156268
mov dword [rax + 0x160], 0xc3d2e1f0
add rsp, 0x20
pop rbx
ret
call fcn.1801c9040
int3

Function at 0x1801567e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub rsp, 0x28
mov eax, 0x1505
xor edx, edx
mov r8d, dword [rcx + 8]
test r8d, r8d
jle 0x18015681a
nop dword [rax]
nop dword [rax + rax]
mov r10d, eax
shl r10d, 5
add eax, r10d
movzx r10d, word [rcx + rdx*2 + 0xc]
xor eax, r10d
inc edx
cmp r8d, edx
jg 0x180156800
add rsp, 0x28
ret
Function at 0x1801c9250
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], rax
mov rbx, r8
mov rsi, r9
mov rdi, qword [rbp + 0x30]
mov qword [rbp - 0x40], rdi
test rdx, rdx
je 0x1801c9291
add rdx, 0xc
mov r14, rdx
jmp 0x1801c9294
xor r14d, r14d
mov qword [rbp - 0x48], r14
test rcx, rcx
je 0x1801c92a6
add rcx, 0xc
mov r15, rcx
jmp 0x1801c92a9
xor r15d, r15d
mov qword [rbp - 0x50], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], rdi
mov edi, dword [rbp + 0x38]
mov dword [rsp + 0x28], edi
mov rcx, r15
mov qword [rbp - 0x80], rcx
mov rdx, r14
mov qword [rbp - 0x88], rdx
mov r8, rbx
mov qword [rbp - 0x90], r8
mov r9, rsi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.180007330
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.KERNEL32.dll_CopyFileExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.180007380
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x180492ef8]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1801c936e
mov dword [rdi + 0x80], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1801c5650]
call rax
mov rdi, rax
jmp 0x1801c934c

Function at 0x1801c9950
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x1801c997c
add rcx, 0xc
mov rbx, rcx
jmp 0x1801c997e
xor ebx, ebx
mov qword [rbp - 0x40], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x68]
call fcn.180007330
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.180007380
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x180492ef8]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1801c99f9
mov dword [rdi + 0x80], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1801c5650]
call rax
mov rdi, rax
jmp 0x1801c99da