joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050410
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1401e90c0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, [0x1401f0973]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x1c7
call fcn.1400e8370
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400f4950
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140114200
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400504bf
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400ec790
mov rcx, rbp
call fcn.1400df050
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140114200
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400504f6
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400ec790
mov rcx, rbp
call fcn.1400df050
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140050518
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140050524
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140050585
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140051d00
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140050557
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140050560
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
jne 0x140050588
test r14, r14
je 0x140050588
cmp ebp, 0xfffffffc
je 0x1400505b5
mov dword [r14], ebp
xor edi, edi
jmp 0x140050588
mov dil, 1
lea rcx, [rsp + 0x450]
call fcn.1400f49b0
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140111870
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1401634b0
mov ebp, eax
jmp 0x14005057e

Function at 0x1400505c0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401e90c0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1fa
call fcn.1400e8370
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400f4950
cmp byte [rdi + 0x17], 0
jns 0x140050644
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400f49b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140110010
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14022a578]
mov ecx, dword [0x14021ef3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011004d
lea rcx, [0x14022a570]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140100810
lea rcx, [0x14022a578]
call fcn.140110b10
cmp dword [0x14022a578], 0xffffffff
jne 0x140110039
mov qword [0x14022a570], 0
lea rcx, [0x14022a570]
xor edx, edx
call fcn.14009cb70
lea rcx, [0x14022a578]
call fcn.140110ba8
jmp 0x140110039

Function at 0x14011ec34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14011ed64
Function at 0x1401409d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
cmp qword [rcx + 0x78], 0
je 0x140140a1d
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x140140bcc
mov eax, dword [rsi + 0x9c]
test al, 0x10
jne 0x140140a3b
test al, 8
jne 0x140140ae9
xor edi, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140111870
mov eax, edi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x140140a5d
mov rax, qword [rsi]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x140140a1d
lea r14, [rsi + 0x88]
movabs r15, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x30]
mov edi, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
mov r9, qword [rsi + 0x60]
add r9, r8
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov rdx, r14
call qword [rax + 0x20]
mov ebp, eax
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call fcn.14012a080
cmp rax, rbx
jne 0x140140a1d
cmp ebp, 1
je 0x140140a78
cmp ebp, 2
je 0x140140a1d
mov rcx, qword [rsi + 0x78]
call fcn.1401292f8
test eax, eax
jne 0x140140a1d
jmp 0x140140a1b
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x30], rax
cmp byte [rsi + 0xa2], 0
je 0x140140b29
mov rdi, qword [rsi + 0x20]
sub rdi, qword [rsi + 0x18]
xor ebx, ebx
neg edi
mov rcx, qword [rsi + 0x78]
mov edx, edi
mov r8d, 1
call fcn.140129974
test eax, eax
je 0x140140b51
mov edi, 0xffffffff
jmp 0x140140a1d
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r9, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x50]
sub rdi, r9
test eax, eax
jle 0x140140b8b
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov eax, eax
imul rcx, rax
add rdi, rcx
jmp 0x140140b06
test bl, bl
je 0x140140b61
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x88], rax
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x48], rax
mov dword [rsi + 0x9c], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
jmp 0x140140a1b
mov rax, qword [rsi + 0x18]
cmp rax, qword [rsi + 0x20]
je 0x140140b06
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rax, qword [rsi + 0x10]
mov rbp, qword [rcx]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
call qword [rbp + 0x38]
mov eax, eax
add rdi, qword [rsi + 0x48]
add rax, qword [rsi + 0x40]
sub rdi, rax
mov bl, 1
jmp 0x140140b08
call fcn.140141140
int3
Function at 0x140140ed0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, 0xffffffff
cmp qword [rcx + 0x78], 0
jne 0x140140f1b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140111870
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, edx
mov rdi, rcx
call fcn.1401410c0
mov byte [rsp + 0x5f], 0xaa
mov r15, qword [rdi + 0x28]
mov rbx, qword [rdi + 0x30]
mov r14, qword [rdi + 0x38]
cmp esi, 0xffffffff
je 0x140140fae
test rbx, rbx
jne 0x140140f56
lea rax, [rsp + 0x60]
lea rbx, [rsp + 0x5f]
mov qword [rdi + 0x30], rbx
mov qword [rdi + 0x28], rbx
mov qword [rdi + 0x38], rax
mov byte [rbx], sil
mov rcx, qword [rdi + 0x28]
mov rbx, qword [rdi + 0x30]
inc rbx
mov qword [rdi + 0x30], rbx
sub rbx, rcx
je 0x140140fa1
cmp byte [rdi + 0xa2], 0
je 0x140140fb3
mov r9, qword [rdi + 0x78]
mov edx, 1
mov r8, rbx
call fcn.14012a080
mov ebp, 0xffffffff
cmp rax, rbx
jne 0x140140efb
mov qword [rdi + 0x30], r15
mov qword [rdi + 0x28], r15
mov qword [rdi + 0x38], r14
xor ebp, ebp
cmp esi, 0xffffffff
cmovne ebp, esi
jmp 0x140140efb
mov rcx, r15
jmp 0x140140f68
mov qword [rsp + 0x40], r14
mov rax, qword [rdi + 0x40]
lea r13, [rsp + 0x50]
mov qword [r13], rax
lea r14, [rdi + 0x88]
lea r12, [rsp + 0x48]
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x1401410ae
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 0x40]
mov rdx, qword [rdi + 0x60]
add rdx, rax
mov r8, qword [rdi + 0x28]
mov r9, qword [rdi + 0x30]
mov rbp, qword [rcx]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov rdx, r14
call qword [rbp + 0x10]
mov rcx, qword [rdi + 0x28]
cmp qword [rsp + 0x48], rcx
je 0x1401410a4
mov ebp, eax
cmp eax, 3
je 0x140141087
cmp ebp, 1
ja 0x1401410a4
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x40]
mov r9, qword [rdi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call fcn.14012a080
cmp rax, rbx
jne 0x14014106f
cmp ebp, 1
jne 0x14014106f
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rsp + 0x48]
mov qword [rdi + 0x28], rdx
mov qword [rdi + 0x38], rcx
cmp rax, rbx
jne 0x1401410a4
cmp ebp, 1
je 0x140140fd1
mov r14, qword [rsp + 0x40]
jmp 0x140140f95
mov rbx, qword [rdi + 0x30]
mov r9, qword [rdi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call fcn.14012a080
cmp rax, rbx
je 0x14014107d
mov ebp, 0xffffffff
jmp 0x140140efb
call fcn.140141140
int3
Function at 0x140146a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r15, rdx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rdx]
lea r12, [rdx + 8]
test rax, rax
mov rdx, r12
cmove rdx, rax
mov ebp, dword [rdx + 8]
xor ebx, ebx
test ebp, ebp
setne bl
lea rdi, [r15 + 0x28]
xor edx, edx
cmp rax, 1
cmovbe rdi, rdx
mov dword [rsp + 0x20], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 2
cmove rdi, rbx
lea rbx, [r15 + 0x48]
cmp rax, 2
cmovbe rbx, rdx
mov dword [rsp + 0x24], ebp
mov ebp, dword [rbx + 8]
test ebp, ebp
mov ebx, 3
cmove rbx, rdi
lea rdi, [r15 + 0x68]
cmp rax, 3
cmovbe rdi, rdx
mov dword [rsp + 0x28], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 4
cmove rdi, rbx
lea rbx, [r15 + 0x88]
cmp rax, 4
cmovbe rbx, rdx
mov dword [rsp + 0x2c], ebp
mov ebp, dword [rbx + 8]
test ebp, ebp
mov ebx, 5
cmove rbx, rdi
lea rdi, [r15 + 0xa8]
cmp rax, 5
cmovbe rdi, rdx
mov dword [rsp + 0x30], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 6
cmove rdi, rbx
lea rbx, [r15 + 0xc8]
cmp rax, 6
cmovbe rbx, rdx
mov dword [rsp + 0x34], ebp
mov ebp, dword [rbx + 8]
test ebp, ebp
mov ebx, 7
cmove rbx, rdi
lea rdi, [r15 + 0xe8]
cmp rax, 7
cmovbe rdi, rdx
mov dword [rsp + 0x38], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 8
cmove rdi, rbx
lea rbx, [r15 + 0x108]
cmp rax, 8
cmovbe rbx, rdx
mov r14, rcx
mov dword [rsp + 0x3c], ebp
mov ecx, dword [rbx + 8]
test ecx, ecx
mov ebp, 9
cmove rbp, rdi
cmp rax, 9
lea rax, [r15 + 0x128]
cmovbe rax, rdx
mov dword [rsp + 0x40], ecx
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
test eax, eax
mov r13d, 0xa
cmove r13, rbp
mov rsi, qword [r14]
lea rdi, [r14 + 8]
test rsi, rsi
cmovne rsi, rdi
mov rcx, rsi
mov rdx, r13
call fcn.140146130
mov ebx, eax
test al, al
je 0x140146c0e
test r13, r13
je 0x140146c0e
mov ebp, 1
mov edx, dword [rsp + rbp*4 + 0x1c]
mov rcx, rsi
call fcn.140146130
mov ebx, eax
test al, al
je 0x140146c0e
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
jb 0x140146bf0
test bl, bl
je 0x140146c53
test r13, r13
je 0x140146c53
mov esi, 1
lea rax, [rsi - 1]
mov rcx, rdi
cmp qword [r14], rax
ja 0x140146c2a
xor ecx, ecx
mov rdx, r12
cmp qword [r15], rax
ja 0x140146c34
xor edx, edx
call fcn.140146220
mov ebx, eax
test al, al
je 0x140146c53
lea rax, [rsi + 1]
add r12, 0x20
add rdi, 0x20
cmp rsi, r13
mov rsi, rax
jb 0x140146c1c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140147d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x140147e80
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x140147ede
mov edi, dword [rsi + 0x5c]
test r15b, r15b
je 0x140147ebe
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140111870
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.14012a45c
cmp eax, 0xffffffff
je 0x140147f5b
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x140147efc
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x140147f65
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test r15b, r15b
je 0x140147f38
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x140147ebe
mov edi, edi
test rdi, rdi
jle 0x140148009
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movzx ecx, byte [rsp + rax + 0x58]
call fcn.14012c7f8
cmp eax, 0xffffffff
jne 0x140147f3a
mov edi, 0xffffffff
jmp 0x140147ebe
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea r12, [rsp + 0x40]
mov qword [r12], r14
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r14d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x57]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x58]
call qword [rax + 0x18]
cmp eax, 1
jne 0x140147ff2
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r14w
cmp edi, 8
je 0x140147f5b
mov rcx, qword [rsi + 0x40]
call fcn.14012a45c
cmp eax, 0xffffffff
je 0x140147f5b
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x140147f76
cmp eax, 2
je 0x140147f5b
cmp eax, 3
je 0x140147f21
jmp 0x140147f29
movzx edi, byte [rsp + 0x57]
jmp 0x140147ebe
Function at 0x140148050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x140148180
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x1401481de
movzx edi, word [rsi + 0x5c]
test r15b, r15b
je 0x1401481be
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140111870
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.14012a45c
cmp eax, 0xffffffff
je 0x140148263
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x1401481fc
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x14014826c
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test r15b, r15b
je 0x14014823d
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x1401481be
mov edi, edi
test rdi, rdi
jle 0x140148310
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movsx eax, byte [rsp + rax + 0x58]
movzx ecx, ax
call fcn.14012c7f8
cmp eax, 0xffffffff
jne 0x14014823f
mov di, 0xffff
jmp 0x1401481be
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea r12, [rsp + 0x40]
mov qword [r12], r14
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r14d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x56]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x58]
call qword [rax + 0x18]
cmp eax, 1
jne 0x1401482f9
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r14w
cmp edi, 8
je 0x140148263
mov rcx, qword [rsi + 0x40]
call fcn.14012a45c
cmp eax, 0xffffffff
je 0x140148263
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x14014827d
cmp eax, 2
je 0x140148263
cmp eax, 3
je 0x140148223
jmp 0x14014822d
movzx edi, word [rsp + 0x56]
jmp 0x1401481be
Function at 0x140148360
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 - 8], r12
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov ebp, 0xffffffff
mov qword [rsp + 0x30], r12
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x30]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.14012a080
cmp rax, rbx
jne 0x1401483fc
cmp edi, 1
je 0x1401483a4
cmp edi, 2
je 0x1401483fc
mov rcx, qword [rsi + 0x40]
call fcn.1401292f8
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140111870
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140148420
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140148455
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14012a080
xor ebx, ebx
test rsi, rsi
jle 0x14014847a
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14014847a
inc rbx
cmp rsi, rbx
jne 0x14014845c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140148490
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp edx, 0xffffffff
je 0x1401484fa
mov r15d, edx
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x140148520
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.14012a080
mov esi, 0xffffffff
cmp rax, 1
je 0x1401484fd
jmp 0x140148500
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140111870
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x1401485d0
mov ebp, eax
cmp eax, 3
je 0x1401485af
cmp ebp, 1
ja 0x1401485d0
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.14012a080
cmp rax, rsi
jne 0x1401485d0
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140148538
jmp 0x1401484fd
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.14012a080
cmp rax, 1
je 0x1401484fd
mov esi, 0xffffffff
jmp 0x140148500

Function at 0x140148620
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140148655
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14012a080
xor ebx, ebx
test rsi, rsi
jle 0x14014867b
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x14014867b
inc rbx
cmp rsi, rbx
jne 0x14014865c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140148690
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp dx, 0xffff
je 0x1401486fa
mov r15d, edx
mov rdi, rcx
mov word [rsp + 0x56], dx
cmp byte [rcx + 0x58], 0
je 0x140148720
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.14012a080
mov si, 0xffff
cmp rax, 1
je 0x1401486fd
jmp 0x140148700
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140111870
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x1401487d0
mov ebp, eax
cmp eax, 3
je 0x1401487af
cmp ebp, 1
ja 0x1401487d0
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.14012a080
cmp rax, rsi
jne 0x1401487d0
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140148738
jmp 0x1401486fd
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.14012a080
cmp rax, 1
je 0x1401486fd
mov si, 0xffff
jmp 0x140148700

Function at 0x140148820
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140148857
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp r8, rdx
jne 0x140148831
ret

Function at 0x1401488b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1401488e8
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp r8, rdx
jne 0x1401488c1
ret