joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x407755
push ebx
push esi
call fcn.00407681
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004075ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407702
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407754
push edi
push eax
call fcn.00405883
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407722
call fcn.00405849
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407753
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004075ca
add esp, 0x20
test eax, eax
jne 0x407741
push edi
call fcn.00405849
jmp 0x407749
push ebx
call fcn.00405849
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4079c0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423800
push 0x4237f8
push str.FlsAlloc
push 0x1e
call fcn.004078de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4079f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422454]
call esi
jmp 0x4079fa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407a3e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423810
push 0x423808
push str.FlsGetValue
push 0x20
call fcn.004078de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a75
push dword [ebp + 8]
mov ecx, esi
call dword [0x422454]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40d440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d46d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d46d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x412a6a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp esi, 8
jb 0x412b12
mov eax, esi
shr eax, 3
mov dword [ebp - 4], eax
movzx edx, byte [edi + 2]
mov eax, ebx
movzx ecx, byte [edi + 1]
sub esi, 8
shr eax, 0x10
movzx eax, al
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
mov edx, dword [edx*4 + 0x4285a0]
shr eax, 0x18
xor edx, dword [ecx*4 + 0x427040]
movzx ecx, byte [edi + 3]
xor ecx, eax
movzx eax, byte [edi]
xor edx, dword [ecx*4 + 0x427da0]
movzx ecx, bl
xor ecx, eax
movzx eax, byte [edi + 7]
xor edx, dword [ecx*4 + 0x427920]
xor edx, dword [eax*4 + 0x428a70]
movzx eax, byte [edi + 6]
xor edx, dword [eax*4 + 0x427460]
movzx eax, byte [edi + 5]
xor edx, dword [eax*4 + 0x428e90]
movzx eax, byte [edi + 4]
add edi, 8
xor edx, dword [eax*4 + 0x4281a0]
sub dword [ebp - 4], 1
mov ebx, edx
jne 0x412a89
test esi, esi
je 0x412b2e
movzx eax, byte [edi]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x428a70]
inc edi
sub esi, 1
jne 0x412b16
pop edi
not ebx
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4019a3
Capabilities:
Check for foreground window switch
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.readIntervalsFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea eax, [ebp - 0x24]
mov ecx, eax
call dbg.std::vector<int, std::allocator<int> >::empty() const
test al, al
je 0x4019e3
mov dword [esp + 4], str.No_intervals_found_in_file._n
mov dword [esp], sym.imp.libstdc_6.dll_std::cerr
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
jmp 0x401b49
mov dword [esp + 4], str.Intervals_loaded._n
mov dword [esp], sym.imp.libstdc_6.dll_std::cout
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea eax, [ebp - 0x24]
mov dword [esp], eax
call dbg.bubbleSort(std::vector<int, std::allocator<int> >&)
fld qword [0x4072c0]
fstp qword [ebp - 0x10]
mov dword [esp], 1
call sym._GetAsyncKeyState_4
sub esp, 4
test ax, ax
je 0x401a31
movzx eax, byte [0x406004]
test al, al
je 0x401a31
mov eax, 1
jmp 0x401a36
mov eax, 0
test al, al
je 0x401b1a
call sym._GetForegroundWindow_0
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], str.LWJGL
call sym._FindWindowA_8
sub esp, 8
mov ebx, eax
call sym._GetForegroundWindow_0
cmp ebx, eax
sete al
test al, al
je 0x401b1a
fld qword [ebp - 0x10]
fstp qword [esp + 4]
lea eax, [ebp - 0x24]
mov dword [esp], eax
call dbg.sampleFromKDE(std::vector<int, std::allocator<int> > const&, double)
mov dword [ebp - 0x18], eax
mov dword [esp + 4], str.Interval:
mov dword [esp], sym.imp.libstdc_6.dll_std::cout
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov ecx, edx
call sym.std::ostream::operator___int_
sub esp, 4
mov dword [esp + 4], 0x4070dc
mov dword [esp], eax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._Sleep_4
sub esp, 4
call sym._GetForegroundWindow_0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x201
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
call sym._GetForegroundWindow_0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x202
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], 0xa0
call sym._GetAsyncKeyState_4
sub esp, 4
shr ax, 0xf
test al, al
je 0x401b3d
mov byte [0x406004], 0
jmp 0x401a0b
mov byte [0x406004], 1
jmp 0x401a0b
lea eax, [ebp - 0x24]
mov ecx, eax
call dbg.std::vector<int, std::allocator<int> >::~vector()
jmp 0x401b6b
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4029c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40b444
call sym._EnterCriticalSection_4
mov ebx, dword [0x40b43c]
sub esp, 4
test ebx, ebx
je 0x402a0b
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 0x402a04
test esi, esi
je 0x402a04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4029e0
mov dword [esp], 0x40b444
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402bf0
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 0x402c40
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 0x402d18
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402c7e
cmp eax, 4
jne 0x402ca0
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 0x402c8e
cmp edx, 4
je 0x402c8e
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.00402bf0
Function at 0x405290
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], 0x80000000
mov dword [ebp - 0x10], 0x7fffffff
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0xe2
ja 0x40531c
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
and eax, 0x80000000
mov ecx, eax
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 0x18d]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x14]
shr edx, 1
xor edx, eax
mov eax, dword [ebp - 0x14]
and eax, 1
test eax, eax
je 0x405304
mov eax, 0x9908b0df
jmp 0x405309
mov eax, 0
mov ecx, edx
xor ecx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov dword [eax + edx*4], ecx
add dword [ebp - 4], 1
jmp 0x4052ae
mov dword [ebp - 8], 0xe3
cmp dword [ebp - 8], 0x26e
ja 0x405391
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
and eax, 0x80000000
mov ecx, eax
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
lea edx, [eax - 0xe3]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x18]
shr edx, 1
xor edx, eax
mov eax, dword [ebp - 0x18]
and eax, 1
test eax, eax
je 0x405379
mov eax, 0x9908b0df
jmp 0x40537e
mov eax, 0
mov ecx, edx
xor ecx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
mov dword [eax + edx*4], ecx
add dword [ebp - 8], 1
jmp 0x405323
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
and eax, 0x7fffffff
or eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x630]
mov edx, dword [ebp - 0x1c]
shr edx, 1
xor edx, eax
mov eax, dword [ebp - 0x1c]
and eax, 1
test eax, eax
je 0x4053d1
mov eax, 0x9908b0df
jmp 0x4053d6
mov eax, 0
xor edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x9bc], edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x9c0], 0
nop
leave
ret
Function at 0x40540c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.unsigned int std::__detail::__mod<unsigned int, 0, 1u, 0u>(unsigned int)
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x26f
ja 0x405485
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 0x1e
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x6c078965
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.unsigned int std::__detail::__mod<unsigned int, 624, 1u, 0u>(unsigned int)
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dbg.unsigned int std::__detail::__mod<unsigned int, 0, 1u, 0u>(unsigned int)
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
add dword [ebp - 0xc], 1
jmp 0x40542e
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x9c0], 0x270
nop
leave
ret 4

Function at 0x4054bc
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x9c0]
cmp eax, 0x26f
jbe 0x4054df
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call dbg.std::mersenne_twister_engine<unsigned int, 32, 624u, 397u, 31u, 2567483615u, 11u, 4294967295u, 7u, 2636928640u, 15u, 4022730752u, 18u, 1812433253u>::_M_gen_rand()
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x9c0]
lea ecx, [eax + 1]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x9c0], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 0xb
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 7
and eax, 0x9d2c5680
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0xf
and eax, 0xefc60000
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 0x12
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407949
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407949
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407949
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407949
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407949
mov dword [0x41203c], eax
call fcn.00407949
test eax, eax
jge 0x402550
push 8
call fcn.00407949
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407949
pop ecx
push 1
call fcn.00407949
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407949
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407949
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407949
jmp 0x402495

Function at 0x407949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x407958
pop dword [ebp - 0x40]
mov eax, 0x58824a5a
sub eax, 0x5841d102
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3aa82
push 0
mov eax, 0xb3663e7c
add eax, 0x4cdaa25c
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xc7583c18
add ecx, 0x38a81053
xor edx, edx
add edx, eax
mov ebx, 0xd663b580
add ebx, 0x29dd8644
add ebx, dword [ebp - 0x40]
mov edi, 0x9b490ab8
add edi, 0xb10ac0d6
sub dword [ebp - 0x24], esi
mov esi, dword [ebx]
xor dword [ebp - 0x38], 0xc9e82788
sub esi, edi
xor dword [ebp - 0x18], 0x6adb4662
mov dword [edx], esi
add dword [ebp - 0x2c], 0xe0b3d4c8
add edx, 0x201a4e5
add edx, 0xfdfe5b1f
add ebx, 4
loop 0x4079b9
add eax, 0x1247f
mov ebx, eax
add eax, 5
mov ecx, 0x7cdb6a5c
sub ecx, 0x7c9b6a5c
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x100224f0
Capabilities:
Print debug messages
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13bc
call fcn.100ab100
mov eax, dword [0x100e3040]
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 0x1002255c
push dword [0x100eb5a8]
lea eax, [esp + 0x24]
push dword [0x100eb5a4]
push str._s___d__:
push 0x139b
push eax
call fcn.100224a0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x10022579
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.10002c70
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10022593
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13b8]
xor ecx, esp
call fcn.1008438f
mov esp, ebp
pop ebp
ret
cmp esi, 2
jne 0x100225ae
add eax, edi
lea ecx, [esp + 0x20]
add eax, ecx
push 0x100c20b8
push eax
call fcn.10002cb0
add esp, 8
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x1c], eax
mov eax, dword [0x100eafe0]
mov dword [esp + 0x14], 0x100e5394
mov dword [esp + 0x18], ebx
cmp eax, 0xffffffff
je 0x100225d9
lea ecx, [esp + 0x14]
push ecx
push eax
call edi
lea eax, [esp + 0x20]
push eax
push 0x100bf684
call fcn.10022470
add esp, 8
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp esi, 2
je 0x10022604
cmp esi, 3
sete bl
inc ebx
mov eax, dword [0x100eafe0]
cmp eax, 0xffffffff
je 0x10022613
push 0
push eax
call edi
mov eax, ebx
sub eax, 0
je 0x10022621
sub eax, 2
je 0x1002263e
jmp 0x10022627
cmp esi, 2
je 0x10022627
int3
mov ecx, dword [esp + 0x13c4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008438f
mov esp, ebp
pop ebp
ret
push str.Exiting_on_SPEW_ABORT_n
call fcn.100227d0
add esp, 4
push 0
call fcn.1009371a
int3

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13b4
call fcn.100ab100
mov eax, dword [0x100e3040]
xor eax, esp
mov dword [esp + 0x13b0], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x100e9a70], esi
jl 0x10022780
lea eax, [ebp + 0x10]
mov edx, 0x139b
push eax
push ecx
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.10002c70
add esp, 0xc
cmp eax, 0xffffffff
je 0x10022780
mov eax, dword [0x100eafe0]
mov dword [esp + 0xc], esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 4], 0x100e5394
mov dword [esp + 8], str.developer
cmp eax, 0xffffffff
je 0x10022754
lea ecx, [esp + 4]
push ecx
push eax
call esi
lea eax, [esp + 0x10]
push eax
push 0x100bf684
call fcn.10022470
add esp, 8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100eafe0]
cmp eax, 0xffffffff
je 0x10022780
push 0
push eax
call esi
mov ecx, dword [esp + 0x13b4]
pop esi
xor ecx, esp
call fcn.1008438f
mov esp, ebp
pop ebp
ret
Function at 0x10022d60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x100e9ad0]
push esi
mov esi, edx
test eax, eax
jne 0x10022d79
push esi
push eax
push ecx
call fcn.10086b30
add esp, 0xc
pop esi
ret
push eax
push esi
push 1
push ecx
call fcn.1009515f
mov eax, dword [0x100e9ab4]
add esp, 0x10
mov ecx, dword [0x100e9aa8]
add eax, esi
mov dword [0x100e9ab4], eax
cmp eax, ecx
jle 0x10022dbb
push str.g_CurFilePos___g_FileLen
push str._VCR_ASSERT_FAILED:__s__n
call fcn.10022d00
mov eax, dword [0x100e9ab4]
add esp, 8
mov ecx, dword [0x100e9aa8]
cmp eax, ecx
jl 0x10022d77
pop esi
jmp dword [0x100e4e14]

