joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4831d3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4a9a08]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.CSynchronizerCmdConnectionDispatcher.0
mov dword [esp + 0x20], 1
call fcn.00405580
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
lea esi, [edi + 0x2c]
push eax
push esi
push ecx
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x34], 0
call fcn.0040b500
mov eax, dword [esi + 4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.0046c1e0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x406eb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4834f2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4a9a08]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.CSharedMemoryChannel.0
mov dword [esp + 0x20], 2
call fcn.0046cb40
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
lea esi, [edi + 0x2c]
push eax
push esi
push ecx
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.0040b500
mov eax, dword [esi + 4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
xor ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x28]
add esp, 4
cmp eax, ecx
je 0x406f2f
push eax
call sym.AdobeCollabSync.exe_PR_DestroyMonitor
add esp, 4
lea ecx, [edi + 0xc]
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x4080e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483ac9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a9a08]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push 0x498edc
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00408080
add esp, 0xc
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push edx
mov dword [esp + 0x30], 0
call fcn.004390d0
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x409e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487859
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4a9a08]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00409280
add esp, 8
lea esi, [edi + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call dword [0x48b250]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esi + 0x18], 0x10
jb 0x409ec9
mov esi, dword [esi + 4]
jmp 0x409ecc
add esi, 4
movzx edx, byte [edi + 8]
push 0x180
push edx
push esi
call sym.AdobeCollabSync.exe_PR_Open
add esp, 0xc
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x40bc40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4a9a08]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
push edi
mov eax, dword [0x4a9a08]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov edi, dword [esp + 0x440]
mov esi, ecx
mov ecx, edi
mov dword [esp + 0x438], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, esi
mov dword [esp + 0x438], 0
mov dword [esp + 0xc], 1
call fcn.00409de0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call sym.AdobeCollabSync.exe_PR_GetOpenFileInfo
mov edx, dword [esp + 0x20]
add esp, 8
push edx
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
mov ecx, esi
call fcn.0040a970
mov ecx, dword [esi + 4]
push 0x400
lea eax, [esp + 0x30]
push eax
push ecx
call sym.AdobeCollabSync.exe_PR_Read
add esp, 0xc
test eax, eax
jbe 0x40bd2f
lea ebx, [ebx]
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov ecx, esi
call fcn.0040a970
mov ecx, dword [esi + 4]
push 0x400
lea eax, [esp + 0x30]
push eax
push ecx
call sym.AdobeCollabSync.exe_PR_Read
add esp, 0xc
test eax, eax
ja 0x40bd00
mov eax, edi
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004801ca
add esp, 0x430
ret 4
Function at 0x412110
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x484f7c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9a08]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
lea ebp, [edi + 0x18]
mov dword [edi], vtable.CSynchronizeWorkerManager.0
mov dword [ebp], 0x48c144
push ebp
mov ecx, 0x4aaf60
mov dword [esp + 0x30], 8
call fcn.00403185
mov eax, dword [edi + 0x74]
xor ebx, ebx
cmp eax, ebx
je 0x412172
push eax
call sym.AdobeCollabSync.exe_PR_DestroyMonitor
add esp, 4
mov ecx, dword [edi + 0x70]
cmp ecx, ebx
mov byte [esp + 0x2c], 6
je 0x412186
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [edi + 0x6c]
cmp ecx, ebx
mov byte [esp + 0x2c], 5
je 0x41219a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [edi + 0x64]
mov ecx, dword [eax]
lea esi, [edi + 0x60]
push eax
push esi
push ecx
push esi
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x40], 4
call fcn.0040b500
mov eax, dword [esi + 4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x58]
mov ecx, dword [eax]
add esp, 4
lea esi, [edi + 0x54]
push eax
push esi
push ecx
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov byte [esp + 0x40], 3
call fcn.0040b500
mov eax, dword [esi + 4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax]
add esp, 4
lea esi, [edi + 0x48]
push eax
push esi
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov byte [esp + 0x40], 2
call fcn.0040b500
mov eax, dword [esi + 4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [edi + 0x1c]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esp + 0x2c], 1
call fcn.00412020
mov ecx, edi
mov dword [ebp], vtable.CResourceSynchEventHandler.0
mov dword [esp + 0x2c], 0xffffffff
call fcn.004345f0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x412cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485150
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9a08]
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 0x412d2f
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.00412c60
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 0x412d74
lea ecx, [esp + 0x24]
cmp esi, ecx
je 0x412d7a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebp
je 0x412db1
test esi, esi
jne 0x412d88
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x412d93
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.0040406c
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x412d64
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.00403ddb
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 0x412e00
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 0x4170f2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
jne 0x417107
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 0x417139
cmp al, 0x3d
jne 0x41712c
cmp byte [ebx + 1], 0
je 0x41712c
cmp byte [ebx + 2], 0x3a
jne 0x41712c
cmp byte [ebx + 3], al
je 0x41713d
push ebx
call sub.MSVCR80.dll_strlen
lea ebx, [ebx + eax + 1]
mov al, byte [ebx]
pop ecx
test al, al
jne 0x417117
cmp byte [ebx], 0
push edi
mov edi, ebx
je 0x417177
push ebx
call sub.MSVCR80.dll_strlen
lea edi, [eax + ebx + 1]
jmp 0x417170
cmp al, 0x3d
jne 0x417177
cmp byte [edi + 1], 0
je 0x417177
cmp byte [edi + 2], 0x3a
jne 0x417177
cmp byte [edi + 3], al
jne 0x417177
push edi
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
mov al, byte [edi]
test al, al
pop ecx
jne 0x417151
mov eax, dword [ebp + 8]
push esi
mov esi, edi
sub esi, ebx
mov dword [ebp - 4], eax
jmp 0x417196
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 0x417184
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 0x4171c3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
or eax, 0xffffffff
jmp 0x4171f3
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
cmp ebx, edi
jb 0x4171bd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov edx, dword [ebp + 8]
jmp 0x4171e9
mov ecx, dword [edx]
jmp 0x4171dd
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4171d9
mov byte [esi], al
inc esi
add edx, 4
cmp dword [edx], 0
jne 0x4171d5
mov byte [esi], 0
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x418c2f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
cmp dword [0x4a9e4c], edi
jne 0x418c46
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 0x418c8f
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 0x418d08
push ebx
mov edi, 0x4a8d70
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 0x418cbb
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
jmp 0x418ce0
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 0x418ce5
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 0x418d07
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 0x418ed0
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.0041a4ae
xor ebx, ebx
cmp dword [0x4a9e50], ebx
mov esi, eax
je 0x418efc
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
jmp 0x41905c
test byte [esi + 0x8c], 0x80
jne 0x418f65
cmp dword [0x4a8e00], ebx
je 0x418f24
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4aac14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0xc]
jmp 0x418f30
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a8e00], ebx
mov dword [esp + 0x10], eax
je 0x418f57
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4aac14]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], 1
jmp 0x418f65
push 1
push dword [0x4ab05c]
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 0x418ff9
lea ebx, [esi + 0x6c]
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je 0x418fa8
mov ecx, dword [edi + 0x10]
mov edx, dword [eax - 0x68]
cmp edx, dword [ecx - 0x68]
je 0x418fa8
mov ecx, edx
cmp dword [esi + 4], ecx
jg 0x418fab
mov eax, dword [eax]
lea edx, [edi + 0xc]
cmp eax, edx
jne 0x418f98
jmp 0x418fab
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.0041aec2
pop ecx
pop ecx
push dword [esp + 0x10]
call ebp
cmp dword [edi + 8], 0
jne 0x418f82
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 0x41905c
cmp dword [0x4a8e00], ebx
je 0x41904c
mov ecx, dword [0x4aac14]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
jmp 0x41905c
push dword [esp + 0x10]
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x419062
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push esi
push edi
call fcn.0041a4ae
mov esi, dword [esp + 0x10]
mov edi, eax
cmp dword [esi + 8], edi
je 0x41907d
or eax, 0xffffffff
jmp 0x4191ed
cmp dword [0x4a9e50], 0
je 0x419099
and dword [esi + 8], 0
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4191eb
test byte [edi + 0x8c], 0x80
push ebx
mov ebx, dword [0x4aac14]
push ebp
mov ebp, dword fs:[0x2c]
jne 0x4190fd
cmp dword [0x4a8e00], 0
je 0x4190c6
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0xc]
jmp 0x4190d2
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a8e00], 0
mov dword [esp + 0x18], eax
je 0x4190ef
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], 1
jmp 0x4190fd
push 1
push dword [0x4ab05c]
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 0x419149
lea edx, [edi + 0x74]
mov eax, dword [edx]
jmp 0x419137
mov edx, dword [eax + 0x18]
cmp edx, ecx
jle 0x419132
mov ecx, edx
mov eax, dword [eax]
lea edx, [edi + 0x74]
cmp eax, edx
jne 0x419129
cmp ecx, dword [edi + 4]
je 0x419149
push ecx
push edi
call fcn.00426bab
pop ecx
pop ecx
lea eax, [esi + 0xc]
cmp dword [eax], eax
je 0x419157
push esi
call fcn.00418df3
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 0x4191e9
mov esi, dword [esp + 0x18]
xor edi, edi
cmp esi, edi
jne 0x4191c8
cmp dword [0x4a8e00], edi
je 0x419190
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x41919c
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x4191c8
cmp dword [0x4a8e00], edi
je 0x4191b5
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x4191c1
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418d0c
pop ecx
cmp dword [0x4a8e00], edi
je 0x4191dc
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], esi
jmp 0x4191e9
push esi
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
pop ebx
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x4191f1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0xc
push esi
push edi
call fcn.0041a4ae
xor edi, edi
cmp dword [0x4a9e50], edi
mov esi, eax
mov dword [esp + 0xc], edi
je 0x41922f
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x419228
xor eax, eax
mov dword [edi + 8], esi
inc eax
jmp 0x41935d
xor eax, eax
jmp 0x41935d
test byte [esi + 0x8c], 0x80
push ebx
mov ebx, dword [0x4aac14]
push ebp
mov ebp, dword fs:[0x2c]
jne 0x419291
cmp dword [0x4a8e00], edi
je 0x41925b
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0xc]
jmp 0x419267
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a8e00], edi
mov dword [esp + 0x10], eax
je 0x419283
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], 1
jmp 0x419291
push 1
push dword [0x4ab05c]
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 0x4192cd
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 0x419357
mov esi, dword [esp + 0x10]
xor edi, edi
cmp esi, edi
jne 0x419336
cmp dword [0x4a8e00], edi
je 0x4192fe
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x41930a
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x419336
cmp dword [0x4a8e00], edi
je 0x419323
mov eax, dword [ebp + ebx*4]
mov eax, dword [eax + 0x10]
jmp 0x41932f
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418d0c
pop ecx
cmp dword [0x4a8e00], edi
je 0x41934a
mov eax, dword [ebp + ebx*4]
mov dword [eax + 0xc], esi
jmp 0x419357
push esi
push dword [0x4ab05c]
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 0x419840
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 [0x4aac14]
jne 0x4198a9
cmp dword [0x4a8e00], 0
je 0x419873
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x41987f
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a8e00], 0
mov dword [esp + 0x10], eax
je 0x41989b
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], 1
jmp 0x4198a9
push 1
push dword [0x4ab05c]
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 0x4198df
cmp dword [esi + 0x18], 0
je 0x4198dd
push dword [esp + 0x1c]
lea eax, [esi - 0x6c]
push eax
call fcn.00419375
cmp eax, 1
pop ecx
pop ecx
je 0x4198e3
mov esi, dword [esi]
cmp esi, ebp
jne 0x4198c3
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
test byte [eax + 0x8c], 0x80
jne 0x41996e
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp esi, ebp
jne 0x41994e
cmp dword [0x4a8e00], ebp
je 0x419917
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x419923
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x41994e
cmp dword [0x4a8e00], ebp
je 0x41993b
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x419947
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418d0c
pop ecx
cmp dword [0x4a8e00], ebp
je 0x419961
mov eax, dword [ebx + edi*4]
mov dword [eax + 0xc], esi
jmp 0x41996e
push esi
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret