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

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x6efac0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475b3a
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp - 4]
call fcn.00489bf0
add esp, 8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ecx, ecx
push ecx
push dword [ebp - 4]
call fcn.00489bf0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x475b50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x6efac0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475b69
mov esi, dword [eax + 4]
jmp 0x475b6b
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x475b8c
test esi, esi
je 0x475b8c
xor edx, edx
nop dword [eax + eax]
cmp dword [esi + edx*4], 0
je 0x475b9a
inc edx
cmp edx, 2
jl 0x475b80
push dword [ebp + 8]
call fcn.006026ef
add esp, 4
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret

Function at 0x4760f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x6efa58
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x476154
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
push fcn.00450c50
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006021fd
mov esp, ebp
pop ebp
ret
Function at 0x4766c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647b19
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00475c80
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4767ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6ef9fc]
cmp eax, dword [ecx + 4]
jg 0x476894
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x6ef9d8
test edi, edi
jne 0x4768e1
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x476872
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xc
call fcn.0060220e
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0060220e
mov ecx, 0xc4830018
add al, 0x89
inc ebp
call 0x8c07bf49
iretd
movups xmmword [eax], xmm0
push 0
push eax
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.00476180
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x47686f
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.0060223e
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push 0x6ef9fc
call fcn.00602894
add esp, 4
cmp dword [0x6ef9fc], 0xffffffff
jne 0x4767d8
push 0x6532d0
mov dword [0x6ef9dc], 0x6ef9d8
mov dword [0x6ef9d8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6ef9fc
call fcn.0060284a
add esp, 4
jmp 0x4767d8
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.0044fae0
int3
Function at 0x476d50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647b80
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x476dca
mov ecx, esi
call fcn.00476f70
push 0x6ef9f4
push 0x450a50
push 0x6efa2c
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x476eda
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0x6ef9f4
jmp 0x476ebc
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.005ffa86
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
add esp, 4
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
mov ecx, esi
mov dword [ebp - 4], 1
push dword [0x6efac0]
neg ecx
movq qword [ebp - 0x20], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x6efac0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
push ecx
mov ecx, esi
xor edi, edi
call fcn.00477240
test eax, eax
je 0x476e7c
nop word [eax + eax]
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00477240
test eax, eax
jne 0x476e60
push dword [ebp - 0x18]
push dword [0x6efac0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x54]
test eax, eax
je 0x476ea1
push eax
call fcn.006026ef
add esp, 4
inc esi
cmp esi, 0xa
jl 0x476e90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
call fcn.005ffac0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 4
call fcn.0062204e
int3
Function at 0x478280
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 4]
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
test eax, eax
je 0x478407
cmp dword [eax + 4], 0
je 0x478407
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x4782af
cmp byte [edi], 0
jne 0x4782b1
xor edi, edi
test esi, esi
je 0x4782ba
cmp byte [esi], 0
jne 0x4782bc
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0x273f
jg 0x47837c
je 0x478372
cmp eax, 0x2726
jg 0x478352
je 0x47832b
test eax, eax
je 0x478313
cmp eax, 8
jne 0x4783be
push 0xe
lea ecx, [ebp - 0xc]
call fcn.00489de0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
lea ecx, [ebp - 0xc]
call fcn.0044f190
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
mov edx, 0x2726
lea ecx, [ebp - 0x14]
call fcn.00475810
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x47841e
cmp eax, 0x273c
jne 0x4783be
push eax
lea ecx, [ebp - 0xc]
call fcn.00489e20
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
mov edx, 0x273f
lea ecx, [ebp - 0x1c]
jmp 0x478333
cmp eax, 0x2afa
jg 0x4783b7
je 0x4783b0
cmp eax, 0x277d
je 0x478396
cmp eax, 0x2af9
jne 0x4783be
push eax
jmp 0x4783f2
push 0x277d
lea ecx, [ebp - 0xc]
call fcn.00489e20
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
push 0x2afa
jmp 0x4783f2
cmp eax, 0x2afb
je 0x4783ed
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6ef9fc]
cmp eax, dword [ecx + 4]
jg 0x478434
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x6ef9d8
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
push 0x2afb
lea ecx, [ebp - 0xc]
call fcn.00489e20
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
mov edx, 0x3e3
lea ecx, [ebp - 0x1c]
call fcn.00475810
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [edx + 4]
pop edi
mov dword [ebx + 4], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6ef9fc
call fcn.00602894
add esp, 4
cmp dword [0x6ef9fc], 0xffffffff
jne 0x4783d3
push 0x6532d0
mov dword [0x6ef9dc], 0x6ef9d8
mov dword [0x6ef9d8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6ef9fc
call fcn.0060284a
add esp, 4
jmp 0x4783d3
Function at 0x478a80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0x6ef9f4
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push 0x450a50
push 0x6efa2c
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x478b36
push 0
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 1
lea eax, [esp + 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6ef9fc]
cmp eax, dword [ecx + 4]
jg 0x478b3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x478b11
mov edx, 0x2746
jmp 0x478b1d
cmp eax, 0x4d2
jne 0x478b26
mov edx, 0x274d
lea ecx, [esp + 4]
call fcn.00475810
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
call fcn.0062204e
push 0x6ef9fc
call fcn.00602894
add esp, 4
cmp dword [0x6ef9fc], 0xffffffff
jne 0x478aff
push 0x6532d0
mov dword [0x6ef9dc], 0x6ef9d8
mov dword [0x6ef9d8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6ef9fc
call fcn.0060284a
add esp, 4
jmp 0x478aff
Function at 0x478b90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
push 0x6ef9f4
mov ebx, ecx
mov dword [esp + 0x34], 0x400
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], ebx
push 0x450a50
push 0x6efa2c
mov dword [esp + 0x40], eax
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x478d14
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
nop
push 0
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0
push eax
push 1
lea eax, [esp + 0x44]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [0x6ef9fc]
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 4]
jg 0x478d19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, 0x6ef9d8
cmp esi, 0x40
jne 0x478c5c
mov edx, 0x2746
lea ecx, [esp + 0x18]
call fcn.00475810
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x478c89
cmp esi, 0x4d2
jne 0x478c79
mov edx, 0x274d
lea ecx, [esp + 0x20]
call fcn.00475810
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x478c89
cmp esi, 0x2738
je 0x478c8d
cmp esi, 0xea
je 0x478c8d
test ebx, ebx
jne 0x478ca8
mov eax, dword [esp + 0x28]
xor esi, esi
mov ebx, dword [esp + 0x10]
cmp eax, 0x400
je 0x478bf0
test eax, eax
jg 0x478cfd
je 0x478ce6
mov edx, 0x2733
lea ecx, [esp + 0x10]
call fcn.00475810
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi + 4]
cmp eax, dword [ecx + 4]
jne 0x478cc7
cmp esi, edx
je 0x478cfd
mov edx, 0x4d5
lea ecx, [esp + 0x10]
call fcn.00475810
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi + 4]
cmp eax, dword [ecx + 4]
jne 0x478ce6
cmp esi, edx
je 0x478cfd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x43c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
call fcn.0062204e
push 0x6ef9fc
call fcn.00602894
add esp, 4
cmp dword [0x6ef9fc], 0xffffffff
jne 0x478c35
push 0x6532d0
mov dword [0x6ef9dc], 0x6ef9d8
mov dword [0x6ef9d8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6ef9fc
call fcn.0060284a
add esp, 4
jmp 0x478c35
Function at 0x4a25c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b64d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x6e1c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
lea esi, [edi + 0x10]
push esi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x84], eax
call fcn.004a3cd0
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test ecx, ecx
je 0x4a261b
lock inc dword [ecx + 4]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 4]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test ecx, ecx
je 0x4a2657
lock inc dword [ecx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea ebx, [edi + 4]
push dword [0x6efaac]
mov edi, dword [edi]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2692
cmp dword [eax], esi
je 0x4a2766
mov eax, dword [eax + 8]
test eax, eax
jne 0x4a2683
lea eax, [ebp - 0x84]
push eax
push 0x90
mov dword [ebp - 0x1c], eax
call fcn.00475b10
mov esi, eax
mov dword [ebp - 0x14], 0
add esp, 8
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x4b09f0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.004b0ae0
push esi
mov byte [ebp - 4], 2
mov ecx, edi
push ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.0047a430
lea ecx, [ebp - 0x1c]
call fcn.004b0980
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4a274a
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4a274a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4a274a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x7c]
call fcn.00485550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 4], 0
je 0x4a2692
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.004b3d20
add esp, 8
jmp 0x4a2722
Function at 0x4a4340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b9e5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x4a439a
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x20], edx
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
mov dword [ebp - 0x74], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 3
test edx, edx
je 0x4a4417
lea eax, [ebp - 0x44]
cmp edx, eax
jne 0x4a440d
mov eax, dword [edx]
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x4a4417
mov edx, dword [ecx]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x20], 0
test ecx, ecx
je 0x4a4417
mov edx, dword [ecx]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x4a4410
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 4
mov ebx, dword [esi + 0x7c]
push dword [0x6efaac]
mov esi, dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a443c
cmp dword [eax], esi
je 0x4a443c
mov eax, dword [eax + 8]
test eax, eax
jne 0x4a4431
lea eax, [ebp - 0x74]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6c]
push eax
push 0x58
call fcn.00475b10
mov esi, eax
mov dword [ebp - 0x78], 0
add esp, 8
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x74]
push eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x4afc00
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.004afdc0
push ecx
mov ecx, dword [ebx + 8]
push esi
call fcn.00476620
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x4a44c5
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 0x6ef9f4
push 0x450a50
push 0x6efa2c
mov dword [edi], 0
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x4a4525
mov ecx, dword [ebp + 0x30]
mov dword [edi + 4], 0x6ef9f4
test ecx, ecx
je 0x4a4505
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0x2c
call fcn.0062204e
int3
Function at 0x4aa810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64c25a
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push ebx
push esi
push edi
mov eax, dword [0x6e1c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
lea ebx, [esi + 8]
mov dword [esi + 0x24], eax
sub eax, 1
je 0x4aa9c7
mov edi, dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.004ab480
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4aa865
test edi, edi
je 0x4aa86d
mov edi, dword [esi + 0x18]
cmp edi, dword [esi + 0x14]
jb 0x4aa872
mov edi, dword [esi + 0x18]
jmp 0x4aa884
xor edx, edx
mov eax, 0x10000
test ecx, ecx
cmovne eax, edx
je 0x4aa9d4
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.004aa680
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
lea edi, [esi + 0x2c]
mov ebx, dword [esi + 0x28]
push dword [0x6efaac]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa8cf
nop
cmp dword [eax], esi
je 0x4aa9aa
mov eax, dword [eax + 8]
test eax, eax
jne 0x4aa8c0
lea eax, [ebp - 0x68]
push eax
push 0x78
mov dword [ebp - 0x18], eax
call fcn.00475b10
mov esi, eax
mov dword [ebp - 0x10], 0
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x4b2320
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.004b2410
push esi
mov byte [ebp - 4], 2
mov ecx, ebx
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.0047a430
lea ecx, [ebp - 0x18]
call fcn.004b1a50
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x4aa97e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4aa97e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4aa97e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4aa9fc
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [eax + 4], 0
je 0x4aa8cf
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.004b4600
add esp, 8
jmp 0x4aa956
xor ecx, ecx
mov eax, 0x10000
cmp dword [ebp + 8], ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0xf0]
mov ecx, ebx
push eax
call fcn.004ab4e0
mov ecx, dword [esi + 4]
lea edx, [ecx + 0x44]
push edx
push esi
push 0
push eax
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
add ecx, 0x14
call fcn.004b0c10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10