Function at 0x10054260
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 0x1005427e
mov eax, dword [ecx]
push 1
call dword [eax + 0x220]
lea ecx, [esi + 0x134]
call fcn.1000d1c0
cmp dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
jl 0x100542c3
mov eax, dword [esi + 0x120]
test eax, eax
je 0x100542b9
push eax
call fcn.1008e36d
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 0x100542f9
test eax, eax
je 0x100542ef
push eax
call fcn.1008e36d
add esp, 4
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
cmp dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
jl 0x10054333
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x10054329
push eax
call fcn.1008e36d
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 0x10054369
test eax, eax
je 0x1005435f
push eax
call fcn.1008e36d
add esp, 4
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
cmp dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
jl 0x100543a3
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x10054399
push eax
call fcn.1008e36d
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 0x100543d9
test eax, eax
je 0x100543cf
push eax
call fcn.1008e36d
add esp, 4
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
lea ecx, [esi + 0xd4]
call fcn.10050060
cmp dword [esi + 0xdc], 0
jl 0x10054414
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x1005440a
push eax
call fcn.1008e36d
add esp, 4
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
pop edi
mov ecx, esi
pop esi
jmp fcn.1005def0
Function at 0x1005def0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af270
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100e3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.vgui::Panel.0
call fcn.10020c00
cmp eax, 0xffffffff
je 0x1005df78
push dword [esi + 0x40]
call fcn.1005c620
mov edi, eax
test edi, edi
je 0x1005df78
mov edx, dword [edi + 0x14]
xor ecx, ecx
test edx, edx
jle 0x1005df78
mov ebx, dword [edi + 8]
mov eax, ebx
cmp dword [eax], esi
je 0x1005df51
inc ecx
add eax, 4
cmp ecx, edx
jl 0x1005df43
jmp 0x1005df78
cmp ecx, 0xffffffff
je 0x1005df78
sub edx, ecx
dec edx
test edx, edx
jle 0x1005df75
lea eax, [edx*4]
lea ecx, [ebx + ecx*4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.10086cf0
add esp, 0xc
dec dword [edi + 0x14]
mov eax, dword [esi + 0x24]
cmp byte [eax + 1], 0
je 0x1005df8e
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.10064f70
mov ax, word [esi + 0x50]
mov ecx, 0xffbf
and ax, cx
mov ecx, esi
or ax, 1
push 0
mov word [esi + 0x50], ax
call fcn.1005ece0
mov ecx, dword [0x100e9b38]
push dword [esi + 0x44]
mov eax, dword [ecx]
call dword [eax + 0x44]
test eax, eax
je 0x1005e00a
nop dword [eax]
mov ecx, dword [0x100e9b38]
push 0
push dword [esi + 0x44]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x100e9b38]
mov edi, eax
push edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x74]
call edx
mov ecx, dword [0x100e9b38]
test al, al
mov eax, dword [ecx]
je 0x1005dff2
push edi
call dword [eax + 0x78]
jmp 0x1005dff8
push 0
push edi
call dword [eax + 0x40]
mov ecx, dword [0x100e9b38]
push dword [esi + 0x44]
mov eax, dword [ecx]
call dword [eax + 0x44]
test eax, eax
jne 0x1005dfc0
mov ecx, dword [0x100e9b2c]
push dword [esi + 0x44]
mov eax, dword [ecx]
call dword [eax + 0x24]
push dword [esi + 0x48]
call fcn.100849f5
mov edi, dword [esi + 0x24]
add esp, 4
mov dword [esi + 0x44], 0
test edi, edi
je 0x1005e096
cmp dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
jl 0x1005e05c
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1005e055
push eax
call fcn.1008e36d
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
cmp dword [edi + 0x34], 0
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x3c], eax
jl 0x1005e083
test eax, eax
je 0x1005e07c
push eax
call fcn.1008e36d
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x18]
call fcn.1000d1c0
push 0x5c
push edi
call fcn.100846aa
add esp, 8
lea ecx, [esi + 0x54]
call fcn.1000d1c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret