joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f70
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bd7e0
push eax
mov al, byte [0x4f7976]
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
xor ebx, ebx
push esi
cmp al, bl
push edi
mov esi, ecx
je 0x411fb1
mov al, byte [0x4f7974]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 4
call fcn.004122a0
mov edi, dword [esp + 0x78]
mov ecx, esi
push edi
mov dword [0x4e9fd8], eax
call fcn.00412880
mov edx, dword [0x4e9fd8]
mov ecx, eax
cmp edx, ebx
setg al
cmp ecx, ebx
mov byte [0x4f7974], al
jle 0x411fe5
cmp edx, ecx
jge 0x412121
cmp al, bl
jne 0x412121
mov eax, dword [0x4f4df4]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x70], ebx
push ecx
push edi
mov ecx, esi
call fcn.004125f0
test eax, eax
je 0x412101
cmp byte [esi + 0x49], bl
je 0x412022
push str.__Q:A__R:N
lea ecx, [esp + 0x10]
call fcn.004b2b87
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
xor edx, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
mov dword [esp + 0x20], edx
push ebx
push ebx
mov dword [esp + 0x2c], edx
push ebx
push ebx
mov dword [esp + 0x38], edx
push ebx
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x44], edx
call fcn.004b2bdb
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
call fcn.004122a0
cmp eax, ebx
mov dword [0x4e9fd8], eax
setg byte [0x4f7974]
cmp eax, ebx
jge 0x412101
mov edx, dword [0x4f4df4]
mov dword [esp + 0x78], edx
push 0x65be
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], 1
call fcn.004b3888
push str.Flash_Player_installation
lea ecx, [esp + 0x14]
call fcn.004b2819
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
push 0x2030
push eax
push ecx
mov ecx, esi
call fcn.00410ae0
lea ecx, [esp + 0x10]
mov byte [0x4f7975], 1
call fcn.004b27ab
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], bl
call fcn.004b27ab
mov bl, byte [0x4f7974]
lea ecx, [esp + 0xc]
mov byte [0x4f7976], 1
mov dword [esp + 0x70], 0xffffffff
call fcn.004b27ab
mov al, bl
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x4122a0
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bd846
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
xor ebx, ebx
push 1
push ebx
or ebp, 0xffffffff
push str.SOFTWAREClassesCLSIDD27CDB6E_AE6D_11CF_96B8_444553540000InprocServer32
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4123b5
mov ecx, dword [0x4f4df4]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
mov dword [esp + 0x140], ebx
push edx
push ebx
push ebx
push ebx
push 0x4f77a0
push eax
call esi
cmp eax, ebx
jne 0x4123a5
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004b2bdb
push eax
mov eax, dword [esp + 0x20]
push ebx
push ebx
push 0x4f77a0
push eax
call esi
cmp eax, ebx
jne 0x4123a5
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.004b2bdb
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push 1
push esi
call fcn.0049a0be
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4123a5
push edi
push esi
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.004b2bdb
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
jne 0x4123bc
push edi
call fcn.00498db8
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], ebp
call fcn.004b27ab
mov eax, ebp
jmp 0x4124ac
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, 0xfffffffc
jbe 0x41248f
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x2c]
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 + 0x30]
lea eax, [esp + 0x38]
push ecx
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x41248c
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.004b2819
push ebx
push 0x2c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 1
call fcn.004b2ca7
cmp eax, 0xffffffff
jg 0x412453
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call fcn.004b27ab
mov edx, dword [esp + 0x24]
inc esi
shr edx, 2
cmp esi, edx
jb 0x4123d3
jmp 0x41248c
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004acd70
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0049a0b3
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call fcn.004b27ab
or ebp, 0xffffffff
push edi
call fcn.00498db8
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], ebp
call fcn.004b27ab
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x418450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bdec8
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 0x4f77a0
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.004b2934
lea edi, [esi + 8]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.004b28e4
mov ecx, edi
call fcn.004ad1aa
mov ecx, edi
call fcn.004ad15e
push 0x4f77a0
lea ecx, [esi + 0x20]
mov dword [esi + 0x10], ebx
call fcn.004b2934
mov ecx, esi
mov dword [esi + 0xc], ebx
call fcn.004185c0
mov ecx, esi
call fcn.00421400
mov ebp, dword [ebp]
mov edi, str.__DdEe.
fstp qword [esp + 0x18]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4184f3
cmp cl, bl
je 0x4184ef
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4184f3
add eax, 2
add edi, 2
cmp cl, bl
jne 0x4184cf
xor eax, eax
jmp 0x4184f8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41852b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4f77a0
call fcn.004b2819
push ecx
mov byte [esp + 0x30], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._:_You_have_more___braces_than__
call fcn.004b2819
mov byte [esp + 0x30], bl
push 4
jmp 0x41858c
mov edi, 0x4f77a0
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x418556
cmp cl, bl
je 0x418552
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x418556
add eax, 2
add edi, 2
cmp cl, bl
jne 0x418532
xor eax, eax
jmp 0x41855b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x418593
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004b2520
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4f77a0
call fcn.004b2819
mov byte [esp + 0x30], bl
push 0xc
mov ecx, esi
call fcn.004180c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b27ab
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 0x4223b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4be8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
mov dword [esp + 0x64], 0
test eax, eax
je 0x422491
lea eax, [esp + 0x44]
push eax
call fcn.004919fb
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.00491748
push 8
push 0x4f77a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 2
call fcn.00491748
push 8
push 0x4f77a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call fcn.00491748
push 3
push 0
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 4
call fcn.004917f9
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 + 0x68]
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x78], 5
call fcn.00456000
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 0x4224c3
call fcn.004b44ad
test eax, eax
je 0x4224a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x4224a9
xor eax, eax
jmp 0x4224ac
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x6c]
push 5
push 0
push 0
push ecx
push 0x4ea22c
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call fcn.004b27ab
mov ecx, dword [esp + 0x5c]
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x43c450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c041f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4f4df4]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov edx, dword [esp + 0x20]
lea eax, [esp + 4]
push edx
push 0x4f086c
push eax
push 8
push 1
push 0x98
push ecx
mov dword [esp + 0x30], 1
call fcn.004b1f9f
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004b2520
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004b27ab
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x43ecf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c08a8
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.004b5965
push 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
lea ecx, [esp + 0x24]
call fcn.004b5a1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x44]
mov ebx, dword [esi + 0x1a8]
mov ebp, dword [esi + 0x1a4]
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 + 0x1a8]
mov ecx, edi
sub eax, 8
sub ecx, edx
mov edx, dword [esp + 0x18]
sub edx, dword [esi + 0x1a4]
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 + 0x1a8]
sub ecx, edx
push 0x5a0049
push 2
push eax
lea edx, [ecx + edi - 6]
mov ecx, ebx
sub ecx, dword [esi + 0x1a4]
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 + 0x1a8]
sub edi, edx
mov edx, dword [esi + 0x1a4]
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.004b5a53
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b5a9a
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 0x44f350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1a9f
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.004b3d55
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 2
call fcn.004b379f
mov eax, dword [0x4f4df4]
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.004b2934
push 0x4f77a0
lea ecx, [esp + 8]
mov byte [esp + 0x84], 5
call fcn.004b2819
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.004b3e67
test eax, eax
je 0x44f491
push 0
push 0x1000
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x44]
call fcn.004b6779
push ecx
mov byte [esp + 0x84], 7
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x4f77a0
call fcn.004b2819
lea ecx, [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.0044f520
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x84], 8
call fcn.004b28e4
lea ecx, [esp + 8]
mov byte [esp + 0x80], 7
call fcn.004b27ab
lea ecx, [esp + 0x34]
call fcn.004b68dd
lea ecx, [esp + 0x10]
call fcn.004b4082
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 6
call fcn.004b6855
mov esi, dword [esp + 0x88]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.004b2520
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x80], 5
call fcn.004b27ab
mov dword [esp + 0x20], vtable.CFileException.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 9
call fcn.004b27ab
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 1
call fcn.004b3daa
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 0
call fcn.004b27ab
mov ecx, dword [esp + 0x78]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x80
ret 8
Function at 0x450040
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 0x450069
test al, 0x10
je 0x450069
lea ecx, [esp + 8]
mov esi, 1
call fcn.004b27ab
mov eax, esi
pop esi
ret 4
lea ecx, [esp + 8]
xor esi, esi
call fcn.004b27ab
mov eax, esi
pop esi
ret 4

Function at 0x450080
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4c1c60
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 0x4501a3
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call fcn.004b2520
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.004501d0
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x18], 1
mov eax, dword [ecx - 8]
cmp eax, 3
jl 0x450195
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004b2520
mov ecx, edi
call fcn.00450040
test eax, eax
jne 0x450195
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x450131
test cl, cl
je 0x45012d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x450131
add eax, 2
add esi, 2
test cl, cl
jne 0x45010d
xor eax, eax
jmp 0x450136
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x450195
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.004b2520
mov ecx, edi
call fcn.00450080
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.004b27ab
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004b27ab
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.004b27ab
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004b27ab
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x457460
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 0x4575e5
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4575e5
push ebp
push 0xb8
call fcn.004b2d7a
add esp, 4
cmp eax, ebx
je 0x457593
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 0x457595
xor esi, esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x4575bc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4e2f88
push ecx
mov dword [esp + 0x1c], eax
call fcn.00499f84
push 8
call fcn.004b2d7a
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 0x457de0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4ffbf8]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x457f76
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x457f76
push edi
push 0xb8
call fcn.004b2d7a
add esp, 4
cmp eax, ebx
je 0x457f16
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 edi, 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], edi
mov edi, dword [esp + 0x1c]
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 0x457f18
xor esi, esi
mov eax, dword [0x4ffbf8]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x457f42
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4e2f88
push ecx
mov dword [esp + 0x1c], eax
call fcn.00499f84
push 8
call fcn.004b2d7a
add esp, 4
mov edi, eax
push 0x4ffc00
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4ffbfc]
push 0x4ffc00
mov dword [edi + 4], edx
mov dword [0x4ffbfc], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x457f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4ffbf8]
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
je 0x458123
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x458123
push edi
push 0xb8
call fcn.004b2d7a
add esp, 4
cmp eax, ebx
je 0x4580c3
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 0x4580c5
xor esi, esi
mov eax, dword [0x4ffbf8]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x4580ef
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4e2f88
push ecx
mov dword [esp + 0x18], eax
call fcn.00499f84
push 8
call fcn.004b2d7a
add esp, 4
mov edi, eax
push 0x4ffc00
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4ffbfc]
push 0x4ffc00
mov dword [edi + 4], edx
mov dword [0x4ffbfc], 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