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

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

Function at 0x1400dd108
Capabilities:
Get thread local storage value

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

Function at 0x1400dd130
Capabilities:
Get thread local storage value

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, 0x40
mov r15d, ecx
mov ecx, dword [0x140bb1f80]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add r15d, dword [rax + 0x100]
add ebp, dword [rax + 0x104]
mov rsi, rax
test edi, edi
jns 0x1400dd17d
add r15d, edi
neg edi
test ebx, ebx
jns 0x1400dd185
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x1400dd19f
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov r12d, dword [rsp + 0x88]
lea ecx, [r12 + r12]
cmp ecx, ebx
jle 0x1400dd1b9
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsp + 0x90]
cmp edx, dword [rsi + 0x120]
je 0x1400dd1d7
mov rcx, rsi
mov dword [rsi + 0x120], edx
call qword [rsi + pe_nt_image_headers64]
mov dword [rsp + 0x90], r12d
mov r9d, edi
mov r8d, ebp
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x80], ebx
mov rax, qword [rsi + 0x10]
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
jmp rax

Function at 0x1400dd220
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, 0x20
mov r15d, ecx
mov ecx, dword [0x140bb1f80]
mov edi, r9d
mov rsi, r8
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x1400dd26d
mov edx, edi
mov rcx, rax
mov dword [rax + 0x120], edi
call qword [rax + pe_nt_image_headers64]
mov edx, dword [rsp + 0x50]
cmp edx, dword [rbx + 0x124]
je 0x1400dd284
mov rcx, rbx
mov dword [rbx + 0x124], edx
call qword [rbx]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9, rsi
add r8d, r14d
add edx, r15d
mov rcx, rbx
mov rax, qword [rbx + 0x60]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
jmp rax
Function at 0x1400de85c
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140b36348]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140bb1f80]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140bb1fa0], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x1400dd464]
mov qword [rbx], rax
lea rax, [0x1400dd494]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x1400de5a4]
mov qword [rbx + 0x10], rax
lea rax, [0x1400dd53c]
mov qword [rbx + 0x18], rax
lea rax, [0x1400ddc10]
mov qword [rbx + 0x20], rax
lea rax, [0x1400ddba0]
mov qword [rbx + 0x28], rax
lea rax, [0x1400ddbe8]
mov qword [rbx + 0x30], rax
lea rax, [0x1400ddbfc]
mov qword [rbx + 0x38], rax
lea rax, [fcn.1400ddc84]
mov qword [rbx + 0x40], rax
lea rax, [0x1400dd798]
mov qword [rbx + 0x48], rax
lea rax, [fcn.1400dd7b0]
mov qword [rbx + 0x50], rax
lea rax, [0x1400dd634]
mov qword [rbx + 0x58], rax
lea rax, [0x1400ddb08]
mov qword [rbx + 0x60], rax
lea rax, [0x1400dda1c]
mov qword [rbx + 0x68], rax
lea rax, [0x1400ddd20]
mov qword [rbx + 0x70], rax
lea rax, [0x1400dde58]
mov qword [rbx + 0x78], rax
lea rax, [0x1400ddf44]
mov qword [rbx + 0x80], rax
lea rax, [0x1400ddffc]
mov qword [rbx + 0x88], rax
lea rax, [0x1400de154]
mov qword [rbx + 0x90], rax
lea rax, [0x1400de1d4]
mov qword [rbx + 0x98], rax
lea rax, [0x1400de2c8]
mov qword [rbx + 0xa0], rax
lea rax, [0x1400de4b4]
mov qword [rbx + 0xa8], rax
lea rax, [0x1400de62c]
mov qword [rbx + 0xb0], rax
lea rax, [0x1400de714]
mov qword [rbx + 0xb8], rax
lea rax, [0x1400de7b0]
mov qword [rbx + 0xc0], rax
lea rax, [0x1400de804]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400e72e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140bb1430]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400e7369
mov r8, qword [0x140bb1428]
mov rcx, qword [0x140b36348]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140bb1430]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140bb1420]
jmp 0x1400e7355
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400e7352
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400e7340
lea rcx, [0x1400e724c]
mov rdx, rdi
call fcn.140145c40
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e7380
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x1400e73aa
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x140bb1428]
test rcx, rcx
jne 0x1400e73ed
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140b36348]
movsxd r8, ebx
mov edx, 8
mov dword [0x140bb1430], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140bb1430]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140bb1428]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x140bb1428], rcx
mov ecx, dword [0x140bb1430]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140bb1428]
mov rcx, qword [0x140b36348]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140bb1430]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
jne 0x1400e7441
test rbp, rbp
je 0x1400e7468
lea rcx, [0x140bb1420]
mov edx, 0x28
call fcn.1400e8054
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x1400e7468
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e80c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140bb22a0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140b31838], eax
call fcn.1400e8ff0
add rsp, 0x28
ret

Function at 0x1400e81a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x1400e8260
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x1400e82c6
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x140bb22a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x1400e82f1
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140bb22a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
add rcx, qword [rdx]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.1400e8c30
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400e8490
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400e84c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400e84f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
add rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400e8520
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x1400e85c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x140b31838], 0xffffffff
jne 0x1400e85ef
call fcn.1400e80c0
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400e8570]
call fcn.140145c40
jmp 0x1400e8620
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400e8620
call fcn.1400e8ff0
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400e8570]
call fcn.140145c40
add rsp, 0x28
ret

Function at 0x1400e8660
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret

Function at 0x1400e86f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1400e8720
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x1400e8792
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140bb22a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x1400e87f0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x1400e87f0
cmp dword [rsp + 0x20], 0x100000
jge 0x1400e87b3
mov dword [rsp + 0x20], 0x100000
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140bb22a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400e8830
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret
Function at 0x1400e8b50
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x1400e8b90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x1400e8beb
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x1400e8beb
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x1400e8bed
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400e8c00
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x1400e8cb0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret

Function at 0x1400e8ff0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x140bb22a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x140bb22a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x140b31838]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x14011d960
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov eax, dword [rcx + 0x60]
movzx r9d, byte [rcx + 0x5c]
test eax, eax
jle 0x14011d9b7
mov r8d, dword [rcx + 0x288]
mov qword [rsp], rbx
movzx r11d, r9b
lea rbx, [0x140b32080]
mov r10d, eax
nop dword [rax]
mov edx, r8d
mov eax, r8d
shr rdx, 0x18
shl eax, 8
xor rdx, r11
mov r8d, dword [rbx + rdx*4]
xor r8d, eax
mov dword [rcx + 0x288], r8d
dec r10
jne 0x14011d990
mov rbx, qword [rsp]
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r8, dword [rcx + 0x60]
mov edx, r8d
dec edx
je 0x14011da56
dec edx
je 0x14011da47
dec edx
je 0x14011da38
mov byte [r8 + rcx + 0x7c], 1
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movzx r8d, byte [rcx + 0x60]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
add rsp, 8
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
add rsp, 8
ret
Function at 0x140145c40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140bb14c0], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140bb14d0]
jne 0x140145c8d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140bb14f8], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140bb14c0], 1
mov ecx, dword [0x140bb14f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140145d62
mov rcx, qword [0x140b36348]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140145d8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140bb14c8]
test rax, rax
je 0x140145cdd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140bb14c8], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x140145da8]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140bb14f8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140b36348]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140145d8d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401467a0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140b36348]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140bb1f80]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140bb1fa0], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.140149d68
mov rbx, qword [rsp + 0x30]
lea rax, [0x140147658]
mov qword [rdi + 0xb0], rax
lea rax, [0x1401476bc]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.1401470fc]
mov qword [rdi + 0x20], rax
lea rax, [0x140146fac]
mov qword [rdi + 0x60], rax
lea rax, [0x140147760]
mov qword [rdi + 0xc8], rax
lea rax, [0x140147708]
mov qword [rdi + 0xc0], rax
lea rax, [0x140146c38]
mov qword [rdi + 0x68], rax
lea rax, [0x140146bdc]
mov qword [rdi + 0x48], rax
lea rax, [0x140146c08]
mov qword [rdi + 0x50], rax
lea rax, [0x140146a8c]
mov qword [rdi + 0x58], rax
lea rax, [0x140147450]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x180003bd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003bf8
xor eax, eax
lea r8, [0x180003ad0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800040f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180004114
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1800041a2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180004170
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180004170
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800228b0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000418d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180004195
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180004131
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180004280
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1800041b9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800041bb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800041ed
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800228b0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000427d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180004228
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18000425e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.180010424
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18000427d
cmp rsi, rax
ja 0x180004231
test rsi, rsi
je 0x18000427d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180010424
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret