joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530cd0
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov edx, dword [ebp + 0x10]
mov ecx, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [edx + 0x18]
lea edi, [esp + 0x20]
add esi, 0x10
mov dword [esp + 0x14], edx
rep movsd dword es:[edi], dword [esi]
cmp dword [edx + 0x74], 0
jle 0x530e85
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x530d39
mov dword [ecx], str.LtIntegrate
mov dword [ecx + 0xc], str.StConstraintCallbacks
rdtsc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x14]
xor edi, edi
cmp dword [ecx + 0x74], edi
jle 0x530e21
mov eax, dword [ecx + 0x70]
mov esi, dword [eax + edi*8]
mov eax, dword [esi]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xa4]
add eax, dword [ecx + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xa4]
add eax, dword [ecx + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x5c], eax
test byte [esi + 0x12], 9
je 0x530dfe
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
cmp word [eax], 0x1a
jb 0x530dbd
mov eax, dword [eax + 0x14]
cmp word [eax], 0x1a
jae 0x530db4
push 2
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0053c040
mov eax, dword [esi]
add esp, 0x10
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], eax
je 0x530dfa
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x70]
mov ecx, dword [eax + edi*8 + 4]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov ax, word [eax + 0x10]
mov word [ecx + 0x14], ax
mov ecx, edx
jmp 0x530dfe
mov ecx, dword [esp + 0x14]
test byte [esi + 0x12], 4
je 0x530e17
mov eax, dword [esi]
lea edx, [esp + 0x20]
push edx
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, dword [ecx + 0x74]
jl 0x530d48
push dword [0x884adc]
mov esi, dword [ecx + 0x74]
mov edi, dword [ecx + 0x70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x2c]
lea eax, [esi*8]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 8]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x70], 0
mov dword [edx + 0x74], 0
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x530e85
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push eax
push eax
call fcn.0064f0c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x530f60
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x530fa4
mov dword [ecx], str.LtIntegrate
mov dword [ecx + 0xc], str.StBuildJacobians
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov esi, dword [ebp + 8]
lea edi, [esp + 0x20]
mov edx, dword [ebp + 0x10]
add esi, 0x10
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
cmp byte [edx + 0x28], 0
mov ecx, dword [edx + 0x20]
mov edi, dword [ecx + 0x10]
lea eax, [ecx + 0x18]
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], edi
je 0x530fe6
cmp dword [ecx], 0
mov byte [esp + 0xf], 1
jne 0x530feb
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], eax
test esi, esi
jle 0x5310a8
mov edi, dword [esp + 0x14]
nop dword [eax + eax]
mov ecx, edi
add edi, 0x1c
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x5c], eax
movzx eax, word [ecx + 0x18]
shl eax, 7
add eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
movzx eax, word [ecx + 0x1a]
shl eax, 7
add eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
movzx eax, word [ecx + 0x18]
mov dword [esp + 0x8c], eax
movzx eax, word [ecx + 0x1a]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x94], eax
mov eax, dword [ecx]
movzx edx, word [ecx + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
cmp word [eax], 0x19
jne 0x53108c
mov byte [esp + 0x18], 1
push dword [esp + 0x18]
push ecx
push eax
call fcn.006ef300
jmp 0x531094
push ecx
push edx
push eax
call fcn.006ea440
add esp, 0x10
sub esi, 1
jne 0x531000
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0xf], 0
jne 0x5310b7
mov dword [eax], 0
jmp 0x5310d3
sub edi, eax
test edi, edi
jle 0x5310d3
movss xmm0, dword [eax]
addss xmm0, dword [0x77f9a4]
mov dword [eax + 4], edi
movss dword [eax], xmm0
mov byte [eax], 2
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x531102
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push eax
push eax
call fcn.0064f0c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x531120
Capabilities:
Execute anti-debugging instructions
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
push edi
push dword [0x884c50]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x531166
mov dword [ecx], str.LtIntegrate
mov dword [ecx + 0xc], str.StSolve
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x30]
add ecx, eax
mov dword [esp + 0x14], ecx
add edx, eax
mov ecx, dword [esi + 0x2c]
add ecx, eax
mov dword [esp + 0x2c], 0
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], ecx
lea ecx, [eax*4 + 0xf]
mov eax, edx
and ecx, 0xfffffff0
shr ecx, 4
test ecx, ecx
jle 0x5311cc
movaps xmm0, xmmword [esp + 0x20]
nop
lea eax, [eax + 0x10]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x5311c0
mov eax, dword [ebp + 8]
push edx
push dword [esp + 0x18]
mov eax, dword [eax]
push dword [esp + 0x20]
add eax, 0x1f0
push eax
call fcn.006ddac0
mov ecx, dword [esi + 0x18]
mov eax, 0x40
mov word [esp + 0x44], ax
add esp, 0x10
or eax, 0xffffffff
mov dword [esp + 0x1c], ecx
mov word [esp + 0x36], ax
movzx eax, word [esi + 0x10]
mov word [esp + 0x40], ax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x78]
mov dword [esp + 0x50], eax
xor eax, eax
mov word [esp + 0x66], ax
movzx eax, word [ecx + 0x54]
mov word [esp + 0x64], ax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x30]
push 0
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [esp + 0x38], 0xb
mov byte [esp + 0x3a], 2
mov byte [esp + 0x74], 0
call fcn.0064eea0
push dword [0x884c50]
call edi
mov dword [esp + 0x14], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x53128b
mov dword [edi], str.StSolverExport
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x30]
push dword [eax + 0x3c]
push dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x1f0
push eax
call fcn.006f24a0
add esp, 0x10
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x5312da
mov dword [edi], 0x77f784
rdtsc
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
lea eax, [edi + 0xc]
mov dword [edi + 4], edx
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push 0
push esi
push esi
call fcn.0064f0c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x531390
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
push dword [0x884c50]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x5313d3
mov dword [ecx], str.LtIntegrate
mov dword [ecx + 0xc], str.StSolve
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp dword [esi + 0x20], 0
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x308]
mov dword [esi + 0x24], eax
jne 0x53144c
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0xf
and eax, 0xfffffff0
mov dword [esp + 0x20], 0
shr eax, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x53144c
movaps xmm0, xmmword [esp + 0x20]
nop dword [eax + eax]
lea ecx, [ecx + 0x10]
movups xmmword [ecx - 0x10], xmm0
sub eax, 1
jne 0x531440
push dword [esp + 0x14]
mov eax, dword [edx]
push dword [esp + 0x1c]
add eax, 0x1f0
push dword [esp + 0x24]
push dword [esi + 0x28]
push dword [esi + 0x20]
push eax
call fcn.006e2100
add esp, 0x18
push dword [0x884c50]
call edi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x53149f
mov dword [edi], 0x77f784
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push 0
push esi
push esi
call fcn.0064f0c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x532280
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x5322bb
mov dword [ecx], str.LtNarrowPhase
mov dword [ecx + 0xc], str.StPostCollide
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ecx]
push ebx
call fcn.0050d830
mov eax, dword [ebp + 0x20]
xor esi, esi
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
jle 0x532398
add eax, 0xfffffffc
mov dword [esp + 0x10], eax
cmp esi, eax
jge 0x5322fc
lea eax, [esi + 4]
movsx ecx, ax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + ecx*4 + 0x14]
prefetchnta byte [eax]
mov eax, dword [ebp + 0x20]
movsx ecx, si
mov edi, dword [eax + ecx*4 + 0x14]
mov ecx, dword [edi]
cmp dword [ebx + 8], ecx
cmovg ecx, dword [ebx + 8]
mov dword [ebx + 8], ecx
mov eax, dword [edi + 4]
add dword [ebx + 0xc], eax
mov eax, dword [edi + 8]
add dword [ebx + 0x10], eax
mov eax, dword [edi + 0xc]
add dword [ebx + 0x14], eax
cmp dword [edi + 0x14], 0
je 0x532389
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, dword [edx + 0xc]
jae 0x53236f
mov dword [eax], str.MinumCmds
mov ecx, dword [edi + 0x14]
shr ecx, 4
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x718860]
cvtpd2ps xmm0, xmm0
movss dword [eax + 4], xmm0
add eax, 8
mov dword [edx + 4], eax
push dword [edi + 0x14]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
add eax, ecx
push eax
mov eax, dword [esp + 0x20]
push dword [eax]
call fcn.0053c680
add esp, 0xc
mov eax, dword [esp + 0x10]
inc esi
cmp esi, dword [esp + 0x20]
jl 0x5322e8
mov esi, dword [ebp + 0x20]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x5323be
push dword [0x884adc]
mov esi, dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
shl edi, 4
push edi
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp + 0x20]
call fcn.0052de20
mov eax, dword [esp + 0x18]
push ebx
mov ecx, dword [eax]
call fcn.0050d870
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x532401
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x532418
push 0
push ebp
push ebp
call fcn.0064f0c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret
Function at 0x532430
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
add ebp, 0x20
push esi
movzx esi, word [ebp + 4]
sub esi, 1
js 0x5324c4
push ebx
push edi
mov eax, dword [ebp]
cmp dword [eax + esi*4], 0
je 0x5324bd
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x53247f
mov dword [edi], str.TtconAddCb
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp]
push dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x5324bd
mov dword [edi], 0x77f5ec
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
sub esi, 1
jns 0x532447
pop edi
pop ebx
push ebp
call fcn.005327a0
add esp, 4
pop esi
pop ebp
add esp, 8
ret

Function at 0x5324e0
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
add ebp, 0x20
push esi
movzx esi, word [ebp + 4]
sub esi, 1
js 0x532574
push ebx
push edi
mov eax, dword [ebp]
cmp dword [eax + esi*4], 0
je 0x53256d
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x53252f
mov dword [edi], str.TtconRemCb
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp]
push dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x53256d
mov dword [edi], 0x77f5ec
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
sub esi, 1
jns 0x5324f7
pop edi
pop ebx
push ebp
call fcn.005327a0
add esp, 4
pop esi
pop ebp
add esp, 8
ret
Function at 0x532590
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
add ebp, 0x20
push esi
movzx esi, word [ebp + 4]
sub esi, 1
js 0x532624
push ebx
push edi
mov eax, dword [ebp]
cmp dword [eax + esi*4], 0
je 0x53261d
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x5325df
mov dword [edi], str.TtconDeletedCb
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp]
push dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x53261d
mov dword [edi], 0x77f5ec
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
sub esi, 1
jns 0x5325a7
pop edi
pop ebx
push ebp
call fcn.005327a0
add esp, 4
pop esi
pop ebp
add esp, 8
ret

Function at 0x532640
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
mov ebp, dword [eax + 4]
add ebp, 0x20
push esi
movzx esi, word [ebp + 4]
sub esi, 1
js 0x5326dd
push ebx
push edi
nop
mov eax, dword [ebp]
cmp dword [eax + esi*4], 0
je 0x5326d6
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x532698
mov dword [edi], str.TtconBrokenCb
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp]
push dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x14]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x5326d6
mov dword [edi], 0x77f5ec
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
sub esi, 1
jns 0x532660
pop edi
pop ebx
push ebp
call fcn.005327a0
add esp, 4
pop esi
pop ebp
add esp, 8
ret
Function at 0x5326f0
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
mov ebp, dword [eax + 4]
add ebp, 0x20
push esi
movzx esi, word [ebp + 4]
sub esi, 1
js 0x53278d
push ebx
push edi
nop
mov eax, dword [ebp]
cmp dword [eax + esi*4], 0
je 0x532786
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x532748
mov dword [edi], str.TtconRepairedCb
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp]
push dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x18]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x532786
mov dword [edi], 0x77f5ec
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
sub esi, 1
jns 0x532710
pop edi
pop ebx
push ebp
call fcn.005327a0
add esp, 4
pop esi
pop ebp
add esp, 8
ret
Function at 0x532c40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x30]
mov al, byte [ecx + 0x25]
and al, 0xfd
or al, 1
mov byte [ecx + 0x25], al
cmp dword [ebp + 0x30], 0
movzx edx, word [esi + 0x14]
movzx edi, word [esi + 0x16]
movzx ebx, word [esi + 0x18]
je 0x532c85
mov eax, dword [ebp + 8]
sub dword [eax + 0xc], edx
sub dword [eax + 0x10], edi
sub dword [eax + 0x14], ebx
mov eax, dword [ebp + 0x30]
sub word [eax + 0x16], di
sub word [eax + 0x18], bx
sub word [eax + 0x14], dx
dec dword [ecx + 0x1c]
mov ecx, 2
mov dword [ebp + 8], 0
movzx eax, byte [esi + 0x1a]
movzx ebx, word [esi + 0x22]
sub ecx, eax
mov edi, dword [esi + ecx*4]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0xb4]
mov edx, dword [ecx + eax*4 - 4]
mov eax, ebx
mov dword [ecx + eax*4], edx
dec dword [edi + 0xb8]
mov eax, dword [edx + 0x30]
mov word [eax + 0x22], bx
xor ebx, ebx
movzx eax, byte [esi + 0x1a]
mov edx, dword [esi + 0x1c]
mov edi, dword [esi + eax*4 + 4]
test edx, edx
je 0x532d09
movzx eax, word [esi + 0x20]
mov ebx, eax
neg ebx
lea ecx, [eax + edx]
mov eax, dword [edi + 0xc4]
sub eax, ecx
add eax, dword [edi + 0xc0]
push eax
push ecx
push edx
call fcn.0045d820
movzx eax, word [esi + 0x20]
add esp, 0xc
sub dword [edi + 0xc4], eax
mov dword [esi + 0x1c], 0
mov dword [ebp + 0x30], 0
movzx eax, word [edi + 0xb0]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0xac]
shl ecx, 4
add eax, 0xffffffd0
add ecx, eax
cmp esi, ecx
jae 0x532d63
nop dword [eax]
movups xmm0, xmmword [esi + 0x30]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x50]
movups xmmword [esi + 0x20], xmm0
mov eax, dword [esi]
mov dword [eax + 0x30], esi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x532d57
add eax, ebx
jmp 0x532d59
xor eax, eax
mov dword [esi + 0x1c], eax
add esi, 0x30
cmp esi, ecx
jb 0x532d30
mov eax, 0xffff
mov ecx, ebp
add word [edi + 0xb0], ax
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0045c160