joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c6e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140020038]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp qword [rcx + 0x38], 0
mov rsi, rdx
mov rbx, rcx
je 0x14000c742
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c769
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000c742
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000f7f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000c7de
nop word [rax + rax]
mov rcx, qword [rbx + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
test rcx, rcx
je 0x14000c80e
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [rax + 0x10]
test eax, eax
je 0x14000c7de
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000c7a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000c804
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov eax, 1
jmp 0x14000c744
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
Function at 0x14000ce80
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r14
sub rsp, 0x80
mov rax, qword [0x140020038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
test rcx, rcx
jne 0x14000ceaa
mov eax, 0x80070057
jmp 0x14000cf3b
mov qword [rsp + 0x98], rbx
xor edx, edx
mov qword [rsp + 0xa0], rbp
xor ebp, ebp
mov qword [rcx], rbp
xor ecx, ecx
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov r8d, 8
mov edi, eax
test eax, eax
jns 0x14000cf52
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx]
add rsi, r8
mov byte [rsi], bpl
cmp eax, 0x80010106
je 0x14000cf64
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000cf0d
mov rax, qword [rcx]
call qword [rax + 0x10]
test edi, edi
jns 0x14000cf1f
cmp byte [rsi], bpl
je 0x14000cf1f
call qword [sym.imp.ole32.dll_CoUninitialize]
mov byte [rsi], bpl
mov rsi, qword [rsp + 0x78]
mov eax, edi
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000f7f0
add rsp, 0x80
pop r14
ret
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
add rsi, r8
mov byte [rsi], 1
xor edx, edx
mov qword [rsp + 0x58], rbp
lea rax, [rsp + 0x58]
lea r9, [0x140012e58]
mov qword [rsp + 0x20], rax
lea rcx, [0x140012e48]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x14000cefd
cmp qword [rsp + 0x58], rbp
je 0x14000cefd
mov ecx, 0x18
call fcn.14000f810
mov rbx, rax
test rax, rax
je 0x14000d0b9
mov qword [rax], rbp
lea rcx, str.ROOTCIMV2
mov qword [rax + 0x10], 1
mov qword [rax + 8], rbp
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14000d0b9
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rdx, rax
mov r10, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [r10 + 0x18]
mov edi, eax
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14000d053
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000d034
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d046
call fcn.14000fa9c
mov qword [rbx + 8], rbp
mov edx, 0x18
mov rcx, rbx
call fcn.14000fa9c
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x58], rbp
test edi, edi
js 0x14000cefd
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000cf1f
mov dword [rsp + 0x38], ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
lea edx, [r9 + 0xa]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test eax, eax
js 0x14000cefd
mov rax, qword [rsp + 0x60]
mov qword [r14], rax
jmp 0x14000cf1f
mov ecx, 0x8007000e
call fcn.14000f4b0
int3
Function at 0x14000e1c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140020038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400255e4], eax
jle 0x14000e330
lea rcx, [0x1400255e4]
call fcn.14000fc68
cmp dword [0x1400255e4], 0xffffffff
jne 0x14000e330
xor edi, edi
mov qword [0x140025610], rdi
mov qword [0x140025620], rdi
mov qword [0x140025628], rdi
mov qword [0x140025620], rdi
mov qword [0x140025628], 7
mov word [0x140025610], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140012ca0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x140025610]
test eax, eax
js 0x14000e293
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000e2a8
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000e280
mov rcx, rbx
call fcn.14000ae00
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000e2a8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x140025620]
test rcx, rcx
je 0x14000e313
mov rax, rbx
mov r9, qword [0x140025610]
mov rdx, qword [0x140025628]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14000e313
cmp r8w, 0x2f
je 0x14000e313
cmp rcx, rdx
jae 0x14000e305
lea rax, [rcx + 1]
mov qword [0x140025620], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14000e313
mov r9d, 0x5c
mov rcx, rbx
call fcn.14000ef70
lea rcx, [0x1400118b0]
call fcn.14000fa84
lea rcx, [0x1400255e4]
call fcn.14000fc08
mov rax, rbx
jmp 0x14000e337
lea rax, [0x140025610]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000f7f0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e350
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140020038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400255e0], eax
jle 0x14000e4c0
lea rcx, [0x1400255e0]
call fcn.14000fc68
cmp dword [0x1400255e0], 0xffffffff
jne 0x14000e4c0
xor edi, edi
mov qword [0x1400255c0], rdi
mov qword [0x1400255d0], rdi
mov qword [0x1400255d8], rdi
mov qword [0x1400255d0], rdi
mov qword [0x1400255d8], 7
mov word [0x1400255c0], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140012cb0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x1400255c0]
test eax, eax
js 0x14000e423
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000e438
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000e410
mov rcx, rbx
call fcn.14000ae00
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000e438
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x1400255d0]
test rcx, rcx
je 0x14000e4a3
mov rax, rbx
mov r9, qword [0x1400255c0]
mov rdx, qword [0x1400255d8]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14000e4a3
cmp r8w, 0x2f
je 0x14000e4a3
cmp rcx, rdx
jae 0x14000e495
lea rax, [rcx + 1]
mov qword [0x1400255d0], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14000e4a3
mov r9d, 0x5c
mov rcx, rbx
call fcn.14000ef70
lea rcx, [0x140011920]
call fcn.14000fa84
lea rcx, [0x1400255e0]
call fcn.14000fc08
mov rax, rbx
jmp 0x14000e4c7
lea rax, [0x1400255c0]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000f7f0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002074
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str._MSI_TEST
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400020d6
movzx eax, word [rsp + 0x20]
lea rdx, [rsp + 0x20]
test eax, eax
je 0x1400020d4
mov ecx, dword [0x14000fbb0]
and eax, 0x1f
lea rdx, [rdx + 2]
bts ecx, eax
movzx eax, word [rdx]
test eax, eax
jne 0x1400020bd
mov dword [0x14000fbb0], ecx
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140008ea0
add rsp, 0xb8
ret
Function at 0x1400052a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1400052eb
cmp al, 6
jb 0x1400052eb
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400052eb
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400052eb
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x14000a618]
add rsp, 0x38
ret
Function at 0x140008764
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
xor r15d, r15d
mov r12d, 0x5c
test rbx, rbx
je 0x1400087e8
cmp word [rbx], r15w
je 0x1400087e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x1400087e8
cmp word [rbx], 0x7f
jae 0x1400087d7
cmp word [rbx + 2], 0x3a
je 0x1400088d2
cmp word [rbx], r12w
jne 0x1400087e8
cmp word [rbx + 2], r12w
je 0x1400088d2
cmp byte [0x1400100da], r15b
mov ebp, r15d
jne 0x140008869
cmp byte [0x14000fdc4], r15b
je 0x140008869
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x1400088d2
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x105
test rax, rax
jne 0x14000883b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, r15d
jmp 0x140008854
mov edx, esi
lea rcx, [rsp + 0x20]
call qword [0x14000a618]
mov edi, eax
test eax, eax
jne 0x140008856
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000887d
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x1400088d2
lea ecx, [rdi + 2]
cmp ecx, esi
ja 0x1400088d2
mov ecx, edi
lea eax, [rdi + 1]
mov r8, rbx
mov rdx, rsi
mov word [rsp + rcx*2 + 0x20], r12w
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x20], r15w
call fcn.1400011a4
test eax, eax
js 0x1400088d2
lea r8, str..DLL
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400011a4
test eax, eax
js 0x1400088d2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1400088d4
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140008ea0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400092f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000933c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009334
cmp dword [rcx + 0x3c], edx
jl 0x140009334
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009334
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000933c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140d7b000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140d7b00a
jmp 0x140d7d00f
jmp fcn.140960058
Function at 0x140002945
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [rsp + 0x28]
cmp r15, 1
jne 0x140002981
push qword [0x1400204e4]
pop rcx
call fcn.140007168
and rax, rax
je 0x140002981
push qword [0x1400204e4]
pop rcx
call fcn.140007204
push qword [0x140020594]
pop rcx
call fcn.14000e1bc
push qword [0x140020574]
pop rcx
call fcn.14000e1bc
call fcn.140004884
push qword [0x140020534]
pop rcx
call fcn.14000e1bc
push qword [0x14002050c]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
push qword [0x1400205a4]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
mov rax, qword [rsp + 0x40]
mov qword [0x1400204dc], rax
jmp 0x140001250
Function at 0x14000348c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [rsp + 0x28], rax
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x1400204f4], rax
push qword [0x1400204f4]
pop rcx
call fcn.14000d130
mov qword [rsp + 0x30], rax
push qword [0x1400204f4]
push qword [rsp + 0x38]
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call fcn.14000d260
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.dll_FreeResource
mov rax, qword [rsp + 0x30]
jmp 0x14000350a
add rsp, 0x38
ret

Function at 0x14000475f
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov rcx, qword [rsp + 0x70]
call fcn.140006b38
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140012a60
add rsp, 0x10
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.140012a60
add rsp, 0x10
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
push 0x800
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140008160
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140012980
push 0x800
push qword [rsp + 0x40]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
push qword [rsp + 0x38]
pop rcx
call sub.SHLWAPI.DLL_PathAddBackslashW
mov rcx, qword [rsp + 0x38]
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012bc0
add rsp, 0x28
pop rax
push rax
call fcn.140012d10
pop rdx
add rax, rdx
jmp 0x140004847
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140012ad0
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140012ad0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140012ad0
add rsp, 0x28
pop rax
add rsp, 0x48
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14000727c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140007342
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007306
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007303
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020640]
mov rdx, rsi
call fcn.1400123b8
jmp 0x140007306
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072d3
mov rdx, qword [0x14001f118]
lea rcx, [0x140020640]
mov rdi, rdx
inc rdx
mov qword [0x14001f118], rdx
lea edx, [rbx + 0x20]
call fcn.140012400
lea rcx, [0x140021210]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400074d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x140007634
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x1400196a0]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x140007600
cmp word [r14 + 2], di
je 0x140007600
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140007540
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14000756d
cmp word [rbx], bp
je 0x14000756d
add rbx, 2
jmp 0x140007550
inc edi
cmp edi, r12d
je 0x140007582
cmp word [rbx], bp
je 0x14000758b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140007550
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.140012da0
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400075ba
mov ecx, r13d
call fcn.140012e10
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.140012e40
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400075de
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x14000760d
test ax, ax
jne 0x140007620
inc edi
cmp edi, edx
je 0x140007626
test ax, ax
je 0x14000758e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140007600
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14000758e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140012f80
Function at 0x140008000
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140008031
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008010
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp 0x140008040
mov ecx, r8d
jmp fcn.140012f80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov ebp, r8d
test r8d, r8d
mov edi, r9d
mov esi, edx
mov rbx, rcx
cmovs ebp, r15d
call fcn.140012da0
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.140012e40
mov rdi, rax
test r14d, r14d
je 0x140008091
mov ecx, r14d
call fcn.140012fc0
mov rbx, rax
test rbx, rbx
je 0x1400080d7
cmp esi, 1
jle 0x1400080b1
nop dword [rax + rax]
cmp word [rbx], r15w
je 0x1400080d7
dec esi
add rbx, 2
cmp esi, 1
jg 0x1400080a0
movzx eax, word [rbx]
test ax, ax
je 0x1400080d7
sub rbx, rdi
nop dword [rax]
test ebp, ebp
je 0x1400080d7
mov word [rdi], ax
movzx eax, word [rbx + rdi + 2]
add rdi, 2
dec ebp
test ax, ax
jne 0x1400080c0
mov ecx, ebp
call fcn.140013070
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov word [rdi], r15w
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140008100
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140012e40
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140016e8c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140008130
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140013070