joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410530
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e34b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [0x52a0ac]
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
push 1
push ebx
push str.SOFTWAREClassesCLSIDD27CDB6E_AE6D_11CF_96B8_444553540000InprocServer32
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x154], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
push ebx
call fcn.004d8950
push eax
mov eax, dword [esp + 0x2c]
push ebx
push ebx
push 0x52c320
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.004d8950
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push 1
push esi
call fcn.004c0cae
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x410606
push edi
push esi
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.004d8950
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
jne 0x41061d
push edi
call fcn.004bfea8
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], ebp
call fcn.004d8520
mov eax, ebp
jmp 0x41070e
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, 0xfffffffc
jbe 0x4106ed
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x28]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x40]
push str.StringFileInfo_04x_04xProductVersion
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x34]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x38]
push ecx
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x4106ed
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d858e
push ebx
push 0x2c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 1
call fcn.004d8a1c
cmp eax, 0xffffffff
jg 0x4106b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call fcn.004d8520
mov edx, dword [esp + 0x20]
inc esi
shr edx, 2
cmp esi, edx
jb 0x410634
jmp 0x4106ed
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004d2acd
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004c0ca3
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.004d8520
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call fcn.004d8520
push edi
call fcn.004bfea8
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], 0xffffffff
call fcn.004d8520
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x4171f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e3c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ebp, [esi + 4]
xor ebx, ebx
push 0x52c320
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.004d86a9
lea edi, [esi + 8]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.004d8659
mov ecx, edi
call fcn.004d2f8c
mov ecx, edi
call fcn.004d2efd
push 0x52c320
lea ecx, [esi + 0x20]
mov dword [esi + 0x10], ebx
call fcn.004d86a9
mov ecx, esi
mov dword [esi + 0xc], ebx
call fcn.00417300
mov ecx, esi
call fcn.0041bae0
fstp qword [esp + 0x18]
mov eax, dword [ebp]
mov edi, 0x510884
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x417291
cmp cl, bl
je 0x41728d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x417291
add eax, 2
add edi, 2
cmp cl, bl
jne 0x41726d
xor eax, eax
jmp 0x417296
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4172ce
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x52c320
call fcn.004d858e
push ecx
mov byte [esp + 0x30], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._:_You_have_more___braces_than__
call fcn.004d858e
push 4
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.00416e60
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.004d8520
mov ecx, dword [esp + 0x20]
pop edi
fld qword [esp + 0x14]
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4
Function at 0x41c8f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e4270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x64], 0
test eax, eax
je 0x41c9d1
lea eax, [esp + 0x44]
push eax
call fcn.004b8aca
mov word [esp + 0x44], 0
mov ecx, dword [esp + 0x6c]
push 8
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 1
call fcn.004b8817
push 8
push 0x52c320
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 2
call fcn.004b8817
push 8
push 0x52c320
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call fcn.004b8817
push 3
push 0
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 4
call fcn.004b88c8
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x78], 5
call fcn.0044d2a0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 4]
push ecx
call esi
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x34]
push ecx
call esi
lea edx, [esp + 0x44]
push edx
call esi
jmp 0x41ca03
call fcn.004da1a6
test eax, eax
je 0x41c9e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x41c9e9
xor eax, eax
jmp 0x41c9ec
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x6c]
push 5
push 0
push 0
push ecx
push 0x5104f8
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call fcn.004d8520
mov ecx, dword [esp + 0x5c]
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x430210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push eax
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, eax
test esi, esi
je 0x43023e
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10c]
call fcn.004d86a9
mov eax, esi
pop esi
add esp, 0x100
ret 4

Function at 0x430250
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push 0xff
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov esi, eax
test esi, esi
je 0x43027e
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10c]
call fcn.004d86a9
mov eax, esi
pop esi
add esp, 0x100
ret 4

Function at 0x430290
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push 0xff
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x4302be
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10c]
call fcn.004d86a9
mov eax, esi
pop esi
add esp, 0x100
ret 4
Function at 0x4340e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e625f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x52a0ac]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov edx, dword [esp + 0x20]
lea eax, [esp + 4]
push edx
push 0x517b58
push eax
push 8
push 1
push 0x98
push ecx
mov dword [esp + 0x30], 1
call fcn.004d7d11
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004d8295
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004d8520
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x436df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push edi
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x20]
call fcn.004db661
push 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
lea ecx, [esp + 0x24]
call fcn.004db718
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x44]
mov ebx, dword [esi + 0x18c]
mov ebp, dword [esi + 0x188]
sub eax, ecx
mov ecx, edi
sub eax, 6
sub ecx, ebx
mov ebx, dword [esp + 0x40]
mov edx, ebx
push 0x5a0049
sub edx, ebp
mov ebp, dword [sym.imp.GDI32.dll_PatBlt]
add ecx, 4
push 2
add edx, 4
push eax
push ecx
push edx
mov edx, dword [esp + 0x38]
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esi + 0x18c]
mov ecx, edi
sub eax, 8
sub ecx, edx
mov edx, dword [esp + 0x18]
sub edx, dword [esi + 0x188]
push 0x5a0049
add ecx, 4
push eax
sub edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push 2
push ecx
lea edx, [edx + ebx - 4]
push edx
push eax
call ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x14]
sub eax, 6
sub ecx, edx
mov edx, dword [esi + 0x18c]
sub ecx, edx
push 0x5a0049
push 2
push eax
lea edx, [ecx + edi - 6]
mov ecx, ebx
sub ecx, dword [esi + 0x188]
push edx
mov edx, dword [esp + 0x34]
add ecx, 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esi + 0x18c]
sub edi, edx
mov edx, dword [esi + 0x188]
sub eax, 8
sub ebx, edx
push 0x5a0049
add edi, 4
push eax
mov eax, dword [esp + 0x2c]
add ebx, 4
push 2
push edi
push ebx
push eax
call ebp
lea ecx, [esp + 0x20]
call fcn.004db74f
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.004db796
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4472d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e78ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 1
call fcn.004d9a4e
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 2
call fcn.004d9510
mov eax, dword [0x52a0ac]
mov dword [esp + 0x30], eax
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 4
mov dword [esp + 0x24], vtable.CFileException.0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xffffffff
call fcn.004d86a9
push 0x52c320
lea ecx, [esp + 8]
mov byte [esp + 0x84], 5
call fcn.004d858e
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 6
call fcn.004d9b60
test eax, eax
je 0x447411
push 0
push 0x1000
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x44]
call fcn.004dc412
push ecx
mov byte [esp + 0x84], 7
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x52c320
call fcn.004d858e
lea ecx, [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.004474a0
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x84], 8
call fcn.004d8659
lea ecx, [esp + 8]
mov byte [esp + 0x80], 7
call fcn.004d8520
lea ecx, [esp + 0x34]
call fcn.004dc576
lea ecx, [esp + 0x10]
call fcn.004d9d7b
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 6
call fcn.004dc4ee
mov esi, dword [esp + 0x88]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.004d8295
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x80], 5
call fcn.004d8520
mov dword [esp + 0x20], vtable.CFileException.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 9
call fcn.004d8520
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 1
call fcn.004d9aa3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 0
call fcn.004d8520
mov ecx, dword [esp + 0x78]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x80
ret 8

Function at 0x448280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4482a9
test al, 0x10
je 0x4482a9
lea ecx, [esp + 8]
mov esi, 1
call fcn.004d8520
mov eax, esi
pop esi
ret 4
lea ecx, [esp + 8]
xor esi, esi
call fcn.004d8520
mov eax, esi
pop esi
ret 4
Function at 0x4482c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e7ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4483e3
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call fcn.004d8295
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.00448410
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x18], 1
mov eax, dword [ecx - 8]
cmp eax, 3
jl 0x4483d5
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004d8295
mov ecx, edi
call fcn.00448280
test eax, eax
jne 0x4483d5
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x448371
test cl, cl
je 0x44836d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x448371
add eax, 2
add esi, 2
test cl, cl
jne 0x44834d
xor eax, eax
jmp 0x448376
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4483d5
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.004d8295
mov ecx, edi
call fcn.004482c0
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.004d8520
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004d8520
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.004d8520
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004d8520
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x44e670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x44e7f5
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x44e7f5
push ebp
push 0xb8
call fcn.004d8aef
add esp, 4
cmp eax, ebx
je 0x44e7a3
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov ebp, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], ebp
mov ebp, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], ebp
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x44e7a5
xor esi, esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44e7cc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x509398
push ecx
mov dword [esp + 0x1c], eax
call fcn.004c0b6c
push 8
call fcn.004d8aef
add esp, 4
mov ebx, eax
lea ebp, [edi + 8]
push ebp
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [edi + 4]
push ebp
mov dword [ebx + 4], edx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x44eff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x534650]
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
je 0x44f183
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x44f183
push edi
push 0xb8
call fcn.004d8aef
add esp, 4
cmp eax, ebx
je 0x44f123
mov cl, byte [esp + 0xf]
mov dl, byte [esp + 0xf]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0xf]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0xf]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x14], bl
mov word [esp + 0x16], bx
mov edi, dword [esp + 0x14]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov dword [esi], edi
mov edi, dword [esp + 0x18]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x44f125
xor esi, esi
mov eax, dword [0x534650]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44f14f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x509398
push ecx
mov dword [esp + 0x18], eax
call fcn.004c0b6c
push 8
call fcn.004d8aef
add esp, 4
mov edi, eax
push 0x534658
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x534654]
push 0x534658
mov dword [edi + 4], edx
mov dword [0x534654], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x44fc10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4e81f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [eax + 0x10c]
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x44fdef
push edi
push esi
push ebx
jmp 0x44fc48
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44fddd
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
call fcn.004d8aef
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov cl, byte [esp + 0x38]
mov byte [esp + 0x18], cl
mov edi, ebx
mov byte [ebx + eax], 0
xor eax, eax
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], eax
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.0044ff30
test al, al
je 0x44fcce
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0044ff10
mov eax, dword [0x534650]
xor ebp, ebp
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebp
je 0x44fd7e
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
cmp edi, ebp
jne 0x44fd7e
push 0xb8
call fcn.004d8aef
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 1
je 0x44fd1a
mov ecx, eax
call fcn.0044e440
mov edi, eax
jmp 0x44fd1c
xor edi, edi
mov eax, dword [0x534650]
push edi
push eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebp
jne 0x44fd4b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x509398
push ecx
mov dword [esp + 0x18], eax
call fcn.004c0b6c
push 8
call fcn.004d8aef
add esp, 4
mov esi, eax
push 0x534658
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x534654]
push 0x534658
mov dword [esi + 4], edx
mov dword [0x534654], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edx, dword [edi + 0x90]
lea ecx, [edi + 0x88]
lea eax, [esp + 0x18]
push eax
push 1
push edx
call fcn.00450230
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebp
je 0x44fdc4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x44fdbb
cmp al, 0xff
je 0x44fdbb
dec al
mov byte [ecx], al
jmp 0x44fdc4
push ecx
call fcn.004d8b18
add esp, 4
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004d8b18
mov ebp, dword [esp + 0x3c]
add esp, 4
mov ebp, dword [ebp]
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x44fc44
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4