joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040140
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140040182
xor al, al
jmp 0x1400401fa
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x50]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x1400401a9
xor al, al
jmp 0x1400401fa
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 0xe8]
mov rax, qword [rsp + 0x50]
add rax, rcx
cmp qword [rsp + 0x78], rax
jb 0x1400401f2
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rdx, qword [rsp + 0x50]
add rdx, rax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 0xec]
mov rax, rdx
add rax, rcx
cmp qword [rsp + 0x78], rax
jae 0x1400401f2
mov al, 1
jmp 0x1400401fa
xor al, al
jmp 0x1400401fa
add rsp, 0x68
ret

Function at 0x140040210
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14005ce10], eax
je 0x14004022c
mov eax, 0x10dd
jmp 0x140040347
mov rax, qword [0x14005ce28]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400402d0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
movzx edx, byte [rax + 0x1f]
lea r9, [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x28]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x1400402a0
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x20], 0
je 0x1400402a0
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x20]
call fcn.140040040
mov r11, qword [rsp + 0x20]
mov qword [r11 + 0x20], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400285b0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x140040238
mov qword [0x14005ce28], 0
call fcn.1400400a0
mov rax, qword [0x14005ce20]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140040330
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400285b0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x1400402ec
mov qword [0x14005ce20], 0
mov dword [0x14005ce10], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18002ae10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movsxd rbp, r9d
mov rbx, r8
add rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp r8, rbp
jae 0x18002aee2
mov qword [rsp + 0x40], r14
xor r14d, r14d
cmp dword [rsi + 0x20], r14d
jne 0x18002ae84
lea rdx, [rsi + 0x10]
mov dword [rsp + 0x28], r14d
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x20], r14
mov r9d, 1
mov r8, rsi
call sym.avutil_59.dll_av_aes_crypt
lea rcx, [rsi + 8]
lea rax, [rcx + 7]
cmp rax, rcx
jb 0x18002ae84
add byte [rax], 1
jne 0x18002ae84
dec rax
cmp rax, rcx
jae 0x18002ae77
movsxd rcx, dword [rsi + 0x20]
lea r8, [rsi + 0x10]
add r8, rcx
mov rdx, rbx
sub rdx, rcx
add rdx, 0x10
cmp rdx, rbp
cmova rdx, rbp
sub ecx, ebx
add ecx, edx
and ecx, 0xf
mov dword [rsi + 0x20], ecx
cmp rbx, rdx
jae 0x18002aed4
sub r8, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdi]
xor al, byte [rbx]
inc rbx
mov byte [rdi], al
inc rdi
cmp rbx, rdx
jb 0x18002aec0
cmp rbx, rbp
jb 0x18002ae44
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18002ebd0
Capabilities:
Encode data using base64

Disassembly:
push rbx
mov r11, r8
mov r8d, edx
mov rbx, rcx
cmp r9d, 0x3fffffff
jae 0x18002ed2a
lea r10d, [r9 + 2]
mov eax, 0x55555556
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx*4 + 1]
cmp r8d, eax
jl 0x18002ed2a
mov qword [rsp + 0x10], rdi
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r8, rcx
cmp r9d, 3
jle 0x18002ec93
lea ecx, [r9 - 4]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
mov r10d, edx
lea eax, [rdx + rdx*2]
sub r9d, eax
nop dword [rax + rax]
mov eax, dword [r11]
add r11, 3
bswap eax
mov ecx, eax
mov eax, eax
shr rax, 0x1a
movzx eax, byte [rax + rdi]
mov byte [r8], al
mov eax, ecx
shr rax, 0x14
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov byte [r8 + 1], al
mov eax, ecx
shr rax, 0xe
and eax, 0x3f
shr rcx, 8
and ecx, 0x3f
movzx eax, byte [rax + rdi]
mov byte [r8 + 2], al
movzx eax, byte [rcx + rdi]
mov byte [r8 + 3], al
add r8, 4
sub r10, 1
jne 0x18002ec40
xor ecx, ecx
test r9d, r9d
je 0x18002ed00
lea edx, [r9*8]
movzx eax, byte [r11]
lea r11, [r11 + 1]
shl ecx, 8
add ecx, eax
sub r9d, 1
jne 0x18002eca2
test edx, edx
jle 0x18002ed00
shl ecx, 6
mov eax, 0xaaaaaaab
movsxd r9, edx
mov r11d, ecx
lea ecx, [rdx - 1]
mul ecx
shr edx, 2
lea r10d, [rdx + 1]
nop dword [rax]
nop word [rax + rax]
mov rcx, r9
mov rax, r11
shr rax, cl
sub r9, 6
and eax, 0x3f
movzx eax, byte [rax + rdi]
mov byte [r8], al
inc r8
sub r10, 1
jne 0x18002ece0
mov rdi, qword [rsp + 0x10]
movzx eax, r8b
sub al, bl
test al, 3
je 0x18002ed21
nop
mov byte [r8], 0x3d
inc r8
movzx eax, r8b
sub al, bl
test al, 3
jne 0x18002ed10
mov byte [r8], 0
mov rax, rbx
pop rbx
ret
xor eax, eax
pop rbx
ret
Function at 0x18002f3d0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
lea rdx, [0x1800d0880]
add rcx, 0x48
mov r8d, 0x1000
call fcn.1800a5250
xor r10d, r10d
lea r11, [0x1800d0830]
mov ebp, r10d
mov r14, rbx
sub r11, rbx
lea r15d, [r10 + 0x12]
nop
lea eax, [rbp + 1]
mov ecx, r10d
cmp eax, edi
lea r14, [r14 + 4]
mov edx, r10d
mov r8d, r10d
cmovl ecx, eax
lea eax, [rcx + 1]
cmp eax, edi
cmovl edx, eax
lea eax, [rdx + 1]
cmp eax, edi
cmovl r8d, eax
movsxd rax, ebp
mov ebp, r10d
movzx r9d, byte [rax + rsi]
shl r9d, 8
movsxd rax, ecx
movzx ecx, byte [rax + rsi]
or r9d, ecx
movsxd rax, edx
shl r9d, 8
movzx ecx, byte [rax + rsi]
or r9d, ecx
movsxd rax, r8d
shl r9d, 8
movzx ecx, byte [rax + rsi]
lea eax, [r8 + 1]
or r9d, ecx
cmp eax, edi
cmovl ebp, eax
xor r9d, dword [r11 + r14 - 4]
mov dword [r14 - 4], r9d
sub r15, 1
jne 0x18002f420
mov eax, r10d
mov rdi, r10
nop dword [rax]
xor eax, dword [rbx]
mov r11d, 1
mov r9d, eax
nop dword [rax + rax]
mov eax, r9d
shr rax, 0x10
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov edx, dword [rbx + rcx*4 + 0x448]
add edx, dword [rbx + rax*4 + 0x48]
mov eax, r9d
shr rax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [rbx + rcx*4 + 0x848]
add edx, dword [rbx + rax*4 + 0xc48]
xor edx, dword [rbx + r11*4]
xor r10d, edx
mov eax, r10d
shr rax, 0x10
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edx, dword [rbx + rcx*4 + 0x448]
add edx, dword [rbx + rax*4 + 0x48]
mov eax, r10d
shr rax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [rbx + rcx*4 + 0x848]
add edx, dword [rbx + rax*4 + 0xc48]
xor edx, dword [rbx + r11*4 + 4]
add r11, 2
xor r9d, edx
cmp r11, 0x11
jl 0x18002f4b0
mov eax, r10d
mov r10d, r9d
xor eax, dword [rbx + 0x44]
mov dword [rbx + rdi*4], eax
mov dword [rbx + rdi*4 + 4], r9d
add rdi, 2
cmp rdi, 0x12
jl 0x18002f4a0
lea rdi, [rbx + 0x4c]
mov ebp, 4
nop word [rax + rax]
mov esi, 0x80
nop word [rax + rax]
xor eax, dword [rbx]
mov r11d, 1
mov r9d, eax
nop dword [rax + rax]
mov eax, r9d
shr rax, 0x10
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov edx, dword [rbx + rcx*4 + 0x448]
add edx, dword [rbx + rax*4 + 0x48]
mov eax, r9d
shr rax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [rbx + rcx*4 + 0x848]
add edx, dword [rbx + rax*4 + 0xc48]
xor edx, dword [rbx + r11*4]
xor r10d, edx
mov eax, r10d
shr rax, 0x10
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edx, dword [rbx + rcx*4 + 0x448]
add edx, dword [rbx + rax*4 + 0x48]
mov eax, r10d
shr rax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [rbx + rcx*4 + 0x848]
add edx, dword [rbx + rax*4 + 0xc48]
xor edx, dword [rbx + r11*4 + 4]
add r11, 2
xor r9d, edx
cmp r11, 0x11
jl 0x18002f590
mov eax, r10d
mov r10d, r9d
xor eax, dword [rbx + 0x44]
mov dword [rdi - 4], eax
mov dword [rdi], r9d
add rdi, 8
sub rsi, 1
jne 0x18002f580
sub rbp, 1
jne 0x18002f570
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180030b80
Capabilities:
Encode data using xor

Disassembly:
test r9d, r9d
je 0x180030cac
push rbx
push rbp
push rdi
push r15
sub rsp, 0x28
mov qword [rsp + 0x50], rsi
mov ebp, r9d
mov rsi, qword [rsp + 0x70]
mov rdi, r8
mov qword [rsp + 0x58], r12
mov rbx, rdx
mov qword [rsp + 0x60], r13
mov r12, rsi
mov r13d, dword [rsp + 0x78]
neg r12
mov qword [rsp + 0x20], r14
mov r15, rcx
mov r14, 0xfffffffffffffff1
sub r14, rsi
nop dword [rax]
dec ebp
test r13d, r13d
je 0x180030bed
mov r9, rsi
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.180031310
jmp 0x180030c7f
test rsi, rsi
je 0x180030c71
lea rcx, [rsi + 0xf]
cmp rbx, rcx
ja 0x180030c04
lea r8, [rbx + 0xf]
cmp r8, rsi
jae 0x180030c19
lea rax, [rdi + r12]
add rax, rcx
cmp rbx, rax
ja 0x180030c4b
lea r8, [rbx + 0xf]
cmp r8, rdi
jb 0x180030c4b
mov rax, rsi
lea r10, [rdi + r12]
mov r9d, 0x10
nop word [rax + rax]
movzx edx, byte [r10 + rax]
lea rcx, [r14 + rax]
xor dl, byte [rax]
lea rax, [rax + 1]
mov byte [rcx + r8], dl
sub r9, 1
jne 0x180030c30
jmp 0x180030c5b
movdqu xmm1, xmmword [rdi]
movdqu xmm0, xmmword [rsi]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
mov r8, rbx
mov rdx, rbx
mov rcx, r15
call fcn.180032230
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
jmp 0x180030c7f
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.180032230
add rbx, 0x10
add rdi, 0x10
test ebp, ebp
jne 0x180030bd0
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop rdi
pop rbp
pop rbx
ret
Function at 0x180037600
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
lea r9, [0x180119f30]
mov r8d, 0x100
nop
mov ecx, edx
lea r9, [r9 + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xa001
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xa001
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xa001
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xa001
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xa001
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xa001
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xa001
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xa001
xor eax, ecx
mov dword [r9 - 4], eax
cmp edx, r8d
jb 0x180037610
mov dword [0x18011a330], 1
lea rax, [0x18011a730]
lea r9, [0x180114f30]
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rax - 0x800]
lea rax, [rax + 4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r9 + rcx*4 + 0x5000]
mov dword [rax - 0x404], edx
movzx ecx, dl
shr edx, 8
xor edx, dword [r9 + rcx*4 + 0x5000]
mov dword [rax - 4], edx
movzx ecx, dl
shr edx, 8
xor edx, dword [r9 + rcx*4 + 0x5000]
mov dword [rax + 0x3fc], edx
sub r8, 1
jne 0x1800376d0
ret

Function at 0x180037720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
lea r9, [0x180118f30]
mov r8d, 0x100
nop
mov ecx, edx
lea r9, [r9 + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r9 - 4], eax
cmp edx, r8d
jb 0x180037730
mov dword [0x180119330], 1
lea rax, [0x180119730]
lea r9, [0x180114f30]
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rax - 0x800]
lea rax, [rax + 4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r9 + rcx*4 + 0x4000]
mov dword [rax - 0x404], edx
movzx ecx, dl
shr edx, 8
xor edx, dword [r9 + rcx*4 + 0x4000]
mov dword [rax - 4], edx
movzx ecx, dl
shr edx, 8
xor edx, dword [r9 + rcx*4 + 0x4000]
mov dword [rax + 0x3fc], edx
sub r8, 1
jne 0x1800377f0
ret
Function at 0x180037840
Capabilities:
Encode data using xor

Disassembly:
push rbx
cmp dword [rcx + 0x400], 0
lea rbx, [r8 + r9]
mov r10, r8
mov r11, rcx
jne 0x1800378e0
mov qword [rsp + 0x10], rdi
test r10b, 3
je 0x180037883
cmp r10, rbx
jae 0x180037883
movzx ecx, byte [r10]
inc r10
movzx eax, dl
xor rcx, rax
shr edx, 8
xor edx, dword [r11 + rcx*4]
test r10b, 3
jne 0x180037864
lea rdi, [rbx - 3]
cmp r10, rdi
jae 0x1800378db
nop dword [rax]
xor edx, dword [r10]
add r10, 4
mov eax, edx
shr eax, 8
movzx r8d, al
mov eax, edx
shr eax, 0x10
add r8d, 0x200
movzx ecx, al
movzx eax, dl
add ecx, 0x100
add eax, 0x300
mov r9d, dword [r11 + r8*4]
xor r9d, dword [r11 + rcx*4]
xor r9d, dword [r11 + rax*4]
mov eax, edx
mov edx, r9d
shr rax, 0x18
xor edx, dword [r11 + rax*4]
cmp r10, rdi
jb 0x180037890
mov rdi, qword [rsp + 0x10]
cmp r10, rbx
jae 0x180037909
nop word [rax + rax]
movzx ecx, byte [r10]
inc r10
movzx eax, dl
xor rcx, rax
shr edx, 8
xor edx, dword [r11 + rcx*4]
cmp r10, rbx
jb 0x1800378f0
mov eax, edx
pop rbx
ret
Function at 0x180038190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
lea eax, [r8 - 8]
mov esi, r9d
mov ebp, edx
mov r11, rcx
cmp eax, 0x18
ja 0x18003837b
mov ecx, r8d
mov r10d, 1
shl r10, cl
cmp rsi, r10
jge 0x18003837b
cmp dword [rsp + 0x30], 0x404
je 0x1800381d8
cmp dword [rsp + 0x30], 0x1000
jne 0x18003837b
mov qword [rsp + 0x10], rbx
xor r10d, r10d
mov qword [rsp + 0x18], rdi
mov ebx, 0x100
mov qword [rsp + 0x20], r15
mov rdi, r11
mov r15d, 0x20
sub r15d, r8d
nop dword [rax + rax]
mov eax, r10d
test ebp, ebp
je 0x180038274
shr eax, 1
mov ecx, r10d
and ecx, 1
neg ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, esi
xor eax, ecx
mov dword [rdi], eax
jmp 0x1800382f0
shl eax, 0x18
mov ecx, r15d
mov r9d, esi
shl r9d, cl
mov ecx, eax
sar ecx, 0x1f
add eax, eax
and ecx, r9d
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, r9d
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, r9d
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, r9d
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, r9d
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, r9d
lea eax, [rcx + rcx]
xor edx, eax
mov r8d, edx
sar r8d, 0x1f
and r8d, r9d
lea eax, [rdx + rdx]
xor r8d, eax
mov ecx, r8d
sar ecx, 0x1f
and ecx, r9d
lea eax, [r8 + r8]
xor ecx, eax
bswap ecx
mov dword [rdi], ecx
inc r10d
add rdi, 4
cmp r10d, ebx
jb 0x180038200
cmp dword [rsp + 0x30], 0x1000
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x18]
mov dword [r11 + 0x400], 1
jb 0x18003836d
lea rax, [r11 + 0x800]
nop word [rax + rax]
mov edx, dword [rax - 0x800]
lea rax, [rax + 4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r11 + rcx*4]
mov dword [rax - 0x404], edx
movzx ecx, dl
shr edx, 8
xor edx, dword [r11 + rcx*4]
mov dword [rax - 4], edx
movzx ecx, dl
shr edx, 8
xor edx, dword [r11 + rcx*4]
mov dword [rax + 0x3fc], edx
sub rbx, 1
jne 0x180038330
mov rbx, qword [rsp + 0x10]
xor eax, eax
mov rbp, qword [rsp + 0x28]
pop rsi
ret
mov rbp, qword [rsp + 0x28]
mov eax, 0xffffffea
pop rsi
ret
Function at 0x180038840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x58
mov r14, rcx
mov qword [rsp + 0x50], rbx
xor esi, esi
lea rdi, [0x1800d56f0]
lea rbp, [0x1800d5cb0]
cmp dword [rdi], 0
je 0x180038a35
mov rdx, qword [rdi]
mov rcx, qword [r14 + 0x10]
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x94], ecx
mov rdx, qword [rdi + 8]
mov rcx, qword [r14 + 0x18]
mov dword [rsp + 0x90], eax
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x8c], ecx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x88], eax
mov rdx, qword [rsp + 0x88]
call sym.avutil_59.dll_av_add_q
mov rdx, qword [rdi + 0x10]
mov rbx, rax
mov rcx, qword [r14 + 0x20]
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x9c], ecx
mov dword [rsp + 0x98], eax
mov rcx, rbx
mov rdx, qword [rsp + 0x98]
call sym.avutil_59.dll_av_add_q
mov rdx, qword [rdi + 0x18]
mov rbx, rax
mov rcx, qword [r14 + 0x28]
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov rdx, qword [rsp + 0x20]
call sym.avutil_59.dll_av_add_q
mov rdx, qword [rdi + 0x20]
mov rbx, rax
mov rcx, qword [r14 + 0x30]
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x28], eax
mov rcx, rbx
mov rdx, qword [rsp + 0x28]
call sym.avutil_59.dll_av_add_q
mov rdx, qword [rdi + 0x28]
mov rbx, rax
mov rcx, qword [r14 + 0x38]
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], eax
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
call sym.avutil_59.dll_av_add_q
mov rdx, qword [rdi - 0x10]
mov rbx, rax
mov rcx, qword [r14]
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x38], eax
mov rcx, rbx
mov rdx, qword [rsp + 0x38]
call sym.avutil_59.dll_av_add_q
mov rdx, qword [rdi - 8]
mov rbx, rax
mov rcx, qword [r14 + 8]
call sym.avutil_59.dll_av_sub_q
mov rcx, rax
cdq
xor eax, edx
shr rcx, 0x20
sub eax, edx
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], eax
mov rcx, rbx
mov rdx, qword [rsp + 0x40]
call sym.avutil_59.dll_av_add_q
movsxd rcx, eax
mov r8, rax
shr r8, 0x20
imul rcx, rcx, 0x3e8
movsxd rdx, r8d
sub rcx, rdx
je 0x180038a23
sar rdx, 0x3f
sar rcx, 0x3f
xor ecx, edx
or ecx, 1
jmp 0x180038a31
test r8d, r8d
jne 0x180038a35
test eax, eax
je 0x180038a58
sar eax, 0x1f
mov ecx, eax
test ecx, ecx
js 0x180038a58
inc esi
add rdi, 0x40
cmp rdi, rbp
jl 0x180038862
mov eax, 2
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x50]
mov eax, esi
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180038d40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov edi, 0x10
lea r11, [0x1800d5f12]
xor r10d, r10d
mov qword [rsp], rdi
mov eax, r10d
mov esi, edi
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
nop word [rax + rax]
movzx ecx, byte [r11 - 2]
lea r11, [r11 + 4]
mov r9, rbx
shr r9, cl
movzx ecx, byte [r11 - 5]
and r9d, 1
lea rdx, [r9 + rax*2]
mov rax, rbx
shr rax, cl
movzx ecx, byte [r11 - 4]
and eax, 1
lea r8, [rax + rdx*2]
mov rax, rbx
shr rax, cl
movzx ecx, byte [r11 - 3]
and eax, 1
lea rdx, [rax + r8*2]
mov rax, rbx
shr rax, cl
and eax, 1
lea rax, [rax + rdx*2]
sub rsi, 1
jne 0x180038d80
neg ebp
mov qword [rsp + 0x88], rdi
mov rcx, r10
sbb rdx, rdx
mov qword [rsp + 0x70], rcx
and edx, 0xf
mov qword [rsp + 0x10], rdx
xor rcx, rdx
mov rdx, qword [r14 + rcx*8]
mov ecx, eax
rol ecx, 1
mov r12, rdx
mov dword [rsp + 0x80], ecx
ror ecx, 4
mov r13d, ecx
mov qword [rsp + 8], rdx
ror ecx, 4
mov r15d, ecx
shr r12, 6
ror ecx, 4
xor r13, r12
mov ebp, ecx
rol rax, 0x20
ror ecx, 4
mov r14, r12
mov edi, ecx
shr r14, 6
ror ecx, 4
xor r15, r14
mov r11d, ecx
mov rsi, r14
mov r14, qword [rsp + 0x78]
and r15d, 0x3f
ror ecx, 4
and r13d, 0x3f
mov r8d, ecx
shr rsi, 6
mov r9d, ecx
ror r8d, 4
xor rbp, rsi
mov rbx, rsi
shr rbx, 6
and ebp, 0x3f
xor rdi, rbx
mov r10, rbx
shr r10, 6
and edi, 0x3f
xor r11, r10
mov rdx, r10
shr rdx, 6
and r11d, 0x3f
xor r9, rdx
mov rcx, rdx
shr rcx, 6
and r9d, 0x3f
xor r8, rcx
lea rcx, [0x1800d5fc0]
and r8d, 0x3f
mov edx, dword [rcx + r8*4]
lea r8, [0x1800d5fc0]
or edx, dword [rcx + r9*4 + 0x100]
or edx, dword [rcx + r11*4 + 0x200]
or edx, dword [rcx + rdi*4 + 0x300]
or edx, dword [rcx + rbp*4 + 0x400]
or edx, dword [rcx + r15*4 + 0x500]
or edx, dword [rcx + r13*4 + 0x600]
mov ecx, dword [rsp + 0x80]
xor rcx, qword [rsp + 8]
and ecx, 0x3f
or edx, dword [r8 + rcx*4 + 0x700]
mov ecx, edx
mov rdx, qword [rsp + 0x10]
xor rax, rcx
mov rcx, qword [rsp + 0x70]
inc rcx
sub qword [rsp + 0x88], 1
mov qword [rsp + 0x70], rcx
jne 0x180038df0
rol rax, 0x20
lea r9, [0x1800d5f4d]
xor r8d, r8d
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r9 + 2]
lea r9, [r9 - 4]
mov rdx, rax
shr rax, 1
and edx, 1
shl rdx, cl
movzx ecx, byte [r9 + 5]
or r8, rdx
mov rdx, rax
shr rax, 1
and edx, 1
shl rdx, cl
movzx ecx, byte [r9 + 4]
or r8, rdx
mov rdx, rax
shr rax, 1
and edx, 1
shl rdx, cl
movzx ecx, byte [r9 + 3]
or r8, rdx
mov rdx, rax
shr rax, 1
and edx, 1
shl rdx, cl
or r8, rdx
sub qword [rsp], 1
jne 0x180038f30
mov rax, r8
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret