joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov dword [eax + 4], 0
call sym._pthread_self
test eax, eax
je 0x405eb2
test ebp, ebp
mov esi, eax
je 0x405f50
mov ebp, dword [ebp]
call sym._ptw32_new
test eax, eax
mov ebx, eax
mov edi, edx
je 0x405eb0
mov dword [esp], 0x10
call sym._malloc
test eax, eax
mov dword [esp + 0x24], eax
mov ecx, eax
je 0x405eb2
mov dword [eax], ebx
mov dword [eax + 4], edi
test ebp, ebp
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x78]
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0xa0], eax
je 0x405ed0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sym.__sched_affinitycpuzero
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call sym.__sched_affinitycpuequal
test eax, eax
jne 0x405dd0
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0xa0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x405e00
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call sym.__strdup
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0xa4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x405e11
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x9c]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x30], 0
mov dword [esp + 0x10], 4
mov dword [esp + 8], sym._ptw32_threadStart_4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp], 0
mov dword [esp + 0xc], eax
call sym.__beginthreadex
test eax, eax
mov ebp, eax
mov dword [ebx + 8], eax
je 0x405f23
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
call sym._ptw32_setthreadpriority
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xa0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym._SetThreadAffinityMask_8
sub esp, 8
mov dword [esp], ebp
call sym._ResumeThread_4
sub esp, 4
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov dword [eax + 4], edi
add esp, 0x4c
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov dword [esp], ebx
mov dword [esp + 4], edi
call sym._ptw32_threadDestroy
add esp, 0x4c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x9c]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x30], 0
mov dword [esp + 0x10], 4
mov dword [esp + 8], sym._ptw32_threadStart_4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], eax
call sym.__beginthreadex
test eax, eax
mov ebp, eax
mov dword [ebx + 8], eax
mov ecx, eax
jne 0x405e7d
mov dword [esp], ebx
mov dword [esp + 4], edi
call sym._ptw32_threadDestroy
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._free
add esp, 0x4c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebp, ebp
jmp 0x405d40
Function at 0x406360
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [0x44241a4]
mov ebx, dword [esp + 0x50]
cmp esi, ebx
je 0x406460
call sym._pthread_self
test eax, eax
mov ebp, eax
je 0x406412
test ebx, ebx
je 0x406420
mov edx, dword [ebx + 4]
test edx, edx
je 0x4063ec
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4063ec
lea eax, [ebx + 8]
lea esi, [esp + 0x10]
lea edi, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], esi
call sym._ptw32_mcs_lock_acquire
lea eax, [ebp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._ptw32_mcs_lock_acquire
mov edx, dword [ebp + 0x30]
test edx, edx
jne 0x4063d7
jmp 0x406430
mov edx, dword [edx + 8]
test edx, edx
je 0x406430
cmp ebx, dword [edx + 4]
jne 0x4063d0
mov dword [esp], edi
call sym._ptw32_mcs_lock_release
mov dword [esp], esi
call sym._ptw32_mcs_lock_release
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x406420
add esp, 0x3c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
mov dword [esp + 4], ebx
call sym._ptw32_tkAssocCreate
mov dword [esp], edi
mov ebp, eax
call sym._ptw32_mcs_lock_release
mov dword [esp], esi
call sym._ptw32_mcs_lock_release
test ebp, ebp
je 0x4063ec
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sym._pthread_getspecific
test eax, eax
je 0x406480
mov ebp, dword [eax + 0xc]
test esi, esi
je 0x406420
test ebp, ebp
je 0x4063ec
jmp 0x406390
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x406412
mov eax, dword [esp + 0x54]
mov ebp, dword [eax]
jmp 0x40646f

Function at 0x406610
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [0x44241a8]
test eax, eax
jne 0x406620
mov eax, 1
ret
sub esp, 0x1c
mov eax, dword [0x44241a4]
mov dword [esp], eax
call sym._pthread_getspecific
test eax, eax
je 0x40663d
cmp dword [eax + 0x88], 1
je 0x406680
call sym._ptw32_processTerminate
mov eax, dword [0x4424160]
test eax, eax
je 0x406674
mov dword [esp + 4], str.QueueUserAPCEx_Fini
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
test eax, eax
je 0x406664
call eax
mov eax, dword [0x4424160]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
mov eax, 1
add esp, 0x1c
ret
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ptw32_threadDestroy
mov eax, dword [0x44241a4]
test eax, eax
je 0x40663d
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
jmp 0x40663d
Function at 0x4066d0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [0x44241a8]
test eax, eax
jne 0x4066e0
mov eax, 1
ret
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x44241a4]
mov dword [esp], eax
call sym._pthread_getspecific
test eax, eax
mov edi, eax
je 0x406789
mov edx, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
lea ebx, [esp + 0x20]
lea esi, [esp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ptw32_callUserDestroyRoutines
lea eax, [edi + 0x20]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._ptw32_mcs_lock_acquire
mov dword [edi + 0x18], 6
mov dword [esp], ebx
mov ebx, 0xffffffff
call sym._ptw32_mcs_lock_release
mov eax, dword [edi + 0x80]
test eax, eax
je 0x406780
mov eax, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x1c], eax
call sym._ptw32_robust_mutex_remove
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov eax, dword [eax + 0x18]
add eax, 4
xchg dword [eax], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._SetEvent_4
mov eax, dword [edi + 0x80]
sub esp, 4
test eax, eax
jne 0x406744
cmp dword [edi + 0x88], 1
je 0x406795
add esp, 0x30
mov eax, 1
pop ebx
pop esi
pop edi
ret
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._ptw32_threadDestroy
mov eax, dword [0x44241a4]
test eax, eax
je 0x406789
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
jmp 0x406789
Function at 0x406ba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x406bc0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x1c]
lea edi, [esp + 0x30]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], edi
add dword [esp + 0x28], 1
mov dword [esp], eax
call sym._ptw32_mcs_lock_acquire
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x34], eax
mov dword [esp], edi
call sym._ptw32_mcs_lock_release
mov dword [esp + 0x2c], 0
nop
mov eax, dword [esp + 0x20]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._ptw32_mcs_lock_acquire
mov ebp, dword [ebx + 0x34]
test ebp, ebp
je 0x406cf0
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
add eax, 8
mov dword [esp], eax
call sym._ptw32_mcs_lock_try_acquire
cmp eax, 0x10
je 0x406cd1
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], 0
mov eax, dword [ecx]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test esi, esi
je 0x406cb0
cmp dword [esp + 0x28], 4
jg 0x406cb0
mov dword [esp], edi
call sym._ptw32_mcs_lock_release
lea edx, [esp + 0x40]
mov dword [esp], edx
call sym._ptw32_mcs_lock_release
add dword [esp + 0x2c], 1
mov dword [esp], esi
mov eax, dword [esp + 0x24]
call eax
jmp 0x406c00
mov dword [esp], ebp
call sym._ptw32_tkAssocDestroy
mov dword [esp], edi
call sym._ptw32_mcs_lock_release
lea eax, [esp + 0x40]
mov dword [esp], eax
call sym._ptw32_mcs_lock_release
jmp 0x406c00
mov dword [esp], edi
call sym._ptw32_mcs_lock_release
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
jmp 0x406c00
mov dword [esp], edi
call sym._ptw32_mcs_lock_release
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x406bd3
jmp 0x406baf

Function at 0x407c70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x407cb0
call sym._GetLastError_0
mov esi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
xor ebx, ebx
jmp 0x407c9e
Function at 0x408760
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x44241d4
call sym._EnterCriticalSection_4
mov ebx, dword [0x44241cc]
sub esp, 4
test ebx, ebx
je 0x4087ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4087a4
test esi, esi
je 0x4087a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x408780
mov dword [esp], 0x44241d4
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x408990
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4089e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x408ab8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x408a1e
cmp eax, 4
jne 0x408a40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x408a2e
cmp edx, 4
je 0x408a2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00408990

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x10017aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
push 0x64
mov dword [ebp - 4], esi
call fcn.1008c549
mov ebx, eax
lea ecx, [esi + 0x1b0]
add esp, 4
mov dword [ebp - 8], ebx
mov dword [ebx], vtable.CSubLine.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 4]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
call fcn.10018940
mov ecx, dword [esi + 0x1b0]
mov esi, dword [ebp + 0x10]
mov dword [ecx + eax*4], ebx
mov dword [ebx + 0x10], 0
add esi, 1
je 0x10017bad
push esi
lea ecx, [ebx + 4]
call fcn.10018af0
mov eax, dword [ebx + 0x10]
sub eax, esi
test eax, eax
jle 0x10017bad
test esi, esi
jle 0x10017bad
mov ecx, dword [ebx + 4]
add eax, eax
push eax
push ecx
lea eax, [ecx + esi*2]
push eax
call fcn.1008fc50
add esp, 0xc
mov esi, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
lea esi, [esi*2 + 2]
shr esi, 1
push esi
push dword [ebp + 0xc]
push edi
call fcn.10097978
add esp, 0xc
test esi, esi
je 0x10017bd4
xor eax, eax
mov word [edi + esi*2 - 2], ax
movss xmm0, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
movss dword [ebx + 0x20], xmm0
movss xmm0, dword [ebp + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x5c], eax
movss dword [ebx + 0x24], xmm0
mov eax, dword [ecx + 0x38]
mov dword [ebx + 0x28], eax
cmp byte [ecx + 0x89], 0
je 0x10017c32
mov ecx, dword [0x100f8ed8]
test ecx, ecx
je 0x10017c32
movzx eax, byte [ecx + 4]
mov byte [ebp + 0x10], al
movzx eax, byte [ecx + 5]
mov byte [ebp + 0x11], al
movzx eax, byte [ecx + 6]
mov byte [ebp + 0x12], al
movzx eax, byte [ecx + 7]
mov byte [ebp + 0x13], al
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x28], eax
mov ecx, dword [ebx + 0x54]
lea eax, [ebp + 0x10]
mov esi, dword [0x100f489c]
push eax
lea eax, [ebp + 0xc]
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x34], 0
mov edi, dword [esi]
push eax
mov eax, dword [ecx]
call dword [eax]
push eax
mov ecx, esi
call dword [edi + 0x14]
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x54]
mov edx, dword [ebp + 0x10]
lea eax, [ecx + 1]
imul eax, dword [esi + 0x11c]
sub edx, eax
mov eax, dword [esi + 0x12c]
imul eax, ecx
sub edx, eax
mov eax, dword [0x100f4268]
sub edx, dword [esi + 0x128]
mov dword [ebx + 0x30], edx
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x10017ca4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x114]
pop edi
pop esi
mov dword [ebx + 0x60], eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1001e570
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1001e5a1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1001e590
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x1001e900
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x1001e931
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1001e920
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10029ae0
Capabilities:
Print debug messages
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13bc
call fcn.100b4820
mov eax, dword [0x100ef040]
xor eax, esp
mov dword [esp + 0x13b8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0x14]
mov ebx, edx
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
cmp esi, 2
jne 0x10029b4c
push dword [0x100f8f60]
lea eax, [esp + 0x24]
push dword [0x100f8f5c]
push str._s___d__:
push 0x139b
push eax
call fcn.10029a90
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x10029b69
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ecx
push ecx
mov edx, 0x139b
lea ecx, [esp + 0x28]
push eax
sub edx, edi
add ecx, edi
call fcn.10002960
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10029b83
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13b8]
xor ecx, esp
call fcn.1008c21f
mov esp, ebp
pop ebp
ret
cmp esi, 2
jne 0x10029b9e
add eax, edi
lea ecx, [esp + 0x20]
add eax, ecx
push 0x100c73c4
push eax
call fcn.100029a0
add esp, 8
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x1c], eax
mov eax, dword [0x100f8b84]
mov dword [esp + 0x14], 0x100efdec
mov dword [esp + 0x18], ebx
cmp eax, 0xffffffff
je 0x10029bc9
lea ecx, [esp + 0x14]
push ecx
push eax
call edi
lea eax, [esp + 0x20]
push eax
push 0x100c9ef4
call fcn.10029a60
add esp, 8
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp esi, 2
je 0x10029bf4
cmp esi, 3
sete bl
inc ebx
mov eax, dword [0x100f8b84]
cmp eax, 0xffffffff
je 0x10029c03
push 0
push eax
call edi
mov eax, ebx
sub eax, 0
je 0x10029c11
sub eax, 2
je 0x10029c2e
jmp 0x10029c17
cmp esi, 2
je 0x10029c17
int3
mov ecx, dword [esp + 0x13c4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008c21f
mov esp, ebp
pop ebp
ret
push str.Exiting_on_SPEW_ABORT_n
call fcn.10029dc0
add esp, 4
push 0
call fcn.1009df05
int3

Function at 0x10029cd0
Capabilities:
Print debug messages
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13b4
call fcn.100b4820
mov eax, dword [0x100ef040]
xor eax, esp
mov dword [esp + 0x13b0], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x100f47fc], esi
jl 0x10029d70
lea eax, [ebp + 0x10]
mov edx, 0x139b
push eax
push ecx
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.10002960
add esp, 0xc
cmp eax, 0xffffffff
je 0x10029d70
mov eax, dword [0x100f8b84]
mov dword [esp + 0xc], esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 4], 0x100efdec
mov dword [esp + 8], str.developer
cmp eax, 0xffffffff
je 0x10029d44
lea ecx, [esp + 4]
push ecx
push eax
call esi
lea eax, [esp + 0x10]
push eax
push 0x100c9ef4
call fcn.10029a60
add esp, 8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100f8b84]
cmp eax, 0xffffffff
je 0x10029d70
push 0
push eax
call esi
mov ecx, dword [esp + 0x13b4]
pop esi
xor ecx, esp
call fcn.1008c21f
mov esp, ebp
pop ebp
ret
Function at 0x1002a350
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x100f4858]
push esi
mov esi, edx
test eax, eax
jne 0x1002a369
push esi
push eax
push ecx
call fcn.1008fa90
add esp, 0xc
pop esi
ret
push eax
push esi
push 1
push ecx
call fcn.1009f94a
mov eax, dword [0x100f483c]
add esp, 0x10
mov ecx, dword [0x100f4834]
add eax, esi
mov dword [0x100f483c], eax
cmp eax, ecx
jle 0x1002a3ab
push str.g_CurFilePos___g_FileLen
push str._VCR_ASSERT_FAILED:__s__n
call fcn.1002a2f0
mov eax, dword [0x100f483c]
add esp, 8
mov ecx, dword [0x100f4834]
cmp eax, ecx
jl 0x1002a367
pop esi
jmp dword [0x100efb14]

Function at 0x1005b880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xd0]
mov dword [esi], vtable.vgui::Menu.0
test ecx, ecx
je 0x1005b89e
mov eax, dword [ecx]
push 1
call dword [eax + 0x220]
lea ecx, [esi + 0x134]
call fcn.10006bc0
cmp dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
jl 0x1005b8e3
mov eax, dword [esi + 0x120]
test eax, eax
je 0x1005b8d9
push eax
call fcn.100978ee
add esp, 4
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
cmp dword [esi + 0x128], 0
mov eax, dword [esi + 0x120]
mov dword [esi + 0x130], eax
jl 0x1005b919
test eax, eax
je 0x1005b90f
push eax
call fcn.100978ee
add esp, 4
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
cmp dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
jl 0x1005b953
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x1005b949
push eax
call fcn.100978ee
add esp, 4
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
cmp dword [esi + 0x114], 0
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x11c], eax
jl 0x1005b989
test eax, eax
je 0x1005b97f
push eax
call fcn.100978ee
add esp, 4
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
cmp dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
jl 0x1005b9c3
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x1005b9b9
push eax
call fcn.100978ee
add esp, 4
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
cmp dword [esi + 0x100], 0
mov eax, dword [esi + 0xf8]
mov dword [esi + 0x108], eax
jl 0x1005b9f9
test eax, eax
je 0x1005b9ef
push eax
call fcn.100978ee
add esp, 4
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
lea ecx, [esi + 0xd4]
call fcn.100576a0
cmp dword [esi + 0xdc], 0
jl 0x1005ba34
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x1005ba2a
push eax
call fcn.100978ee
add esp, 4
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
pop edi
mov ecx, esi
pop esi
jmp fcn.100654a0