joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [esi], 0
mov ecx, ebx
shr ecx, 0x1f
or ecx, eax
je 0x40c44d
mov ebx, 0x16
jmp 0x40c469
lea eax, [esp + 8]
push eax
push dword [edi + 4]
call sub.msvcrt.dll_fgetpos
add esp, 8
test eax, eax
je 0x40c47e
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
call fcn.004358c0
mov esi, eax
mov eax, ebx
mov edx, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
call fcn.004358c0
mov dword [esp + 4], eax
push 0
push ebx
push dword [edi + 4]
call sub.msvcrt.dll_fseek
add esp, 0xc
test eax, eax
je 0x40c4a7
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [esp + 4]
mov ebx, dword [eax]
jmp 0x40c4fb
mov eax, dword [ebp + 0x10]
mov byte [edi + 0xa], 0
push dword [edi + 4]
push dword [ebp + 0x14]
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [esi], eax
mov byte [edi + 9], 1
xor ebx, ebx
mov eax, dword [ebp + 0x14]
cmp dword [esi], eax
jne 0x40c4d4
mov esi, dword [esp + 4]
jmp 0x40c4fb
mov esi, dword [edi + 4]
push esi
call sub.msvcrt.dll_ferror
add esp, 4
test eax, eax
je 0x40c52f
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [esp + 4]
mov ebx, dword [eax]
push dword [edi + 4]
call sub.msvcrt.dll_clearerr
add esp, 4
lea eax, [esp + 8]
push eax
push dword [edi + 4]
call sub.msvcrt.dll_fsetpos
add esp, 8
test eax, eax
je 0x40c524
test ebx, ebx
jne 0x40c470
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
jmp 0x40c470
mov word [edi + 9], 0
jmp 0x40c470
push esi
call sub.msvcrt.dll_feof
add esp, 4
test eax, eax
je 0x40c4ce
mov byte [edi + 9], 0
jmp 0x40c4ce

Function at 0x419500
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00424730
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.00424730
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 0x419560
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x45c1fc]
test esi, esi
jle 0x419680
mov eax, dword [0x45c200]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x419594
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x419617
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x419580
mov dword [esp], ebx
call fcn.00419f50
mov edi, eax
test eax, eax
je 0x4196a7
mov eax, dword [0x45c200]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0041a090
mov edx, dword [0x45c200]
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 0x419687
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x419610
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x419620
add dword [0x45c1fc], 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 [0x45c200]
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 0x419610
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00419500
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x41959e
mov eax, dword [0x45c200]
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.00419500
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00419500
lea esi, cs:[esi]
nop

Function at 0x419bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x45c218
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x45c210]
sub esp, 4
test ebx, ebx
je 0x419c15
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x419c0e
test eax, eax
jne 0x419c0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x419bf0
mov dword [esp], 0x45c218
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x419f50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x419f75
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x419f80
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x419f75
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 0x419fc8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x419fbe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x419fca
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x419fb0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41f090
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 0x41f0c9
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 0x41f0f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], str._stack_smashing_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 0x41f129
mov ecx, 2
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 0x425920
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
push ebx
lea ebx, [ebp - 0x41]
sub esp, 0x50
movups xmmword [ebp - 0x21], xmm0
mov eax, dword [0x45c27c]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x41], xmm0
movups xmmword [ebp - 0x31], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call fcn.0042aed0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x425d10
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x45cc74], 1
je 0x425dc8
push edi
mov eax, 0x45cc74
push esi
push ebx
sub esp, 0x10
call fcn.00425700
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.00424ff0
mov edi, dword [0x45cc74]
test edi, edi
jne 0x425d80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x43fa30], eax
cmp eax, 0xffffffff
je 0x43c535
mov dword [0x45cc74], 1
mov dword [esp], esi
call fcn.00425320
test ebx, ebx
je 0x425dba
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.004259a0
cmp edi, 1
je 0x425d62
mov dword [esp], 2
call dword [0x43fa18]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x45cc74
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.00425320
test ebx, ebx
jne 0x425d6e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
mov eax, dword [0x14]
ud2

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

Disassembly:
sub esp, 0x1c
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x425f28
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.00425dd0
Function at 0x4261f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x426218
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x426310
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x4262e0
cmp eax, 3
jne 0x426209
mov eax, dword [0x43fa30]
cmp eax, 0xffffffff
je 0x426209
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x426209
test byte [eax + 0x20], 0x30
je 0x426340
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x42625b
call fcn.00425f30
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x42628d
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x42627f
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004254c0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004295a0
cmp eax, 1
je 0x42640e
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x426402
mov eax, dword [0x43fa30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x426209
mov eax, dword [0x45cc4c]
test eax, eax
je 0x42632c
mov dword [esp + 4], 0x425670
mov dword [esp], 1
call eax
mov dword [0x45cc50], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x45cc50]
test eax, eax
je 0x426209
mov edx, dword [0x45cc48]
test edx, edx
je 0x42632c
mov dword [esp], eax
call edx
mov dword [0x45cc50], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4263b4
test eax, eax
je 0x42635a
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 0x426377
call fcn.00425f30
test byte [ebx + 0x24], 4
je 0x4263f2
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x42628d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], eax
call fcn.004254c0
lea eax, [ebx + 0x38]
jmp 0x42629b
test eax, eax
je 0x4263f2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call fcn.004254c0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004295a0
cmp eax, 1
je 0x42640e
mov dword [ebx + 0x38], 0xffffffff
jmp 0x426209
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004254c0
lea eax, [ebx + 0x38]
jmp 0x4263d9
mov eax, ebx
call fcn.00425b50
jmp 0x4262c1
call fcn.00425920
lea esi, cs:[esi]
lea esi, cs:[esi]
Function at 0x4266f0
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 [0x45c27c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
test edi, edi
je 0x426828
cmp eax, 1
je 0x426755
mov eax, ebx
call fcn.00425700
mov esi, eax
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call fcn.00424ff0
mov ebp, dword [ebx]
test ebp, ebp
je 0x426770
cmp ebp, 1
jne 0x4267f8
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00425320
test esi, esi
je 0x426755
mov eax, esi
call fcn.004259a0
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x45c27c]
jne 0x42687a
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0x425a60
mov dword [esp + 0x24], esi
call fcn.00425d10
mov eax, dword [0x43fa30]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x426868
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
mfence
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x426850
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
mfence
call edi
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x426838
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x42673e
mov dword [esp], 2
call dword [0x43fa18]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x42673e
mov eax, 0x16
jmp 0x426757
call fcn.00425dd0
test eax, eax
jne 0x4267e2
jmp 0x43c55f
call fcn.00425dd0
test eax, eax
jne 0x4267c0
jmp 0x43c554
call fcn.00425dd0
test eax, eax
jne 0x42679c
jmp 0x43c54d
call fcn.0041f0f0
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 0x426ac0
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.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x426b38
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.004295b0
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x426b14
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x426b14
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.00429600
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.00425dd0
mov ebx, eax
jmp 0x426aeb
Function at 0x426b50
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.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x426c70
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.004295b0
cmp esi, dword [ebx + 0x28]
jae 0x426bd0
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.00429600
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 0x426c7c
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 0x426c7c
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 0x426b98
call fcn.00425dd0
mov ebx, eax
jmp 0x426b85
mov dword [esp], edi
call fcn.00429600
mov eax, 0xc
jmp 0x426bc0

Function at 0x426d00
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x426d28
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.00425dd0
test eax, eax
jne 0x426d1d
add esp, 0x1c
ret

Function at 0x426d90
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x426db8
add eax, 0xc
add esp, 0x1c
ret
call fcn.00425dd0
test eax, eax
jne 0x426dad
jmp 0x426db0
Function at 0x426df0
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.00425f00
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x426e12
call fcn.00425f30
test byte [ebx + 0x20], 0x30
jne 0x426e2c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x426e6d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x426ead
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x426e62
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 0x426e76
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.00425cf0
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x426e6d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x426ec1
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 0x426e8e

Function at 0x426ed0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x45cc7c]
test eax, eax
jne 0x426ee0
xor eax, eax
ret
sub esp, 0x1c
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x426f20
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x426f10
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x426f04
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x426f06
call fcn.00425dd0
test eax, eax
jne 0x426efd
jmp 0x426f04

Function at 0x426f30
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x426f70
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x426f60
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.00425dd0
test eax, eax
jne 0x426f4d
add esp, 0x1c
ret
Function at 0x427070
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4270e0
test byte [ebx + 0x20], 0xc
jne 0x4270a0
mov eax, dword [0x45cc7c]
test eax, eax
jne 0x4270b0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.00424ff0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x4270d2
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x4270d2
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x4270f1
mov dword [esp], esi
call fcn.00425320
add esp, 0x14
pop ebx
pop esi
ret
call fcn.00425dd0
mov ebx, eax
test eax, eax
jne 0x427091
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 0x427111
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.00425320
call fcn.00426f80
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4271a0
mov dword [esp], eax
call fcn.00428510
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x4271e0
call fcn.00425d10
mov eax, dword [0x43fa30]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x427240
test edi, edi
je 0x4271ba
call fcn.00427070
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x427218
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00428630
call fcn.00427070
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.00425d10
mov eax, dword [0x43fa30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x427230
call fcn.00427070
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.00427070
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.00425d10
mov eax, dword [0x43fa30]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x427172
call fcn.00425dd0
mov ebx, eax
jmp 0x427172
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x42718e
call fcn.00425dd0
jmp 0x4271ba
call fcn.00425dd0
mov ebx, eax
jmp 0x42716e