joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060e40
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140060ebb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140060ebb
cmp dword [rsp + 0x38], 4
jne 0x140060ebb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14031e660
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140060ee0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14031e1c0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1403224b0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140061050
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140060f9c
mov edi, 0x3f4
cmp eax, 1
jne 0x140061050
lea rcx, [rsp + 0x840]
call fcn.1403326e0
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x140061005
lea r9, [rsp + 0x840]
jmp 0x140060ff8
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1403224b0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140061050
lea rcx, [rsp + 0x40]
call fcn.1403326e0
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x140061025
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.14003d850
jmp 0x14006104e
mov rbx, rsi
cmp rax, 8
jb 0x140061011
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x140061040
mov rbx, rsi
cmp rax, 8
jb 0x140061031
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140320ff0
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14031e660
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140061640
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x1400616d4
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea rbx, str....._base_rand_util_win.cc
lea r14, str.success
lea r15, [rsp + 0x20]
nop word cs:[rax + rax]
cmp rsi, r13
mov r12d, 0xffffffff
cmovb r12, rsi
mov rcx, rdi
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400616b6
add rdi, r12
sub rsi, r12
jne 0x140061690
jmp 0x1400616d4
mov rcx, r15
mov rdx, rbx
mov r8d, 0x52
mov r9, r14
call fcn.14003ae20
mov rcx, r15
call fcn.14003afc0
jmp 0x1400616ac
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14031e660
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140064722
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov dword [r15], 0xaaaaaaaa
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400647cd
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x28]
mov qword [r12], rax
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400647cd
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
jmp 0x1400647cf
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14031e660
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140067412
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, 0x28
test r8, r8
je 0x140067534
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140067534
add rax, rcx
cmp word [rax + 0x14], 0x78
jb 0x140067534
add rax, 0x88
je 0x140067534
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140482108]
test rax, rax
je 0x140067534
cmp rdi, 0xffff
jbe 0x14006756d
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140482108]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x140067534
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov r12, r15
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140482108]
mov cl, byte [rdi]
test cl, cl
je 0x140067505
mov rdx, r13
cmp cl, byte [rax]
jne 0x140067507
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400674f5
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140067547
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, r12
xor eax, eax
cmp rbp, r15
jne 0x1400674bf
jmp 0x140067536
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140482108]
sub r12, qword [rsp + 0x20]
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov word [rsi], di
mov al, 1
jmp 0x140067536
Function at 0x14006763a
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140067671
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140067671
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140067671
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret
Function at 0x1400695c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400695d5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14006f488
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret

Function at 0x1400734e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140756608]
mov ecx, dword [0x140756750]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x480]
jg 0x140073515
lea rcx, [0x1407565f8]
add rsp, 0x28
jmp fcn.140056730
lea rcx, [0x140756608]
call fcn.14031e094
cmp dword [0x140756608], 0xffffffff
jne 0x140073505
xorps xmm0, xmm0
movups xmmword [0x1407565f8], xmm0
lea rcx, [0x1407565f8]
xor edx, edx
call fcn.1400567c0
lea rcx, [0x140756608]
call fcn.14031e034
jmp 0x140073505
Function at 0x140074960
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rdx]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], recv
mov byte [rsp + 0x20], 0
mov rcx, rsi
call fcn.14033d970
mov rbx, rax
cmp rax, 0xf
jbe 0x1400749c5
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r9, rsi
call fcn.14003ab60
jmp 0x1400749df
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r8, rbx
call fcn.140320ff0
mov byte [rsp + rbx + 0x20], 0
movabs rdx, 0xcbf29ce484222325
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
cmp r15, 0x10
lea r14, [rsp + 0x20]
cmovae r14, rsi
test rbx, rbx
je 0x140074a24
movabs rax, 0x100000001b3
mov ecx, ebx
and ecx, 3
cmp rbx, 4
jae 0x140074a29
xor r8d, r8d
jmp 0x140074a7c
mov r9, rdx
jmp 0x140074aa7
mov r9, rbx
and r9, 0xfffffffffffffffc
xor r8d, r8d
nop word cs:[rax + rax]
movzx r10d, byte [r14 + r8]
xor r10, rdx
imul r10, rax
movzx edx, byte [r14 + r8 + 1]
xor rdx, r10
imul rdx, rax
movzx r10d, byte [r14 + r8 + 2]
xor r10, rdx
imul r10, rax
movzx edx, byte [r14 + r8 + 3]
xor rdx, r10
imul rdx, rax
add r8, 4
cmp r9, r8
jne 0x140074a40
mov r9, rdx
test rcx, rcx
je 0x140074aa7
add r8, r14
xor r10d, r10d
nop word [rax + rax]
movzx r9d, byte [r8 + r10]
xor r9, rdx
imul r9, rax
inc r10
mov rdx, r9
cmp rcx, r10
jne 0x140074a90
and r9, qword [rdi + 0x30]
mov rax, qword [rdi + 0x18]
mov rcx, r9
shl rcx, 4
mov r12, qword [rax + rcx + 8]
cmp r12, qword [rdi + 8]
je 0x140074b07
add r9, r9
mov rdi, qword [rax + r9*8]
cmp rbx, qword [r12 + 0x20]
jne 0x140074af4
nop
cmp qword [r12 + 0x28], 0x10
jb 0x140074ae0
mov rdx, qword [r12 + 0x10]
jmp 0x140074ae5
lea rdx, [r12 + 0x10]
mov rcx, r14
mov r8, rbx
call fcn.1403229e0
test eax, eax
je 0x140074b0a
cmp r12, rdi
je 0x140074b07
mov r12, qword [r12 + 8]
cmp rbx, qword [r12 + 0x20]
je 0x140074ad0
jmp 0x140074af4
xor r12d, r12d
cmp r15, 0x10
jb 0x140074b40
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x140074b38
mov rax, qword [rsi - 8]
add rsi, 0xfffffffffffffff8
sub rsi, rax
cmp rsi, 0x20
jae 0x140074b63
add r15, 0x28
mov rdx, r15
mov rsi, rax
mov rcx, rsi
call fcn.14031dc44
test r12, r12
setne bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14031e660
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14032c23c
int3
Function at 0x14007be36
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov r10, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14007bece
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14007ed60
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
mov rsi, rcx
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [0x1404c2310]
movaps xmmword [rsp + 0x2c0], xmm0
movaps xmmword [rsp + 0x2b0], xmm0
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
lea rdx, [0x1404c58f2]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9d, 0x3c3
call fcn.140046810
lea rcx, [rsp + 0x280]
mov rdx, rdi
xor r8d, r8d
call fcn.1400559e0
lea rbx, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1403224b0
mov word [rsp + 0x70], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x14007ee7f
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1403326e0
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140051f40
lea r14, [rsp + 0x50]
mov rcx, rbx
mov rdx, r14
call fcn.140052de0
mov rcx, rsi
mov rdx, r14
call fcn.140052090
mov rcx, r14
call fcn.140052020
mov rcx, rbx
call fcn.140052020
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x280]
call fcn.1400559f0
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14031e660
mov eax, ebx
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14007eec0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1404c2310]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x1404c5907]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3d3
call fcn.140046810
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400559e0
cmp qword [rsi + 0x18], 8
jb 0x14007ef52
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.1400559f0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14031e660
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400807d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov eax, ecx
test r8, r8
je 0x14008084c
cmp r8, 1
jne 0x1400807e2
xor ecx, ecx
jmp 0x14008082e
mov r9, r8
and r9, 0xfffffffffffffffe
xor ecx, ecx
lea r10, [0x1404c5e90]
nop word cs:[rax + rax]
movzx r11d, al
movzx esi, byte [rdx + rcx]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
movzx r11d, al
movzx esi, byte [rdx + rcx + 1]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
add rcx, 2
cmp r9, rcx
jne 0x140080800
test r8b, 1
je 0x14008084c
movzx r8d, al
movzx ecx, byte [rdx + rcx]
xor ecx, r8d
lea rdx, [0x1404c5e90]
shr eax, 8
xor eax, dword [rdx + rcx*4]
pop rsi
ret

Function at 0x140080a50
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x140080ba7
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140080aad
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140080aad
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x140080bea
cmp qword [rdi + 0x80], 0
je 0x140080bab
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140080ae7
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140080bb2
movaps xmm0, xmmword [0x1404c2310]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x5f], sil
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
lea r10, [rsp + 0x48]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r8
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea rbx, [rsp + 0x5f]
mov r8, rbx
call qword [0x140482108]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x140080bca
mov r15, qword [rsp + 0x48]
sub r15, r14
je 0x140080b97
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call fcn.1403355c4
cmp r15, rax
jne 0x140080be8
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rbx
mov eax, 0xffffffff
jmp 0x140080be3
xor esi, esi
jmp 0x140080bea
mov esi, 0xffffffff
jmp 0x140080bea
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.14033ccfc
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x140080bea
cmp eax, 3
jne 0x140080be8
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call fcn.14033ccfc
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14031e660
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140081070
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14008110d
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140081114
mov r15, rsi
jmp 0x1400810cb
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.140320ff0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x140081105
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400810e3
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x1400810a0
mov rax, qword [rbx]
mov rax, qword [rax + 0x38]
mov rcx, rbx
call qword [0x140482108]
cmp eax, 0xffffffff
je 0x140081105
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x1400810cb
sub rsi, r15
jmp 0x14008120a
xor esi, esi
jmp 0x14008120a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140081167
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140081167
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140320ff0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140081178
jmp 0x140081207
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x140081207
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x1400811b0
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop word cs:[rax + rax]
cmp r14, 0x1000
jb 0x1400811e3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1403352ac
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x1400811b0
jmp 0x140081207
test r14, r14
je 0x140081204
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1403352ac
sub r14, rax
jmp 0x140081207
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140081220
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1400812c0
mov r14, rsi
test rsi, rsi
jle 0x140081334
mov r14, rsi
jmp 0x14008127f
cmp r14, r15
cmovb r15, r14
mov rdx, rdi
mov r8, r15
call fcn.140320ff0
add rdi, r15
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jle 0x140081334
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140081297
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jg 0x140081250
movzx edx, byte [rdi]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [0x140482108]
cmp eax, 0xffffffff
je 0x140081334
inc rdi
dec r14
test r14, r14
jg 0x14008127f
jmp 0x140081334
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008130d
test rsi, rsi
jle 0x14008130d
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x14008130d
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call fcn.140320ff0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x140081315
jmp 0x140081334
mov r14, rsi
test r14, r14
jle 0x140081334
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x140081334
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1403355c4
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140081730
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14008180f
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14008180f
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x140482108]
cmp eax, 0xffffffff
je 0x14008180d
movaps xmm0, xmmword [0x1404c2310]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [0x140482108]
cmp eax, 3
je 0x140081826
cmp eax, 1
je 0x1400817dd
test eax, eax
jne 0x14008180d
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140081803
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call fcn.1403355c4
cmp rbx, rax
jne 0x14008180d
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14008180f
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14031e660
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14008180f