joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fee10
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 0x1400fefeb
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x1400fee77
test rsi, rsi
je 0x1400fef40
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1400fee9b
mov r8d, 1
mov rcx, r14
call fcn.1400fecc0
mov dword [rsp + 0x34], eax
jmp 0x1400feebc
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 0x1400fef44
test r8b, r8b
je 0x1400feed8
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 0x1400fef1a
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 0x1400fef44
test r12d, r12d
jne 0x1400fee65
cmp r8b, 0xd
je 0x1400fef4d
cmp r8b, 0xa
jne 0x1400fee65
dec rbx
jmp 0x1400fefd1
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x1400fefd1
cmp r8b, 0xa
jne 0x1400fef58
dec rbx
jmp 0x1400fefd1
cmp r8b, 0xd
jne 0x1400fefd1
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x1400fef80
mov r8d, 1
mov rcx, r14
call fcn.1400fecc0
mov dword [rsp + 0x34], eax
jmp 0x1400fef9d
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 0x1400fefd1
cmp qword [rdi], 0
je 0x1400fefb0
inc dword [r14 + 0x14]
jmp 0x1400fefd1
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 0x1400ff010
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 0x1400ff208
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 0x1400ff082
test rbp, rbp
je 0x1400ff148
dec rbp
cmp qword [r14 + 8], 0
lea rsi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1400ff0a6
mov r8d, 2
mov rcx, r14
call fcn.1400fecc0
mov dword [rsp + 0x34], eax
jmp 0x1400ff0c3
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 0x1400ff14c
test dx, dx
je 0x1400ff0de
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 0x1400ff124
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 0x1400ff14c
mov edi, 0
test r12d, r12d
jne 0x1400ff070
cmp dx, 0xd
je 0x1400ff151
cmp dx, 0xa
je 0x1400ff157
jmp 0x1400ff070
lea rsi, [r14 + 8]
test r12d, r12d
jne 0x1400ff15b
cmp dx, 0xa
jne 0x1400ff186
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 0x1400ff20b
cmp dx, 0xd
jne 0x1400ff15b
sub rbx, 2
lea rdx, [rsp + 0x30]
cmp qword [rsi], 0
je 0x1400ff1b1
mov r8d, 2
mov rcx, r14
call fcn.1400fecc0
mov dword [rsp + 0x34], eax
xor edi, edi
jmp 0x1400ff1ca
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 0x1400ff15d
cmp qword [rsi], 0
je 0x1400ff1e2
add dword [r14 + 0x14], 2
jmp 0x1400ff15d
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 0x1400ff15d
mov rax, rdi
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400ff230
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 0x1400ff3ca
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x1400ff299
test rdi, rdi
je 0x1400ff327
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400ff5c0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x1400ff2b1
xor r8b, r8b
jmp 0x1400ff2b5
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 0x1400ff301
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 0x1400ff327
test r15d, r15d
jne 0x1400ff287
cmp r8b, 0xd
je 0x1400ff330
cmp r8b, 0xa
jne 0x1400ff287
dec rbx
jmp 0x1400ff3b5
test r15d, r15d
jne 0x1400ff3b5
cmp r8b, 0xa
jne 0x1400ff33b
dec rbx
jmp 0x1400ff3b5
cmp r8b, 0xd
jne 0x1400ff3b5
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rsi + 8], 0
je 0x1400ff364
mov r8d, 1
mov rcx, rsi
call fcn.1400fecc0
mov dword [rsp + 0x34], eax
jmp 0x1400ff381
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 0x1400ff3b5
cmp qword [rsi + 8], 0
je 0x1400ff394
inc dword [rsi + 0x14]
jmp 0x1400ff3b5
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 0x1400ff3f0
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 0x1400ff4ea
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x1400ff44b
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 0x1400ff4ac
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x1400ff4a4
sub edx, 1
je 0x1400ff49b
cmp edx, 2
je 0x1400ff494
mov r8, rbx
mov rdx, r14
call fcn.1400955d0
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 0x1400ff47a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x1400ff47a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x1400ff47a
mov rcx, rsi
call fcn.1400fe410
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x1400ff4db
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 0x1400ff480
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x1400ff475
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ff5c0
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 0x1400ff5f6
mov r8d, ebx
call fcn.1400fecc0
mov dword [rsp + 0x70], eax
jmp 0x1400ff610
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 0x1400ff6d8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x1400ff636
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 0x1400ff652
mov ebp, 2
mov edi, ebp
jmp 0x1400ff679
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1400ff665
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x1400ff676
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x1400ff6ce
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x1400ff693
lea r8, [rdi - 1]
mov rcx, r14
call fcn.1400fecc0
jmp 0x1400ff6b0
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 0x1400ff6b9
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x1401054e0
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 0x14010552d
lea r11, [r8 + r9]
cmp r8, r11
jae 0x14010554a
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 0x140105502
ret
add r9, r10
jmp 0x140105545
mov al, byte [r8]
xor r10, 3
inc r8
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140105532
ret

Function at 0x14010554c
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 0x1401055d3
add r9, r8
cmp r8, r9
jae 0x1401055f0
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 0x140105573
ret
add r9, r10
jmp 0x1401055eb
mov al, byte [r11]
xor r10, 7
inc r11
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x1401055d8
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
test rcx, rcx
jne 0x1401056f6
mov eax, r8d
jmp 0x140105760
lea rbx, [0x14023c390]
not r8d
cmp edx, 8
jb 0x140105739
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 0x140105712
add edx, 0xfffffff8
sub r10, 1
jne 0x14010570c
test edx, edx
je 0x14010575a
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 0x14010573d
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
ret
Function at 0x140105920
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.140106410
mov rdi, rax
test rax, rax
je 0x140105a8b
test rsi, rsi
je 0x140105a8b
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 0x140105a83
mov rcx, qword [0x140957d88]
xor edx, edx
mov r8d, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140105a7a
mov ecx, r14d
call qword [rdi + 8]
mov rbx, rax
test rax, rax
je 0x140105a68
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.140106580
mov rax, qword [rsp + 0x48]
test rax, rax
jle 0x140105a20
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 0x140105a20
mov rcx, rbx
call qword [rdi + 0x20]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.140106520
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.140106790
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 0x140105ac0
mov rcx, rbx
call qword [rdi + 0x28]
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x140106580
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
bt r8d, 0x10
jae 0x14010678f
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 0x140106774
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 0x14010661b
mov rcx, rdi
call fcn.1401ae070
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140106610
jmp 0x14010665a
cmp ebp, 0x19
jne 0x14010663f
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140106630
add rbx, rbx
jmp 0x14010665a
mov rcx, rdi
call fcn.1401adbd0
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140106651
mov rdx, rdi
cmp rbx, r15
jle 0x1401066ad
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.1400955d0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, r13d
add rcx, r13
movsxd r8, eax
xor edx, edx
call fcn.140093ba0
mov edx, 1
mov rcx, r14
call qword [r12 + SafeArrayGetLBound]
jmp 0x1401066d1
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.1400955d0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, ebx
add rcx, rbx
movsxd r8, eax
xor edx, edx
call fcn.140093ba0
lea rcx, [r14 + 0x48]
mov r8, r15
lea rdx, [rsp + 0x20]
call fcn.1400955d0
mov r13, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x110]
test r15d, r15d
jle 0x140106728
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 0x140106710
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 0x140106757
mov rcx, rdi
call fcn.1401ae060
jmp 0x140106764
cmp ebp, 0x19
je 0x140106764
mov rcx, rdi
call fcn.1401adbc0
mov rbp, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401ae160
add rsp, 0xe8
pop r14
pop r12
ret

Function at 0x140106d68
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 0x140106ddd
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 0x140106ddd
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140106db5
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
Function at 0x140106dec
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov ebx, edx
mov ecx, dword [0x1409d5560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa8]

Function at 0x140106e2c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1409d5560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x20]

Function at 0x140106e50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1409d5560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc8]

Function at 0x140106e78
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1409d5560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc0]

Function at 0x140106ea0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov ecx, dword [0x1409d5560]
mov edi, r9d
movaps xmmword [rax - 0x18], xmm6
mov rsi, r8
movaps xmmword [rax - 0x28], xmm7
movaps xmm6, xmm1
movaps xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x140106eec
mov edx, edi
mov dword [rax + 0x120], edi
mov rcx, rax
call qword [rax + pe_nt_image_headers64]
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0x124]
je 0x140106f03
mov rcx, rbx
mov dword [rbx + 0x124], edx
call qword [rbx]
movd xmm2, dword [rbx + 0x104]
mov r9, rsi
movd xmm1, dword [rbx + 0x100]
mov rcx, rbx
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm1, xmm1
addsd xmm2, xmm6
addsd xmm1, xmm7
mov rax, qword [rbx + 0x60]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
jmp rax

Function at 0x140106f4c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1409d5560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x140106f70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov ebx, r9d
mov ecx, dword [0x1409d5560]
mov edi, r8d
mov esi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test ebx, ebx
jle 0x140106fcf
mov r10d, dword [rsp + 0x60]
test r10d, r10d
jle 0x140106fcf
mov r9d, dword [rax + 0x104]
mov rdx, rbp
mov r8d, dword [rax + 0x100]
add r9d, edi
mov dword [rsp + 0x28], r10d
add r8d, esi
mov rcx, rax
mov dword [rsp + 0x20], ebx
call qword [rax + 0x50]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140107018
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1409d5560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140107079
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140107051
mov edx, 1
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
add rsp, 0x20
pop rbx
ret

Function at 0x1401070b4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov esi, r8d
mov ecx, dword [0x1409d5560]
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9d, esi
mov rcx, rax
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa0]

Function at 0x140107104
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1409d5560]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x140107153
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rcx, rbx
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax