joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14022ba0c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401fb4d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14022ba96
cmp byte [rbp - 0x21], r15b
je 0x14022ba91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14022bacc
call fcn.14021cd10
test eax, eax
jne 0x14022bab8
cmp byte [rbp - 0x21], r15b
je 0x14022bab0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14022bacc
cmp byte [rbp - 0x21], r15b
je 0x14022bac9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140201970
test eax, eax
jne 0x14022bb6c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401fb4d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14022bb0b
cmp byte [rbp - 0x21], r15b
je 0x14022bb40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14022bb40
call fcn.14021cd10
test eax, eax
jne 0x14022bb2c
cmp byte [rbp - 0x21], r15b
je 0x14022bb25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14022bb40
cmp byte [rbp - 0x21], r15b
je 0x14022bb3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140201970
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14022bb6c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14022bb6f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14022bb7d
mov rcx, rdi
call fcn.14021c9b4
cmp byte [rbp + 0x3f], r15b
je 0x14022bb8c
mov rcx, qword [rbp + 0x27]
call fcn.14021c9b4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140234880
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 0x60]
movzx r8d, byte [rcx + 0x5c]
test eax, eax
jle 0x1402348bc
mov edx, dword [rcx + 0x288]
lea r11, [0x1402dc100]
mov r9d, eax
nop dword [rax]
mov eax, edx
shr rax, 0x18
xor rax, r8
shl edx, 8
xor edx, dword [r11 + rax*4]
mov dword [rcx + 0x288], edx
sub r9, 1
jne 0x1402348a0
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r9, dword [rcx + 0x60]
mov edx, r9d
sub edx, 1
je 0x14023499e
sub edx, 1
je 0x140234990
cmp edx, 1
je 0x140234950
mov byte [r9 + rcx + 0x7c], 1
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
movzx r8d, byte [rcx + 0x60]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
jmp 0x14023496f
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
ret
Function at 0x14023f7e0
Capabilities:
Parse pe header

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

Function at 0x141a99058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141a991df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141a99089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a9906f
add dl, dl
jne 0x141a99096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a990f6
xor eax, eax
add dl, dl
jne 0x141a990a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a991ad
add dl, dl
jne 0x141a990b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a990c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a990d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a990dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141a990ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141a9907e
mov eax, 1
add dl, dl
jne 0x141a99106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a99113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a990fb
sub eax, ebx
mov ebx, 1
jne 0x141a9914c
mov ecx, 1
add dl, dl
jne 0x141a9912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a9913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a99123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a9907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141a99168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a99175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a9915d
cmp eax, 0x7d00
jae 0x141a9919b
cmp eax, 0x500
jb 0x141a99196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a9907e
cmp eax, 0x7f
ja 0x141a9919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a9907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141a991d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141a9907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
invalid
cmp al, 0xd6
invalid
invalid
fdivr dword [rdx]
leave
cmp cl, cl
invalid
invalid
add byte [rax], al
add byte [rax], al
add dl, ah
loop 0x14003f60d
and ecx, 0xe1fee1e1
loope 0x14003f614
loope 0x14003f60f
loope 0x14003f62e
loope 0x14003f613
loope 0x14003f632
invalid
loope 0x14003f617
loope 0x14003f636
loope 0x14003f61b
loope 0x14003f63a
loope 0x14003f61f
loope 0x14003f63e
loope 0x14003f623
loope 0x14003f642
loope 0x14003f627
loope 0x14003f646
loop 0x14003f62c
loop 0x14003f64b
inc edx
ret 0xfec2
ret 0xc2c2
nop
nop
nop
dec byte [rdi - 0x70017071]
invalid
invalid
invalid
invalid
nop
nop
nop
dec dword [rdi - 0x70017071]
invalid
invalid
invalid
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d70
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 0x140011267
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400117b0
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400220a2]
call fcn.14001136b
nop
lea rax, [0x14001ac30]
mov byte [rbp + 4], al
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x44], 0
jmp 0x140011826
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
movsxd rax, dword [rbp + 0x44]
cmp rax, 1
jae 0x14001184c
movsxd rax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x28]
movsx eax, byte [rcx + rax]
sub eax, 0xd
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov byte [rdx + rcx], al
jmp 0x14001181e
movzx eax, byte [rbp + 4]
mov r8d, 1
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1400111ae
nop
lea rax, [rbp + 0x64]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x88], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ac00]
call fcn.140011302
mov eax, edi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400140c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400140e0
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400140f3
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001411d
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014131
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014143
xor al, al
jmp 0x140014161
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001415f
xor al, al
jmp 0x140014161
mov al, 1
add rsp, 0x38
ret
Function at 0x140011fa0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011393
movzx eax, al
test eax, eax
jne 0x140011fc0
mov ecx, 7
call fcn.14001130c
nop
mov byte [rsp + 0x20], 0
call fcn.140011320
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140011fe4
mov ecx, 7
call fcn.14001130c
nop
jmp 0x14001203c
cmp dword [0x14001d868], 0
jne 0x140012037
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.140011195
test eax, eax
je 0x140012018
mov eax, 0xff
jmp 0x140012141
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011316
mov dword [0x14001d868], 2
jmp 0x14001203c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112f8
call fcn.140011294
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012099
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140012099
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112c6
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400120cd
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x1400120cd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001134d
nop
call fcn.1400121f0
mov dword [rsp + 0x28], eax
call fcn.140011271
movzx eax, al
test eax, eax
jne 0x1400120ec
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400120fb
call fcn.140011357
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140012141
add rsp, 0x68
ret
Function at 0x1400068ec
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140056690], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x14000694c
movdqa xmm0, xmmword [0x14003bb00]
movdqa xmm1, xmmword [0x14003baf0]
movdqa xmmword [0x14004d430], xmm0
movdqa xmm0, xmmword [0x14003bad0]
movdqa xmmword [0x14004d440], xmm1
movdqa xmm1, xmmword [0x14003bae0]
movdqa xmmword [0x14004d450], xmm0
movdqa xmmword [0x14004d460], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140026760
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14003bab0]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x140006968
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140007200
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140007226
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14004d470]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x140007205
mov eax, ecx
ret

Function at 0x140007488
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x140007514
and qword [r11 - 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x40], 0
lea r8, [r11 + 8]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x48], 0
mov rcx, rsi
and qword [r11 - 0x50], 0
mov dword [r11 + 8], eax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x58], rax
call fcn.140007df0
xor r9d, r9d
lea r10, [rsp + 0x50]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x1400074f2
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000755c
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140007df0
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400275f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140007a50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov r14d, dword [rbp + 0x800]
mov rdi, r8
mov r13b, dl
mov r15, rcx
cmp r14d, 0x18
ja 0x140007c8b
xor esi, esi
lea rbx, [rcx + 0x148]
mov rdx, rdi
mov rcx, rbx
call fcn.140012c94
test al, al
je 0x140007acb
lea rcx, [rbx + 0x20]
cmp dword [rcx + 0x30], r14d
jne 0x140007acb
mov rdx, qword [rbp + 0x7f0]
mov r8d, 0x10
call fcn.1400274f0
test eax, eax
je 0x140007ca7
inc esi
add rbx, 0x98
cmp esi, 4
jb 0x140007a98
mov rcx, qword [rbp + 0x7e8]
lea rdx, [rbp - 0x60]
mov esi, 0x800
mov r8d, esi
call fcn.140015e50
mov ecx, r14d
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x60]
call fcn.14002d190
mov r8, qword [rbp + 0x7f0]
lea rcx, [rbp - 0x60]
mov rdx, rax
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x60]
mov ebx, 0x10
mov qword [rsp + 0x30], rax
mov r9d, ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400080d4
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.140012f94
mov ecx, dword [r15 + 0x3a8]
mov eax, ecx
and eax, 3
imul rsi, rax, 0x98
lea eax, [rcx + 1]
add rsi, 0x148
mov dword [r15 + 0x3a8], eax
add rsi, r15
mov dword [rsi + 0x50], r14d
cmp rsi, rdi
je 0x140007b91
mov r9b, byte [rbp + 0x800]
mov rcx, rsi
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
call fcn.140007274
mov al, byte [rdi + 0x18]
lea rcx, [rsi + 0x20]
mov rdx, qword [rbp + 0x7f0]
mov r8, rbx
mov byte [rsi + 0x18], al
call fcn.1400275f0
mov edi, 0x20
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rsi + 0x30]
call fcn.1400275f0
lea rcx, [rsi + 0x54]
mov r8d, edi
lea rdx, [rsp + 0x60]
call fcn.1400275f0
lea rcx, [rsi + 0x74]
mov r8d, edi
lea rdx, [rbp - 0x80]
call fcn.1400275f0
xor r9d, r9d
lea rcx, [rsi + 0x30]
mov r8b, 1
mov edx, edi
call fcn.140012dd8
mov rcx, qword [rbp + 0x808]
test rcx, rcx
je 0x140007c0a
mov r8, rdi
lea rdx, [rbp - 0x80]
call fcn.1400275f0
mov rbx, qword [rbp + 0x810]
test rbx, rbx
je 0x140007c53
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140026760
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov r9, rdi
mov al, byte [rdx]
mov rcx, r8
and ecx, 7
inc r8
inc rdx
xor byte [rcx + rbx], al
sub r9, 1
jne 0x140007c2f
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140012f94
mov rax, qword [rbp + 0x7f8]
test rax, rax
je 0x140007c7e
lea rcx, [r15 + 0x3b0]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0x40]
mov dl, r13b
call fcn.1400122a4
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140012f94
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov edi, 0x20
lea rdx, [rbx + 0x30]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.1400275f0
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, edi
call fcn.140012dd8
lea rdx, [rbx + 0x54]
mov r8d, edi
lea rcx, [rsp + 0x60]
call fcn.1400275f0
lea rdx, [rbx + 0x74]
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.1400275f0
jmp 0x140007bf2
Function at 0x1400080d4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov rax, r8
mov r15, rdx
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
lea rcx, [rbp - 0x40]
mov rdx, rax
mov rbx, r9
cmovb r8, r9
call fcn.1400275f0
xor edi, edi
mov dword [rbp + rbx - 0x40], 0x1000000
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
lea r9, [rbx + 4]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x40]
mov qword [rsp + 0x28], rdi
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140007df0
lea r13d, [rdi + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400275f0
mov eax, dword [rbp + 0x178]
lea rsi, [rbp - 0x80]
dec eax
mov byte [rbp + 0x178], dil
mov dword [rsp + 0x50], eax
lea r14d, [r13 - 0x1d]
mov rax, qword [rbp + 0x160]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x170]
mov byte [rbp + 0x160], dil
lea rdi, [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x54], 0x10
mov dword [rsp + 0x58], 0x10
cmp dword [rdi], 0
jbe 0x14000825b
mov ebx, dword [rdi]
lea rax, [rbp + 0x178]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x60]
lea rax, [rbp + 0x30]
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, r12
lea rax, [rbp + 0x160]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140007df0
mov r8, r13
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400275f0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax - 0x68]
movdqu xmm1, xmmword [rsp + rax + 0x60]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x78], xmm1
sub rcx, 1
jne 0x140008231
sub rbx, 1
jne 0x1400081d2
mov rcx, qword [rsi]
lea rdx, [rbp - 0x68]
mov r8, r13
call fcn.1400275f0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x1400081c7
lea edx, [r14 + 0x44]
lea rcx, [rbp - 0x40]
call fcn.140012f94
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140012f94
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140012f94
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140012f94
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret