joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039310
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140039550
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140111690], rax
jne 0x140039553
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1400fea30]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1400fea80]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1400fe218]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
mov eax, r12d
lea r15, [rsi + rax*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400394e8
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400394f5
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x1400394e1
lea rdx, [rsi + 0x48]
mov r9d, r12d
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r9*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x14003955d
mov edx, ecx
and edx, 0x1fc000
je 0x14003955d
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.140066090
mov ecx, dword [0x140120c8c]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14011d7f0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x150], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140080c40
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140039442
mov rcx, rdi
call fcn.140066e60
jmp 0x1400393ec
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.1400724b0
test rax, rax
je 0x140039556
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xfe0
add rax, rcx
add rax, 0x1000
movzx ecx, byte [rax + 0x1e]
and ecx, 0x3f
shl ecx, 5
sub rax, rcx
jmp 0x14003945c
int3
int3
xor ebx, ebx
jmp 0x140039486
movaps xmm0, xmmword [0x1400f3050]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1400d1100
mov rcx, rsi
call fcn.140018990
mov rcx, r14
call fcn.1400d66a0
int3
Function at 0x14003cd00
Capabilities:
Create thread

Disassembly:
jmp 0x14003cd00
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14007f7b8
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x140111188]
jne 0x14003cd6d
mov rcx, r15
call fcn.14005fb00
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14003d190]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14003ce65
test r14, r14
je 0x14003cdda
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140080c40
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003cdb4
mov eax, dword [0x140128e48]
mov ecx, dword [0x14011d7f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003ceb4
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14002ee90
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x14003ce29
and r8d, 0x7f
jmp 0x14003ce33
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.14004b950
mov rcx, qword [0x140128e40]
mov rdx, r14
call fcn.140038e90
cmp byte [rsp + 0x4f], 0
jns 0x14003ce8a
mov rcx, qword [rsp + 0x38]
call fcn.14007f7f4
jmp 0x14003ce8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14003ce82
mov ebp, eax
cmp eax, 0x5af
je 0x14003ce82
cmp ebp, 0xe
jne 0x14003cde5
mov rcx, rbx
call fcn.1400d21b0
test rsi, rsi
je 0x14003cdb4
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140111188]
jne 0x14003cea7
call fcn.14005fc40
mov rcx, rsi
call fcn.14007f7f4
jmp 0x14003cdb4
lea rcx, [0x140128e48]
call fcn.14007f908
cmp dword [0x140128e48], 0xffffffff
jne 0x14003ce0a
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140038e60
mov qword [0x140128e40], rax
lea rcx, [0x140128e48]
call fcn.14007f9a0
jmp 0x14003ce0a
Function at 0x140040700
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140129150], 0
jne 0x14004073d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140040730
mov dword [rdi], eax
mov dword [0x140129158], eax
mov qword [0x140129150], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14004a630
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14004a751
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14004a78d
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14004a795
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14004a787
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14004a799
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x14004a780
xor r10d, r10d
jmp 0x14004a68f
xor eax, eax
jmp 0x14004a724
cmp byte [r8 + 0x1a], 0
je 0x14004a784
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14004a784
cmp ecx, 0x666f736f
jne 0x14004a784
cmp edx, 0x76482074
jne 0x14004a784
mov byte [r8 + 0x19], 1
jmp 0x14004a784
Function at 0x14004a840
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14011d730]
cmp ecx, 0xffffffff
je 0x14004a862
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004a867
call fcn.14004a990
mov eax, dword [0x14012e4f0]
mov ecx, dword [0x14011d7f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004a920
mov rbx, qword [0x14012e4e8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004a969
mov rcx, qword [0x14012ccd0]
inc rcx
xor edx, edx
lea rax, [0x14012cce0]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
mov r10d, r9d
cmp dword [rax + r10*8], 0
jne 0x14004a976
lea rcx, [rax + r10*8]
mov dword [rcx], 1
mov ecx, r9d
mov qword [rax + rcx*8 + 8], rdi
mov edx, dword [0x14012e4e0]
inc edx
mov dword [0x14012e4e0], edx
mov dword [rax + rcx*8 + 0x14], edx
mov qword [0x14012ccd0], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14004a966
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14012e4f0]
call fcn.14007f908
cmp dword [0x14012e4f0], 0xffffffff
jne 0x14004a88c
mov ecx, 8
call fcn.14007f7b8
mov rbx, rax
mov rcx, rax
call fcn.140054fa0
mov qword [0x14012e4e8], rbx
lea rcx, [0x14012e4f0]
call fcn.14007f9a0
jmp 0x14004a88c
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14004a8a4
inc rdx
cmp rdx, 0x100
jne 0x14004a8b7
jmp 0x14004a906

Function at 0x14004a990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140080be0
sub rsp, rax
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14011d730]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14004aa44
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004aa82
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140082d60
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007f828
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400826b0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140080c40
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14004abe0
test al, al
je 0x14004aa85
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14004aa88
mov eax, 0xffffffff
lock cmpxchg dword [0x14011d730], ecx
je 0x14004a9c8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14011d730]
mov dword [rsp + 0x2c], ecx
jmp 0x14004a9c8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14004abe0
test al, al
je 0x14004aaad
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004aaad
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004aa5b
int3
Function at 0x14004aac0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x14011d730]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x14004ab09
and rax, 0xfffffffffffffffc
je 0x14004ab3c
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14004ab3c
mov rsi, qword [rax + rcx]
jmp 0x14004ab3e
lea rdx, [0x1400ff099]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.14005cba0
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.1400d0be0
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140080c40
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x14004ab60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14011d730]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004ab9e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14004ab97
call fcn.14004a990
jmp 0x14004ab7e

Function at 0x14004abe0
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 0x14004abf5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140054cf0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140054d8a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140054d74
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140054d51
mov qword [rsi], rdi
call fcn.14005cbc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140054d8e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005cbc0
mov rcx, qword [rsi]
call fcn.140054c00
mov qword [rsi], 0
jmp 0x140054d3f
mov byte [rsi + 8], 0
int3

Function at 0x140054f30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140054f78
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140054f81
lea rax, [rsi + 1]
cmp rax, 2
jb case.default.0x140054f71
mov qword [rdi], rsi
call fcn.14005cbc0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005cbc0
mov rcx, qword [rdi]
call fcn.140054c00
mov qword [rdi], 0
jmp 0x140054f56
invalid
nop
rol byte [rcx - 0x58], 1
cmp esi, dword [rcx - 1]
jl 0x14020976b
cld
jg 0x1402097bc
cmp dl, byte [rax + 0x573252d2]
invalid
xor dl, byte [rdi - 1]
mov esp, 0x8f153fce
loopne 0x140209782
invalid
jne 0x140209725
clc
invalid
nop
or edx, esi
invalid
cld
retf 0x314f
Function at 0x140074450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007447b
xor ecx, ecx
lea r9, [0x1400ff7a0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140074460
ret
Function at 0x14007ff04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007ff4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007ff4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007ff4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007ff4e
cmp dword [rcx + 0x84], 0xe
jbe 0x14007ff4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007ff50
xor al, al
add rsp, 0x28
ret

Function at 0x140080470
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400804e8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400804e8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400804e8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400804dc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400804fa
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400804ca
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400804ea

Function at 0x14008f098
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14008f0cf
call fcn.140092250
mov dword [rax], 0x16
call fcn.1400930d8
xor eax, eax
jmp 0x14008f15d
mov rdx, r9
mov rcx, r8
call fcn.14008f180
mov rbx, rax
test rax, rax
je 0x14008f15a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14008f1e4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14008f147
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140092290
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008f12e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008f13d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140060710
jmp 0x14008f15a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008f157
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14008f6e4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a3ad4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a3ad4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008f834
cmp rax, 0xffffffffffffffff
je 0x14008f834
xor edi, edi
test rbp, rbp
jle 0x14008f7df
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400607b0
mov rbx, rax
test rax, rax
jne 0x14008f76c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008f7d5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400944e0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140097548
cmp eax, 0xffffffff
je 0x14008f7b5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008f77c
mov edx, r15d
mov ecx, r14d
call fcn.1400944e0
jmp 0x14008f7d5
cmp byte [rsi + 0x38], dil
je 0x14008f7cc
cmp dword [rsi + 0x34], 5
jne 0x14008f7cc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14008f7d5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140060710
jmp 0x14008f848
jns 0x14008f848
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a3ad4
cmp rax, 0xffffffffffffffff
jne 0x14008f800
cmp byte [rsi + 0x30], dil
je 0x14008f848
mov edi, dword [rsi + 0x2c]
jmp 0x14008f848
mov ecx, r14d
call fcn.140092698
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008f848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14008f848
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008f841
mov eax, dword [rsi + 0x2c]
jmp 0x14008f846
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a3ad4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400940c4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14011e6e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14009411b
cmp word [rdx], r13w
jne 0x14009411b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140094120
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140094245
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140094266
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140094159
mov rdx, r9
mov word [rbx], cx
jmp 0x140094180
cmp r9, r8
jae 0x140094190
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14009413a
jmp 0x140094245
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009423a
cmp dword [rsp + 0x80], esi
je 0x14009423a
lea r8, [0x14011e6e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140094212
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400941e2
mov word [rbx], r13w
jmp 0x140094242
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400941ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140094242
cmp word [rsp + 0x70], r13w
jne 0x14009421f
cmp rbx, r14
je 0x1400941dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a3ad4
cmp word [rsp + 0x70], r13w
je 0x140094245
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14011e6e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009423f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140094245