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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x53a844
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x53a84a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x53a87d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x53a88d
mov dword [esi + 4], 0
jmp 0x53a89f
cmp eax, 0x103
je 0x53a8b8
test eax, eax
js 0x53a8aa
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x53a8a2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x600a9c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0052f050
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.005105b0
mov ecx, 7
int 0x29
ud2

Function at 0x53a920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x53a964
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x53a96a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x53a9a4
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x53a9c8
test eax, eax
js 0x53a9b3
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x53a9be
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x600a9c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0052f050
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.005105b0
mov ecx, 7
int 0x29
ud2
Function at 0x540ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00542a80
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ecx, ecx
je 0x540d05
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call fcn.00539020
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x540d18
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x540d44
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x540d86
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0
cmp al, 3
je 0x540d23
jmp 0x540d80
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x540d80
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x540d72
cmp dword [ebx + 8], 9
jae 0x540d5e
mov eax, dword [ebp - 0x10]
jmp 0x540d64
test ebx, ebx
mov dword [esi], 0
je 0x540d86
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
jmp 0x540d86
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov dword [esi], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x541420
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x541465
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x600e14
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], fcn.0052dbf0
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x600e40
push eax
call fcn.00425150
add esp, 8
ud2
Function at 0x541bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x6074b4]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x541bdd
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x541c70
mov dword [0x6320d0], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x541c70
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi], ebx
mov dword [edi + 4], ecx
push 0
push 0x10000
push edi
push 0x541cc0
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x541c20
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x541c66
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x541c4a
cmp dword [esi + 8], 9
jb 0x541c3c
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x541e40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x541ea9
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x541ee3
cmp dword [ebp - 0x14], 0
je 0x541eca
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x541f05
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x6320e0]
mov dword [edi + 8], eax
lock cmpxchg dword [0x6320e0], edi
jne 0x541e90
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x541ed9
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x541f45
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x541ece
mov esi, dword [ebp - 0x10]
jmp 0x541ed9
mov esi, dword [edi]
jmp 0x541ed8
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x6010e4
push 0x601144
push eax
call fcn.00512670
add esp, 8
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x6010fc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x601134
push eax
call fcn.00425150
add esp, 8
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x6010fc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00512730
ud2
Function at 0x541f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x541f97
test eax, eax
jne 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x541fb7
mov edi, dword [edi + 8]
test edi, edi
je 0x541fe6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x541fb0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x541fb0
test byte [ebp - 0x10], 1
je 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x542017
mov edi, dword [edi + 8]
test edi, edi
je 0x542046
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x542010
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x542010
test byte [ebp - 0x10], 1
je 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x542077
mov edi, dword [edi + 8]
test edi, edi
je 0x5420a6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x542070
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x542070
test byte [ebp - 0x10], 1
je 0x5420f8
mov edi, dword [0x6320e0]
test edi, edi
je 0x5420f8
mov dword [ebp - 0x10], 0
jmp 0x5420c7
mov edi, dword [edi + 8]
test edi, edi
je 0x5420f2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x5420c0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x5420c0
test byte [ebp - 0x10], 1
jne 0x542102
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x6320e0]
jmp 0x54210d
mov edi, dword [edi + 8]
test edi, edi
je 0x5420f8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x542137
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x54210a
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x54210a
push 0x601168
push 0x2b
push str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
call fcn.004251d0
add esp, 0xc
ud2
Function at 0x548590
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
movaps xmm0, xmmword [0x5fe3b0]
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 0x18], 0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.005393c0
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x5485f0
mov esi, dword [esp + 0x14]
jmp 0x54864e
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp eax, 4
je 0x54864e
cmp eax, 3
jne 0x548643
mov edi, dword [esi + 4]
mov dword [esp + 4], ebx
mov ebx, dword [esi]
mov eax, dword [edi]
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x548631
cmp dword [edi + 8], 9
jb 0x548623
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [esp + 4]
mov dword [ebx], 0
jmp 0x548788
lea edi, [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.005395f0
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x5486c0
cmp byte [esp + 0x20], 3
jne 0x548701
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebx]
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x5486a9
cmp dword [ebx + 8], 9
jb 0x54869b
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
push dword [esp + 8]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [esp + 4]
jmp 0x548701
cmp dword [esp + 0x54], 0
jne 0x548701
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 8], eax
je 0x548709
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x548777
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ebx
jmp 0x54870f
mov dword [ebx], 0
jmp 0x548782
mov dword [esp + 4], ebx
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x20], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x548762
mov edi, eax
push dword [esp + 8]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov ebx, eax
push edi
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
je 0x548762
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax], 1
jmp 0x548782
mov eax, dword [esp + 4]
mov dword [eax], 0
push dword [esp + 0xc]
call sub.KERNEL32.dll_CloseHandle
jmp 0x548782
call sub.KERNEL32.dll_GetLastError
mov dword [ebx], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x548ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5990b0]
mov esi, ecx
test eax, eax
je 0x548f09
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x548f21
cmp dword [eax + 4], 0
je 0x548f21
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x5990b0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x548efc
mov eax, dword [0x5990b0]
test eax, eax
je 0x548fd1
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x548fed
mov edi, eax
test eax, eax
jne 0x548f99
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x548f67
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x549002
mov dword [0x6320d0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x549002
mov dword [eax], 0x5990b0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x5990b0]
test eax, eax
je 0x548ff3
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x548fb9
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x548fbd
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x548fbd
xor ecx, ecx
xor edx, edx
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
lea eax, [edi + 8]
mov byte [edi + 0xc], dl
pop esi
pop edi
pop ebp
ret
push 0x5990b0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x548f3e
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x5990b0
call fcn.00541e40
add esp, 4
jmp 0x548f92
push 0x10
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x549010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x5990c0]
mov esi, ecx
test eax, eax
je 0x54903d
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x549055
cmp dword [eax + 4], 0
mov ebx, eax
je 0x549055
add ebx, 8
jmp 0x549132
push 0x5990c0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x54902d
mov eax, dword [0x5990c0]
test eax, eax
je 0x549114
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549130
mov edi, eax
test eax, eax
jne 0x5490cd
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x54909b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x54914b
mov dword [0x6320d0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x54914b
mov dword [eax], 0x5990c0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x5990c0]
test eax, eax
je 0x549139
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x5490e7
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x5490eb
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x5490eb
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
je 0x549132
test ecx, ecx
je 0x549132
lock dec dword [ecx]
jne 0x549132
call fcn.00515920
jmp 0x549132
push 0x5990c0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x549072
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5990c0
call fcn.00541e40
add esp, 4
jmp 0x5490c6
push 0x10
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x549160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5990d0]
mov esi, ecx
test eax, eax
je 0x549189
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5491a1
cmp byte [eax + 4], 0
je 0x5491a1
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x5990d0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x54917c
mov eax, dword [0x5990d0]
test eax, eax
je 0x549235
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x549251
mov edi, eax
test eax, eax
jne 0x549212
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x5491e7
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x549266
mov dword [0x6320d0], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x549266
mov dword [eax], 0x5990d0
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x5990d0]
test eax, eax
je 0x549257
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test esi, esi
je 0x549227
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
mov byte [edi + 4], 1
lea eax, [edi + 5]
mov byte [edi + 5], cl
pop esi
pop edi
pop ebp
ret
push 0x5990d0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5491be
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x5990d0
call fcn.00541e40
add esp, 4
jmp 0x54920b
push 8
push 4
call fcn.0041a8c0
add esp, 8
ud2

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x5990e0]
test eax, eax
je 0x5492a5
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5492bd
cmp byte [eax + 4], 0
je 0x5492bd
add eax, 5
pop esi
pop ebp
ret
push 0x5990e0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x549299
mov eax, dword [0x5990e0]
test eax, eax
je 0x549353
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x54936f
mov esi, eax
test eax, eax
jne 0x54932e
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x549303
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x549383
mov dword [0x6320d0], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x549383
mov dword [eax], 0x5990e0
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x5990e0]
test eax, eax
je 0x549374
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
je 0x549346
cmp byte [eax], 0
mov byte [eax], 0
movzx eax, byte [eax + 1]
cmove eax, ecx
mov ecx, eax
mov byte [esi + 4], 1
lea eax, [esi + 5]
mov byte [esi + 5], cl
pop esi
pop ebp
ret
push 0x5990e0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5492da
xor eax, eax
pop esi
pop ebp
ret
push 0x5990e0
call fcn.00541e40
add esp, 4
jmp 0x549327
push 8
push 4
call fcn.0041a8c0
add esp, 8
ud2
Function at 0x5493a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5990f0]
test eax, eax
je 0x5493ca
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5493e2
cmp dword [eax + 4], 0
mov edi, eax
je 0x5493e2
add edi, 8
jmp 0x5494ba
push 0x5990f0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x5493ba
mov eax, dword [0x5990f0]
test eax, eax
je 0x54949c
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x5494b8
mov esi, eax
test eax, eax
jne 0x54945a
mov eax, dword [0x6074b4]
movzx eax, byte [eax]
mov eax, dword [0x6320d0]
test eax, eax
jne 0x549428
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5494cf
mov dword [0x6320d0], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5494cf
mov dword [eax], 0x5990f0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5990f0]
test eax, eax
je 0x5494c0
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x549495
mov eax, dword [ecx + 4]
cmp dword [ecx], 0
mov dword [ecx], 0
je 0x549495
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x5494ba
test ecx, ecx
je 0x5494ba
lock dec dword [ecx]
jne 0x5494ba
call fcn.00515860
jmp 0x5494ba
call fcn.005329f0
jmp 0x54946f
push 0x5990f0
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5493ff
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
push 0x5990f0
call fcn.00541e40
add esp, 4
jmp 0x549453
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
ud2