joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001658f0
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x380
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rbx, rcx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x38], 0x80
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000002
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x100165ae6
mov qword [rsp + 0x398], rdi
lea rdi, [0x1002a45b0]
lea r9, [rsp + 0x30]
lea edx, [rax + 8]
mov rcx, rbx
mov r8, rdi
mov dword [rsp + 0x30], 0x105
call fcn.1001a31d0
test eax, eax
jne 0x1001659bb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100165998
lea r8, [0x100045e00]
mov edx, 1
mov ecx, 0x3e9
call fcn.100165b00
xor eax, eax
mov rdi, qword [rsp + 0x398]
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x380
pop rbx
ret
call fcn.1001267c0
lea r8, [0x100045e40]
lea rcx, [rsp + 0x60]
mov edx, 0x105
mov r9, rax
mov qword [rsp + 0x20], rdi
call fcn.100060cc0
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov word [rsp + 0x268], bx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100165a48
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100165a34
lea edx, [rbx + 1]
lea r8, [0x100045e00]
mov ecx, 0x3e9
call fcn.100165b00
lea rdx, [rsp + 0x60]
mov ecx, 0x207c
call fcn.100122690
jmp 0x100165998
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, [0x100045ea8]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100165a98
lea r8, [0x100045e00]
mov edx, 1
mov ecx, 0x3e9
call fcn.100165b00
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100165abd
lea r8, [0x100045e00]
mov edx, 1
mov ecx, 0x3e9
call fcn.100165b00
test ebx, ebx
je 0x100165adc
lea r8, [rsp + 0x60]
lea rdx, [0x100045ea8]
mov ecx, 0x207d
call fcn.100122690
jmp 0x100165998
mov eax, 1
jmp 0x10016599a
xor eax, eax
jmp 0x1001659a2
Function at 0x1001747a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rdx, qword [r8 + 0x10]
xor esi, esi
mov r11, r9
mov r10, rcx
mov ebx, 0x104
test rdx, rdx
jne 0x10017487c
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 8]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1001747ef
mov edx, ebx
mov rcx, rdi
cmp word [rcx], si
je 0x100174801
add rcx, 2
dec rdx
jne 0x1001747e1
mov eax, esi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
test rdx, rdx
je 0x1001747ef
mov rcx, rbx
mov r9d, esi
sub rcx, rdx
lea rax, [rdi + rcx*2]
sub rbx, rcx
je 0x100174855
add rcx, 0x7ffffefb
lea r8, [0x10004eaa0]
add rcx, rbx
sub r8, rax
nop dword [rax]
test rcx, rcx
je 0x100174850
movzx edx, word [r8 + rax]
test dx, dx
je 0x100174850
mov word [rax], dx
add rax, 2
dec rcx
dec rbx
jne 0x100174830
jmp 0x100174855
test rbx, rbx
jne 0x10017485f
sub rax, 2
mov r9d, 0x8007007a
mov word [rax], si
test r9d, r9d
js 0x1001747ef
mov eax, 1
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
add rcx, 8
mov r9d, esi
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x1001748a9
movzx eax, word [rdx]
test ax, ax
je 0x1001748a9
mov word [rcx], ax
add rcx, 2
add rdx, 2
dec rbx
jne 0x100174883
jmp 0x1001748ae
test rbx, rbx
jne 0x1001748b8
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], si
test r9d, r9d
js 0x1001748d0
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdx, r11
mov rcx, r10
call fcn.100174a80
mov rbx, qword [rsp + 0x38]
mov eax, esi
add rsp, 0x20
pop rsi
ret
Function at 0x10017bba0
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
push rbx
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov qword [r11 + 0x18], rbp
xor r15d, r15d
mov qword [r11 - 0x28], rdi
mov rbx, rdx
mov rbp, rcx
mov qword [r11 - 0x20], rsi
mov r14d, r15d
nop dword [rax]
mov eax, dword [rbx + 0x20]
mov edi, dword [rbx + 0x24]
cmp dword [rbx + 0x28], r15d
je 0x10017bc47
mov rcx, qword [rbp + 0x28]
mov edx, edi
call fcn.1001a5dc0
lea rdx, [rsp + 0x260]
mov r8d, 0x104
lea rcx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x10017bc47
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x260]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10017bc47
mov rax, qword [rbp + 0x18]
mov ecx, r15d
cmp qword [rsp + 0x40], rax
setae cl
test ecx, ecx
je 0x10017bd9b
mov rcx, qword [rbp + 0x28]
mov edx, edi
call fcn.1001a5dc0
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov rcx, rax
call fcn.1001a57c0
test eax, eax
je 0x10017bd82
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1001a55b0
xor r9d, r9d
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x28000080
mov dword [rsp + 0x20], 1
call qword [0x1002aac38]
mov rdx, rax
mov rcx, rbx
call fcn.1001a5550
mov rcx, rbx
call fcn.1001a5540
cmp rax, 0xffffffffffffffff
je 0x10017bd63
mov rdx, qword [rbp + 0x20]
mov qword [rbx + 0x10], rdx
test rdx, rdx
je 0x10017bd05
mov rcx, rbx
call fcn.1001a5610
test eax, eax
jne 0x10017bd0d
mov rax, qword [rbp + 0x40]
mov rsi, qword [rbx + 0x10]
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x40]
lea r9, [rsp + 0x50]
mov edx, eax
mov r8, rsi
call qword [rdi + reloc.WS2_32.dll_getservbyport]
test r14d, r14d
je 0x10017bd35
jmp 0x10017bd0d
mov rax, qword [rbp + 0x18]
mov qword [rbx + 0x10], rax
mov eax, dword [rbx + 0x20]
mov rdx, rbx
mov rcx, rbp
call fcn.10017b830
mov r14d, eax
test eax, eax
je 0x10017bd35
mov rcx, qword [rbp + 0x48]
mov rdx, rbx
call fcn.1001a7840
mov r14d, eax
test eax, eax
jne 0x10017bd9b
mov rcx, rbx
call fcn.1001a5540
cmp rax, 0xffffffffffffffff
je 0x10017bd59
xor edx, edx
mov rcx, rbx
call fcn.1001a5610
or rdx, 0xffffffffffffffff
mov rcx, rbx
call fcn.1001a5550
mov rcx, rbx
call fcn.1001a56a0
jmp 0x10017bd9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x10017bd9b
mov rcx, qword [rbp + 0x40]
lea r8, [rsp + 0x50]
mov edx, eax
mov r9, qword [rcx]
call qword [r9 + gethostbyaddr]
jmp 0x10017bd9b
mov rax, qword [rbp + 0x40]
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x40]
mov edx, eax
xor r8d, r8d
call qword [rdi + 0x30]
mov rcx, rbx
call fcn.1001a5540
cmp rax, 0xffffffffffffffff
jne 0x10017bdb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x10017bbe0
mov rdi, qword [rsp + 0x480]
mov rsi, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x4c0]
mov eax, r14d
test r14d, r14d
je 0x10017bddc
mov dword [rbx + 0x28], r15d
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x490
pop r15
pop r14
pop rbx
ret
Function at 0x10017bec0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rcx
mov rcx, rdx
mov rdi, rdx
call fcn.1001a56f0
mov rcx, rdi
mov rbx, rax
call fcn.1001a5540
cmp rax, 0xffffffffffffffff
je 0x10017bf18
mov rdx, rbx
mov rcx, rdi
call fcn.1001a5610
or rdx, 0xffffffffffffffff
mov rcx, rdi
call fcn.1001a5550
mov rcx, rdi
call fcn.1001a56a0
mov edx, dword [rdi + 0x24]
lea rcx, [rbp + 0x10]
call fcn.10017c640
mov r8d, dword [rdi + 0x28]
mov edx, dword [rdi + 0x24]
lea rcx, [rbp + 0x10]
call fcn.10017c730
test eax, eax
je 0x10017bfa8
mov qword [rsp + 0x290], rsi
lock inc dword [rdi + 0x20]
mov esi, dword [rbp + 0x10]
mov dword [rsp + 0x30], 0
nop word [rax + rax]
mov edx, dword [rdi + 0x24]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [rbp + 0x10]
mov r9d, 0x104
mov qword [rsp + 0x20], rax
call fcn.10017c460
test eax, eax
je 0x10017bfa0
mov ebx, dword [rsp + 0x30]
cmp ebx, esi
jb 0x10017bfa0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10017bfa0
cmp ebx, esi
ja 0x10017bf60
mov rsi, qword [rsp + 0x290]
mov rdx, rdi
mov rcx, rbp
mov qword [rdi + 0x18], 0
call fcn.10017bba0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10005f420
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r14
pop rdi
pop rbp
ret
Function at 0x10017bff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov eax, dword [rcx + 0x50]
mov r12d, dword [rsp + 0xf0]
xor esi, esi
mov rdi, r9
mov r15, r8
mov r14, rcx
cmp r12d, eax
ja 0x10017c0d3
mov rcx, rdx
mov ebx, esi
call fcn.1001a5540
lea r9, [rsp + 0xd0]
mov r8d, r12d
mov rcx, rax
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov rax, r15
mov dword [rsp + 0xd0], esi
mov qword [rsp + 0x38], rsi
shr rax, 0x20
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x10017c097
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x10017c1ae
cmp ebx, 0x5aa
jne 0x10017c0cb
mov eax, r12d
shr eax, 0x11
shl eax, 0x10
cmp eax, dword [r14 + 0x50]
jae 0x10017c0cb
mov rdx, qword [rsp + 0xd8]
cmp eax, 0xa00000
jb 0x10017c0d3
mov dword [r14 + 0x50], eax
jmp 0x10017c0d3
mov rdx, qword [rsp + 0xd8]
mov ebp, esi
nop word [rax + rax]
mov ebx, dword [r14 + 0x50]
mov eax, r12d
mov esi, ebp
sub eax, ebp
mov r13d, ebx
mov rcx, rdx
cmp eax, ebx
lea rdi, [rsi + r15]
cmovb r13d, eax
xor r15d, r15d
call fcn.1001a5540
mov rdx, qword [rsp + 0xe8]
xor ecx, ecx
lea r9, [rsp + 0x30]
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rcx
shr rdi, 0x20
mov rcx, rax
add rdx, rsi
mov r8d, r13d
mov dword [rsp + 0x6c], edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x10017c15e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test edi, edi
je 0x10017c167
add ebp, r13d
jmp 0x10017c195
cmp r15d, 0x5aa
jne 0x10017c1c1
cmp ebx, 0xa00000
jbe 0x10017c1d6
shr ebx, 0x11
shl ebx, 0x10
cmp ebx, dword [r14 + 0x50]
jae 0x10017c190
cmp ebx, 0xa00000
jb 0x10017c190
mov dword [r14 + 0x50], ebx
mov edi, 1
mov rdx, qword [rsp + 0xd8]
mov r15, qword [rsp + 0xe0]
cmp ebp, r12d
jb 0x10017c0e0
mov rcx, qword [rsp + 0xd8]
lea rdx, [r15 + r12]
call fcn.1001a56c0
jmp 0x10017c1d6
cmp r15d, 0x70
jne 0x10017c1d6
mov rax, qword [rsp + 0xd8]
mov dword [rax + 0x28], 1
mov eax, edi
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10017c460
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6f8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov r13d, r9d
mov qword [rsp + 0x48], r8
mov r12d, edx
mov r15, rcx
mov rsi, qword [rsp + 0x760]
xor ebx, ebx
mov dword [rsi], ebx
cmp r9d, 0x104
jb 0x10017c610
mov rcx, qword [rcx + 0x18]
call fcn.1001a5dc0
mov rcx, rax
mov r8d, 0x104
lea rdx, [rsp + 0x4d0]
call fcn.1001a5730
test eax, eax
je 0x10017c610
movabs rdi, 0x7fffffffffffffff
mov r14d, ebx
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x70]
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x10017c601
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x9c]
call fcn.1001a5860
test eax, eax
je 0x10017c5c7
inc dword [rsi]
cmp qword [rsp + 0x40], rdi
jge 0x10017c5c7
mov edx, r12d
mov rcx, qword [r15 + 0x18]
call fcn.1001a5dc0
lea rdx, [rax + 4]
lea r8, [rsp + 0x9c]
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x10017c5c7
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x10017c5b9
mov rdi, qword [rsp + 0x40]
lea r14, [rsp + 0x2c0]
test rax, rax
je 0x10017c5c7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10017c521
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jge 0x10017c601
mov rdx, r13
mov r8, r14
mov rcx, qword [rsp + 0x48]
call fcn.10005fc80
test eax, eax
setns bl
cmp rbp, 0xffffffffffffffff
je 0x10017c610
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x6f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10017c640
Capabilities:
Enumerate files on windows

Disassembly:
push rdi
sub rsp, 0x4b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x4d0], rbx
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
xor ebx, ebx
mov rcx, qword [rcx + 0x18]
call fcn.1001a5dc0
mov rcx, rax
mov r8d, 0x104
lea rdx, [rsp + 0x290]
call fcn.1001a5730
test eax, eax
je 0x10017c706
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x40]
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x10017c6f7
nop word [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x6c]
call fcn.1001a5860
test eax, eax
je 0x10017c6e5
inc ebx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10017c6d0
cmp rdi, 0xffffffffffffffff
je 0x10017c706
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.10005f420
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4b0
pop rdi
ret

Function at 0x10017c730
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
test r8d, r8d
je 0x10017c79f
mov rcx, qword [rcx + 0x18]
call fcn.1001a5dc0
lea rdx, [rsp + 0x30]
mov r8d, 0x104
lea rcx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x10017c79f
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10017c79f
mov rcx, qword [rbx + 8]
xor eax, eax
cmp qword [rsp + 0x20], rcx
setae al
jmp 0x10017c7a4
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x250
pop rbx
ret

Function at 0x1001846a0
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, 0x20
mov ebx, edx
mov rbp, rcx
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x1001846e4
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x1001846f5
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
jne 0x10018472c
call fcn.100063d30
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x100184725
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rcx, qword [rdi + 0xd8]
mov eax, dword [rcx + 0x220]
not eax
and eax, ebx
cmp eax, ebx
je 0x100184749
not eax
and eax, ebx
not ebx
or dword [rbp], eax
and dword [rcx + 0x220], ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x100184850
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100184885
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100184896
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1001848cd
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1001848c6
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov rcx, qword [rax + 0x210]
mov eax, dword [rcx + 0xb4]
test al, 4
je 0x10018490e
mov rax, qword [rcx + 0x98]
test byte [rax + 0x220], 1
jne 0x10018490e
mov eax, dword [rax + 0x2d8]
test al, al
js 0x10018490e
bt eax, 8
jb 0x10018490e
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100184f30
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x90
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rbx, rcx
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.100057f20
nop
mov edx, 0x2000017b
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.1000580b0
nop
mov dword [rsp + 0xa8], 0
mov edx, 1
lea rcx, [rsp + 0xa8]
call fcn.1001846a0
nop
xor edx, edx
mov rcx, rbx
call fcn.100186b90
nop
call fcn.100068a00
mov rdi, rax
mov rcx, qword gs:[0x30]
lea rbx, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100184fc8
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100184fd9
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x100185011
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rdi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10018500a
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rcx, qword [rdi + 0xd8]
mov eax, dword [rsp + 0xa8]
or dword [rcx + 0x220], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xa8], rax
cmp dword [rsp + 0x40], 0
je 0x100185061
cmp dword [rsp + 0x44], 0
je 0x10018504a
mov rax, qword [rsp + 0x48]
or dword [rax + 0x2d8], 0x800
jmp 0x100185061
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rsp + 0x48]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x58]
call fcn.100057e00
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x30]
not eax
and dword [rcx + 0x220], eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x100186b90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r15, rdx
mov rbx, rcx
xor r14d, r14d
nop word [rax + rax]
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, qword [rbx + 0x1f8]
call fcn.100185800
mov dword [rsp + 0xc8], eax
cmp eax, 2
jne 0x100186be7
jmp 0x100186c66
cmp eax, 1
jne 0x100186bee
jmp 0x100186bc0
call fcn.10011b7d0
test eax, eax
je 0x100186c0d
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x28]
mov qword [rbx + 0x30], r11
jmp 0x100186c1e
mov rax, qword [0x7ffe0008]
mov qword [rsp + 0x30], rax
mov qword [rbx + 0x30], rax
mov rdx, r15
mov rcx, qword [rsp + 0x20]
call fcn.10018e5d0
mov dword [rsp + 0xc0], eax
lock inc qword [rbx + 0x28]
mov qword [rbx + 0x30], r14
mov rcx, qword [rbx + 0x1f8]
mov qword [rsp + 0x50], rcx
add rcx, 0x40
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0x20]
call fcn.100196f10
call fcn.100184850
test eax, eax
je 0x100186c7a
mov rdx, rbx
mov rcx, qword [rbx + 0x1f8]
call fcn.100185c70
jmp 0x100186d19
jmp 0x100186c8f
call fcn.100068a00
mov rsi, rax
mov rdi, qword gs:[0x30]
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100186cba
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x100186ccb
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x100186d02
call fcn.100063d30
call fcn.100068a00
mov rsi, rax
mov rdi, qword gs:[0x30]
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100186cfb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
cmp dword [rax + 0x204], 0
je 0x100186bc0
call fcn.1000618f0
jmp 0x100186bc0
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x10018aa90
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
xor ebp, ebp
mov qword [rsp + 0x78], rbp
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 6
mov r9d, 0xe7
lea r8, [0x1000513e0]
lea edx, [rbp + 0x30]
call qword [rax + 0x48]
mov r14, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x10018ab01
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov dword [rax + 0x10], 1
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
lea rax, [0x10018af20]
mov qword [r14 + 0x28], rax
jmp 0x10018ab04
mov r14, rbp
mov rbx, r14
mov qword [rsp + 0x78], rbx
test r14, r14
je 0x10018abed
call fcn.100184960
mov dword [0x1004c6104], eax
test eax, eax
je 0x10018ab80
lea rcx, [0x1000062f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
lea rdx, [0x100051418]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, [0x100051428]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1004c69d0], rax
lea rdx, [0x100051438]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1004c69d8], rax
lea rcx, [fcn.10018aea0]
call rsi
jmp 0x10018ab86
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
je 0x10018abed
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x36080
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x10018abed
mov qword [rsp + 0x80], rax
mov rcx, rax
call fcn.10018b150
nop
test rax, rax
je 0x10018abed
mov qword [0x1004c6110], rax
mov rbx, rbp
mov qword [rsp + 0x78], rbx
mov qword [0x1004c6108], r14
mov dword [0x100245db8], edi
mov rcx, r14
call fcn.1000cf100
mov ebp, 1
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x10018ac51
cmp qword [rbx + 0x18], 0
je 0x10018ac06
mov rcx, rbx
call fcn.1000c9cb0
mov rax, rbx
mov edx, 0x200
and rax, 0xffffffffffffe000
je 0x10018ac20
cmp word [rax + 4], dx
jne 0x10018ac20
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rbx
je 0x10018ac3d
cmp word [rcx + 4], dx
jne 0x10018ac3d
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10018ac51
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 0x28]
mov eax, ebp
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret