joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462640
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x2c]
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
push dword [esp + 0xc]
call dword [edx + 0x24]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push 3
call dword [edx + 0x14]
ret

Function at 0x462710
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x462751
push esi
push edi
call fcn.0045d4a0
add esp, 4
lea esi, [eax + 1]
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push edi
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push esi
mov edx, dword [ecx]
push edi
push dword [eax]
push 1
call dword [edx + 0x14]
pop esi
pop edi
ret
Function at 0x466630
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 4]
sub esi, 1
mov ecx, dword [ebx]
js 0x466655
lea eax, [esi + esi*8]
push edi
lea edi, [ecx + eax*4]
mov ecx, edi
call fcn.0045d990
sub edi, 0x24
sub esi, 1
jns 0x466645
pop edi
mov eax, dword [ebx + 8]
mov dword [ebx + 4], 0
test eax, eax
js 0x46667e
and eax, 0x3fffffff
mov ecx, 0x7d8954
lea eax, [eax + eax*8]
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [ebx]
call dword [eax + 0x10]
mov eax, dword [esp + 0xc]
mov dword [ebx], 0
mov dword [ebx + 8], connect
test al, 1
je 0x4666c0
test al, 4
jne 0x4666b5
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xc
push ebx
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop esi
mov eax, ebx
pop ebx
ret 4
push 0xc
push ebx
call fcn.0045b780
add esp, 8
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x4666d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00464780
mov eax, dword [esp + 8]
test al, 1
je 0x466710
test al, 4
jne 0x466705
test esi, esi
je 0x466710
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x70
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
pop esi
ret 4
push 0x70
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4

Function at 0x466830
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [esp + 0x10], 0
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
je 0x46687c
xor esi, esi
test edi, edi
je 0x46687c
test ebx, ebx
je 0x46687c
cmp esi, dword [edi + 0x4c]
jge 0x46687c
mov eax, dword [edi + 0x48]
lea ecx, [eax + esi*4]
mov eax, dword [ecx]
cmp dword [eax + 0x64], 0
je 0x46686f
push ebx
push dword [eax + 0x64]
call fcn.0045d370
add esp, 8
test eax, eax
je 0x466872
inc esi
jmp 0x466848
mov eax, dword [edi + 0x48]
pop edi
mov eax, dword [eax + esi*4]
pop esi
pop ebx
ret
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x70
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x4668a7
push dword [esp + 0x18]
mov ecx, eax
push ebx
push edi
call fcn.004645d0
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4671d0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
xor ecx, ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x4c], ecx
jle 0x467293
mov esi, dword [esp + 0x18]
nop dword [eax]
mov eax, dword [eax + 0x48]
push ecx
mov ebp, dword [eax + ecx*4]
mov eax, esp
mov byte [eax], 0
push dword [ebp + 0x64]
push esi
call fcn.00467110
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x46723c
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x70
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x46723a
push dword [ebp + 0x6c]
mov ecx, eax
push dword [ebp + 0x64]
push esi
call fcn.004645d0
mov ebx, eax
jmp 0x46723c
xor ebx, ebx
mov esi, ebp
lea edx, [ebx + 0x30]
mov ecx, ebx
sub esi, ebx
mov edi, 0xc
nop word [eax + eax]
movss xmm0, dword [esi + ecx]
addss xmm0, dword [ecx]
movss dword [ecx], xmm0
add ecx, 4
mov ax, word [esi + edx]
add word [edx], ax
add edx, 2
sub edi, 1
jne 0x467250
push ebp
push ebx
call fcn.004671d0
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esp + 0x1c]
inc ecx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
cmp ecx, dword [eax + 0x4c]
jl 0x4671f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4674b0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 0xb
cmp ebp, 0xc
mov dword [esp + 0x14], 0
push edi
cmovge ebp, eax
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [eax + 0x4c], edi
jle 0x4675ac
movss xmm0, dword [0x718824]
subss xmm0, dword [esp + 0x20]
push ebx
push esi
movss dword [esp + 0x10], xmm0
nop
mov eax, dword [eax + 0x48]
lea ecx, [esp + 0x20]
push ecx
mov ebx, dword [eax + edi*4]
push dword [ebx + 0x64]
push dword [esp + 0x20]
call fcn.00466cb0
mov esi, dword [esp + 0x2c]
add esp, 0xc
test al, al
jne 0x467545
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x70
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x467541
push dword [ebx + 0x6c]
mov ecx, eax
push dword [ebx + 0x64]
push dword [esp + 0x20]
call fcn.004645d0
mov ecx, eax
jmp 0x46754f
xor ecx, ecx
jmp 0x46754f
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax + esi*4]
mov edx, dword [esp + 0x24]
push ecx
movss xmm0, dword [ebx + edx*4]
mulss xmm0, dword [esp + 0x14]
addss xmm0, dword [ecx + ebp*4]
movss dword [ecx + ebp*4], xmm0
movss xmm0, dword [esp + 0x2c]
mov ax, word [ebx + edx*2 + 0x30]
movss dword [esp], xmm0
push edx
push ebp
push ebx
push ecx
mov word [ecx + ebp*2 + 0x30], ax
call fcn.004674b0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov ecx, dword [ecx + 0x4c]
lea eax, [ecx - 1]
cmp esi, eax
jge 0x46759d
inc esi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, ecx
jl 0x4674f0
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x467e00
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
mov dword [edi], vtable.hkBufferedStreamWriter.0
call fcn.00467ed0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x467e1a
call fcn.0045c160
cmp byte [edi + 0x18], 0
je 0x467e3d
push esi
push dword [0x884adc]
mov esi, dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push dword [eax + 0x2c]
call fcn.00460610
add esp, 8
pop esi
mov dword [edi], vtable.hkBaseObject.0
pop edi
ret

Function at 0x4680a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00467e00
mov eax, dword [esp + 8]
test al, 1
je 0x4680f2
test al, 4
jne 0x4680e7
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 0x1c
cmp ax, cx
je 0x4680ca
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 0x1c
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4

Function at 0x468190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x14], ebp
jle 0x4681c6
push ebx
push edi
nop dword [eax]
mov eax, dword [esi + 0x10]
push dword [0x884adc]
mov ebx, dword [esi]
mov edi, dword [eax + ebp*4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
push edi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
inc ebp
cmp ebp, dword [esi + 0x14]
jl 0x4681a0
pop edi
pop ebx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], 0
test eax, eax
js 0x4681ed
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esi + 0x10]
call dword [eax + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], connect
mov eax, dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
pop esi
pop ebp
ret
Function at 0x468220
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
dec ecx
test ebp, ebp
jle 0x4682f1
push ebx
shl ecx, 2
lea ebx, [esi + 0x10]
mov dword [esp + 0x18], ecx
push edi
mov eax, dword [esi]
mov edi, eax
mov dword [esp + 0x10], eax
sub edi, dword [esi + 4]
jne 0x4682a5
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0x10]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 8]
mov edi, eax
and ecx, 0x3fffffff
cmp dword [ebx + 4], ecx
jne 0x468286
push 4
push ebx
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], edi
inc dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi]
add ecx, 4
mov dword [esi + 4], 0
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx]
mov eax, dword [ecx + eax]
add eax, dword [esi + 4]
cmp ebp, edi
jle 0x4682de
push edi
push dword [esp + 0x1c]
push eax
call fcn.0045d810
add dword [esp + 0x24], edi
sub ebp, edi
mov eax, dword [esi]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], eax
test ebp, ebp
jg 0x468241
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 8
push ebp
push dword [esp + 0x1c]
push eax
call fcn.0045d810
add esp, 0xc
add dword [esi + 4], ebp
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 8

Function at 0x468300
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0xc]
imul edx, dword [ebx]
mov eax, dword [ebx + 8]
sub eax, edx
cdq
idiv dword [ebx]
mov ebp, eax
test ebp, ebp
jle 0x468377
push edi
nop word [eax + eax]
mov eax, dword [ebx + 0x10]
push dword [0x884adc]
mov edi, dword [ebx]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
dec dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
lea edx, [eax*4]
mov eax, dword [ebx + 0x10]
lea esi, [eax + 4]
test edx, edx
jle 0x46836e
dec edx
sub esi, eax
shr edx, 2
inc edx
nop dword [eax + eax]
mov ecx, dword [esi + eax]
lea eax, [eax + 4]
mov dword [eax - 4], ecx
sub edx, 1
jne 0x468360
inc dword [ebx + 0xc]
sub ebp, 1
jne 0x468320
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x468840
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00468540
mov eax, dword [esp + 8]
test al, 1
je 0x468892
test al, 4
jne 0x468887
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 0x18
cmp ax, cx
je 0x46886a
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 0x18
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4
Function at 0x469ab0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.004695e0
mov eax, dword [esp + 8]
test al, 1
je 0x469b02
test al, 4
jne 0x469af7
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 0x10
cmp ax, cx
je 0x469ada
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 0x10
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4

Function at 0x469d50
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x10]
mov dword [esi + 4], 0x1ffff
mov dword [esi], vtable.hkMemoryStreamReader.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], eax
test eax, eax
jne 0x469dae
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [eax + 0x2c]
call fcn.00460640
push edi
push dword [esp + 0x18]
mov dword [esi + 8], eax
push eax
call fcn.0045d810
add esp, 0x14
mov eax, esi
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
ret 0xc

Function at 0x469dc0
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x18]
mov dword [edi], vtable.hkMemoryStreamReader.0
test eax, eax
je 0x469dd5
cmp eax, 1
jne 0x469df2
push esi
push dword [0x884adc]
mov esi, dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push dword [eax + 0x2c]
call fcn.00460680
add esp, 8
pop esi
mov dword [edi], vtable.hkBaseObject.0
pop edi
ret

Function at 0x469f90
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00469dc0
mov eax, dword [esp + 8]
test al, 1
je 0x469fe2
test al, 4
jne 0x469fd7
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 0x1c
cmp ax, cx
je 0x469fba
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 0x1c
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4

Function at 0x46c9c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0046c760
mov eax, dword [esp + 8]
test al, 1
je 0x46ca12
test al, 4
jne 0x46ca07
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 0xc
cmp ax, cx
je 0x46c9ea
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 0xc
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4
Function at 0x46cb10
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push dword [0x7d8c60]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, ecx
call edi
mov dword [esi], eax
test eax, eax
jne 0x46cb35
push str.Havok_StackTracer:_hkStackTracer:_Unable_to_load_dbghelp.dll_r_n
call fcn.0046c9b0
add esp, 4
push str.kernel32.dll
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x46cb50
push str.Havok_StackTracer:_hkStackTracer:_Unable_to_load_kernel32.dll_r_n
call fcn.0046c9b0
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x46cc29
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
mov dword [esi + 8], 1
call edi
push str.SymRefreshModuleList
push dword [esi]
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x46cb8f
push str.Havok_StackTracer:_Could_not_load_symbol_SymRefreshModuleList_from_dbghelp.dll__version_too_old__but_will_continue_without_it._r_n
call fcn.0046c9b0
add esp, 4
push str.SymGetOptions
push dword [esi]
call edi
push str.SymSetOptions
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.SymGetSymFromAddr64
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.StackWalk64
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.SymFunctionTableAccess64
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.SymGetModuleBase64
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.SymGetLineFromAddr64
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.SymCleanup
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.RtlCaptureContext
push dword [esi + 4]
mov dword [esi + 0x30], eax
call edi
push str.RtlCaptureStackBackTrace
push dword [esi + 4]
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x14]
call eax
or eax, reloc.WSOCK32.dll_recv
push eax
mov eax, dword [esi + 0x18]
call eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [esi + 0xc]
call eax
pop edi
pop esi
ret

Function at 0x46db50
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0046d660
mov eax, dword [esp + 8]
test al, 1
je 0x46dba5
test al, 4
jne 0x46db97
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 0xb0
cmp ax, cx
je 0x46db7a
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 0xb0
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4

Function at 0x46f800
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0046f750
mov eax, dword [esp + 8]
test al, 1
je 0x46f852
test al, 4
jne 0x46f847
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 0x14
cmp ax, cx
je 0x46f82a
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 0x14
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4
Function at 0x46f880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7d6130
push 0x60a0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x46f8dd
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [ebp - 0x2c], 0x1000
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push 0x406d1388
call dword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x46f9e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc28
push ebx
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0xc34]
mov ecx, 0xc
cmp dword [esp + 0x20], ecx
push str.kernel32.dll
cmovl ecx, dword [esp + 0x24]
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46fa7a
push esi
push str.GetLogicalProcessorInformation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46fa72
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
call esi
cmp dword [esp + 0xc], 0xc00
ja 0x46fa72
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x38]
push eax
call esi
mov edx, dword [esp + 0xc]
xor ecx, ecx
xor eax, eax
test edx, edx
je 0x46fa70
cmp dword [esp + eax + 0x38], 0
jne 0x46fa69
inc ecx
add eax, 0x18
cmp eax, edx
jb 0x46fa61
mov dword [ebx], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
pop ebx
add esp, 0xc28
ret
Function at 0x46fa90
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x884c14], 0
jne 0x46fb81
push esi
push edi
push dword [esp + 0xc]
call fcn.0046fb90
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 4
push dword [0x884adc]
call edi
push 8
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 4], 0x1ffff
mov dword [esi], vtable.hkNativeFileSystem.0
mov ecx, dword [0x884b6c]
test ecx, ecx
je 0x46fae8
call fcn.0045c240
push dword [0x884adc]
mov dword [0x884b6c], esi
call edi
push 0x28
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x14]
mov ecx, 0x28
push dword [esp + 0x14]
mov word [eax + 4], cx
mov ecx, eax
call fcn.00473f60
mov ecx, dword [0x884c54]
mov esi, eax
test ecx, ecx
je 0x46fb29
call fcn.0045c240
mov dword [0x884c54], esi
call fcn.0046fc80
mov ecx, dword [0x884c10]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [0x884adc]
call edi
push 8
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 8
mov word [eax + 4], cx
mov ecx, eax
call fcn.0045b0c0
mov ecx, dword [0x8840a0]
mov esi, eax
test ecx, ecx
je 0x46fb72
call fcn.0045c240
pop edi
mov dword [0x8840a0], esi
mov byte [0x884c14], 1
pop esi
xor eax, eax
ret

Function at 0x46fbb0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fbc9
push eax
call fcn.00473ef0
add esp, 4
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fbe3
push 0
call fcn.00460550
add esp, 4
xor eax, eax
ret

Function at 0x46feb4
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], vtable.hkBaseObject.0
test al, 1
je 0x46ff03
test al, 4
jne 0x46fef8
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 8
cmp ax, cx
je 0x46fedb
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 8
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4

Function at 0x46ff74
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], vtable.hkBaseObject.0
test al, 1
je 0x46ffc3
test al, 4
jne 0x46ffb8
movzx eax, word [esi + 4]
mov ecx, 0xffff
push edi
mov edi, 8
cmp ax, cx
je 0x46ff9b
mov edi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
ret 4
push 8
push esi
call fcn.0045b780
add esp, 8
mov eax, esi
pop esi
ret 4