joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009d700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea edi, [esp + 0x10]
push 0x3e
push str....._base_files_file_win.cc
push str.Read
push edi
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push 0
push edi
call fcn.100bcee0
test byte [0x101bacd0], 0x19
jne 0x1009d820
mov ebx, 0xffffffff
test esi, esi
js 0x1009d7f7
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x1009d7f7
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x24]
push edi
push edx
push eax
push ecx
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009d7de
mov ebx, dword [esp + 0x24]
test ebx, ebx
jns 0x1009d7ee
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009d858
lea ecx, [esp + 0x30]
call fcn.100bd410
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
sub esp, 8
movq xmm0, qword [esp + 0x30]
movq qword [esp], xmm0
lea edx, [esp + 0x2c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x1009d771
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x28]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009d800
Function at 0x1009d8b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov ebx, esp
push 0x5b
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push 0
push ebx
call fcn.100bcee0
test byte [0x101bacd0], 0x19
jne 0x1009d99e
test edi, edi
js 0x1009d9d9
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009d95e
mov ebx, dword [esp + 0x18]
test ebx, ebx
jns 0x1009d96e
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
mov ecx, esp
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009d9e7
lea ecx, [esp + 0x20]
call fcn.100bd410
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
sub esp, 8
movq xmm0, qword [esp + 0x20]
movq qword [esp], xmm0
lea edx, [esp + 0x1c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
test edi, edi
jns 0x1009d922
mov ebx, 0xffffffff
test byte [0x101bacd0], 0x19
je 0x1009d97e
mov dword [esp + 4], 0
mov dword [esp], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x18]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009d97e
Function at 0x1009da40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea ebx, [esp + 0x10]
push 0x7b
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push 0
push ebx
call fcn.100bcee0
test byte [0x101bacd0], 0x19
jne 0x1009db4a
mov edi, 0xffffffff
test esi, esi
js 0x1009db21
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x1009db21
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x24]
push ebx
push edx
push eax
push ecx
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009db82
lea ecx, [esp + 0x30]
call fcn.100bd410
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101465a3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
sub esp, 8
movq xmm0, qword [esp + 0x30]
movq qword [esp], xmm0
lea edx, [esp + 0x2c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x1009dab1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x28]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009db2a
Function at 0x1009dbd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov ebx, esp
push 0x93
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push 0
push ebx
call fcn.100bcee0
test byte [0x101bacd0], 0x19
jne 0x1009dca7
test edi, edi
js 0x1009dce2
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0x18]
mov ecx, esp
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009dcf0
lea ecx, [esp + 0x20]
call fcn.100bd410
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
sub esp, 8
movq xmm0, qword [esp + 0x20]
movq qword [esp], xmm0
lea edx, [esp + 0x1c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
test edi, edi
jns 0x1009dc41
mov esi, 0xffffffff
test byte [0x101bacd0], 0x19
je 0x1009dc87
mov dword [esp + 4], 0
mov dword [esp], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x18]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009dc87
Function at 0x1009dd40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea edi, [esp + 0x10]
push 0xa8
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push 0
push edi
call fcn.100bcee0
test byte [0x101bacd0], 0x19
jne 0x1009de25
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, eax
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
call fcn.100d8ca0
test byte [0x101bacd0], 0x19
jne 0x1009de5d
xor ebx, ebx
cmp edi, 1
sbb ebx, ebx
or esi, ebx
or ebx, dword [esp + 0xc]
lea ecx, [esp + 0x30]
call fcn.100bd410
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101465a3
mov eax, esi
mov edx, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
sub esp, 8
movq xmm0, qword [esp + 0x30]
movq qword [esp], xmm0
lea edx, [esp + 0x2c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x1009ddab
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x28]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009ddf8
Function at 0x100aa100
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, ecx
lea esi, [ecx + 0x40]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
je 0x100aa138
cmp byte [edi + 0x1168], 0
je 0x100aa148
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add esp, 0x1c
jmp 0x100aa32d
mov ecx, esi
call fcn.100acf90
cmp byte [edi + 0x1168], 0
jne 0x100aa127
lea ebx, [ebp + 8]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x101cd02d], cl
jne 0x100aa1b9
movaps xmm0, xmmword [0x101a7240]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
movaps xmm0, xmmword [0x101a7250]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
movaps xmm0, xmmword [0x101a7260]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
movaps xmm0, xmmword [0x101a7270]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0
call fcn.100ee790
cmp byte [ebx], 1
sete byte [edi + 4]
cmp byte [ebx + 3], 1
sete byte [edi + 5]
movzx eax, byte [ebx + 4]
cmp al, 1
sete byte [edi + 6]
cmp byte [ebx + 5], 1
sete byte [edi + 7]
jne 0x100aa1e4
cmp al, 1
jne 0x100aa334
mov dword [ebp - 0x10], esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
cmp al, 1
jne 0x100aa204
mov dword [edi + 0xc], 4
cmp byte [ebx + 2], 0
setne byte [edi]
xorps xmm0, xmm0
movups xmmword [edi + 0x1148], xmm0
movups xmmword [edi + 0x1158], xmm0
call fcn.10033780
mov dword [edi + 0x1148], eax
mov eax, edi
not eax
mov dword [edi + 0x13cc], eax
lea ebx, [edi + 0x48]
mov eax, 8
mov esi, 0xffffff78
nop
mov dword [esp], eax
mov ecx, ebx
call fcn.100acff0
sub esp, 4
mov eax, dword [esi*4 + 0x101a7030]
add ebx, 0x20
inc esi
cmp eax, 1
jne 0x100aa240
mov eax, esi
add eax, 0x88
jae 0x100aa28d
neg esi
nop dword [eax + eax]
mov dword [esp], 1
mov ecx, ebx
call fcn.100acff0
sub esp, 4
mov dword [ebx], 0
add ebx, 0x20
dec esi
jne 0x100aa270
mov dword [esp], 0x101bbd78
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
jne 0x100aa2ab
mov ecx, 0x101bbd78
call fcn.100acf90
cmp byte [0x101cd084], 0
mov esi, dword [ebp - 0x10]
lea ebx, [ebp + 8]
jne 0x100aa2e9
cmp dword [0x101ce6b0], 0
jne 0x100aa337
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x100aa33a
mov dword [0x101cd030], eax
mov dword [0x101ce6b4], eax
mov dword [0x101ce6b0], 0x100ac370
mov byte [0x101cd084], 1
mov dword [esp], 0x101bbd78
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
cmp byte [ebx + 1], 1
sete byte [edi + 3]
jne 0x100aa30b
mov dword [esp], edi
call fcn.100ac550
mov byte [edi + 0x1168], 1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x101cd02c], cl
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 8
int3
int3
int3
Function at 0x100aa3b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x100aa3e6
push dword [ebp + 8]
call fcn.100e4610
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
lea eax, [esp + 0x50]
push eax
call fcn.10012050
add esp, 4
cmp ebx, edi
jbe 0x100aa446
push ebx
call fcn.100e4640
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.10012050
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.10012050
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
lea eax, [esp + 0x10]
push eax
call fcn.10012050
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
lea eax, [esp + 0x20]
push eax
call fcn.10012050
add esp, 4
push esi
call fcn.10090cd0
int3

Function at 0x100ac550
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa34], 0x8000
jne 0x100ac64e
cmp dword [esi + 0x434], 0x200
jne 0x100ac651
push 0x101bbd78
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100ac591
cmp byte [0x101cd084], 0
je 0x100ac5a4
jmp 0x100ac5db
mov ecx, 0x101bbd78
call fcn.100acf90
cmp byte [0x101cd084], 0
jne 0x100ac5db
cmp dword [0x101ce6b0], 0
jne 0x100ac657
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x100ac65a
mov dword [0x101cd030], eax
mov dword [0x101ce6b4], eax
mov dword [0x101ce6b0], 0x100ac370
mov byte [0x101cd084], 1
push 0x101bbd78
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg dword [0x101cd088], esi
jne 0x100ac654
mov dword [0x101ce6b8], 0x100aca30
add esi, 0x48
mov eax, 0xffffffb0
jmp 0x100ac61e
xor ecx, ecx
mov byte [eax + 0x101cd084], cl
add esi, 0x20
inc eax
je 0x100ac64b
cmp dword [esi], 0
je 0x100ac610
mov edx, dword [esi + 0xc]
mov cl, 0x80
cmp edx, 0x81
jb 0x100ac612
mov cl, 0x40
cmp edx, 0x101
jb 0x100ac612
cmp edx, 0x201
setb cl
shl cl, 4
add cl, 0x10
jmp 0x100ac612
pop esi
pop ebp
ret
int3
int3
int3
int3
int3
Function at 0x100b60a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ecx + 0x20]
lea eax, [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x48]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov byte [esi + 0x26d], 1
mov edi, dword [esi + 0x20]
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
test eax, eax
je 0x100b612c
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 0x100b613f
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100b6134
mov ecx, dword [0x101ce4f8]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x101ce4fc]
mov edx, dword [0x101ce4f8]
mov dword [eax + edx*8 + 4], ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x100b612c
call fcn.1007a6e0
jmp 0x100b6113
push 0x101ce500
call fcn.10145c47
add esp, 4
cmp dword [0x101ce500], 0xffffffff
jne 0x100b6102
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 0x100b6102
Function at 0x100bd410
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x28], eax
call fcn.1015869e
mov eax, dword [eax]
mov dword [esp + 0x14], eax
call fcn.1015869e
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov edi, dword [0x101ce51c]
cmp edi, 1
ja 0x100bd4af
mov dword [esp], 0x101ce51c
call fcn.10065310
test al, al
je 0x100bd4a9
mov dword [0x101ce524], 0
mov dword [0x101ce520], 0xffffffff
mov dword [esp], 0
mov edi, 0x101ce520
mov ecx, 0x101ce520
call fcn.1007a5a0
sub esp, 4
mov dword [0x101ce51c], edi
jmp 0x100bd4af
mov edi, dword [0x101ce51c]
mov ebx, dword [esi + 4]
mov eax, dword [0x101bac5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x100bd5db
mov ecx, dword [edi]
mov dword [eax + ecx*8], ebx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax + ecx*8 + 4], edx
mov ebx, dword [esi]
test ebx, ebx
je 0x100bd4f7
cmp dword [esi + 4], 0
jne 0x100bd4f7
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
call fcn.1015869e
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
cmp byte [esi + 0x20], 0
je 0x100bd572
mov edi, dword [esi + 0x30]
test edi, edi
je 0x100bd56e
mov ecx, dword [0x101bac60]
call dword [section..00cfg]
lea eax, [esp + 0x20]
mov dword [esp], eax
call ecx
movsd xmm0, qword [esi + 0x28]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
mov ecx, edi
call fcn.100bcb20
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x100bd56e
lock dec dword [ecx]
jne 0x100bd56e
call fcn.100bd5f0
mov byte [esi + 0x20], 0
lea ecx, [esi + 0xc]
call fcn.1005f380
mov eax, dword [esi + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x100bd59b
mov dword [esp], eax
call fcn.10069280
mov dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x100bd5c2
mov dword [esp], eax
call fcn.10069280
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.101465a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x100bd4da
call fcn.1007a6e0
jmp 0x100bd4cc
Function at 0x100bdb20
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 0x100bdc18
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bdc10
mov ecx, dword [0x101ce528]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x101ce52c]
jne 0x100bdc10
mov esi, dword [eax + ecx*8]
test esi, esi
je 0x100bdc10
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x100bdbef
movq xmm0, qword [esi]
mov eax, 1
lock xadd dword [ebx], eax
test eax, eax
jle 0x100bdc64
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 0x100bdbd4
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 0x100bdc00
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 0x100bdb4a
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 0x100bdb4a
int3

Function at 0x100bdc70
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 0x100bdcbc
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bdd01
mov ecx, dword [0x101ce538]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x101ce53c]
jne 0x100bdd01
mov eax, dword [eax + ecx*8]
test eax, eax
je 0x100bdd01
pop ebp
ret
push 0x101ce540
call fcn.10145c47
add esp, 4
cmp dword [0x101ce540], 0xffffffff
jne 0x100bdc90
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 0x100bdc90
int3
Function at 0x100bdd10
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 0x100bdd26
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 0x100bdd85
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bdd7a
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 0x100bdd73
call fcn.1007a6e0
jmp 0x100bdd5a
push 0x101ce540
call fcn.10145c47
add esp, 4
cmp dword [0x101ce540], 0xffffffff
jne 0x100bdd49
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 0x100bdd49

Function at 0x100bddd0
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 0x100bde4d
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bde22
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 0x100bde49
lock dec dword [esi + 4]
jne 0x100bde49
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 0x100bddf4
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 0x100bddf4