joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400493a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r13
push r14
sub rsp, 0x178
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor r13d, r13d
mov r14, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400493cd
mov rcx, qword [rcx]
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x1a0], rbp
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x170], rdi
mov qword [rsp + 0x168], r12
mov qword [rsp + 0x160], r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140049589
mov rdi, qword [r14 + 0x10]
test rdi, rdi
je 0x140049618
mov rbp, r13
lea r12, [0x1400dae64]
nop dword [rax]
nop word [rax + rax]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r12 + rbx], r13b
jne 0x140049437
mov r15, qword [r14 + 0x18]
mov rsi, r14
cmp r15, 0x10
jb 0x140049450
mov rsi, qword [r14]
test rbx, rbx
je 0x1400494b6
cmp rbp, rdi
jae 0x1400494b6
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.14008f780
lea rdx, [rbx + r12]
mov rcx, r12
cmp r12, rdx
je 0x140049490
nop dword [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rsp + rax + 0x50], 1
cmp rcx, rdx
jne 0x140049480
lea rdx, [rdi + rsi]
lea rax, [rsi + rbp]
cmp rax, rdx
jae 0x1400494b6
nop dword [rax]
movzx ecx, byte [rax]
cmp byte [rsp + rcx + 0x50], r13b
jne 0x1400495d7
inc rax
cmp rax, rdx
jb 0x1400494a0
mov rax, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x38], r13
mov rbx, rdi
mov qword [rsp + 0x40], r13
cmovne rbx, rax
xorps xmm0, xmm0
cmp rdi, rbx
mov r8, rbx
movups xmmword [rsp + 0x28], xmm0
cmovb r8, rdi
mov rdx, r14
cmp r15, 0x10
jb 0x1400494f0
mov rdx, qword [r14]
lea rcx, [rsp + 0x28]
call fcn.1400371e0
cmp qword [rsp + 0x38], r13
je 0x14004953b
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14004953b
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.14009ce24
test eax, eax
jne 0x1400495df
mov rdx, qword [rsp + 0x40]
lea rbp, [rbx + 1]
cmp rdx, 0x10
jb 0x14004957c
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049577
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004961f
call fcn.14008ccfc
mov rdi, qword [r14 + 0x10]
cmp rbp, rdi
jb 0x140049430
mov al, 1
mov r15, qword [rsp + 0x160]
mov r12, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x1a8]
mov rbp, qword [rsp + 0x1a0]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008c930
add rsp, 0x178
pop r14
pop r13
ret
sub rax, rsi
jmp 0x1400494bd
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140049618
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049613
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004961f
call fcn.14008ccfc
xor al, al
jmp 0x14004958b
call fcn.14009445c
int3
Function at 0x14004c090
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, rdx
mov rsi, rcx
mov qword [r11 - 0x38], rdx
mov rdx, qword [rdx]
add rdx, 8
lea rcx, [r11 - 0x30]
call fcn.140036fa0
nop
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rdx, qword [rsp + 0x88]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x14004c123
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x14004c110
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0xf0]
call fcn.14005c810
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14004c14c
mov rcx, qword [rsi + 0xf8]
lea r8, [rsp + 0x88]
cmp rcx, qword [rsi + 0xf8]
jne 0x14004c241
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0xf0]
call fcn.1400549c0
mov rcx, qword [rax]
add rcx, 0x30
mov rdx, rdi
call fcn.14004fd20
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x14004c1c1
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c1bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c23b
call fcn.14008ccfc
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0xf
mov byte [rsp + 0x88], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14004c216
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004c216
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004c216
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14008c930
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14009445c
nop
lea rdx, str.logger_with_name_
lea rcx, [rsp + 0x60]
call fcn.14003dad0
nop
lea r8, str._already_exists
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14003d880
mov rcx, rax
call fcn.1400492b0
int3
Function at 0x14005a210
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14005a38c
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140050ad0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14005a355
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x14005a2d3
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14005a344
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x14005a30c
mov r10, qword [rdx]
cmp r10, rax
je 0x14005a306
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14005a344
cmp r8, rdx
je 0x14005a320
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x14005a366
cmp r8, rdx
jne 0x14005a311
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14005a2a1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14005a344
lea rcx, str.invalid_hash_bucket_count
call fcn.14007f04c
int3
Function at 0x14005c3e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14005c5d6
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.140080a40
test eax, eax
jne 0x14005c603
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x14005c60e
xor r14d, r14d
mov qword [rsi + 0x28], r14
mov qword [rsi + 0x30], r14
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x50]
call fcn.14008f780
mov qword [rsp + 0x60], r14
lea r15, vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rdi + 0x20], r14b
je 0x14005c56a
mov r8, qword [rsi + 0x28]
cmp qword [rsi + 0x30], r8
jbe 0x14005c56a
test r8, r8
je 0x14005c4ca
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx ebp, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14005c4eb
lea ebp, [rax + 7]
jmp 0x14005c506
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, ebp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx ebp, word [rsp + 0x40]
mov r8, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
cmp r8, rcx
jbe 0x14005c530
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, bp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsp + 0x60]
cmp r8, rcx
jbe 0x14005c58e
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x14005c58e
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x14005c5ce
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c5c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c5fd
call fcn.14008ccfc
nop
mov rcx, rbx
call fcn.140080a64
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14008c930
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14009445c
nop
mov ecx, 5
call fcn.140080004
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.140080004
int3
Function at 0x140062bc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x60]
call fcn.14008f780
mov qword [rsp + 0x70], 0
lea rsi, vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0xfa
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x70]
mov r9, qword [rdi + 0x70]
mov r8, rbx
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.140097ed8
cmp rax, rbx
jne 0x140062cc6
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x140062c9b
mov rdx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140062c96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140062cc0
call fcn.14008ccfc
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14008c930
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14009445c
nop
call fcn.14009cd94
nop
mov ebx, dword [rax]
lea rdx, [rdi + 0x78]
lea rcx, [rsp + 0x20]
call fcn.140049380
nop
mov r8, rax
lea rdx, str.Failed_writing_to_file
lea rcx, [rsp + 0x40]
call fcn.14003dc30
nop
mov edx, ebx
mov rcx, rax
call fcn.140049220
int3
Function at 0x140073ec0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140073ef4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140073ee0
ret
Function at 0x140076010
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400760dc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400760dc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400760f5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400760cc
cmp byte [rax], 0x5c
jne 0x1400760c6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400760c6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400760b2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400760c3
test r8b, 0x10
jne 0x1400760c6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400760c6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140074b40
test edi, edi
jne 0x140076030
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140074b30
int3
Function at 0x140077ea0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r14d, r14d
lea rax, [r11 - 0x28]
lea r9, [r11 - 0x30]
mov qword [r11 - 0x30], r14
xor edx, edx
mov dword [r11 - 0x28], r14d
xor ecx, ecx
mov qword [r11 - 0x78], rax
lea r8d, [r14 + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x14007805b
mov edi, r14d
cmp dword [rsp + 0x70], r14d
jbe 0x14007805b
lea r15, [r14 - 1]
nop dword [rax]
mov eax, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov r8, r15
mov qword [rsp + 0x48], r14
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x68]
lea rbp, [rcx*8]
mov rdx, qword [rax + rbp + 8]
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140077f40
lea rcx, [rsp + 0x30]
call fcn.14003e600
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [0x140100128]
call fcn.14005cfc0
mov rsi, qword [rsp + 0x48]
mov r10, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x140077fde
mov r11, qword [rax + 0x30]
add rax, 0x20
cmp qword [rax + 0x18], 8
jb 0x140077f90
mov rax, qword [rax]
mov rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
cmp rsi, 8
mov rcx, rbx
cmovae r9, r10
cmp r11, rbx
cmovb rcx, r11
test rcx, rcx
je 0x140077fc8
sub r9, rax
movzx edx, word [r9 + rax]
cmp dx, word [rax]
jne 0x140077fd1
add rax, 2
sub rcx, 1
jne 0x140077fb4
cmp rbx, r11
jb 0x140077fde
mov bl, 1
jmp 0x140077fe0
mov eax, 1
cmovb eax, r15d
test eax, eax
jns 0x140077fcd
xor bl, bl
cmp rsi, 8
jb 0x14007801b
lea rdx, [rsi*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x140078013
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078095
mov rcx, r10
call fcn.14008ccfc
test bl, bl
je 0x14007804f
mov r8, qword [rsp + 0x68]
mov rdx, qword [0x140100188]
add r8, 4
add r8, rbp
cmp rdx, qword [0x140100190]
je 0x14007804a
mov eax, dword [r8]
mov dword [rdx], eax
add qword [0x140100188], 4
jmp 0x14007804f
call fcn.140078670
inc edi
cmp edi, dword [rsp + 0x70]
jb 0x140077f10
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007806b
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008c930
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14009445c
int3
Function at 0x140079c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r15, [0x1400f7fb0]
mov qword [rsp + 0x28], r15
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
mov eax, dword [rcx + 0xa4]
test eax, eax
jne 0x140079c7e
call fcn.140036630
xor eax, eax
jmp 0x140079e33
mov dword [rbp - 0x30], r14d
lea rcx, [rbp - 0x28]
call fcn.14007fa4c
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], r14d
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, r14
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov ecx, dword [0x1401000b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x50]
mov ecx, dword [0x1401000b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbx + 0x30]
mov qword [rsp + 0x40], rcx
cmp byte [rcx + 0x28], 0
je 0x140079d18
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
jmp 0x140079d1d
mov byte [rsp + 0x48], 0
mov rdi, r14
mov r9, rsi
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14007a170
test rax, rax
je 0x140079d86
nop word [rax + rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov rcx, qword [rsp + 0x40]
cmp byte [rcx + 0x28], 0
je 0x140079d6c
cmp byte [rsp + 0x48], 0
jne 0x140079d6c
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov r9, rsi
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14007a170
test rax, rax
jne 0x140079d40
cmp byte [rsp + 0x48], 0
je 0x140079d99
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rsp + 0x60]
mov ecx, dword [0x1401000b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rbp - 0x18]
mov rcx, rax
test rax, rax
je 0x140079dff
mov rdx, rax
nop word [rax + rax]
mov rax, qword [rax]
mov qword [rbp - 0x18], rax
test rax, rax
jne 0x140079dd0
mov qword [rbp - 0x10], r14
mov qword [rdx], r14
mov rax, qword [rcx + 8]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x38], r15
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rcx
xor ecx, ecx
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rdx, rax
test rax, rax
jne 0x140079dc0
lea rbx, [rsp + 0x70]
mov esi, 0xc
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140079e1d
call fcn.1400944d4
add rbx, 8
sub rsi, 1
jne 0x140079e10
lea rcx, [rbp - 0x28]
call fcn.14007fad8
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14008c930
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140079ec0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1401000b8]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079fe4
cmp qword [rax], rbx
je 0x140079efc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140079ee8
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140079fe4
mov ecx, dword [rbx + 0x60]
test ecx, ecx
je 0x140079fa9
cmp ecx, 1
jne 0x140079fe4
lea rdx, [rbx + 0x68]
mov dword [rbx + 0x60], 2
lea rcx, [rsp + 0x30]
call fcn.14007f9f8
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
call fcn.14007f9f8
lea rcx, [rsp + 0x30]
call fcn.14007fad8
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.14007fa4c
lea r8, [0x1400f4110]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14007fa20
lea rcx, [rsp + 0x58]
call fcn.14007fad8
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.14008ea78
jmp 0x140079fcc
xorps xmm0, xmm0
mov dword [rbx + 0x60], 1
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.14007fa4c
lea rcx, [rsp + 0x20]
call fcn.14007fa58
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x68]
call fcn.14007f9f0
lea rcx, [rsp + 0x20]
call fcn.14007fad8
add rsp, 0x70
pop rbx
ret
Function at 0x140079ff0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
lea rdi, [rcx + 0x28]
xor ebp, ebp
cmp byte [rdi], bpl
jne 0x14007a018
test r8b, r8b
je 0x14007a03e
test rbx, rbx
cmove rdi, rbp
mov ecx, dword [0x1401000b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a03e
cmp qword [rax], rdi
je 0x14007a069
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14007a030
lock inc dword [rbx + 0xa4]
lea rdi, [rbx + 0x30]
mov qword [rsp + 0x20], rdi
cmp byte [rdi + 0x28], bpl
je 0x14007a0a6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
movzx eax, sil
movzx ecx, al
jmp 0x14007a0ad
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14007a03e
inc dword [rcx + 0x88]
mov qword [r14], rbp
mov rax, qword [rcx + 0x80]
test rax, rax
je 0x14007a096
mov qword [rax], r14
mov qword [rcx + 0x80], r14
jmp 0x14007a15c
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x80], r14
jmp 0x14007a15c
xor sil, sil
xor al, al
xor cl, cl
mov byte [rsp + 0x28], sil
mov qword [r14], rbp
mov rdx, qword [rbx + 0xb0]
test rdx, rdx
je 0x14007a0c6
mov qword [rdx], r14
jmp 0x14007a0d0
mov qword [rbx + 0xa8], r14
movzx eax, cl
mov qword [rbx + 0xb0], r14
cmp byte [rdi + 0x28], 0
je 0x14007a118
or qword [rbx + 0x70], 1
cmp qword [rbx + 0x70], 1
jbe 0x14007a112
test al, al
je 0x14007a104
cmp byte [rdi + 0x28], 0
je 0x14007a0fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
mov byte [rsp + 0x28], sil
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
jmp 0x14007a114
xor al, al
test al, al
jne 0x14007a14e
cmp byte [rbx + 0xa0], 0
jne 0x14007a137
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14007a137
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14007a14e
cmp byte [rdi + 0x28], 0
je 0x14007a14b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
test sil, sil
je 0x14007a15c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret