joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d4b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rsi
push r12
sub rsp, 0x38
mov r12, qword [rcx + 0x10]
mov rsi, rdx
movsxd rax, dword [rcx + 0x1c]
shl rax, 4
add rax, r12
mov qword [rsp], r12
mov qword [rsp + 8], rax
cmp r12, rax
je 0x14004d6e2
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x18], r14
mov qword [rsp + 0x10], r15
nop word [rax + rax]
mov r14d, dword [r12 + 4]
mov eax, dword [r12 + 0xc]
mov r10d, dword [r12 + 8]
add eax, r14d
mov r13d, dword [r12]
mov dword [rsp + 0x68], r10d
cmp r14d, eax
jge 0x14004d6b1
mov r12d, eax
nop word [rax + rax]
mov rcx, qword [rsi + 8]
mov edi, r13d
mov r9, qword [rsi]
mov ebp, r10d
sub edi, dword [rsi + 0x14]
mov eax, dword [r9 + 0xc]
imul eax, r14d
movsxd r8, eax
mov eax, r14d
sub eax, dword [rsi + 0x18]
add r8, qword [r9]
cdq
mov qword [rsi + 0x20], r8
idiv dword [rcx + 0x18]
imul edx, dword [rcx + 0xc]
movsxd rax, edx
add rax, qword [rcx]
mov qword [rsi + 0x28], rax
movsxd rdx, dword [r9 + 0x10]
mov eax, edx
imul eax, r13d
movsxd rcx, eax
add rcx, r8
cmp dword [rsi + 0x10], 0xfe
jge 0x14004d65f
mov r15, rdx
nop word [rax + rax]
mov r8, qword [rsi + 8]
mov eax, edi
movzx ebx, byte [rcx + 1]
cdq
mov r9d, 0x100
inc edi
dec ebp
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd r8, eax
add r8, qword [rsi + 0x28]
movzx edx, byte [r8 + 1]
movzx r11d, byte [r8 + 2]
or edx, 0xff0000
imul edx, dword [rsi + 0x10]
shl r11d, 0x10
shr edx, 8
and edx, 0xff00ff
mov eax, edx
shr eax, 0x10
sub r9d, eax
movzx eax, byte [r8]
or r11d, eax
imul ebx, r9d
imul r11d, dword [rsi + 0x10]
movzx eax, byte [rcx]
shr ebx, 8
add ebx, edx
shr r11d, 8
movzx edx, byte [rcx + 2]
and r11d, 0xff00ff
shl edx, 0x10
or edx, eax
imul edx, r9d
shr edx, 8
and edx, 0xff00ff
add r11d, edx
mov edx, 0x100
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, ebx
shr eax, 8
or edx, r11d
neg al
and edx, 0xff00ff
or al, bl
mov byte [rcx], dl
mov byte [rcx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 2], al
add rcx, r15
test ebp, ebp
jg 0x14004d590
mov r10d, dword [rsp + 0x68]
jmp 0x14004d6a1
mov r9, rdx
mov r8, qword [rsi + 8]
mov eax, edi
cdq
inc edi
dec ebp
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd r8, eax
add r8, qword [rsi + 0x28]
movzx eax, word [r8]
movzx edx, byte [r8 + 2]
mov byte [rcx], al
mov word [rsp + 0x50], ax
movzx eax, byte [rsp + 0x51]
mov byte [rcx + 1], al
mov byte [rcx + 2], dl
add rcx, r9
test ebp, ebp
jg 0x14004d662
inc r14d
cmp r14d, r12d
jl 0x14004d530
mov r12, qword [rsp]
add r12, 0x10
mov qword [rsp], r12
cmp r12, qword [rsp + 8]
jne 0x14004d500
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r12
pop rsi
ret
Function at 0x14004de70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rsi
push r14
sub rsp, 8
mov rsi, qword [rcx + 0x10]
mov r11, rdx
movsxd r14, dword [rcx + 0x1c]
shl r14, 4
add r14, rsi
cmp rsi, r14
je 0x14004e003
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp], r15
nop dword [rax + rax]
mov ebx, dword [rsi + 4]
mov ebp, dword [rsi + 0xc]
mov r15d, dword [rsi]
add ebp, ebx
mov r12d, dword [rsi + 8]
cmp ebx, ebp
jge 0x14004dfde
nop word [rax + rax]
mov r9, qword [r11]
mov r10d, r12d
mov rcx, qword [r11 + 8]
mov eax, dword [r9 + 0xc]
imul eax, ebx
movsxd r8, eax
mov eax, ebx
sub eax, dword [r11 + 0x18]
add r8, qword [r9]
cdq
mov qword [r11 + 0x20], r8
idiv dword [rcx + 0x18]
imul edx, dword [rcx + 0xc]
movsxd rax, edx
add rax, qword [rcx]
mov qword [r11 + 0x28], rax
movsxd rdx, dword [r9 + 0x10]
mov r9d, r15d
sub r9d, dword [r11 + 0x14]
mov eax, edx
imul eax, r15d
mov rdi, rdx
movsxd rcx, eax
add rcx, r8
cmp dword [r11 + 0x10], 0xfe
jge 0x14004df90
nop word [rax + rax]
mov r8, qword [r11 + 8]
mov eax, r9d
cdq
inc r9d
dec r10d
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r11 + 0x28]
movzx r8d, byte [rdx + rax + 3]
mov edx, 0x100
mov eax, dword [r11 + 0x10]
inc eax
imul r8d, eax
movzx eax, byte [rcx]
shr r8d, 8
sub edx, r8d
imul edx, eax
sar edx, 8
add dl, r8b
mov byte [rcx], dl
add rcx, rdi
test r10d, r10d
jg 0x14004df30
jmp 0x14004dfd4
mov r8, qword [r11 + 8]
mov eax, r9d
cdq
inc r9d
dec r10d
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r11 + 0x28]
movzx r8d, byte [rdx + rax + 3]
mov edx, 0x100
movzx eax, byte [rcx]
sub edx, r8d
imul edx, eax
sar edx, 8
add dl, r8b
mov byte [rcx], dl
add rcx, rdi
test r10d, r10d
jg 0x14004df90
inc ebx
cmp ebx, ebp
jl 0x14004ded0
add rsi, 0x10
cmp rsi, r14
jne 0x14004deb0
mov r15, qword [rsp]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
add rsp, 8
pop r14
pop rsi
ret
Function at 0x14004e360
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rsi
push r14
sub rsp, 8
mov rsi, qword [rcx + 0x10]
mov r11, rdx
movsxd r14, dword [rcx + 0x1c]
shl r14, 4
add r14, rsi
cmp rsi, r14
je 0x14004e4f2
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp], r15
nop dword [rax + rax]
mov ebx, dword [rsi + 4]
mov ebp, dword [rsi + 0xc]
mov r15d, dword [rsi]
add ebp, ebx
mov r12d, dword [rsi + 8]
cmp ebx, ebp
jge 0x14004e4cd
nop word [rax + rax]
mov r9, qword [r11]
mov r10d, r12d
mov rcx, qword [r11 + 8]
mov eax, dword [r9 + 0xc]
imul eax, ebx
movsxd r8, eax
mov eax, ebx
sub eax, dword [r11 + 0x18]
add r8, qword [r9]
cdq
mov qword [r11 + 0x20], r8
idiv dword [rcx + 0x18]
imul edx, dword [rcx + 0xc]
movsxd rax, edx
add rax, qword [rcx]
mov qword [r11 + 0x28], rax
movsxd rdx, dword [r9 + 0x10]
mov r9d, r15d
sub r9d, dword [r11 + 0x14]
mov eax, edx
imul eax, r15d
mov rdi, rdx
movsxd rcx, eax
add rcx, r8
cmp dword [r11 + 0x10], 0xfe
jge 0x14004e480
nop word [rax + rax]
mov r8, qword [r11 + 8]
mov eax, r9d
cdq
inc r9d
dec r10d
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r11 + 0x28]
movzx r8d, byte [rdx + rax]
mov edx, 0x100
mov eax, dword [r11 + 0x10]
inc eax
imul r8d, eax
movzx eax, byte [rcx]
shr r8d, 8
sub edx, r8d
imul edx, eax
sar edx, 8
add dl, r8b
mov byte [rcx], dl
add rcx, rdi
test r10d, r10d
jg 0x14004e420
jmp 0x14004e4c3
mov r8, qword [r11 + 8]
mov eax, r9d
cdq
inc r9d
dec r10d
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r11 + 0x28]
movzx r8d, byte [rdx + rax]
mov edx, 0x100
movzx eax, byte [rcx]
sub edx, r8d
imul edx, eax
sar edx, 8
add dl, r8b
mov byte [rcx], dl
add rcx, rdi
test r10d, r10d
jg 0x14004e480
inc ebx
cmp ebx, ebp
jl 0x14004e3c0
add rsi, 0x10
cmp rsi, r14
jne 0x14004e3a0
mov r15, qword [rsp]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
add rsp, 8
pop r14
pop rsi
ret
Function at 0x140052360
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
mov r11d, dword [rcx + 0x10]
mov r14, rcx
mov r10d, dword [rsp + 0x48]
mov eax, r11d
mov ebx, dword [rsp + 0x40]
and eax, 0xff00ff
mov r12d, r9d
inc r10d
mov r9d, r11d
imul eax, r10d
shr r11d, 8
dec ebx
shr r9d, 8
and r11d, 0xff00ff
imul r11d, r10d
and r9d, 0xffff00ff
imul r9d, r10d
shr eax, 8
xor eax, r9d
mov r9, qword [rcx]
and eax, 0xff00ff
xor eax, r11d
mov ecx, dword [r9 + 0xc]
imul ecx, r8d
movsxd r8, ecx
add r8, qword [r9]
mov qword [r14 + 8], r8
mov ecx, dword [r9 + 0x10]
imul ecx, edx
movsxd r11, ecx
mov ecx, eax
shr ecx, 0x18
add r11, r8
cmp cl, 0xff
jb 0x140052420
test ebx, ebx
js 0x14005253c
nop dword [rax]
movsxd r8, dword [r9 + 0x10]
mov edx, r12d
mov rcx, r11
nop word [rax + rax]
mov dword [rcx], eax
dec edx
add rcx, r8
test edx, edx
jg 0x140052400
mov r9, qword [r14]
movsxd rcx, dword [r9 + 0xc]
add r11, rcx
sub ebx, 1
jns 0x1400523f0
pop r14
pop r12
pop rbx
ret
test ebx, ebx
js 0x14005253c
mov qword [rsp + 0x20], rbp
mov ebp, eax
shr ebp, 8
mov qword [rsp + 0x28], rsi
and ebp, 0xff00ff
mov qword [rsp + 0x30], rdi
and eax, 0xff00ff
mov qword [rsp + 0x38], r15
nop dword [rax]
movsxd r15, dword [r9 + 0x10]
mov esi, r12d
mov rdi, r11
nop word [rax + rax]
mov ecx, ebp
mov edx, 0x100
shr ecx, 0x10
mov r8d, 0x100
sub edx, ecx
dec esi
mov ecx, dword [rdi]
mov r9d, ecx
shr ecx, 8
and r9d, 0xff00ff
and ecx, 0xff00ff
imul r9d, edx
imul ecx, edx
mov edx, 0x100
shr r9d, 8
shr ecx, 8
and r9d, 0xff00ff
and ecx, 0xff00ff
add r9d, eax
lea r10d, [rcx + rbp]
mov ecx, r10d
shr ecx, 8
and ecx, 0xff00ff
sub r8d, ecx
mov ecx, r10d
shl ecx, 8
shl r8d, 8
or r8d, ecx
mov ecx, r9d
shr ecx, 8
and ecx, 0xff00ff
sub edx, ecx
mov ecx, r10d
or edx, r9d
shr ecx, 8
xor r8d, edx
shl r10d, 8
and ecx, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, ecx
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [rdi], r8d
add rdi, r15
test esi, esi
jg 0x140052460
mov r9, qword [r14]
movsxd rcx, dword [r9 + 0xc]
add r11, rcx
sub ebx, 1
jns 0x140052450
mov r15, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
pop r14
pop r12
pop rbx
ret
Function at 0x140053730
Capabilities:
Encode data using xor

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov r14d, r9d
movsxd rsi, r8d
mov ebp, edx
mov rdi, rcx
cmp esi, dword [rcx + 0x80]
jle 0x140053786
mov qword [rcx + 0x80], rsi
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
nop
mov qword [rdi + 0x78], rax
mov rbx, qword [rdi + 0x78]
mov r9d, esi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14003ab40
nop
mov rax, qword [rdi + 0x48]
movsxd rcx, dword [rax + 0x10]
mov eax, ecx
imul eax, ebp
movsxd r10, eax
add r10, qword [rdi + 0x70]
mov r11d, dword [rdi + 0x58]
imul r11d, r14d
sar r11d, 8
cmp r11d, 0xfe
jge 0x14005389f
mov rdi, rcx
nop dword [rax]
movzx eax, byte [rbx]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 1]
add r10, rdi
dec esi
test esi, esi
jg 0x1400537d0
jmp 0x14005396b
mov r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 1]
add r10, r11
dec esi
test esi, esi
jg 0x1400538b0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140053990
Capabilities:
Encode data using xor

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov r14d, r9d
movsxd rsi, r8d
mov ebp, edx
mov rdi, rcx
cmp esi, dword [rcx + 0x80]
jle 0x1400539e6
mov qword [rcx + 0x80], rsi
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
nop
mov qword [rdi + 0x78], rax
mov rbx, qword [rdi + 0x78]
mov r9d, esi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.140055150
nop
mov rax, qword [rdi + 0x48]
movsxd rcx, dword [rax + 0x10]
mov eax, ecx
imul eax, ebp
movsxd r10, eax
add r10, qword [rdi + 0x70]
mov r11d, dword [rdi + 0x58]
imul r11d, r14d
sar r11d, 8
cmp r11d, 0xfe
jge 0x140053aff
mov rdi, rcx
nop dword [rax]
movzx eax, byte [rbx]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 1]
add r10, rdi
dec esi
test esi, esi
jg 0x140053a30
jmp 0x140053bcb
mov r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 1]
add r10, r11
dec esi
test esi, esi
jg 0x140053b10
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140053bf0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov r14d, r9d
movsxd rdi, r8d
mov ebp, edx
mov rsi, rcx
cmp edi, dword [rcx + 0x80]
jle 0x140053c40
mov qword [rcx + 0x80], rdi
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + rdi*2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
nop
mov qword [rsi + 0x78], rax
mov rbx, qword [rsi + 0x78]
mov r9d, edi
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.140055420
nop
mov rax, qword [rsi + 0x48]
movsxd rcx, dword [rax + 0x10]
mov eax, ecx
imul eax, ebp
movsxd r10, eax
add r10, qword [rsi + 0x70]
mov r11d, dword [rsi + 0x58]
imul r11d, r14d
sar r11d, 8
cmp r11d, 0xfe
jge 0x140053d74
mov rsi, rcx
add rbx, 2
nop word [rax + rax]
movzx r9d, byte [rbx - 1]
or r9d, 0xff0000
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov edx, dword [r10]
movzx r8d, byte [rbx]
shl r8d, 0x10
movzx eax, byte [rbx - 2]
or r8d, eax
imul r8d, r11d
shr r8d, 8
and r8d, 0xff00ff
mov eax, edx
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r8d, eax
shr edx, 8
and edx, 0xff00ff
imul edx, ecx
shr edx, 8
and edx, 0xff00ff
add r9d, edx
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 3]
add r10, rsi
dec edi
test edi, edi
jg 0x140053c90
jmp 0x140053db6
mov rdx, rcx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rsp + 0x60], ax
movzx ecx, byte [rbx + 2]
shl ecx, 8
movzx eax, byte [rsp + 0x61]
or ecx, eax
shl ecx, 8
movzx eax, byte [rsp + 0x60]
or ecx, eax
or ecx, 0xff000000
mov dword [r10], ecx
lea rbx, [rbx + 3]
add r10, rdx
dec edi
test edi, edi
jg 0x140053d80
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140053dd0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov r14d, r9d
movsxd rdi, r8d
mov ebp, edx
mov rsi, rcx
cmp edi, dword [rcx + 0x80]
jle 0x140053e20
mov qword [rcx + 0x80], rdi
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + rdi*2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
nop
mov qword [rsi + 0x78], rax
mov rbx, qword [rsi + 0x78]
mov r9d, edi
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.140055910
nop
mov rax, qword [rsi + 0x48]
movsxd rcx, dword [rax + 0x10]
mov eax, ecx
imul eax, ebp
movsxd r10, eax
add r10, qword [rsi + 0x70]
mov r11d, dword [rsi + 0x58]
imul r11d, r14d
sar r11d, 8
cmp r11d, 0xfe
jge 0x140053f54
mov rsi, rcx
add rbx, 2
nop word [rax + rax]
movzx r9d, byte [rbx - 1]
or r9d, 0xff0000
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov edx, dword [r10]
movzx r8d, byte [rbx]
shl r8d, 0x10
movzx eax, byte [rbx - 2]
or r8d, eax
imul r8d, r11d
shr r8d, 8
and r8d, 0xff00ff
mov eax, edx
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r8d, eax
shr edx, 8
and edx, 0xff00ff
imul edx, ecx
shr edx, 8
and edx, 0xff00ff
add r9d, edx
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 3]
add r10, rsi
dec edi
test edi, edi
jg 0x140053e70
jmp 0x140053f96
mov rdx, rcx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rsp + 0x60], ax
movzx ecx, byte [rbx + 2]
shl ecx, 8
movzx eax, byte [rsp + 0x61]
or ecx, eax
shl ecx, 8
movzx eax, byte [rsp + 0x60]
or ecx, eax
or ecx, 0xff000000
mov dword [r10], ecx
lea rbx, [rbx + 3]
add r10, rdx
dec edi
test edi, edi
jg 0x140053f60
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140053fb0
Capabilities:
Encode data using xor

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov r14d, r9d
movsxd rsi, r8d
mov ebp, edx
mov rdi, rcx
cmp esi, dword [rcx + 0x80]
jle 0x14005400b
mov qword [rcx + 0x80], rsi
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rsi*4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
nop
mov qword [rdi + 0x78], rax
mov rbx, qword [rdi + 0x78]
mov r9d, esi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.140055cc0
nop
mov rax, qword [rdi + 0x48]
movsxd rcx, dword [rax + 0x10]
mov eax, ecx
imul eax, ebp
movsxd r10, eax
add r10, qword [rdi + 0x70]
mov r11d, dword [rdi + 0x58]
imul r11d, r14d
sar r11d, 8
cmp r11d, 0xfe
jge 0x140054145
mov rdi, rcx
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rbx]
mov r9d, edx
shr r9d, 8
and r9d, 0xff00ff
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
and edx, 0xff00ff
imul edx, r11d
shr edx, 8
and edx, 0xff00ff
add r8d, edx
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 4]
add r10, rdi
dec esi
test esi, esi
jg 0x140054060
jmp 0x140054214
mov r11, rcx
nop dword [rax + rax]
mov edx, dword [rbx]
mov r9d, edx
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
mov ecx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
and r8d, 0xff00ff
imul r8d, ecx
shr r8d, 8
and r8d, 0xff00ff
and edx, 0xff00ff
add r8d, edx
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
mov eax, r9d
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
or ecx, r8d
xor edx, ecx
and edx, 0xff00ff
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
shl r9d, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
lea rbx, [rbx + 4]
add r10, r11
dec esi
test esi, esi
jg 0x140054150
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret