joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4127d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484b90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
test eax, eax
je 0x41280f
push eax
call sym.AdobeCollabSync.exe_PR_EnterMonitor
add esp, 4
mov ebx, 1
mov dword [esp + 0x20], ebx
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
call fcn.00412740
mov eax, dword [esp + 0x28]
mov edi, dword [eax]
lea esi, [esp + 0x24]
mov byte [esp + 0x38], bl
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [esp + 0x28]
je 0x412854
lea ecx, [esp + 0x24]
cmp esi, ecx
je 0x41285a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebp
je 0x412891
test esi, esi
jne 0x412868
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x412873
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea ecx, [esp + 0x14]
call fcn.00404039
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x412844
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
push esi
lea eax, [esp + 0x28]
push eax
push ecx
mov edx, eax
push edx
lea edx, [esp + 0x24]
push edx
mov ecx, eax
mov byte [esp + 0x4c], 0
call fcn.00403e00
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov eax, dword [edx]
add esp, 4
cmp eax, ecx
je 0x4128e0
push eax
call sym.AdobeCollabSync.exe_PR_ExitMonitor
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x415394
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4a8e30], 0
jne 0x4153a2
call sym.AdobeCollabSync.exe_PR_Init
jmp fcn.0041a785

Function at 0x4153a7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0041a785
test byte [eax + 0x8c], 0x80
mov edi, dword [0x4a9bfc]
mov ebx, dword fs:[0x2c]
mov dword [esp + 0x14], eax
jne 0x415416
cmp dword [0x4a7e00], 0
je 0x4153e0
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x4153ec
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x415408
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x415416
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [esp + 0x1c]
lea ebp, [esi + 0x3c]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi]
lea eax, [esi + 0x8c]
or dword [eax], 2
sub ecx, 4
mov eax, dword [eax]
je 0x415451
dec ecx
dec ecx
je 0x415443
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41545e
test ax, 0x1000
jne 0x41545e
push esi
call fcn.0041dd9d
jmp 0x41545d
test ax, 0x1000
jne 0x41545e
push esi
call fcn.00419782
pop ecx
mov eax, dword [esp + 0x14]
test byte [eax + 0x8c], 0x80
jne 0x4154df
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp esi, ebp
jne 0x4154bf
cmp dword [0x4a7e00], ebp
je 0x415488
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x415494
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x4154bf
cmp dword [0x4a7e00], ebp
je 0x4154ac
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4154b8
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebp
je 0x4154d2
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], esi
jmp 0x4154df
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret
Function at 0x4154e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0041a785
mov edi, dword [0x4a9bfc]
mov ebx, dword fs:[0x2c]
mov esi, eax
test byte [esi + 0x8c], 0x80
jne 0x415554
cmp dword [0x4a7e00], 0
je 0x41551e
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x41552a
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x415546
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x415554
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ebp, [esi + 0x3c]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esi + 0x8c], 0xfffffffd
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [esi + 0x8c], 0x80
jne 0x4155e9
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp esi, ebp
jne 0x4155c9
cmp dword [0x4a7e00], ebp
je 0x415592
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x41559e
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x4155c9
cmp dword [0x4a7e00], ebp
je 0x4155b6
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4155c2
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebp
je 0x4155dc
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], esi
jmp 0x4155e9
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4155ef
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0041a785
mov edi, dword [0x4a9bfc]
mov ebx, dword fs:[0x2c]
mov esi, eax
test byte [esi + 0x8c], 0x80
jne 0x41565b
cmp dword [0x4a7e00], 0
je 0x415625
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x415631
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x41564d
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x41565b
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ebp, [esi + 0x3c]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or dword [esi + 0x8c], 0x1000
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [esi + 0x8c], 0x80
jne 0x4156f3
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp esi, ebp
jne 0x4156d3
cmp dword [0x4a7e00], ebp
je 0x41569c
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4156a8
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x4156d3
cmp dword [0x4a7e00], ebp
je 0x4156c0
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4156cc
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebp
je 0x4156e6
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], esi
jmp 0x4156f3
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4156f9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0041a785
mov edi, dword [0x4a9bfc]
mov ebx, dword fs:[0x2c]
mov esi, eax
test byte [esi + 0x8c], 0x80
jne 0x415765
cmp dword [0x4a7e00], 0
je 0x41572f
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x41573b
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x415757
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x415765
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ebp, [esi + 0x3c]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esi + 0x8c], 0xffffefff
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [esi + 0x8c], 0x80
jne 0x4157fd
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp esi, ebp
jne 0x4157dd
cmp dword [0x4a7e00], ebp
je 0x4157a6
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4157b2
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x4157dd
cmp dword [0x4a7e00], ebp
je 0x4157ca
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4157d6
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebp
je 0x4157f0
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], esi
jmp 0x4157fd
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4173c6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
jne 0x4173db
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
mov ebx, eax
mov al, byte [eax]
jmp 0x41740d
cmp al, 0x3d
jne 0x417400
cmp byte [ebx + 1], 0
je 0x417400
cmp byte [ebx + 2], 0x3a
jne 0x417400
cmp byte [ebx + 3], al
je 0x417411
push ebx
call sub.MSVCR80.dll_strlen
lea ebx, [ebx + eax + 1]
mov al, byte [ebx]
pop ecx
test al, al
jne 0x4173eb
cmp byte [ebx], 0
push edi
mov edi, ebx
je 0x41744b
push ebx
call sub.MSVCR80.dll_strlen
lea edi, [eax + ebx + 1]
jmp 0x417444
cmp al, 0x3d
jne 0x41744b
cmp byte [edi + 1], 0
je 0x41744b
cmp byte [edi + 2], 0x3a
jne 0x41744b
cmp byte [edi + 3], al
jne 0x41744b
push edi
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
mov al, byte [edi]
test al, al
pop ecx
jne 0x417425
mov eax, dword [ebp + 8]
push esi
mov esi, edi
sub esi, ebx
mov dword [ebp - 4], eax
jmp 0x41746a
push eax
call sub.MSVCR80.dll_strlen
add dword [ebp - 4], 4
lea esi, [esi + eax + 1]
mov eax, dword [ebp - 4]
pop ecx
mov eax, dword [eax]
test eax, eax
jne 0x417458
inc esi
push esi
call sym.AdobeCollabSync.exe_PR_Malloc
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
mov dword [ecx], eax
jne 0x417497
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
or eax, 0xffffffff
jmp 0x4174c7
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
cmp ebx, edi
jb 0x417491
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov edx, dword [ebp + 8]
jmp 0x4174bd
mov ecx, dword [edx]
jmp 0x4174b1
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4174ad
mov byte [esi], al
inc esi
add edx, 4
cmp dword [edx], 0
jne 0x4174a9
mov byte [esi], 0
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x418f0c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
cmp dword [0x4a8e30], edi
jne 0x418f23
call sym.AdobeCollabSync.exe_PR_Init
push 0xc
pop esi
push esi
lea eax, [ebp - 0x14]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], esi
lea eax, [ebp - 4]
push eax
xor esi, esi
lea eax, [ebp - 8]
inc esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x418f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffe896
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x418fe5
push ebx
mov edi, 0x4a7d70
push edi
push dword [ebp - 8]
call sym.AdobeCollabSync.exe_PR_AllocFileDesc
test eax, eax
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
mov dword [ebx], eax
jne 0x418f98
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
jmp 0x418fbd
push edi
push dword [ebp - 4]
call sym.AdobeCollabSync.exe_PR_AllocFileDesc
test eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x418fc2
push dword [ebx]
call sym.AdobeCollabSync.exe_PR_Close
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x418fe4
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [eax + 0x30], esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [eax + 0x30], esi
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [eax + 8], esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [eax + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4191ad
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0041a785
xor ebx, ebx
cmp dword [0x4a8e34], ebx
mov esi, eax
je 0x4191d9
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
jmp 0x419339
test byte [esi + 0x8c], 0x80
jne 0x419242
cmp dword [0x4a7e00], ebx
je 0x419201
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0xc]
jmp 0x41920d
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], ebx
mov dword [esp + 0x10], eax
je 0x419234
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], 1
jmp 0x419242
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x1c]
push eax
mov dword [esp + 0x14], eax
call ebp
cmp dword [edi + 8], ebx
je 0x4192d6
lea ebx, [esi + 0x6c]
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je 0x419285
mov ecx, dword [edi + 0x10]
mov edx, dword [eax - 0x68]
cmp edx, dword [ecx - 0x68]
je 0x419285
mov ecx, edx
cmp dword [esi + 4], ecx
jg 0x419288
mov eax, dword [eax]
lea edx, [edi + 0xc]
cmp eax, edx
jne 0x419275
jmp 0x419288
lea eax, [edi + 0xc]
mov dword [ebx], eax
mov ecx, dword [eax + 4]
mov dword [esi + 0x70], ecx
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x3c]
push eax
call ebp
lea eax, [esi + 0x3c]
push eax
mov dword [esi], 3
mov dword [esi + 0x80], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push esi
call fcn.0041b0c9
pop ecx
pop ecx
push dword [esp + 0x10]
call ebp
cmp dword [edi + 8], 0
jne 0x41925f
xor ebx, ebx
push dword [esp + 0x10]
mov dword [edi + 8], esi
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x74]
mov dword [edi], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x78]
mov dword [eax], edi
mov dword [esi + 0x78], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [esi + 0x8c], 0x80
pop ebp
jne 0x419339
cmp dword [0x4a7e00], ebx
je 0x419329
mov ecx, dword [0x4a9bfc]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
jmp 0x419339
push dword [esp + 0x10]
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x41933f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push esi
push edi
call fcn.0041a785
mov esi, dword [esp + 0x10]
mov edi, eax
cmp dword [esi + 8], edi
je 0x41935a
or eax, 0xffffffff
jmp 0x4194ca
cmp dword [0x4a8e34], 0
je 0x419376
and dword [esi + 8], 0
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4194c8
test byte [edi + 0x8c], 0x80
push ebx
mov ebx, dword [0x4a9bfc]
push ebp
mov ebp, dword fs:[0x2c]
jne 0x4193da
cmp dword [0x4a7e00], 0
je 0x4193a3
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0xc]
jmp 0x4193af
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x18], eax
je 0x4193cc
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], 1
jmp 0x4193da
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x1c]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x14]
cmp dword [esi + 0x18], ecx
jle 0x419426
lea edx, [edi + 0x74]
mov eax, dword [edx]
jmp 0x419414
mov edx, dword [eax + 0x18]
cmp edx, ecx
jle 0x41940f
mov ecx, edx
mov eax, dword [eax]
lea edx, [edi + 0x74]
cmp eax, edx
jne 0x419406
cmp ecx, dword [edi + 4]
je 0x419426
push ecx
push edi
call fcn.0041fb26
pop ecx
pop ecx
lea eax, [esi + 0xc]
cmp dword [eax], eax
je 0x419434
push esi
call fcn.004190d0
pop ecx
push dword [esp + 0x10]
and dword [esi + 0x18], 0
and dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [edi + 0x8c], 0x80
jne 0x4194c6
mov esi, dword [esp + 0x18]
xor edi, edi
cmp esi, edi
jne 0x4194a5
cmp dword [0x4a7e00], edi
je 0x41946d
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x419479
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x4194a5
cmp dword [0x4a7e00], edi
je 0x419492
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x41949e
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], edi
je 0x4194b9
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], esi
jmp 0x4194c6
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
pop ebx
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x4194ce
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0xc
push esi
push edi
call fcn.0041a785
xor edi, edi
cmp dword [0x4a8e34], edi
mov esi, eax
mov dword [esp + 0xc], edi
je 0x41950c
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x419505
xor eax, eax
mov dword [edi + 8], esi
inc eax
jmp 0x41963a
xor eax, eax
jmp 0x41963a
test byte [esi + 0x8c], 0x80
push ebx
mov ebx, dword [0x4a9bfc]
push ebp
mov ebp, dword fs:[0x2c]
jne 0x41956e
cmp dword [0x4a7e00], edi
je 0x419538
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0xc]
jmp 0x419544
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], edi
mov dword [esp + 0x10], eax
je 0x419560
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], 1
jmp 0x41956e
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [esp + 0x20]
lea eax, [edi + 0x1c]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 8], 0
jne 0x4195aa
mov dword [edi + 8], esi
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x74]
mov dword [edi], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x78]
mov dword [eax], edi
mov dword [esi + 0x78], edi
mov dword [esp + 0x14], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [esi + 0x8c], 0x80
jne 0x419634
mov esi, dword [esp + 0x10]
xor edi, edi
cmp esi, edi
jne 0x419613
cmp dword [0x4a7e00], edi
je 0x4195db
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x4195e7
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x419613
cmp dword [0x4a7e00], edi
je 0x419600
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x41960c
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], edi
je 0x419627
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], esi
jmp 0x419634
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x419b1d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
test byte [eax + 0x8c], 0x80
push ebx
mov ebx, dword fs:[0x2c]
push ebp
push esi
push edi
mov edi, dword [0x4a9bfc]
jne 0x419b86
cmp dword [0x4a7e00], 0
je 0x419b50
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x419b5c
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x419b78
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x419b86
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebp, dword [esp + 0x18]
lea eax, [ebp + 0xc]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add ebp, 4
mov esi, dword [ebp]
jmp 0x419bbc
cmp dword [esi + 0x18], 0
je 0x419bba
push dword [esp + 0x1c]
lea eax, [esi - 0x6c]
push eax
call fcn.00419652
cmp eax, 1
pop ecx
pop ecx
je 0x419bc0
mov esi, dword [esi]
cmp esi, ebp
jne 0x419ba0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
test byte [eax + 0x8c], 0x80
jne 0x419c4b
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp esi, ebp
jne 0x419c2b
cmp dword [0x4a7e00], ebp
je 0x419bf4
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x419c00
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x419c2b
cmp dword [0x4a7e00], ebp
je 0x419c18
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x419c24
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebp
je 0x419c3e
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], esi
jmp 0x419c4b
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x419f5b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ecx
push ebp
call fcn.0041a785
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp]
cmp dword [ecx + 8], eax
mov dword [esp + 4], eax
je 0x419f7b
or eax, 0xffffffff
jmp 0x41a099
test byte [eax + 0x8c], 0x80
push ebx
mov ebx, dword fs:[0x2c]
push esi
push edi
mov edi, dword [0x4a9bfc]
jne 0x419fde
cmp dword [0x4a7e00], 0
je 0x419fa8
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x419fb4
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x1c], eax
je 0x419fd0
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x419fde
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp + 0xc]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add ebp, 4
mov esi, dword [ebp]
jmp 0x41a005
push dword [esp + 0x10]
lea eax, [esi - 0x6c]
push eax
call fcn.00419652
mov esi, dword [esi]
pop ecx
pop ecx
cmp esi, ebp
jne 0x419ff4
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
test byte [eax + 0x8c], 0x80
jne 0x41a094
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
jne 0x41a074
cmp dword [0x4a7e00], ebp
je 0x41a03d
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x41a049
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x41a074
cmp dword [0x4a7e00], ebp
je 0x41a061
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x41a06d
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], ebp
je 0x41a087
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], esi
jmp 0x41a094
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
pop ecx
pop ecx
ret