joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fea40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x1400feb37
cmp word [rdx], si
je 0x1400feb37
test r8d, r8d
jne 0x1400fea6e
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x1400feace
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400fea80
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x1400feaab
call fcn.1400ff510
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.1400ff620
mov rdi, rax
test rax, rax
je 0x1400feb32
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x1400feb0d
mov rcx, rbx
call fcn.1400ff510
mov dword [rsp + 0x48], eax
jmp 0x1400feb20
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140957d88]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x1400feb90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, r8d
mov rdx, rcx
mov rcx, qword [0x1409d5460]
call fcn.14011a920
test rax, rax
je 0x1400febcc
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400fea40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400febe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x1400fec58
test r8d, r8d
je 0x1400fec58
mov rdx, rcx
mov rcx, qword [0x1409d5460]
call fcn.14011a920
test rax, rax
je 0x1400fec54
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400fec41
mov rcx, rax
call fcn.1400ff510
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fed70
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov byte [rsp + 0x48], 0
mov rcx, qword [0x1409d5460]
call fcn.14011a920
test rax, rax
je 0x1400fedce
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x1400fedb1
mov r8d, 1
mov rcx, rax
call fcn.1400fede0
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400fede0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x1400fee17
call fcn.1400fe530
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x1400fee90
mov rax, rdi
sub rax, 1
je 0x1400fee81
sub rax, 1
je 0x1400fee6e
cmp rax, 2
je 0x1400fee5d
mov r8, rdi
mov rcx, r15
call fcn.1400956f0
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400fef0a
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400fef0a
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400fef0a
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400fef0a
mov r8, rbx
mov rcx, r15
call fcn.1400956f0
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x1400feed0
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x1400fef08
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.1400956f0
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400fef30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r12d, edx
mov r14, rcx
mov r15d, 0x1000
mov rcx, qword [0x140957d88]
mov r8d, r15d
xor edx, edx
mov r13, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400ff10b
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x1400fef97
test rsi, rsi
je 0x1400ff060
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1400fefbb
mov r8d, 1
mov rcx, r14
call fcn.1400fede0
mov dword [rsp + 0x34], eax
jmp 0x1400fefdc
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x1400ff064
test r8b, r8b
je 0x1400feff8
mov byte [rbx], r8b
inc rbx
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
lea eax, [r15 - 1]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x1400ff03a
mov rcx, qword [0x140957d88]
add r15d, 0x1000
movsxd r9, r15d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x1400ff064
test r12d, r12d
jne 0x1400fef85
cmp r8b, 0xd
je 0x1400ff06d
cmp r8b, 0xa
jne 0x1400fef85
dec rbx
jmp 0x1400ff0f1
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x1400ff0f1
cmp r8b, 0xa
jne 0x1400ff078
dec rbx
jmp 0x1400ff0f1
cmp r8b, 0xd
jne 0x1400ff0f1
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x1400ff0a0
mov r8d, 1
mov rcx, r14
call fcn.1400fede0
mov dword [rsp + 0x34], eax
jmp 0x1400ff0bd
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1400ff0f1
cmp qword [rdi], 0
je 0x1400ff0d0
inc dword [r14 + 0x14]
jmp 0x1400ff0f1
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
sub rax, rbp
mov qword [r13], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1400ff130
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, r8
mov r12d, edx
mov r14, rcx
xor edx, edx
mov rcx, qword [0x140957d88]
mov r8d, 0x1000
xor edi, edi
mov r13d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1400ff328
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rsi
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1400ff1a2
test rbp, rbp
je 0x1400ff268
dec rbp
cmp qword [r14 + 8], 0
lea rsi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1400ff1c6
mov r8d, 2
mov rcx, r14
call fcn.1400fede0
mov dword [rsp + 0x34], eax
jmp 0x1400ff1e3
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x1400ff26c
test dx, dx
je 0x1400ff1fe
mov word [rbx], dx
add rbx, 2
movzx edx, word [rsp + 0x30]
mov rdi, rbx
lea eax, [r13 - 1]
sub rdi, r15
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x1400ff244
mov rcx, qword [0x140957d88]
add r13d, 0x800
movsxd r9, r13d
mov r8, r15
add r9, r9
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r15, rax
movsxd rax, edi
lea rbx, [r15 + rax*2]
test dx, dx
je 0x1400ff26c
mov edi, 0
test r12d, r12d
jne 0x1400ff190
cmp dx, 0xd
je 0x1400ff271
cmp dx, 0xa
je 0x1400ff277
jmp 0x1400ff190
lea rsi, [r14 + 8]
test r12d, r12d
jne 0x1400ff27b
cmp dx, 0xa
jne 0x1400ff2a6
sub rbx, 2
xor edi, edi
mov rcx, qword [rsp + 0x88]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
sub rax, r15
sar rax, 1
mov qword [rcx], rax
mov rax, r15
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
jmp 0x1400ff32b
cmp dx, 0xd
jne 0x1400ff27b
sub rbx, 2
lea rdx, [rsp + 0x30]
cmp qword [rsi], 0
je 0x1400ff2d1
mov r8d, 2
mov rcx, r14
call fcn.1400fede0
mov dword [rsp + 0x34], eax
xor edi, edi
jmp 0x1400ff2ea
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x1400ff27d
cmp qword [rsi], 0
je 0x1400ff302
add dword [r14 + 0x14], 2
jmp 0x1400ff27d
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1400ff27d
mov rax, rdi
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400ff350
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14d, 0x1000
mov rcx, qword [0x140957d88]
mov r8d, r14d
xor edx, edx
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400ff4ea
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x1400ff3b9
test rdi, rdi
je 0x1400ff447
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400ff6e0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x1400ff3d1
xor r8b, r8b
jmp 0x1400ff3d5
movzx r8d, byte [rbx]
cdqe
add rbx, rax
mov byte [rsp + 0x30], r8b
mov rdx, rbx
lea eax, [r14 - 5]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x1400ff421
mov rcx, qword [0x140957d88]
add r14d, 0x1000
movsxd r9, r14d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x1400ff447
test r15d, r15d
jne 0x1400ff3a7
cmp r8b, 0xd
je 0x1400ff450
cmp r8b, 0xa
jne 0x1400ff3a7
dec rbx
jmp 0x1400ff4d5
test r15d, r15d
jne 0x1400ff4d5
cmp r8b, 0xa
jne 0x1400ff45b
dec rbx
jmp 0x1400ff4d5
cmp r8b, 0xd
jne 0x1400ff4d5
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rsi + 8], 0
je 0x1400ff484
mov r8d, 1
mov rcx, rsi
call fcn.1400fede0
mov dword [rsp + 0x34], eax
jmp 0x1400ff4a1
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1400ff4d5
cmp qword [rsi + 8], 0
je 0x1400ff4b4
inc dword [rsi + 0x14]
jmp 0x1400ff4d5
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x1400ff510
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x1400ff60a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x1400ff56b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x1400ff5cc
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x1400ff5c4
sub edx, 1
je 0x1400ff5bb
cmp edx, 2
je 0x1400ff5b4
mov r8, rbx
mov rdx, r14
call fcn.1400956f0
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x1400ff59a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x1400ff59a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x1400ff59a
mov rcx, rsi
call fcn.1400fe530
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x1400ff5fb
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x1400ff5a0
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x1400ff595
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ff6e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x1400ff716
mov r8d, ebx
call fcn.1400fede0
mov dword [rsp + 0x70], eax
jmp 0x1400ff730
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x1400ff7f8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x1400ff756
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x1400ff772
mov ebp, 2
mov edi, ebp
jmp 0x1400ff799
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1400ff785
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x1400ff796
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x1400ff7ee
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x1400ff7b3
lea r8, [rdi - 1]
mov rcx, r14
call fcn.1400fede0
jmp 0x1400ff7d0
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x1400ff7d9
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x140105600
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov al, cl
or al, r10b
or al, r8b
or al, r9b
test al, 3
jne 0x14010564d
lea r11, [r8 + r9]
cmp r8, r11
jae 0x14010566a
sub r10, r8
lea r9, [r10 + rcx]
mov ecx, dword [r8]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [r9 + r8], edx
add r8, 4
cmp r8, r11
jb 0x140105622
ret
add r9, r10
jmp 0x140105665
mov al, byte [r8]
xor r10, 3
inc r8
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140105652
ret

Function at 0x14010566c
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov al, cl
or al, r10b
mov r11, r8
or al, r8b
or al, r9b
test al, 7
jne 0x1401056f3
add r9, r8
cmp r8, r9
jae 0x140105710
sub r10, r8
add r10, rcx
mov rax, qword [r11]
mov rdx, rax
shr rdx, 0x20
mov r8d, edx
mov ecx, edx
shl edx, 8
shr r8d, 8
shl ecx, 8
xor r8d, ecx
mov ecx, eax
and r8d, 0xff00ff
shl ecx, 8
xor r8d, edx
mov edx, eax
shr edx, 8
xor edx, ecx
shl eax, 8
and edx, 0xff00ff
rol r8d, 0x10
xor edx, eax
mov dword [rsp + 8], r8d
rol edx, 0x10
mov dword [rsp + 0xc], edx
mov rax, qword [rsp + 8]
mov qword [r10 + r11], rax
add r11, 8
cmp r11, r9
jb 0x140105693
ret
add r9, r10
jmp 0x14010570b
mov al, byte [r11]
xor r10, 7
inc r11
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x1401056f8
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
test rcx, rcx
jne 0x140105816
mov eax, r8d
jmp 0x140105880
lea rbx, [0x14023c390]
not r8d
cmp edx, 8
jb 0x140105859
mov r10d, edx
shr r10, 3
mov r11d, 8
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
sub r11, 1
jne 0x140105832
add edx, 0xfffffff8
sub r10, 1
jne 0x14010582c
test edx, edx
je 0x14010587a
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
add edx, 0xffffffff
jne 0x14010585d
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
ret
Function at 0x140105a40
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x68
mov qword [rax + 0x10], rsi
mov rsi, rcx
mov qword [rax + 0x18], r12
mov ecx, edx
mov qword [rax - 0x18], r13
mov r12d, r9d
mov qword [rax - 0x20], r14
xor r13d, r13d
mov qword [rax - 0x28], r15
mov ebx, r13d
mov r15d, edx
mov qword [rax - 0x30], r13
mov r14d, r8d
call fcn.140106530
mov rdi, rax
test rax, rax
je 0x140105bab
test rsi, rsi
je 0x140105bab
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140105ba3
mov rcx, qword [0x140957d88]
xor edx, edx
mov r8d, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140105b9a
mov ecx, r14d
call qword [rdi + 8]
mov rbx, rax
test rax, rax
je 0x140105b88
xor edx, edx
mov rcx, rax
call qword [rdi + SafeArrayGetElemsize]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.1401066a0
mov rax, qword [rsp + 0x48]
test rax, rax
jle 0x140105b40
xor r9d, r9d
lea r8, [rsp + 0x4c]
mov edx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x100000
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [rdi + SafeArrayPutElement]
cmp dword [rsp + 0x40], 0x100000
je 0x140105b40
mov rcx, rbx
call qword [rdi + 0x20]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.140106640
mov rcx, qword [0x140957d88]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x80]
mov edx, r12d
mov rcx, rbx
call fcn.1401068b0
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
test rbx, rbx
je 0x140105be0
mov rcx, rbx
call qword [rdi + 0x28]
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x1401066a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
bt r8d, 0x10
jae 0x1401068af
mov r11, rsp
push r12
push r14
sub rsp, 0xe8
mov rax, qword [0x140952e48]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, rdx
mov r14, rcx
test rcx, rcx
je 0x140106894
mov eax, dword [rcx]
mov qword [r11 + 0x18], rbx
cdq
mov qword [r11 - 0x18], rbp
and edx, 7
mov ebp, dword [rsp + 0x120]
add eax, edx
sar eax, 3
mov qword [r11 - 0x20], rsi
test r9, r9
mov qword [r11 - 0x28], rdi
lea rdi, [0x14021fff0]
mov qword [r11 - 0x30], r13
cmovne rdi, r9
mov qword [r11 - 0x38], r15
movsxd r15, dword [rcx + 4]
movsxd r13, eax
cmp ebp, 0x18
jne 0x14010673b
mov rcx, rdi
call fcn.1401ae190
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140106730
jmp 0x14010677a
cmp ebp, 0x19
jne 0x14010675f
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140106750
add rbx, rbx
jmp 0x14010677a
mov rcx, rdi
call fcn.1401adcf0
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140106771
mov rdx, rdi
cmp rbx, r15
jle 0x1401067cd
mov r8d, ebx
mov rcx, r14
call qword [r12 + SafeArrayPutElement]
mov rcx, r14
call qword [r12 + 0x20]
lea rdx, [r14 + 8]
mov r8, r13
lea rcx, [rsp + 0x20]
call fcn.1400956f0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, r13d
add rcx, r13
movsxd r8, eax
xor edx, edx
call fcn.140093cc0
mov edx, 1
mov rcx, r14
call qword [r12 + SafeArrayGetLBound]
jmp 0x1401067f1
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.1400956f0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, ebx
add rcx, rbx
movsxd r8, eax
xor edx, edx
call fcn.140093cc0
lea rcx, [r14 + 0x48]
mov r8, r15
lea rdx, [rsp + 0x20]
call fcn.1400956f0
mov r13, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x110]
test r15d, r15d
jle 0x140106848
xor r9d, r9d
lea rcx, [rsp + 0x20]
mov rax, r14
sub rax, rcx
nop word [rax + rax]
lea rdx, [rsp + 0x20]
add rdx, r9
inc r9
xor byte [rdx], 0x36
xor byte [rax + rdx + 0x48], 0x5c
cmp r9, r15
jl 0x140106830
mov r8d, r15d
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [r12 + SafeArrayPutElement]
mov r15, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xd8]
cmp ebp, 0x18
jne 0x140106877
mov rcx, rdi
call fcn.1401ae180
jmp 0x140106884
cmp ebp, 0x19
je 0x140106884
mov rcx, rdi
call fcn.1401adce0
mov rbp, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401ae280
add rsp, 0xe8
pop r14
pop r12
ret

Function at 0x140106e88
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140106efd
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov rdi, rax
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x140106efd
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140106ed5
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x140957d88]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1409d5560]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1409d5580], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret