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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x101ce530]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bdc28
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bdc20
mov ecx, dword [0x101ce528]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x101ce52c]
jne 0x100bdc20
mov esi, dword [eax + ecx*8]
test esi, esi
je 0x100bdc20
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x100bdbff
movq xmm0, qword [esi]
mov eax, 1
lock xadd dword [ebx], eax
test eax, eax
jle 0x100bdc74
pshufd xmm0, xmm0, 0x55
movd dword [ebp - 0x14], xmm0
mov edi, dword [esi + 8]
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov edi, edx
lock dec dword [ebx]
jne 0x100bdbe4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 8]
call dword [section..00cfg]
push ebx
call ecx
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [ebp - 0x14]
and ecx, 0xff000000
or edi, ecx
movd xmm0, edi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [esi], xmm1
mov eax, dword [esi]
mov edx, dword [esi + 4]
nop word cs:[eax + eax]
mov ecx, edx
or ecx, 0x40000000
mov ebx, eax
lock cmpxchg8b qword [esi]
jne 0x100bdc10
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101ce530
call fcn.10145c47
add esp, 4
cmp dword [0x101ce530], 0xffffffff
jne 0x100bdb5a
mov dword [0x101ce52c], 0
mov dword [0x101ce528], 0xffffffff
mov ecx, 0x101ce528
push 0
call fcn.1007a5a0
push 0x101ce530
call fcn.10145cbd
add esp, 4
jmp 0x100bdb5a
int3

Function at 0x100bdc80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101ce540]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bdccc
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bdd11
mov ecx, dword [0x101ce538]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x101ce53c]
jne 0x100bdd11
mov eax, dword [eax + ecx*8]
test eax, eax
je 0x100bdd11
pop ebp
ret
push 0x101ce540
call fcn.10145c47
add esp, 4
cmp dword [0x101ce540], 0xffffffff
jne 0x100bdca0
mov dword [0x101ce53c], 0
mov dword [0x101ce538], 0xffffffff
mov ecx, 0x101ce538
push 0
call fcn.1007a5a0
push 0x101ce540
call fcn.10145cbd
add esp, 4
jmp 0x100bdca0
int3
Function at 0x100bdd20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
test eax, eax
je 0x100bdd36
lock inc dword [eax + 4]
push eax
call fcn.10079ca0
mov eax, dword [0x101ce540]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bdd95
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bdd8a
mov ecx, dword [0x101ce538]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x101ce53c]
mov edx, dword [0x101ce538]
mov dword [eax + edx*8 + 4], ecx
mov eax, esi
pop esi
pop ebp
ret 4
test esi, esi
je 0x100bdd83
call fcn.1007a6e0
jmp 0x100bdd6a
push 0x101ce540
call fcn.10145c47
add esp, 4
cmp dword [0x101ce540], 0xffffffff
jne 0x100bdd59
mov dword [0x101ce53c], 0
mov dword [0x101ce538], 0xffffffff
mov ecx, 0x101ce538
push 0
call fcn.1007a5a0
push 0x101ce540
call fcn.10145cbd
add esp, 4
jmp 0x100bdd59

Function at 0x100bdde0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
mov eax, dword [0x101ce540]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bde5d
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bde32
mov ecx, dword [0x101ce538]
mov dword [eax + ecx*8], 0
mov ecx, dword [0x101ce53c]
mov edx, dword [0x101ce538]
mov dword [eax + edx*8 + 4], ecx
lea ecx, [esi + 4]
call fcn.10079d50
mov esi, dword [esi]
test esi, esi
je 0x100bde59
lock dec dword [esi + 4]
jne 0x100bde59
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 1
call edi
pop esi
pop edi
pop ebp
ret
push 0x101ce540
call fcn.10145c47
add esp, 4
cmp dword [0x101ce540], 0xffffffff
jne 0x100bde04
mov dword [0x101ce53c], 0
mov dword [0x101ce538], 0xffffffff
mov ecx, 0x101ce538
push 0
call fcn.1007a5a0
push 0x101ce540
call fcn.10145cbd
add esp, 4
jmp 0x100bde04
Function at 0x100bdeb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x100bdfe2
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
movzx edx, cx
shr ecx, 0x10
and ecx, 0x3fff
or ecx, 0x8000
mov edi, eax
and edi, 0xfff
or edi, 0x4000
shr eax, 0x10
lea ebx, [esp + 4]
push edx
push dword [esp + 0x1c]
push ecx
push edi
push eax
push dword [esp + 0x28]
push str._08x__04x__04x__04x__012llx
push ebx
call fcn.100772f0
add esp, 0x20
cmp byte [esp + 0xf], 0
js 0x100bdf63
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
movq xmm0, qword [esp + 4]
movq qword [esi], xmm0
jmp 0x100bdfc8
mov edi, dword [esp + 4]
mov edx, dword [esp + 8]
cmp edx, 0xa
ja 0x100bdf7b
mov byte [esi + 0xb], dl
mov eax, esi
cmp eax, edi
jbe 0x100bdfab
jmp 0x100bdfb3
cmp edx, 0x7ffffff0
jae 0x100bdfdd
mov dword [esp], edx
mov ebx, dword [esp]
or ebx, 0xf
inc ebx
push ebx
call fcn.10145ba4
add esp, 4
mov dword [esi], eax
or ebx, 0x80000000
mov dword [esi + 8], ebx
mov edx, dword [esp]
mov dword [esi + 4], edx
cmp eax, edi
ja 0x100bdfb3
lea ecx, [eax + edx]
inc ecx
cmp ecx, edi
ja 0x100bdfe5
inc edx
push edx
push edi
push eax
call fcn.10148eb0
add esp, 0xc
push edi
call fcn.10145bd4
add esp, 4
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1015b4f0
int3
int3
Function at 0x100bf2a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x101ce500]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bf37d
mov esi, dword [ebp + 8]
mov ecx, 0x101ce4f8
call fcn.1007a870
test eax, eax
je 0x100bf2e1
mov ecx, 3
cmp dword [eax + 0x24], 3
je 0x100bf319
mov eax, dword [0x101ce500]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bf415
mov ecx, 0x101ce4f8
call fcn.1007a870
xor ecx, ecx
test eax, eax
je 0x100bf319
cmp dword [eax + 0x24], 1
sete cl
push ecx
push esi
call fcn.10084160
add esp, 8
mov eax, dword [0x101ce56c]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bf3c9
inc esi
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bf372
mov ecx, dword [0x101ce564]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x101ce568]
mov edx, dword [0x101ce564]
mov dword [eax + edx*8 + 4], ecx
pop esi
pop ebp
ret
test esi, esi
je 0x100bf36f
call fcn.1007a6e0
jmp 0x100bf356
push 0x101ce500
call fcn.10145c47
add esp, 4
cmp dword [0x101ce500], 0xffffffff
jne 0x100bf2c5
mov dword [0x101ce4fc], 0
mov dword [0x101ce4f8], 0xffffffff
mov ecx, 0x101ce4f8
push 0
call fcn.1007a5a0
push 0x101ce500
call fcn.10145cbd
add esp, 4
jmp 0x100bf2c5
push 0x101ce56c
call fcn.10145c47
add esp, 4
cmp dword [0x101ce56c], 0xffffffff
jne 0x100bf344
mov dword [0x101ce564], 0xffffffff
mov dword [0x101ce568], 0
mov ecx, 0x101ce564
push 0
call fcn.1007a5a0
push 0x101ce56c
call fcn.10145cbd
add esp, 4
jmp 0x100bf344
push 0x101ce500
call fcn.10145c47
add esp, 4
cmp dword [0x101ce500], 0xffffffff
jne 0x100bf302
mov dword [0x101ce4fc], 0
mov dword [0x101ce4f8], 0xffffffff
mov ecx, 0x101ce4f8
push 0
call fcn.1007a5a0
push 0x101ce500
call fcn.10145cbd
add esp, 4
jmp 0x100bf302
Function at 0x100c0350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100c0395
mov ecx, dword [esi + 0x3f4]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [esi + 0x3f8]
jne 0x100c0395
cmp dword [eax + ecx*8], 0
jne 0x100c04f3
mov edi, dword [esi + 0x3fc]
mov ecx, edi
shr ecx, 0xe
mov eax, 1
shl eax, cl
mov dword [ebp - 0x28], eax
mov eax, edi
shr eax, 0x13
mov dword [ebp - 0x24], eax
mov eax, dword [eax*4 + 0x101c1e84]
bt eax, ecx
jae 0x100c044b
push edi
call fcn.10069180
add esp, 4
test edi, edi
je 0x100c045f
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100c0505
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.1009e290
add esp, 8
mov dword [ebp - 0x1c], esi
mov edi, dword [esi + 0x404]
test edi, edi
je 0x100c04d1
mov ecx, eax
mov edx, edi
shr edx, 1
and edx, 0x55555555
mov eax, edi
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul edx, edx, 0x1010101
shr edx, 0x18
cmp edx, 1
ja 0x100c0462
lea ebx, [edi - 1]
and ebx, ecx
mov esi, dword [ebp - 0x1c]
jmp 0x100c047b
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x101c9e84], 1
test edi, edi
jne 0x100c03d3
int3
cmp ecx, edi
mov esi, dword [ebp - 0x1c]
jae 0x100c046d
mov ebx, ecx
jmp 0x100c047b
mov eax, ecx
mov dword [ebp - 0x18], edx
xor edx, edx
div edi
mov ebx, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x400]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x100c04d1
mov esi, dword [eax]
test esi, esi
je 0x100c04d1
lea eax, [edi - 1]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], edx
jmp 0x100c04ae
mov eax, dword [ebp - 0x30]
cmp dword [esi + 8], eax
je 0x100c0511
mov esi, dword [esi]
test esi, esi
je 0x100c04d1
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x100c04a0
cmp edx, 1
ja 0x100c04c0
and eax, dword [ebp - 0x20]
jmp 0x100c04cd
cmp eax, edi
jb 0x100c04cd
xor edx, edx
div edi
mov eax, edx
mov edx, dword [ebp - 0x18]
cmp eax, ebx
je 0x100c04a8
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
test dword [ecx*4 + 0x101c1e84], eax
je 0x100c04f3
push esi
call fcn.10069280
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
call fcn.10083990
jmp 0x100c03e2
add esi, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov edx, esi
push dword [ebp + 8]
call fcn.100c0540
int3
Function at 0x100e82f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov dword [0x101ce680], 0
mov dword [0x101ce684], 0
mov dword [0x101ce688], 0
mov dword [0x101ce694], 0
mov dword [0x101ce690], 0
push 4
call fcn.10145ba4
add esp, 4
mov esi, eax
push 0x18
call fcn.10145ba4
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [esi], eax
push 8
call fcn.10145ba4
add esp, 4
mov edi, eax
mov dword [eax], esi
mov dword [eax + 4], 0x101ce680
push 8
call fcn.10145ba4
add esp, 4
mov dword [eax], 0x100e83e0
mov dword [eax + 4], edi
push 0
push 0
push eax
push 0x10058bb0
push 0
push 0
call fcn.101555ba
add esp, 0x18
test eax, eax
je 0x100e83ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100e83aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100e83bf
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, 0x16
test ecx, ecx
jne 0x100e83ca
push str.thread::detach_failed
push eax
call fcn.10057e9c
push str.thread_constructor_failed
push ecx
call fcn.10057e9c
int3

Function at 0x100eeb30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x100eeb41
test eax, eax
jne 0x100eeb91
test eax, eax
jne 0x100eeb57
mov ecx, dword [0x101ce6b8]
test ecx, ecx
je 0x100eeb57
call dword [section..00cfg]
call ecx
cmp dword [0x101ce6b0], 0
je 0x100eeb91
mov esi, dword [0x101ce6b4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x100eeb97
test esi, esi
je 0x100eeb91
mov ecx, dword [0x101ce6b0]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x100eeb7f
jmp 0x100eeb91
Function at 0x100f8fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
xor ecx, ecx
cmp dword [ebp + 8], 0
sete cl
push 0
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], 0
test eax, eax
je 0x100f9052
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x100f9027
call fcn.10065990
push dword [esi]
call fcn.100849b0
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x100f9036
mov dword [esi], edi
call fcn.10065990
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x100f9059
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov byte [esi + 4], 1
int3
int3
Function at 0x100fae60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100fc080
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100fbeb0
push 0x101ce70c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100fb07f
cmp dword [0x101ce710], 0
je 0x100faefb
nop word cs:[eax + eax]
push 0
push 0x154
push 0x101a6dd4
call fcn.100a6c20
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x100faf24
cmp byte [0x101bfbe0], 0
je 0x100faf24
call fcn.101557f1
test eax, eax
je 0x100fb06d
mov ecx, eax
call dword [section..00cfg]
push 0x154
call ecx
add esp, 4
test eax, eax
jne 0x100faeb0
jmp 0x100fb06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x100faeb0
mov esi, dword [esi]
test esi, esi
jne 0x100faf63
jmp 0x100faeb0
test esi, esi
je 0x100fb06d
mov dword [esi], 0x14c
add esi, 8
je 0x100fb06d
push 0x14c
push 0
push esi
call fcn.10149430
add esp, 0xc
push 0x100fb090
push esi
push 0
call fcn.100fc0a0
add esp, 0xc
test eax, eax
je 0x100fb06d
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp ebx, 2
jne 0x100faf78
test eax, eax
jne 0x100faf78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x140]
lea eax, [ecx + 1]
and eax, 0xf
mov dword [esi + 0x140], eax
cmp eax, dword [esi + 0x144]
jne 0x100fafa1
add ecx, 2
and ecx, 0xf
mov dword [esi + 0x144], ecx
mov ecx, dword [ebp + 0x18]
lea eax, [eax + eax*4]
lea edx, [esi + eax*4]
mov dword [ebp - 0x20], edx
mov edx, dword [esi + eax*4 + 4]
test edx, edx
je 0x100fb047
mov dword [ebp - 0x18], eax
mov edi, dword [edx - 8]
add edx, 0xfffffff8
mov ecx, edi
add ecx, 8
je 0x100fb02e
mov eax, edi
and eax, 7
je 0x100faff5
xor ebx, ebx
nop word cs:[eax + eax]
mov byte [edx + ebx], 0
inc ebx
cmp eax, ebx
jne 0x100fafe0
lea eax, [edx + ebx]
sub ecx, ebx
cmp edi, 0xfffffff8
jbe 0x100faffc
jmp 0x100fb02e
mov eax, edx
cmp edi, 0xfffffff8
ja 0x100fb02e
xor ebx, ebx
nop
mov byte [eax + ebx], 0
mov byte [eax + ebx + 1], 0
mov byte [eax + ebx + 2], 0
mov byte [eax + ebx + 3], 0
mov byte [eax + ebx + 4], 0
mov byte [eax + ebx + 5], 0
mov byte [eax + ebx + 6], 0
mov byte [eax + ebx + 7], 0
add ebx, 8
cmp ecx, ebx
jne 0x100fb000
push 0
push edx
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x20]
movups xmmword [edi + 4], xmm0
mov edx, dword [ebp + 0x14]
mov dword [edi], edx
mov word [esi + eax*4 + 0xc], cx
shl ebx, 0x18
mov ecx, dword [ebp - 0x1c]
and ecx, 0xfff
or ecx, ebx
mov dword [esi + eax*4 + 8], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1015b4f0
int3
Function at 0x100fbed0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x101b9014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x100fc05e
mov dword [ebp - 0x14], 0x100fc080
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100fbeb0
push 0x101ce70c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100fc072
cmp dword [0x101ce710], 0
jne 0x100fc05e
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100fc05e
mov esi, eax
mov ebx, eax
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x101ce71c]
mov eax, dword [0x101ce720]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x101ce724]
mov dword [ebp - 0x20], eax
mov eax, dword [0x101ce728]
mov dword [ebp - 0x24], eax
mov eax, dword [0x101ce72c]
mov dword [ebp - 0x28], eax
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x100fbf8f
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100fbfa5
mov edi, dword [ebx + 4]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100fbfbb
mov edi, dword [ebx + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x100fbfd1
mov edi, dword [ebx + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x100fbfe7
mov edi, dword [ebx + 0x10]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
add esi, 0xfffffff8
mov ecx, dword [ebx - 8]
mov eax, ecx
add eax, 8
je 0x100fc04e
mov edx, ecx
and edx, 7
je 0x100fc015
xor edi, edi
nop dword [eax]
mov byte [esi + edi], 0
inc edi
cmp edx, edi
jne 0x100fc000
lea edx, [esi + edi]
sub eax, edi
cmp ecx, 0xfffffff8
jbe 0x100fc01c
jmp 0x100fc04e
mov edx, esi
cmp ecx, 0xfffffff8
ja 0x100fc04e
xor ecx, ecx
nop
mov byte [edx + ecx], 0
mov byte [edx + ecx + 1], 0
mov byte [edx + ecx + 2], 0
mov byte [edx + ecx + 3], 0
mov byte [edx + ecx + 4], 0
mov byte [edx + ecx + 5], 0
mov byte [edx + ecx + 6], 0
mov byte [edx + ecx + 7], 0
add ecx, 8
cmp eax, ecx
jne 0x100fc020
push 0
push esi
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.1015b4f0
int3
Function at 0x100fc0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100fc080
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100fbeb0
push 0x101ce70c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100fc24f
mov esi, dword [ebp + 0x10]
cmp dword [0x101ce710], 0
je 0x100fc0f8
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0xc]
call esi
add esp, 4
xor esi, esi
jmp 0x100fc144
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x100fc177
mov edi, dword [ebp + 8]
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [edi*4 + 0x101ce71c], esi
push 0x101ce718
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [ebx + edi*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
call dword [section..00cfg]
push 0x1c
call ecx
add esp, 4
test eax, eax
je 0x100fc0e4
push 0
push 0x1c
push 0x101a6dd4
call fcn.100a6c20
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x100fc1a5
cmp byte [0x101bfbe0], 0
je 0x100fc1a5
call fcn.101557f1
test eax, eax
jne 0x100fc160
jmp 0x100fc0e4
test edi, edi
je 0x100fc0e4
mov dword [edi], 0x14
mov ebx, edi
add ebx, 8
je 0x100fc0e4
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
push ebx
push dword [0x101ce714]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100fc119
mov ecx, dword [edi]
mov eax, ecx
add eax, 8
je 0x100fc23a
mov edx, ecx
and edx, 7
je 0x100fc203
xor ebx, ebx
mov byte [edi + ebx], 0
inc ebx
cmp edx, ebx
jne 0x100fc1f2
mov edx, edi
add edx, ebx
sub eax, ebx
jmp 0x100fc205
mov edx, edi
cmp ecx, 0xfffffff8
ja 0x100fc23a
xor ecx, ecx
mov byte [edx + ecx], 0
mov byte [edx + ecx + 1], 0
mov byte [edx + ecx + 2], 0
mov byte [edx + ecx + 3], 0
mov byte [edx + ecx + 4], 0
mov byte [edx + ecx + 5], 0
mov byte [edx + ecx + 6], 0
mov byte [edx + ecx + 7], 0
add ecx, 8
cmp eax, ecx
jne 0x100fc20c
push 0
push edi
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
jmp 0x100fc0e4
call fcn.1015b4f0
int3
Function at 0x100fcea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ecx], 0x1019bc80
mov dword [ecx + 4], eax
mov eax, dword [0x102cf528]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100fcf65
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100fcf2f
mov ecx, dword [0x102cf520]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x102cf524]
jne 0x100fcf2f
mov eax, dword [eax + ecx*8]
mov dword [esi + 8], eax
test eax, eax
je 0x100fcf36
mov eax, dword [0x102cf528]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100fcff9
mov ecx, 0x102cf520
push 0
call fcn.1007a8a0
jmp 0x100fcf36
mov dword [esi + 8], 0
mov eax, dword [0x102cf528]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100fcfb1
mov ecx, 0x102cf520
push esi
call fcn.1007a8a0
mov eax, esi
pop esi
pop ebp
ret 4
push 0x102cf528
call fcn.10145c47
add esp, 4
cmp dword [0x102cf528], 0xffffffff
jne 0x100fced3
mov dword [0x102cf524], 0
mov dword [0x102cf520], 0xffffffff
mov ecx, 0x102cf520
push 0
call fcn.1007a5a0
push 0x102cf528
call fcn.10145cbd
add esp, 4
jmp 0x100fced3
push 0x102cf528
call fcn.10145c47
add esp, 4
cmp dword [0x102cf528], 0xffffffff
jne 0x100fcf53
mov dword [0x102cf524], 0
mov dword [0x102cf520], 0xffffffff
mov ecx, 0x102cf520
push 0
call fcn.1007a5a0
push 0x102cf528
call fcn.10145cbd
add esp, 4
jmp 0x100fcf53
push 0x102cf528
call fcn.10145c47
add esp, 4
cmp dword [0x102cf528], 0xffffffff
jne 0x100fcf21
mov dword [0x102cf524], 0
mov dword [0x102cf520], 0xffffffff
mov ecx, 0x102cf520
push 0
call fcn.1007a5a0
push 0x102cf528
call fcn.10145cbd
add esp, 4
jmp 0x100fcf21