joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017dc4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x20], 0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
call fcn.140010948
and dword [rsi], 0
mov qword [rsp + 0x28], rax
call fcn.140010948
lea r8, [rsp + 0x20]
mov qword [rsi + 8], rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001747c
cmp dword [rsp + 0x60], 3
jne 0x140017e14
xor al, al
jmp 0x140017e7a
cmp qword [rdi + 0x10], 0
je 0x140017e61
cmp qword [rbx + 0x18], 8
jb 0x140017e25
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140017e2f
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x140017e78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140010948
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rsi], xmm0
jmp 0x140017e10
cmp qword [rbx + 0x18], 8
jb 0x140017e6b
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x140017e3e
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400184bc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rdx], 0
mov rbx, rdx
mov rdi, rcx
call fcn.140010948
mov qword [rbx + 8], rax
cmp qword [rdi + 0x18], 8
jb 0x1400184ef
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140018511
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
ja 0x14001852f
xor al, al
jmp 0x14001858d
test sil, 1
je 0x14001854d
mov edx, esi
mov rcx, rdi
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14001854d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140018539
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x10], eax
call fcn.140010948
mov qword [rbp - 8], rax
movups xmm0, xmmword [rbp - 0x10]
movdqu xmmword [rbx], xmm0
cmp dword [rbx], 0
jne 0x14001858a
mov rcx, rdi
test sil, 0x10
je 0x140018563
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140018569
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140018587
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x10], eax
call fcn.140010948
mov qword [rbp - 8], rax
movups xmm0, xmmword [rbp - 0x10]
movdqu xmmword [rbx], xmm0
cmp dword [rbx], 0
sete al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbp
ret

Function at 0x14001998c
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp qword [rcx + 0x10], rbx
jne 0x14001999e
xor al, al
jmp 0x1400199b3
cmp qword [rcx + 0x18], 8
jb 0x1400199a8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x14001ac90
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
and dword [r8], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call fcn.140010948
mov qword [rdi + 8], rax
test rsi, rsi
jns 0x14001acda
mov dword [rsp + 0x40], 0xdf
call fcn.140010948
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
jmp 0x14001ad69
cmp qword [rbx + 0x18], 8
jb 0x14001ace4
mov rbx, qword [rbx]
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001ad20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x14001acc2
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ad43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001ad60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
call fcn.140010948
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400258e0
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov r9, r8
mov r8, rdx
mov edx, ecx
lea rcx, [rsp + 0x20]
call fcn.140026d50
nop
lea rax, [0x140187f70]
or edi, 0xffffffff
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x1400259c9
call fcn.140027890
lea rcx, [rsp + 0x20]
test al, al
jne 0x140025954
mov eax, 0xa
mov word [rsp + 0x68], ax
movzx edx, ax
call fcn.14002f800
lea rcx, [rsp + 0x20]
call fcn.140036ca0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400259c4
lea rdx, [rsp + 0x28]
call fcn.140022db0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov ecx, 2
call fcn.140125cb8
mov rcx, rax
mov r8, rbx
lea rdx, [0x14015721c]
call fcn.140028ee0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400259a4
cmp eax, 0xffffffff
je 0x1400259b2
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400259b2
mov rcx, qword [rsp + 0x28]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140039ba0
mov ecx, 2
call fcn.140125cb8
mov rcx, rax
call fcn.14012615c
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400259e2
cmp eax, 0xffffffff
je 0x1400259f0
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400259f0
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140028f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
movzx ebx, cl
call fcn.140029840
mov ecx, dword [0x141973010]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x1400290b1
test bl, bl
je 0x1400290b1
lea ecx, [rax + 0x78]
call fcn.1401202e4
mov qword [rsp + 0x78], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.14002a4f0
mov rsi, rax
mov qword [rsp + 0x88], rax
mov rdx, rax
mov ecx, dword [0x141973010]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.1401202e4
mov qword [rsp + 0x78], rax
mov rdx, rsi
mov rcx, rax
call fcn.14002a3d0
nop
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x38], rax
mov rcx, rsi
call fcn.14002aa20
mov byte [rsi + 0x72], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x40], rax
mov rax, qword [0x141978960]
test rax, rax
jne 0x14002905c
mov rax, qword [rsi + 0x38]
mov qword [0x141978960], rax
jmp 0x1400290b1
mov qword [rsp + 0x78], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsp + 0x78]
call fcn.140029900
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140029840
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
cmp dword [0x141973010], 0xffffffff
jne 0x1400298ee
mov ecx, dword [0x14197c020]
mov rax, qword gs:[0x58]
mov r8d, 8
mov rdx, qword [rax + rcx*8]
lea rbx, [0x1419788e0]
mov eax, dword [r8 + rdx]
cmp dword [0x1419788e8], eax
jle 0x1400298c0
lea rcx, [0x1419788e8]
call fcn.140120b44
cmp dword [0x1419788e8], 0xffffffff
jne 0x1400298c0
xor edx, edx
mov rcx, rbx
call fcn.1400798c0
lea rcx, [0x140150a70]
call fcn.1401205e4
nop
lea rcx, [0x1419788e8]
call fcn.140120ae4
mov rcx, rbx
call fcn.140079cf0
or rbx, 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x141973010], eax
test bl, 1
je 0x1400298ee
and rbx, 0xfffffffffffffffe
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14007a1a0
add rsp, 0x30
pop rbx
ret
Function at 0x140029900
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
lea rbx, [0x1419788d8]
mov rcx, rbx
call fcn.140079cf0
or rbx, 1
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1419788c0]
jne 0x140029953
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140029a93
mov rax, qword [0x141973018]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x140029976
cmp r8d, ecx
jb 0x140029979
jmp 0x14002999e
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x141973018]
call fcn.140029c50
mov rax, qword [0x141973018]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rdi
mov rax, qword [0x141973018]
inc dword [rax + 4]
mov rax, qword [0x141973020]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x1400299d7
cmp r8d, ecx
jb 0x1400299da
jmp 0x1400299ff
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x141973020]
call fcn.140029ac0
mov rax, qword [0x141973020]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rsi
mov rax, qword [0x141973020]
inc dword [rax + 4]
cmp dword [0x1419788c0], 0
jne 0x140029a85
cmp qword [0x1419788c8], 0
jne 0x140029a52
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1419788c8], rax
lea rdx, [0x1419788c8]
lea rcx, [0x141973018]
call fcn.1400292c0
lea rax, [0x1419788c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400293c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140029a93
mov rcx, qword [0x1419788c8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test bl, 1
je 0x140029aa4
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.14007a1a0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140047920
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rsi, rcx
mov rdi, qword [rcx + 8]
lea rbx, [rdi + 0x70]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14002a1ff
mov rcx, rbx
call fcn.140079cf0
or rbx, 1
mov qword [rsp + 0x40], rbx
cmp byte [rdi + 0x7c], 0
je 0x14002a231
cmp byte [rdi + 0xa0], 0
jne 0x14002a217
mov byte [rdi + 0xa1], 1
jmp 0x14002a231
xor edx, edx
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, rsi
call fcn.1400290e0
nop
test bl, 1
je 0x14002a242
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.14007a1a0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor edx, edx
jmp fcn.14002ab80
test edx, edx
jne 0x140047989
cmp r8d, 5
ja case.default.0x140047943
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x479c0]
add rdx, r8
jmp rdx
xor r9d, r9d
lea rdx, [0x140189830]
xor r8d, r8d
jmp fcn.14001e280
xor r9d, r9d
lea rdx, [0x140189830]
lea r8d, [r9 + 1]
jmp fcn.14001e280
mov rax, qword [r9 + 8]
mov edx, dword [rax]
jmp fcn.140029ea0
mov edx, 7
jmp fcn.140029ea0
jmp 0x14002a1c0
jmp 0x14002ac50
cmp edx, 0xa
jne case.default.0x140047943
mov rax, qword [r9 + 8]
mov rcx, qword [r9]
mov rdx, qword [rax]
lea rax, [fcn.140047ae0]
cmp rdx, rax
jne 0x1400479ab
mov dword [rcx], 0
ret
lea rax, [fcn.1400479e0]
cmp rdx, rax
jne case.default.0x140047943
mov dword [rcx], 1
ret
Function at 0x14005d9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rbp
mov rbx, rdx
mov rdi, rcx
mov r8, qword [rcx]
mov esi, dword [r8 + 8]
btr esi, 0x1f
mov ebp, dword [r8 + 4]
inc ebp
cmp dword [r8], 1
ja 0x14005da54
cmp ebp, esi
ja 0x14005da54
movsxd rax, dword [r8 + 4]
lea rcx, [rax + rax*2]
mov rax, qword [r8 + 0x10]
lea rcx, [rax + rcx*8]
add rcx, r8
mov qword [r11 + 8], rcx
mov qword [r11 + 0x18], rcx
je 0x14005da4f
call fcn.14005b330
nop
jmp 0x14005db4b
lea rcx, [rsp + 0x28]
call fcn.14005af90
nop
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.14005af90
mov r14d, dword [rbx + 0x10]
mov dword [rsp + 0x38], r14d
movzx ebx, byte [rbx + 0x14]
mov byte [rsp + 0x3c], bl
cmp esi, ebp
sbb r9d, r9d
and r9d, 8
mov rax, qword [rdi]
cmp ebp, esi
jbe 0x14005da97
mov r8d, dword [rax + 4]
inc r8d
jmp 0x14005daa0
mov r8d, dword [rax + 8]
btr r8d, 0x1f
mov edx, dword [rax + 4]
mov rcx, rdi
call fcn.140064f10
mov rdx, qword [rdi]
movsxd rax, dword [rdx + 4]
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x10]
lea r8, [rax + rcx*8]
add r8, rdx
je 0x14005daef
mov rax, qword [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140187f70]
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x30]
mov qword [r8 + 8], rax
mov qword [rsp + 0x30], rcx
mov dword [r8 + 0x10], r14d
mov byte [r8 + 0x14], bl
jmp 0x14005daf4
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14005db11
cmp eax, ebx
je 0x14005db1f
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14005db1f
mov rcx, qword [rsp + 0x30]
mov edx, 4
lea r8d, [rdx + 4]
call fcn.140039ba0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x14005db38
cmp ecx, 0xffffffff
je 0x14005db4b
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14005db4b
mov edx, 4
lea r8d, [rdx + 4]
mov rcx, qword [rsp + 0x28]
call fcn.140039ba0
mov rax, qword [rdi]
inc dword [rax + 4]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14008a5b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0x9c], 1
je 0x14008a5e2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140096d00
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rax, qword [rcx + 0x70]
test rax, rax
jne 0x140096e34
cmp dword [rcx + 0x98], 0xffffffff
jne 0x140096e2f
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x140096e9c
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401d4a40]
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0xa8]
cmp rdi, 0x2000000
cmovge rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140096dc5
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x140096e27
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x140096e27
jmp 0x140096d70
test rbx, rbx
jne 0x140096e27
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400431e0
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140088bf0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140096e10
cmp eax, 0xffffffff
je 0x140096e9c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140096e9c
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
or rax, 0xffffffffffffffff
jmp 0x140096eb0
mov rax, rbx
jmp 0x140096eb0
test rax, rax
je 0x140096ea2
call fcn.140096a80
test al, al
je 0x140096ea2
mov rcx, qword [rsi + 0x70]
call fcn.14012bd28
test eax, eax
je 0x140096ea2
call fcn.140125b78
mov edx, dword [rax]
lea rcx, [rsp + 0x38]
call fcn.1400431e0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140088bf0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140096e8e
cmp eax, 0xffffffff
je 0x140096e9c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140096e9c
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
or rax, 0xffffffffffffffff
jmp 0x140096eb0
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14008a600
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008a600
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbp, r8
mov r12, rdx
mov rsi, rcx
mov r13, qword [rcx + 0x18]
test r8, r8
js 0x14008a76f
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x14008a6d8
mov r15b, 1
nop dword [rax]
nop word [rax + rax]
mov r8, rbp
sub r8, rbx
lea rcx, [rbx + r12]
mov r9, qword [rsi + 0x70]
mov edx, 1
call fcn.14012c0b8
mov rdi, rax
mov rcx, qword [rsi + 0x70]
call fcn.14012bd28
test eax, eax
setne r14b
test r15b, r15b
je 0x14008a6a6
test r14b, r14b
je 0x14008a6a6
test rdi, rdi
jne 0x14008a6a6
mov rcx, qword [rsi + 0x70]
call fcn.140128e90
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsi + 0x70]
call fcn.1401266e0
xor r15b, r15b
jmp 0x14008a6a9
add rbx, rdi
test r14b, r14b
jne 0x14008a7cb
test rdi, rdi
jne 0x14008a6c6
call fcn.140125b78
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14008a6ce
xor ecx, ecx
cmp rbx, rbp
setl cl
test ecx, ecx
jne 0x14008a650
jmp 0x14008a720
cmp dword [rcx + 0x98], 0xffffffff
je 0x14008a729
mov rax, rbp
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + r12]
mov ecx, dword [rsi + 0x98]
call fcn.14012c930
movsxd rcx, eax
test eax, eax
jle 0x14008a712
add rbx, rcx
cmp rbx, rbp
jl 0x14008a6e1
cmp ecx, 0xffffffff
setne al
test al, al
jne 0x14008a7cb
test rbx, rbx
jne 0x14008a7cb
or rbx, 0xffffffffffffffff
call fcn.140125b78
mov edx, dword [rax]
lea rcx, [rsp + 0x70]
call fcn.1400431e0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.140088bf0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x14008a7bc
cmp eax, ebx
je 0x14008a7cb
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x14008a7cb
mov rcx, qword [rsp + 0x70]
jmp 0x14008a7bc
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.1400431e0
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.140088bf0
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14008a7bc
cmp eax, ebx
je 0x14008a7cb
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008a7cb
mov rcx, qword [rsp + 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140039ba0
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008ad50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0x9c], 2
je 0x14008ad82
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400970b0
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x70], 0
jne 0x1400971d6
cmp dword [rcx + 0x98], 0xffffffff
jne 0x1400971d6
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x1400971cb
mov rdi, r8
mov qword [rax + 0x20], r8
xor r12d, r12d
mov ebx, r12d
mov qword [rax - 0x40], 0x2000000
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x98]
lea rcx, [rsp + 0x38]
cmp rdi, 0x2000000
cmovge rax, rcx
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009717a
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1400971d1
add rbx, rax
sub rdi, rax
mov qword [rsp + 0x98], rdi
cmp rbx, rbp
jge 0x1400971d1
jmp 0x140097120
test rbx, rbx
jne 0x1400971d1
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400431e0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.140088bf0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400971bd
cmp eax, 0xffffffff
je 0x1400971cb
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400971cb
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
or rax, 0xffffffffffffffff
jmp 0x1400971db
mov rax, rbx
jmp 0x1400971db
call fcn.14008ada0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14008ada0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbp
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov r14, qword [rcx + 0x18]
test r8, r8
js 0x14008aed8
xor ebx, ebx
test r8, r8
je 0x14008aecf
cmp qword [rcx + 0x70], rbx
je 0x14008ae2d
nop dword [rax]
nop word [rax + rax]
mov r8, rdi
sub r8, rbx
lea rcx, [rbx + rbp]
mov r9, qword [rsi + 0x70]
mov edx, 1
call fcn.140126940
add rbx, rax
test rax, rax
jne 0x14008ae1f
call fcn.140125b78
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14008ae27
xor ecx, ecx
cmp rbx, rdi
setl cl
test ecx, ecx
jne 0x14008adf0
jmp 0x14008ae70
cmp dword [rcx + 0x98], 0xffffffff
je 0x14008ae75
nop word [rax + rax]
mov rax, rdi
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + rbp]
mov ecx, dword [rsi + 0x98]
call fcn.14012d704
test eax, eax
jle 0x14008ae70
cdqe
add rbx, rax
cmp rbx, rdi
jl 0x14008ae40
test rbx, rbx
jne 0x14008aecf
or rbx, 0xffffffffffffffff
call fcn.140125b78
mov edx, dword [rax]
lea rcx, [rsp + 0x50]
call fcn.1400431e0
mov rdi, rax
call fcn.140125b78
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rdi
mov rcx, r14
call fcn.140088bf0
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14008af1c
cmp eax, ebx
je 0x14008af2b
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008af2b
mov rcx, qword [rsp + 0x50]
jmp 0x14008af1c
and dword [rsi + 0x40], 0xffdfffff
jmp 0x14008af2b
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.1400431e0
nop
mov r8, rax
mov edx, 2
mov rcx, r14
call fcn.140088bf0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14008af1c
cmp eax, ebx
je 0x14008af2b
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008af2b
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140039ba0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret