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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0650
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], edx
mov edx, 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], esi
test esi, esi
je 0x499ade
lea ecx, [esi + 4]
mov eax, edx
lock xadd dword [ecx], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], esi
test esi, esi
je 0x499b2e
lea eax, [esi + 4]
lock xadd dword [eax], edx
mov byte [esp + 0x70], 1
mov dword [esp + 0x1c], 0
call fcn.004a8940
mov dword [esp + 0x20], eax
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
mov eax, 0x10000
mov dword [esp + 0x48], 1
cmovne eax, ecx
mov ecx, dword [esp + 0x14]
cmp edi, eax
mov dword [esp + 0x14], ecx
cmovb eax, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax + 0x40]
call fcn.0049b230
mov byte [esp + 0x70], 0
or ebx, 0xffffffff
mov edi, dword [esp + 0x60]
test edi, edi
je 0x499bbd
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x499bbd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
mov edx, ebx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x499bbd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov dword [esp + 0x70], 0xffffffff
test esi, esi
je 0x499bf1
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x499bf1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x499bf1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f640
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d10f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
je 0x49f774
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0049f5d0
push 1
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x2f
push eax
lea ecx, [ebp + 8]
call fcn.00410660
mov esi, eax
cmp esi, 0xffffffff
je 0x49f774
nop
push esi
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0042bbf0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 0
jbe 0x49f741
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0xf
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.0040f5e0
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
setne bl
cmp dword [ebp - 0x4c], 0x10
jb 0x49f720
push dword [ebp - 0x60]
call edi
add esp, 4
test bl, bl
jne 0x49f741
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
test al, al
je 0x49f7a2
push 1
lea eax, [esi + 1]
mov byte [ebp - 0x14], 0x2f
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00410660
mov byte [ebp - 4], 1
mov esi, eax
cmp dword [ebp - 0x18], 0x10
jb 0x49f76b
push dword [ebp - 0x2c]
call edi
add esp, 4
cmp esi, 0xffffffff
jne 0x49f6c0
mov bl, 1
cmp dword [ebp + 0x1c], 0x10
jb 0x49f784
push dword [ebp + 8]
call edi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x10
jb 0x49f7b0
push dword [ebp - 0x2c]
call edi
add esp, 4
xor bl, bl
jmp 0x49f776
Function at 0x49f7c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x808], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esi], 0
test eax, eax
je 0x49f8be
lea ebx, [edi + 4]
mov ecx, ebx
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49f800
sub ecx, edx
je 0x49f8be
push ebx
lea eax, [ebp - 0x804]
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
cmp dword [edi], 0
je 0x49f848
push 0x400
push 0
push ebx
call sub.MSVCR120.dll_memset
push dword [edi]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x10
mov dword [edi], 0
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.MSVCR120.dll_rename]
add esp, 8
test eax, eax
je 0x49f8a9
push 0
mov dword [esi], eax
lea eax, [ebp - 0x404]
push 4
push eax
call dword [sym.imp.MSVCR120.dll__strerror_s]
add esp, 0xc
cmp byte [ebp - 0x404], 0
jne 0x49f88d
xor ecx, ecx
lea eax, [ebp - 0x404]
push ecx
push eax
jmp 0x49f8cb
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49f896
sub ecx, edx
lea eax, [ebp - 0x404]
push ecx
push eax
jmp 0x49f8cb
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
push 0x2c
mov dword [esi], 0xffffffff
push str.newfilename_is_null_or_filename_length_equ_0
lea ecx, [esi + 4]
call fcn.0040f700
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 1
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x148], ecx
cmp dword [esi + 0xc], 0
jne 0x4a04d5
cmp byte [esi + 0xbc1], 0
je 0x4a0377
cmp dword [esi + 0xbc4], 0
jne 0x4a0377
lea eax, [esi + 0x814]
push eax
lea edi, [esi + 0x918]
push edi
push str._s_s.log
jmp 0x4a038a
lea eax, [esi + 0x814]
push eax
lea edi, [esi + 0x918]
push edi
push 0x4e557c
lea eax, [ebp - 0x110]
push eax
call fcn.00416a10
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.MSVCR120.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x4a03ba
test dword [ebp - 0x13a], 0x4000
jne 0x4a03ea
sub esp, 0x18
mov ecx, esp
push edi
call fcn.0040f800
call fcn.0049f640
add esp, 0x18
test al, al
jne 0x4a03ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x110]
mov byte [ebp - 0x141], 0
push 0
push eax
call dword [sym.imp.MSVCR120.dll__access_s]
movzx ecx, byte [ebp - 0x141]
add esp, 8
test eax, eax
cmove ecx, ebx
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x14c], ecx
jne 0x4a0462
lea eax, [ebp - 0x110]
push 0x4dc644
push eax
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x4a0452
lea eax, [ebp - 0x110]
push eax
lea eax, [esi + 0x10]
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
jmp 0x4a0462
call dword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [eax]
test eax, eax
jne 0x4a052d
cmp byte [esi + 0xbc1], 0
je 0x4a047b
cmp dword [esi + 0xbc4], 0
jne 0x4a047b
mov ecx, esi
call fcn.004a1010
cmp byte [ebp - 0x14c], 0
je 0x4a04cf
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a04cf
push eax
push 1
push 1
push 0x4e0ac8
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4a04cf
cmp dword [esi + 0xc], 0
je 0x4a04cf
push 0x400
lea eax, [esi + 0x10]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push dword [esi + 0xc]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov dword [esi + 0xc], 0
mov ecx, dword [ebp - 0x148]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a0521
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a0521
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x4a0521
cmp dword [esi + 0xc], 0
je 0x4a0521
push 0x400
lea eax, [esi + 0x10]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push dword [esi + 0xc]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov dword [esi + 0xc], 0
lea eax, [esi + 0xc2c]
lock xadd dword [eax], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0880
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4a094a
mov dword [ebp - 0x124], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x144]
push eax
push 0
lea eax, [ebp - 0x120]
movdqu xmmword [ebp - 0x144], xmm0
push eax
movdqu xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x140], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4a094a
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 0x18]
push 0x10
push ecx
add eax, 4
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
lea eax, [ebp - 0x18]
push eax
push 0x4e1ac0
push 0x100
push esi
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
push dword [ebp - 0x124]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d16bd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x506040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
lea esi, [edi + 8]
mov dword [ebp - 4], 0
push 1
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.0040d1d0
push 0x20
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4a27d3
push 0xffffffffffffffff
xorps xmm0, xmm0
mov ecx, eax
push 0
movdqu xmmword [eax], xmm0
push esi
movdqu xmmword [eax + 0x10], xmm0
call fcn.0041b080
jmp 0x4a27d5
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [eax + 0x1c]
mov dword [esi + 8], eax
mov byte [ebp - 4], 3
lea esi, [edi + 0x14]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x18], esi
call fcn.00446ae0
mov dword [esi], eax
lea eax, [esi + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 4
mov ecx, dword [esi]
push eax
add ecx, 0x14
call fcn.004423e0
mov byte [ebp - 4], 5
lea eax, [edi + 8]
xorps xmm0, xmm0
lea ecx, [edi + 0x3c]
movdqu xmmword [edi + 0x20], xmm0
push eax
movq qword [edi + 0x30], xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x20], 2
mov dword [edi + 0x24], 0
call fcn.00444090
mov byte [ebp - 4], 6
lea esi, [edi + 0x80]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x18], esi
call fcn.00446ab0
mov dword [esi], eax
add esi, 8
mov ecx, esi
call fcn.00441530
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push esi
mov byte [ebp - 4], 7
call fcn.00444230
mov dword [edi + 0xbc], 0xf
mov dword [edi + 0xb8], 0
mov byte [edi + 0xa8], 0
mov dword [edi + 0xd4], 0xf
mov dword [edi + 0xd0], 0
mov byte [edi + 0xc0], 0
mov byte [ebp - 4], 0xa
mov dword [edi + 0xd8], 0xbb8
mov dword [edi + 0xdc], 0
call fcn.004a8940
mov dword [edi + 0xe0], eax
mov eax, edi
mov byte [edi + 0xe4], 1
mov dword [edi + 0xfc], 0xf
mov dword [edi + 0xf8], 0
mov byte [edi + 0xe8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a9320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d22c0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.0040f5e0
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x4a93b3
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4a93f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d3e58
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.0040f5e0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4a9ad0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4d2388
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x506018]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x38], 0
cmp eax, 0xffffffff
je 0x4a9b16
push eax
call edi
mov esi, eax
test esi, esi
jne 0x4a9b2e
call fcn.004aac40
mov eax, dword [0x506018]
cmp eax, 0xffffffff
jne 0x4a9b29
xor esi, esi
jmp 0x4a9b2e
push eax
call edi
mov esi, eax
push dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 4], eax
test eax, eax
je 0x4a9b54
lea ecx, [eax + 4]
mov eax, 1
lock xadd dword [ecx], eax
lea ecx, [esp + 0x20]
call fcn.004a9550
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004a9020
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x3c], 2
call fcn.004a89b0
push eax
add eax, 0x10
lea ecx, [esi + 0x14]
push eax
push 0
lea eax, [esp + 0x18]
push eax
call fcn.004a8cf0
mov esi, dword [esp + 0x28]
or edi, 0xffffffff
mov byte [esp + 0x38], 1
test esi, esi
je 0x4a9bcc
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4a9bcc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4a9bcc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x38], 0
test esi, esi
je 0x4a9c03
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4a9c03
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4a9c03
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x38], 0xffffffff
test esi, esi
je 0x4a9c3b
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4a9c3b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x4a9c3b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x4a9c50
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x506018]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x4a9c68
push eax
call esi
test eax, eax
jne 0x4a9c91
call fcn.004aac40
mov eax, dword [0x506018]
cmp eax, 0xffffffff
jne 0x4a9c8e
xor eax, eax
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.004a8f10
add esp, 8
mov dword [esi], eax
pop esi
ret
push eax
call esi
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.004a8f10
add esp, 8
mov dword [esi], eax
pop esi
ret
Function at 0x4aa1b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x506018]
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x4aa1cb
push eax
call esi
test eax, eax
jne 0x4aa1e1
call fcn.004aac40
mov eax, dword [0x506018]
cmp eax, 0xffffffff
jne 0x4aa1de
xor eax, eax
jmp 0x4aa1e1
push eax
call esi
lea esi, [eax + 0x14]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004a9a50
push dword [esp + 8]
lea eax, [esp + 8]
mov ecx, esi
push dword [esp + 8]
push eax
call fcn.0045e090
pop esi
add esp, 8
ret

Function at 0x4aa7a0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [0x506018]
cmp eax, 0xffffffff
je 0x4aa7e6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa7e6
push esi
lea esi, [eax + 0x14]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004aa210
mov eax, dword [esp + 4]
cmp eax, dword [esi]
pop esi
je 0x4aa7e6
add eax, 0x14
je 0x4aa7e6
mov eax, dword [eax + 8]
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4aac40
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2480
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x506040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004a8e70
mov esi, eax
mov dword [ebp - 4], 0
push 0x4a9f70
push 0x50eccc
mov dword [ebp - 0x14], esi
call fcn.004a9cb0
mov eax, dword [0x506018]
add esp, 8
cmp eax, 0xffffffff
je 0x4aaca0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4d2508
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x506018]
cmp eax, 0xffffffff
jne 0x4ab2c5
xor ebx, ebx
jmp 0x4ab2ce
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x4ab315
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x4ab355
test esi, esi
jne 0x4ab360
push 0x4a9f70
push 0x50eccc
call fcn.004a9cb0
mov eax, dword [0x506018]
add esp, 8
cmp eax, 0xffffffff
je 0x4ab315
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x4ab341
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ab341
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x4ab39a
lea esp, [esp]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4ab387
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x4ab360
cmp dword [ebx + 0x18], 0
je 0x4ab2e4
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4ab3bd
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4ab3bd
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x14]
call fcn.0045e210
cmp dword [ebx + 0x18], 0
jne 0x4ab3a4
jmp 0x4ab2e4