joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004e18
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x140004e4b
mov al, 1
jmp 0x140004fe1
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140004e63
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140004ebe
xor ebx, ebx
test rsi, rsi
je 0x140004ee7
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140004ede
add rbx, r13
cmp rbx, rsi
jb 0x140004e7e
jmp 0x140004ede
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140004fda
cmp byte [rdi + 0x22], 0
je 0x140004fda
cmp dword [rdi + 0x14], 0
jne 0x140004fda
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x140068cf0]
call fcn.140003a18
test al, al
je 0x140004f56
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140004e69
test ecx, ecx
je 0x140004e69
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x14003b4b0]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x14003b4b0]
jmp 0x140004e69
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x14003b944]
call fcn.14002ae3c
mov r8, rax
lea rdx, [0x14003b944]
lea rcx, [rsp + 0x38]
call fcn.1400012bc
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x140068cf0]
call fcn.140004190
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140004fda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ffd
call fcn.140025a4c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140025b60
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14002adc4
int3
Function at 0x1400056a4
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400056cf
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140005769
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400080b0
test al, al
je 0x14000572b
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005769
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005789
call fcn.140025a4c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025b60
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002adc4
int3

Function at 0x140005790
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400057bb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140005855
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400080b0
test al, al
je 0x140005817
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005855
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005850
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005875
call fcn.140025a4c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025b60
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002adc4
int3
Function at 0x140005890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400058bb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14000594e
xor esi, esi
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400080b0
test al, al
je 0x140005910
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14000594e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005949
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000596d
call fcn.140025a4c
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025b60
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002adc4
int3

Function at 0x140005c60
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.140007bf4
cmp ax, 0x2e
je 0x140005cbe
cmp ax, 0x20
je 0x140005cbe
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005ca8
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x140005d59
jmp 0x140005cc2
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.140005890
cmp eax, 0xffffffff
jne 0x140005d6d
mov qword [rsp + 0x20], rbx
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400080b0
test al, al
je 0x140005d17
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005d55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005daa
call fcn.140025a4c
test esi, esi
je 0x140005d6d
test bpl, bpl
je 0x140005d69
mov edx, r14d
mov rcx, rdi
call fcn.140005ff4
xor eax, eax
jmp 0x140005d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005d83
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140005d88
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025b60
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002adc4
int3
Function at 0x140005ff4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14000601e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
test eax, eax
setne dil
test eax, eax
jne 0x1400060ba
mov qword [rsp + 0x20], rbp
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400080b0
test al, al
je 0x14000607c
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400060ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400060b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400060da
call fcn.140025a4c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025b60
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.14002adc4
int3
Function at 0x14000647c
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
cmp rcx, 0xffffffffffffffff
jne 0x140006592
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400064c6
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400065b3
mov qword [rsp + 0x20], r14
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r14w
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400080b0
test al, al
je 0x140006527
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140006569
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006564
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400066d5
call fcn.140025a4c
cmp rsi, 0xffffffffffffffff
jne 0x1400065b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140006588
cmp eax, 0x13
mov al, r14b
jne 0x14000658a
mov al, 1
mov byte [rbx + 0x64], al
jmp 0x1400066ab
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400065b3
or rsi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14000658a
cmp rbx, rdi
je 0x1400065d1
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400065c5
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.140001c80
mov qword [rsp + 0x20], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x6c]
call fcn.14002ae3c
mov r8, rax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400012bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140008dc4
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14000664c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400066cf
call fcn.140025a4c
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rbx + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rbx + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rbx + 0x58], rax
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x54]
call fcn.14000e8c0
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14000e8c0
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14000e8c0
mov dword [rbx + 0x60], r14d
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140025b60
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002adc4
int3
call fcn.14002adc4
int3
Function at 0x140007a28
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140007ae0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400013c4
nop
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14002ae3c
mov r8, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140001c80
test edi, edi
setne bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140007ade
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007ad9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007af0
call fcn.140025a4c
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.14002adc4
int3

Function at 0x140008cf8
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140008d06
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14000afc8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rbp, str.cw
mov ecx, edi
lea rsi, [0x140000000]
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
mov byte [rax + rsi + 0x548f0], cl
inc ecx
cmp ecx, 0x100
jl 0x14000aff1
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x555f1], r9b
mov byte [rsi + rdi*4 + 0x555f0], r9b
mov byte [rsi + rdi*4 + 0x551f3], r9b
mov byte [rsi + rdi*4 + 0x551f0], r9b
mov byte [rsi + rdi*4 + 0x54df3], r9b
mov byte [rsi + rdi*4 + 0x54df2], r9b
mov byte [rsi + rdi*4 + 0x549f2], r9b
mov byte [rsi + rdi*4 + 0x549f1], r9b
call fcn.14000b7e0
mov dl, 3
mov byte [rsi + rdi*4 + 0x555f3], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x551f2], al
mov byte [rsi + rdi*4 + 0x54df1], al
mov byte [rsi + rdi*4 + 0x549f0], al
call fcn.14000b7e0
movzx r9d, byte [rdi + rsi + 0x548f0]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x555f2], al
mov byte [rsi + rdi*4 + 0x551f1], al
mov byte [rsi + rdi*4 + 0x54df0], al
mov byte [rsi + rdi*4 + 0x549f3], al
call fcn.14000b7e0
mov dl, 9
mov byte [rsi + rdi*4 + 0x565f2], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x561f1], al
mov byte [rsi + rdi*4 + 0x55df0], al
mov byte [rsi + rdi*4 + 0x559f3], al
mov byte [rsi + r9*4 + 0x575f2], al
mov byte [rsi + r9*4 + 0x571f1], al
mov byte [rsi + r9*4 + 0x56df0], al
mov byte [rsi + r9*4 + 0x569f3], al
call fcn.14000b7e0
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x565f0], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x561f3], al
mov byte [rsi + rdi*4 + 0x55df2], al
mov byte [rsi + rdi*4 + 0x559f1], al
mov byte [rsi + r9*4 + 0x575f0], al
mov byte [rsi + r9*4 + 0x571f3], al
mov byte [rsi + r9*4 + 0x56df2], al
mov byte [rsi + r9*4 + 0x569f1], al
call fcn.14000b7e0
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x565f1], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x561f0], al
mov byte [rsi + rdi*4 + 0x55df3], al
mov byte [rsi + rdi*4 + 0x559f2], al
mov byte [rsi + r9*4 + 0x575f1], al
mov byte [rsi + r9*4 + 0x571f0], al
mov byte [rsi + r9*4 + 0x56df3], al
mov byte [rsi + r9*4 + 0x569f2], al
call fcn.14000b7e0
mov byte [rsi + rdi*4 + 0x565f3], al
mov byte [rsi + rdi*4 + 0x561f2], al
mov byte [rsi + rdi*4 + 0x55df1], al
mov byte [rsi + rdi*4 + 0x559f0], al
inc rdi
mov byte [rsi + r9*4 + 0x575f3], al
mov byte [rsi + r9*4 + 0x571f2], al
mov byte [rsi + r9*4 + 0x56df1], al
mov byte [rsi + r9*4 + 0x569f0], al
cmp rdi, 0x100
jl 0x14000b008
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b768
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov r11, r8
mov r10, rdx
movdqu xmm1, xmmword [rcx + 8]
test r8, r8
je 0x14000b7da
mov rax, r10
add r10, 0x10
cmp byte [rcx + 1], 0
movdqu xmm0, xmmword [rax]
je 0x14000b78d
pxor xmm0, xmm1
movdqu xmm1, xmmword [rcx + 0x18]
movsxd rax, dword [rcx + 4]
pxor xmm1, xmm0
cmp rax, 1
jle 0x14000b7bb
lea rdx, [rcx + 0x28]
lea r8, [rax - 1]
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
aesenc xmm1, xmm0
sub r8, 1
jne 0x14000b7a8
add rax, rax
movdqu xmm0, xmmword [rcx + rax*8 + 0x18]
mov rax, r9
add r9, 0x10
aesenclast xmm1, xmm0
movdqu xmmword [rax], xmm1
sub r11, 1
jne 0x14000b778
movdqu xmmword [rcx + 8], xmm1
ret

Function at 0x14000b7e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10b, r10b
mov r11b, dl
mov bl, cl
test dl, dl
je 0x14000b828
mov al, r10b
xor al, bl
movzx r8d, al
test r11b, 1
movzx eax, r10b
cmove r8d, eax
mov al, bl
add al, al
mov r10b, r8b
mov r8b, bl
movzx edx, al
mov cl, dl
mov ebx, edx
xor cl, 0x1b
test r8b, r8b
movzx ecx, cl
cmovs ebx, ecx
shr r11b, 1
jne 0x14000b7f1
mov rbx, qword [rsp + 8]
mov al, r10b
ret

Function at 0x14000b834
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x14000b91b
lea rbx, [r11 - 0x38]
sub rbx, rcx
lea rbp, [rcx + 0x2a]
sub rbx, 0x2a
lea r15, [0x140000000]
xor r9d, r9d
mov r10, rbp
lea r14, [rbx + r9]
mov r11d, 4
movzx eax, byte [r10 + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [r10 - 1]
mov r8b, byte [rdx + r15 + 0x575f0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x56df0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x569f0]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x571f0]
mov byte [r14 + r10], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x14000b892
inc r9
cmp r9, 4
jl 0x14000b885
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.140026d40
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x14000b882
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140025b60
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000bd2c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r10, qword [0x140057a00]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test r10, r10
jne 0x14000bdcb
cmp byte [0x1400579f8], bl
jne 0x14000bdcb
lea rcx, str.Crypt32.dll
call fcn.14000dc08
mov qword [0x1400579f0], rax
test rax, rax
je 0x14000bdb4
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400579f0]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140057a00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140057a08], rax
jmp 0x14000bdbb
mov rax, qword [0x140057a08]
mov r10, qword [0x140057a00]
mov byte [0x1400579f8], 1
jmp 0x14000bdd2
mov rax, qword [0x140057a08]
mov rcx, rdi
mov r8d, ebp
and rcx, 0xfffffffffffffff0
test r14b, r14b
je 0x14000be25
test r10, r10
je 0x14000be42
mov edx, ecx
mov rax, r10
mov rcx, rsi
call qword [0x14003b4b0]
test eax, eax
jne 0x14000be5d
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140068cf0]
mov rcx, rbx
call fcn.140003b8c
mov rcx, rbx
call fcn.140003f38
mov edx, 2
mov rcx, rbx
call fcn.140003b84
jmp 0x14000be5d
test rax, rax
je 0x14000be42
mov edx, ecx
mov rcx, rsi
call qword [0x14003b4b0]
test eax, eax
jne 0x14000be5d
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14000bdff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x14000be5d
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x14000be4d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000c700
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x18]
mov ebp, 0x38
mov r14, qword [rcx + 0x18]
and edi, 0x3f
shl r14, 3
mov rsi, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x20], 0x80
inc edi
cmp edi, ebp
je 0x14000c78e
jbe 0x14000c779
lea edx, [rbp + 8]
cmp edi, edx
jae 0x14000c763
sub edx, edi
mov ecx, edi
add rcx, 0x20
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.1400273f0
xor edi, edi
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000bf08
sub ebp, edi
mov ecx, edi
add rcx, 0x20
mov r8d, ebp
add rcx, rbx
xor edx, edx
call fcn.1400273f0
mov rcx, r14
shr rcx, 0x20
call fcn.14002ddb4
mov ecx, r14d
mov dword [rbx + 0x58], eax
call fcn.14002ddb4
lea r8, [rbx + 0x20]
mov dword [rbx + 0x5c], eax
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000bf08
mov rdx, rbx
mov ecx, 5
sub rdx, rsi
mov eax, dword [rdx + rsi]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub rcx, 1
jne 0x14000c7c7
and qword [rbx + 0x18], rcx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140025b60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000c820
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret

Function at 0x14000ce98
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14000ceaf
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000cf81
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400013c4
nop
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rax, rdx
sar rax, 1
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000cefb
mov rcx, qword [rdi]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbx, qword [rsp + 0x20]
test eax, eax
je 0x14000cf3f
mov rcx, qword [rsp + 0x28]
sub rcx, rbx
sar rcx, 1
mov eax, eax
cmp rax, rcx
ja 0x14000cf3f
mov rcx, rbx
call fcn.14002ae3c
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.140001c80
mov dil, 1
mov rbx, qword [rsp + 0x20]
jmp 0x14000cf42
xor dil, dil
test rbx, rbx
je 0x14000cf7e
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000cf76
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf8c
mov rcx, rbx
call fcn.140025a4c
mov al, dil
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.14002adc4
int3