joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403bdff0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1405bc180]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.140423b90
test eax, eax
je 0x1403be066
mov rax, qword [rbx + 0x120]
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsp + 0x20], ecx
bswap eax
mov dword [rsp + 0x24], eax
mov rax, qword [rbx + 0xa0]
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsp + 0x28], ecx
bswap eax
mov dword [rsp + 0x2c], eax
lea r8, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.140423d00
jmp 0x1403be147
movzx eax, byte [rdi + 0xf]
mov rcx, rax
and eax, 0xf
mov r8, qword [rbx + rax*8 + 0x60]
mov r9, qword [rbx + rax*8 + 0xe0]
mov rax, r9
shld rax, r8, 0x3c
shr rcx, 4
xor rax, qword [rbx + rcx*8 + 0x60]
shr r9, 4
xor r9, qword [rbx + rcx*8 + 0xe0]
and r8d, 0xf
lea rdx, [0x14046a9d0]
movzx ecx, word [rdx + r8*2]
shl rcx, 0x30
xor rcx, r9
mov r8d, 0xf
nop word [rax + rax]
movzx r10d, byte [rdi + r8 - 1]
mov r9d, r10d
and r9d, 0xf
mov r11, rcx
shld r11, rax, 0x3c
xor r11, qword [rbx + r9*8 + 0x60]
shr rcx, 4
xor rcx, qword [rbx + r9*8 + 0xe0]
and eax, 0xf
movzx r9d, word [rdx + rax*2]
shl r9, 0x30
xor r9, rcx
mov rax, rcx
shld rax, r11, 0x3c
and r11d, 0xf
shr r9, 4
movzx ecx, word [rdx + r11*2]
shl rcx, 0x30
shr r10, 4
xor r9, qword [rbx + r10*8 + 0xe0]
xor rcx, r9
xor rax, qword [rbx + r10*8 + 0x60]
dec r8
jne 0x1403be0c0
shr rcx, 0x20
bswap ecx
mov dword [rsi], ecx
bswap r9d
mov dword [rsi + 4], r9d
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsi + 8], ecx
bswap eax
mov dword [rsi + 0xc], eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140439e00
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140423bd0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rcx + 8]
vmovdqa xmm0, xmmword [rcx + rax*4 + 0x10]
vpxor xmm0, xmm0, xmmword [r8]
mov r8d, dword [rcx]
lea rax, [rcx + rax*4]
add rax, 0x20
lea ecx, [r8 - 1]
test edx, edx
je 0x140423c6f
test ecx, ecx
je 0x140423c68
add r8d, 0xfffffffe
mov edx, ecx
and edx, 7
je 0x140423c24
xor r10d, r10d
nop word cs:[rax + rax]
vaesenc xmm0, xmm0, xmmword [rax]
add rax, 0x10
inc r10d
cmp edx, r10d
jne 0x140423c10
sub ecx, r10d
cmp r8d, 7
jb 0x140423c68
nop word [rax + rax]
vaesenc xmm0, xmm0, xmmword [rax]
vaesenc xmm0, xmm0, xmmword [rax + 0x10]
vaesenc xmm0, xmm0, xmmword [rax + 0x20]
vaesenc xmm0, xmm0, xmmword [rax + 0x30]
vaesenc xmm0, xmm0, xmmword [rax + 0x40]
vaesenc xmm0, xmm0, xmmword [rax + 0x50]
vaesenc xmm0, xmm0, xmmword [rax + 0x60]
vaesenc xmm0, xmm0, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
add ecx, 0xfffffff8
jne 0x140423c30
vaesenclast xmm0, xmm0, xmmword [rax]
jmp 0x140423ced
test ecx, ecx
je 0x140423ce8
add r8d, 0xfffffffe
mov edx, ecx
and edx, 7
je 0x140423ca4
xor r10d, r10d
nop word cs:[rax + rax]
vaesdec xmm0, xmm0, xmmword [rax]
add rax, 0x10
inc r10d
cmp edx, r10d
jne 0x140423c90
sub ecx, r10d
cmp r8d, 7
jb 0x140423ce8
nop word [rax + rax]
vaesdec xmm0, xmm0, xmmword [rax]
vaesdec xmm0, xmm0, xmmword [rax + 0x10]
vaesdec xmm0, xmm0, xmmword [rax + 0x20]
vaesdec xmm0, xmm0, xmmword [rax + 0x30]
vaesdec xmm0, xmm0, xmmword [rax + 0x40]
vaesdec xmm0, xmm0, xmmword [rax + 0x50]
vaesdec xmm0, xmm0, xmmword [rax + 0x60]
vaesdec xmm0, xmm0, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
add ecx, 0xfffffff8
jne 0x140423cb0
vaesdeclast xmm0, xmm0, xmmword [rax]
vmovdqu xmmword [r9], xmm0
xor eax, eax
ret

Function at 0x140423de0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movsxd rax, r8d
shl rax, 4
vmovdqa xmm0, xmmword [rdx + rax]
vmovdqa xmmword [rcx], xmm0
add rcx, 0x10
add rax, rdx
add rax, 0xfffffffffffffff0
cmp rax, rdx
jbe 0x140423e16
vaesimc xmm0, xmmword [rax]
vmovdqa xmmword [rcx], xmm0
add rcx, 0x10
add rax, 0xfffffffffffffff0
cmp rax, rdx
ja 0x140423e00
vmovaps xmm0, xmmword [rax]
vmovaps xmmword [rcx], xmm0
ret

Function at 0x14042b300
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
vmovaps xmm0, xmmword [str.expand_32_byte_k]
vmovups xmmword [rcx], xmm0
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
xor eax, eax
ret
Function at 0x14042e2e0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov eax, 0xffffffdf
cmp edx, 1
ja 0x14042e39c
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
lea r14, [rcx + 0x10]
mov ecx, 0x2000000
call fcn.140423b90
test eax, eax
je 0x14042e331
mov eax, r14d
shr eax, 2
and eax, 3
mov r15d, 4
sub r15d, eax
test eax, eax
cmove r15d, eax
jmp 0x14042e334
xor r15d, r15d
mov rax, qword [rbx + 8]
cmp rax, r15
je 0x14042e359
lea rcx, [r14 + r15*4]
lea rdx, [r14 + rax*4]
mov eax, dword [rbx]
shl eax, 4
add eax, 0x10
movsxd r8, eax
call fcn.140464e80
mov qword [rbx + 8], r15
mov ecx, 0x2000000
call fcn.140423b90
mov rcx, rbx
test eax, eax
je 0x14042e383
mov edx, ebp
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140423bd0
mov rdx, rdi
mov r8, rsi
cmp ebp, 1
jne 0x14042e395
call fcn.14042d9f0
jmp 0x14042e39a
call fcn.14042de70
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14042f490
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
vmovdqu xmm0, xmmword [r8]
vpxor xmm0, xmm0, xmmword [rdx]
vmovd eax, xmm0
movzx edx, al
lea rsi, str.cw
movzx edx, byte [rdx + rsi]
vpshufb xmm1, xmm0, xmmword [0x14046eb70]
vpmovzxdq ymm1, xmm1
vmovq r8, xmm1
lea rdi, [0x14046e6f0]
movzx r8d, byte [r8 + rdi]
shl r8d, 8
or r8d, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
lea rbx, [0x14046e5f0]
movzx r10d, byte [rdx + rbx]
shl r10d, 0x10
shr rax, 0x18
lea r14, [0x14046e4f0]
movzx edx, byte [rax + r14]
shl edx, 0x18
or edx, r10d
lea eax, [rdx + r8]
vpextrd r10d, xmm0, 1
movzx r11d, r10b
movzx r11d, byte [r11 + rsi]
vpextrq r15, xmm1, 1
movzx r15d, byte [r15 + rdi]
shl r15d, 8
or r15d, r11d
mov r11d, r10d
shr r11d, 0x10
movzx r11d, r11b
movzx r11d, byte [r11 + rbx]
shl r11d, 0x10
shr r10, 0x18
movzx r10d, byte [r10 + r14]
shl r10d, 0x18
or r10d, r11d
lea ebp, [r10 + r15]
vpextrd r11d, xmm0, 2
movzx r12d, r11b
movzx r12d, byte [r12 + rsi]
vextracti128 xmm1, ymm1, 1
vmovq r13, xmm1
movzx r13d, byte [r13 + rdi]
shl r13d, 8
or r13d, r12d
mov r12d, r11d
shr r12d, 0x10
movzx r12d, r12b
movzx r12d, byte [r12 + rbx]
shl r12d, 0x10
or r12d, r13d
shr r11, 0x18
movzx r11d, byte [r11 + r14]
shl r11d, 0x18
or r11d, r12d
vpextrd r12d, xmm0, 3
movzx r13d, r12b
movzx esi, byte [r13 + rsi]
vpextrq r13, xmm1, 1
movzx r13d, byte [r13 + rdi]
shl r13d, 8
or r13d, esi
mov esi, r12d
shr esi, 0x10
movzx esi, sil
movzx esi, byte [rsi + rbx]
shl esi, 0x10
shr r12, 0x18
movzx edi, byte [r12 + r14]
shl edi, 0x18
or edi, esi
shrd r10d, r15d, 0x10
lea esi, [rdi + r13]
shrd edi, r13d, 0x10
bswap r11d
xor edi, r11d
rol r11d, 0x10
bswap esi
xor ebp, r11d
shrd edx, r8d, 0x10
bswap ebp
rol ebp, 0x10
mov r8d, edx
xor r8d, esi
mov ebx, r10d
bswap ebx
rol ebx, 0x10
xor r8d, ebp
mov ebp, edi
rol ebp, 0x10
xor ebp, r8d
bswap ebp
rol ebp, 0x10
mov r14d, r8d
rol r14d, 0x10
xor ebx, edx
mov edx, ebx
xor ebp, dword [r9]
xor ebp, r10d
mov dword [rcx], ebp
xor eax, dword [r9 + 4]
bswap edx
xor eax, edi
xor eax, r8d
bswap r8d
mov dword [rcx + 4], eax
xor edx, dword [r9 + 8]
xor edx, r14d
xor edx, esi
mov dword [rcx + 8], edx
xor r8d, dword [r9 + 0xc]
xor ebx, r11d
xor ebx, r8d
mov dword [rcx + 0xc], ebx
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
vzeroupper
ret
Function at 0x140432a60
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
push rax
mov qword [rsp], r8
mov r8d, dword [rdx]
mov eax, dword [rdx + 4]
bswap r8d
bswap eax
mov edx, r8d
shr edx, 4
xor edx, eax
and edx, 0xf0f0f0f
xor eax, edx
shl edx, 4
xor edx, r8d
mov r8d, edx
shr r8d, 0x10
movzx r9d, ax
xor r9d, r8d
xor eax, r9d
shl r9d, 0x10
xor r9d, edx
mov r8d, eax
shr r8d, 2
xor r8d, r9d
and r8d, 0x33333333
xor r9d, r8d
shl r8d, 2
xor r8d, eax
mov edx, r8d
shr edx, 8
xor edx, r9d
and edx, 0xff00ff
xor r9d, edx
shl edx, 8
xor edx, r8d
rol edx, 1
mov eax, edx
xor eax, r9d
and eax, 0xaaaaaaaa
xor edx, eax
xor eax, r9d
rol eax, 1
xor r9d, r9d
lea r8, [0x14046f790]
lea r11, [0x14046f890]
lea rsi, [0x14046f990]
lea rdi, [0x14046fa90]
lea rbx, [0x14046fb90]
lea r14, [0x14046fc90]
lea r15, [0x14046fd90]
lea r12, [0x14046fe90]
nop dword [rax + rax]
mov ebp, edx
mov edx, dword [rcx + r9]
xor edx, ebp
mov r10d, edx
and r10d, 0x3f
mov r13d, edx
shr r13d, 8
and r13d, 0x3f
xor eax, dword [r8 + r10*4]
mov r10d, edx
shr r10d, 0x10
and r10d, 0x3f
shr edx, 0x18
and edx, 0x3f
xor eax, dword [r11 + r13*4]
mov r13d, ebp
rol r13d, 0x1c
xor r13d, dword [rcx + r9 + 4]
xor eax, dword [rsi + r10*4]
mov r10d, r13d
and r10d, 0x3f
xor eax, dword [rdi + rdx*4]
mov edx, r13d
shr edx, 8
and edx, 0x3f
xor eax, dword [rbx + r10*4]
mov r10d, r13d
shr r10d, 0x10
and r10d, 0x3f
shr r13d, 0x18
and r13d, 0x3f
xor eax, dword [r14 + rdx*4]
xor eax, dword [r15 + r10*4]
xor eax, dword [r12 + r13*4]
mov r13d, dword [rcx + r9 + 8]
xor r13d, eax
mov edx, r13d
and edx, 0x3f
mov edx, dword [r8 + rdx*4]
mov r10d, r13d
shr r10d, 8
and r10d, 0x3f
xor edx, dword [r11 + r10*4]
mov r10d, r13d
shr r10d, 0x10
and r10d, 0x3f
shr r13d, 0x18
and r13d, 0x3f
xor edx, dword [rsi + r10*4]
mov r10d, eax
rol r10d, 0x1c
xor r10d, dword [rcx + r9 + 0xc]
xor edx, dword [rdi + r13*4]
mov r13d, r10d
and r13d, 0x3f
xor edx, dword [rbx + r13*4]
mov r13d, r10d
shr r13d, 8
and r13d, 0x3f
xor edx, dword [r14 + r13*4]
mov r13d, r10d
shr r13d, 0x10
and r13d, 0x3f
xor edx, dword [r15 + r13*4]
shr r10d, 0x18
and r10d, 0x3f
xor edx, dword [r12 + r10*4]
xor edx, ebp
add r9, 0x10
cmp r9d, 0x80
jne 0x140432b30
ror edx, 1
mov ecx, edx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor edx, ecx
xor ecx, eax
shrd ecx, eax, 1
mov r8d, ecx
shr r8d, 8
xor r8d, edx
and r8d, 0xff00ff
xor edx, r8d
shl r8d, 8
xor r8d, ecx
mov eax, r8d
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor eax, r8d
mov ecx, edx
shr ecx, 0x10
movzx r8d, ax
xor r8d, ecx
xor eax, r8d
shl r8d, 0x10
xor r8d, edx
mov ecx, r8d
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor eax, ecx
shl ecx, 4
xor ecx, r8d
bswap ecx
mov rdx, qword [rsp]
mov dword [rdx], ecx
bswap eax
mov dword [rdx + 4], eax
xor eax, eax
add rsp, 8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14043b658
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14043b6a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14043b6a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14043b6a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14043b6a2
cmp dword [rcx + 0x84], 0xe
jbe 0x14043b6a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14043b6a4
xor al, al
add rsp, 0x28
ret

Function at 0x140449504
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14044964c

Function at 0x14044964c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14044964c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1404496bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1404496bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1404496bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1404496bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1404496bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1404496bb
cmp dword [rcx + 0xf8], 0
je 0x1404496bb
mov ecx, ebx
call fcn.140449584
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1404497e0
nop
cmp dword [rbp + 0x20], 0
je 0x140449709
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140449618
int3

Function at 0x14044ec60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14044ec88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14044ec88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1404594c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14045240c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140459565
cmp ebx, dword [rsp + 0x30]
je 0x14045955e
test esi, esi
je 0x14045955e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140459539
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140459546
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140459523
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14045954a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140459567
mov eax, 1
jmp 0x140459567
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14045a3c0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14045a3f0
xor eax, eax
jmp 0x14045a4b3
mov rbp, rbx
cmp word [rax], si
je 0x14045a415
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14045a3fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14045a3f8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1404522cc
movsxd r14, eax
test eax, eax
jne 0x14045a453
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14045a3e9
mov rcx, r14
call fcn.1404521dc
mov rdi, rax
test rax, rax
jne 0x14045a46c
xor ecx, ecx
call fcn.1404521a0
jmp 0x14045a448
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1404522cc
test eax, eax
jne 0x14045a49d
mov rcx, rdi
call fcn.1404521a0
jmp 0x14045a4a7
xor ecx, ecx
call fcn.1404521a0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14045bdb4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1405ce250]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14045be0b
cmp word [rdx], r13w
jne 0x14045be0b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14045be10
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14045bf35
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14045bf56
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14045be49
mov rdx, r9
mov word [rbx], cx
jmp 0x14045be70
cmp r9, r8
jae 0x14045be80
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14045be2a
jmp 0x14045bf35
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14045bf2a
cmp dword [rsp + 0x80], esi
je 0x14045bf2a
lea r8, [0x1405ce250]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14045bf02
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14045bed2
mov word [rbx], r13w
jmp 0x14045bf32
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14045bedf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14045bf32
cmp word [rsp + 0x70], r13w
jne 0x14045bf0f
cmp rbx, r14
je 0x14045becc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14045cdf8
cmp word [rsp + 0x70], r13w
je 0x14045bf35
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1405ce250]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14045bf2f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14045bf35
Function at 0x14045dec8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14045dede
mov al, 1
jmp 0x14045df3e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14045deef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14045df3c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14045a4d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14045df3c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14045df3c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14045df3c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14045df3e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14046430c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14045cdf8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14045cdf8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14046445c
cmp rax, 0xffffffffffffffff
je 0x14046445c
xor edi, edi
test rbp, rbp
jle 0x140464407
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140453730
mov rbx, rax
test rax, rax
jne 0x140464394
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1404643fd
mov edx, 0x8000
mov ecx, r14d
call fcn.14044c54c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14045d100
cmp eax, 0xffffffff
je 0x1404643dd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1404643a4
mov edx, r15d
mov ecx, r14d
call fcn.14044c54c
jmp 0x1404643fd
cmp byte [rsi + 0x38], dil
je 0x1404643f4
cmp dword [rsi + 0x34], 5
jne 0x1404643f4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1404643fd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1404521a0
jmp 0x140464470
jns 0x140464470
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14045cdf8
cmp rax, 0xffffffffffffffff
jne 0x140464428
cmp byte [rsi + 0x30], dil
je 0x140464470
mov edi, dword [rsi + 0x2c]
jmp 0x140464470
mov ecx, r14d
call fcn.14045a4d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140464470
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140464470
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140464469
mov eax, dword [rsi + 0x2c]
jmp 0x14046446e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14045cdf8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14001125d
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400153d0
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x801a9084
call fcn.140011b4a
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011375
Capabilities:
Execute syscall

Disassembly:
jmp 0x140014950
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xe69ff533
call fcn.140011b4a
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400116a9
Capabilities:
Terminate process

Disassembly:
jmp 0x14001eb50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011802
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140012c40
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400300a0]
call fcn.140011c1c
nop
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
movsxd rax, dword [rbp + 0x198]
mov qword [rbp + 0x68], rax
jmp 0x140012c9d
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x68]
cmp qword [rbp + 0x48], rax
jae 0x140012d90
mov eax, dword [rbp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rbp + 4], eax
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x180]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x24]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x180]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x180]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.140011ab4
nop
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x180]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x180]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov rcx, qword [rbp + 0x180]
movzx eax, byte [rcx + rax]
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
mov ecx, dword [rbp + 0x84]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x190]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x140012c92
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret