joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41edb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov eax, dword [esp + 0x104]
mov ebp, dword [esp + 0x10c]
mov edx, dword [esp + 0x100]
mov esi, dword [esp + 0x108]
movzx ecx, al
sub eax, 1
mov word [esp + 0x1e], bp
mov ch, byte [esp + 0x1e]
cmp al, 0x3f
ja 0x41ef31
lea eax, [ebp - 1]
cmp al, 0x3f
ja 0x41ef31
test esi, esi
je 0x41ef31
lea ebx, [edx + 0x40]
mov eax, 0x101
mov word [esp + 0x20], cx
mov ecx, 0x49
mov word [esp + 0x22], ax
mov edi, ebx
xor eax, eax
mov dword [edx + 8], 0x84caa73b
mov dword [edx + 0xc], 0xbb67ae85
mov dword [edx + 0x10], 0xfe94f82b
mov dword [edx + 0x14], 0x3c6ef372
mov dword [edx + 0x18], 0x5f1d36f1
mov dword [edx + 0x1c], 0xa54ff53a
mov dword [edx + 0x20], 0xade682d1
mov dword [edx + 0x24], 0x510e527f
mov dword [edx + 0x28], 0x2b3e6c1f
mov dword [edx + 0x2c], 0x9b05688c
mov dword [edx + 0x30], 0xfb41bd6b
mov dword [edx + 0x34], 0x1f83d9ab
mov dword [edx + 0x38], 0x137e2179
mov dword [edx + 0x3c], 0x5be0cd19
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor ebx, 0x6a09e667
xor ecx, 0xf3bcc908
mov byte [edi], 0
mov dword [edx + 4], ebx
lea ebx, [esp + 0x60]
mov dword [edx], ecx
mov edi, ebx
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov eax, ebp
mov ecx, ebp
mov edi, ebx
movzx eax, al
cmp cl, 3
jbe 0x41eec5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test al, 2
jne 0x41ef20
test al, 1
jne 0x41ef10
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 0xc], 0
call fcn.0041ec50
mov dword [esp], ebx
mov dword [esp + 4], pe_nt_image_headers32
call fcn.00408e00
add esp, 0xec
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
jmp 0x41eecf
movzx ecx, word [esi]
mov word [edi], cx
mov ecx, 2
test al, 1
je 0x41eecf
jmp 0x41ef10
call fcn.00408b90
lea esi, [esi]
lea esi, [esi]
Function at 0x44e5a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0045cb10
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0045cb10
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x44e600
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x573500]
test esi, esi
jle 0x44e720
mov eax, dword [0x573504]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x44e634
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x44e6b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x44e620
mov dword [esp], ebx
call fcn.0044efe0
mov edi, eax
test eax, eax
je 0x44e747
mov eax, dword [0x573504]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0044f120
mov edx, dword [0x573504]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x44e727
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x44e6b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x44e6c0
add dword [0x573500], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x573504]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x44e6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0044e5a0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x44e63e
mov eax, dword [0x573504]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0044e5a0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0044e5a0
lea esi, [esi]
nop
Function at 0x44ec50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x57351c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x573514]
sub esp, 4
test ebx, ebx
je 0x44eca5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x44ec9e
test esi, esi
je 0x44ec9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x44ec80
mov dword [esp], 0x57351c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x44efe0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x44f005
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x44f010
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x44f005
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x44f058
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x44f04e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x44f05a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x44f040
xor eax, eax
pop ebx
pop esi
ret

Function at 0x453fb0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x453fe9
mov ecx, 8
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x45f260
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
sub esp, 0x84
movups xmmword [ebp - 0x27], xmm0
movdqu xmm1, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movdqu xmm2, xmmword [0x51f9d0]
movdqu xmm3, xmmword [0x51f9e0]
movups xmmword [ebp - 0x47], xmm0
mov eax, dword [0x5740a8]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x77], xmm1
movups xmmword [ebp - 0x67], xmm2
movups xmmword [ebp - 0x57], xmm3
movups xmmword [ebp - 0x37], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [ebp - 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [ebp - 0x50], 0
je 0x45f31b
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x45f2ed
cmp eax, 0x6a
je 0x45f30a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x45f2e8
cmp eax, 0x6a
je 0x45f30a
add ecx, 2
mov byte [ebp + eax - 0x77], 0xa
mov byte [ebp + ecx - 0x77], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x45f300

Function at 0x45f6a0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x574094], 1
je 0x45f758
push edi
mov eax, 0x574094
push esi
push ebx
sub esp, 0x10
call fcn.0045f040
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0045e8c0
mov edi, dword [0x574094]
test edi, edi
jne 0x45f710
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x50f180], eax
cmp eax, 0xffffffff
je 0x507a39
mov dword [0x574094], 1
mov dword [esp], esi
call fcn.0045ec00
test ebx, ebx
je 0x45f74a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0045f330
cmp edi, 1
je 0x45f6f2
mov dword [esp], 2
call dword [0x50f16c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x574094
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0045ec00
test ebx, ebx
jne 0x45f6fe
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x45f760
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0045f420
mov edx, dword [entry3]
test edx, edx
je 0x45f890
mov ebx, eax
test eax, eax
je 0x45f890
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0045ef40
cmp eax, 1
je 0x45f89c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.00507a3e
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x50f180]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x45f8a1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0045f260
jmp fcn.00507a3e

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

Disassembly:
sub esp, 0x1c
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x45f8d8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0045f760
Function at 0x45fba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x45fbd0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x45fca0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x45fcd0
cmp eax, 3
jne 0x45fbbb
mov eax, dword [0x50f180]
cmp eax, 0xffffffff
je 0x45fbbb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x45fbbb
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x45fd00
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x45fc19
call fcn.0045f8e0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x45fc4b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x45fc3d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [esp], esi
call fcn.0045ed80
mov dword [esp], edi
call fcn.0045ef40
cmp eax, 1
je 0x45fdc6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x45fdba
mov eax, dword [0x50f180]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x45fbbb
mov eax, dword [0x574070]
test eax, eax
je 0x45fbbb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x574070], 0
sub esp, 4
jmp 0x45fbbb
mov dword [esp + 4], 0x45efb0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x574070], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x45fd70
test eax, eax
je 0x45fd1a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x45fd37
call fcn.0045f8e0
test byte [ebx + 0x24], 4
je 0x45fdb0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x45fc4b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0045ed80
jmp 0x45fc53
test eax, eax
je 0x45fdb0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0045ed80
mov dword [esp], edi
call fcn.0045ef40
cmp eax, 1
je 0x45fdc6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x45fbbb
mov dword [esp], esi
call fcn.0045ed80
jmp 0x45fd8f
mov eax, ebx
call fcn.0045f4e0
jmp 0x45fc79
call fcn.0045f260
lea esi, [esi]
nop
Function at 0x4600a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [0x5740a8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
test edi, edi
je 0x4601e0
cmp eax, 1
je 0x460105
mov eax, ebx
call fcn.0045f040
mov esi, eax
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call fcn.0045e8c0
mov ebp, dword [ebx]
test ebp, ebp
je 0x460120
cmp ebp, 1
jne 0x4601b0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0045ec00
test esi, esi
je 0x460105
mov eax, esi
call fcn.0045f330
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x5740a8]
jne 0x46022a
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0x45f3f0
mov dword [esp + 0x24], esi
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x460218
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x460200
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call edi
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4601f0
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x4600ee
mov dword [esp], 2
call dword [0x50f16c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4600ee
mov eax, 0x16
jmp 0x460107
call fcn.0045f760
test eax, eax
jne 0x460196
jmp 0x507a63
call fcn.0045f760
test eax, eax
jne 0x460172
jmp 0x507a58
call fcn.0045f760
test eax, eax
jne 0x46014c
jmp 0x507a51
call fcn.00463ab0
nop
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x460470
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4604e8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0045ef50
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x4604c4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x4604c4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0045efa0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0045f760
mov ebx, eax
jmp 0x46049b
Function at 0x460500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x460620
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0045ef50
cmp esi, dword [ebx + 0x28]
jae 0x460580
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0045efa0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x46062c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x46062c
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x460548
call fcn.0045f760
mov ebx, eax
jmp 0x460535
mov dword [esp], edi
call fcn.0045efa0
mov eax, 0xc
jmp 0x460570

Function at 0x4606b0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4606d8
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.0045f760
test eax, eax
jne 0x4606cd
add esp, 0x1c
ret

Function at 0x460740
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x460768
add eax, 0xc
add esp, 0x1c
ret
call fcn.0045f760
test eax, eax
jne 0x46075d
jmp 0x460760
Function at 0x4607a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0045f8b0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4607c2
call fcn.0045f8e0
test byte [ebx + 0x20], 0x30
jne 0x4607dc
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x46081d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x46085d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x460812
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x460826
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0045f680
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x46081d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x460871
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x46083e

Function at 0x460880
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x57409c]
test eax, eax
jne 0x460890
xor eax, eax
ret
sub esp, 0x1c
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4608d0
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x4608c0
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x4608b4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x4608b6
call fcn.0045f760
test eax, eax
jne 0x4608ad
jmp 0x4608b4

Function at 0x4608e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x460920
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x460910
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.0045f760
test eax, eax
jne 0x4608fd
add esp, 0x1c
ret
Function at 0x460a20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x460a90
test byte [ebx + 0x20], 0xc
jne 0x460a50
mov eax, dword [0x57409c]
test eax, eax
jne 0x460a60
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0045e8c0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x460a82
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x460a82
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x460aa1
mov dword [esp], esi
call fcn.0045ec00
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0045f760
mov ebx, eax
test eax, eax
jne 0x460a41
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x460ac1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0045ec00
call fcn.00460930
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x460b50
mov dword [esp], eax
call fcn.0045e5f0
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x460b90
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x460bf0
test edi, edi
je 0x460b6a
call fcn.00460a20
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x460bc8
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0045e710
call fcn.00460a20
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x460be0
call fcn.00460a20
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.00460a20
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0045f6a0
mov eax, dword [0x50f180]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x460b22
call fcn.0045f760
mov ebx, eax
jmp 0x460b22
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x460b3e
call fcn.0045f760
jmp 0x460b6a
call fcn.0045f760
mov ebx, eax
jmp 0x460b1e