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

Disassembly:
sub esp, 4
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp esi, 1
jne 0x10014f11
xor ebx, ebx
mov edi, 0x1002d0c0
mov ebp, dword [esp + 0x20]
push 0x20
push ebp
push edi
call fcn.1000ef30
add esp, 0xc
test eax, eax
je 0x10014ef7
add edi, 0x28
inc ebx
cmp edi, 0x1002d188
jb 0x10014edb
cmp ebx, 5
jne 0x10014f09
mov eax, 0xffffffd7
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
jmp 0x10014f38
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
cmp eax, 1
jl 0x10014f26
cmp eax, 4
jle 0x10014f38
cmp eax, 0xa
je 0x10014f38
mov eax, dword [esp + 0x28]
cmp dword [eax + 4], 1
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
mov dword [ecx], eax
xor edi, edi
mov ebx, dword [esp + 0x10]
add ebx, 0x5a18
mov eax, dword [esp + 0x28]
push 0x20
push eax
push ebx
call fcn.1000ef30
add esp, 0xc
test eax, eax
je 0x10014f61
add ebx, 0x2c
inc edi
cmp edi, 8
jl 0x10014f44
cmp edi, 8
jne 0x10015002
cmp esi, 2
jne 0x10015012
xor ebp, ebp
xor ebx, ebx
mov esi, dword [esp + 0x30]
cmp esi, ebx
jle 0x10014fa0
mov edx, dword [esp + 0x28]
mov ecx, esi
mov eax, dword [edx]
cmp eax, ebx
jg 0x10014f8d
mov eax, ebx
mov ebx, eax
mov eax, dword [edx + 0x10]
cmp eax, ebp
jg 0x10014f98
mov eax, ebp
mov ebp, eax
add edx, 4
dec ecx
jne 0x10014f85
lea eax, [esi - 4]
mov edi, 7
mov ecx, dword [esp + 0x10]
cmp eax, 1
adc edi, 0xffffffff
push 0x20
lea eax, [edi + edi*4]
lea eax, [eax + eax*8]
sub eax, edi
add ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
push eax
shl ebx, 3
mov eax, dword [esp + 0x18]
shl ebp, 3
add eax, 0x5a18
push eax
call fcn.1000eef0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [edi + edi*2]
mov dword [ecx + 0x5a3c], ebx
mov dword [ecx + 0x5a40], ebp
lea edx, [edi + eax*4]
mov dword [ecx + 0x5a38], esi
mov dword [edx*4 + 0x10031a18], esi
mov eax, dword [esp + 0x24]
pop ebp
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffd0
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x10015020
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov eax, dword [0x1002b150]
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
lea ecx, [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
push eax
push ecx
mov eax, dword [esp + 0x28]
push edi
mov ecx, dword [esp + 0x28]
push eax
mov ebp, dword [esp + 0x28]
push ecx
mov ebx, dword [esp + 0x28]
push ebp
push ebx
call fcn.10014eb0
add esp, 0x1c
test eax, eax
jne 0x10015182
mov eax, dword [esp + 0x20]
cmp ebx, 1
mov ecx, dword [eax]
mov dword [esi + 0x7b0], ecx
lea ecx, [esi + 0x7b8]
mov eax, dword [ebp]
mov dword [esi + 0x7ac], eax
jne 0x10015093
lea eax, [eax + eax*4]
mov edx, dword [eax*8 + 0x1002d0e4]
mov dword [ecx], edx
jmp 0x10015099
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov edx, dword [esi + 0x7b0]
mov eax, edx
lea ebp, [edx + edx*4]
lea edx, [ebp + ebp*8]
sub edx, eax
mov eax, dword [edx + esi + 0x5a3c]
mov dword [esi + 0x7bc], eax
mov edx, dword [esi + 0x7b0]
mov ebp, edx
lea eax, [edx + edx*4]
lea edx, [eax + eax*8]
sub edx, ebp
mov eax, dword [edx + esi + 0x5a40]
mov dword [esi + 0x7c0], eax
mov edx, dword [esi + 0x7b0]
mov ebp, edx
lea eax, [edx + edx*4]
lea edx, [eax + eax*8]
sub edx, ebp
mov eax, dword [edx + esi + 0x5a38]
mov dword [esi + 0x7c4], eax
mov eax, dword [ecx]
cmp eax, 0xa
je 0x10015109
mov ecx, dword [esi + 0x7bc]
imul ecx, eax
mov dword [esi + 0x7c8], ecx
jmp 0x1001511b
mov eax, dword [esi + 0x7bc]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x7c8], eax
xor eax, eax
cmp dword [esi + 0x7c4], eax
jle 0x10015147
add edi, 0x10
lea ecx, [esi + 0x7cc]
mov edx, dword [edi - 0x10]
add edi, 4
add ecx, 4
inc eax
imul edx, dword [edi - 4]
mov dword [ecx - 4], edx
cmp dword [esi + 0x7c4], eax
jg 0x1001512e
cmp ebx, 1
jne 0x10015176
mov eax, dword [esi + 0x7ac]
shl eax, 3
add eax, dword [esi + 0x7b0]
mov ecx, dword [eax*4 + 0x1002d188]
mov eax, dword [esp + 0x28]
mov edx, ecx
pop ebp
shl ecx, 0xb
pop edi
sub ecx, edx
pop esi
pop ebx
mov dword [eax], ecx
xor eax, eax
ret
mov eax, dword [esp + 0x28]
mov dword [eax], 0x7ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10015190
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 4
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebp
push eax
call esi
lea ecx, [eax + 0x6f8]
mov ebx, eax
mov eax, dword [esp + 0x18]
push 0x58
push eax
push ecx
call fcn.1000eef0
lea ecx, [esp + 0x1c]
add esp, 0xc
mov edx, dword [ebx + 0x710]
lea eax, [ebx + 0x70c]
push 0
push 0
push ecx
push edx
push eax
mov ecx, dword [ebx + 0x708]
push ecx
lea edx, [ebx + 0x704]
push edx
push 1
call fcn.10015020
add esp, 0x20
test eax, eax
jne 0x100153ba
cmp dword [esp + 0x10], 0
jne 0x10015208
mov eax, 0xffffffc6
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x1002b150]
push eax
call esi
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x124]
test ecx, ecx
jne 0x1001522a
mov dword [ebp + 0x124], 1
jmp 0x10015259
cmp ecx, 0xa
jle 0x1001523b
mov dword [ebp + 0x124], 0xa
jmp 0x10015259
test ecx, ecx
jge 0x10015259
mov ecx, dword [ebp + 0xa0]
sub ecx, 2
cmp ecx, 1
sbb ecx, ecx
and ecx, 5
add ecx, 5
mov dword [ebp + 0x124], ecx
mov dword [eax + 0x68fc], 0
test byte [ebp + 0xe8], 4
jne 0x100152a4
mov dword [ebp + 0x124], 1
cmp dword [ebp + 0xa0], 2
lea edi, [eax + 0x676c]
jne 0x1001528c
mov esi, 0x10031bb8
jmp 0x10015291
mov esi, 0x10032b58
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x6790], 0
jmp 0x1001531f
cmp dword [ebp + 0xa0], 2
jne 0x100152df
add eax, 0x676c
mov edx, dword [ebp + 0x124]
mov edi, eax
lea ecx, [edx + edx*4]
shl ecx, 3
lea esi, [edx + edx*4]
shr ecx, 2
lea edx, [esi + esi*4]
shl edx, 4
lea esi, [edx + 0x10031a28]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x124], 3
jg 0x10015316
jmp 0x1001530f
add eax, 0x676c
mov edx, dword [ebp + 0x124]
mov edi, eax
lea ecx, [edx + edx*4]
shl ecx, 3
lea esi, [edx + edx*4]
shr ecx, 2
lea edx, [esi + esi*4]
shl edx, 4
lea esi, [edx + 0x100329c8]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x124], 1
jg 0x10015316
or dword [ebp + 0xe8], 0x20
push eax
call fcn.1001bb80
add esp, 4
mov dword [ebx + 0x5d84], 0
push 0
push 1
call fcn.1001b070
add esp, 8
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x100153ba
test byte [ebp + 0xe8], 4
jne 0x1001537d
push 1
push 1
call fcn.1001b070
add esp, 8
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x100153ba
push 2
push 1
call fcn.1001b070
add esp, 8
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x100153ba
test byte [ebp + 0xe8], 4
je 0x10015398
push 1
lea eax, [ebx + 0x5c50]
push eax
call fcn.10016dd0
add esp, 8
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x100153ba
mov dword [ebx + 0x7dc], 0
mov eax, dword [ebx + 0x700]
mov dword [ebx + 0x7e0], eax
xor eax, eax
mov dword [ebx + 0x59f8], 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x10015d20
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x94
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xac]
shl eax, 2
push eax
push ecx
push edx
call fcn.1000eef0
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp dword [edx + 0x6f8], 0
jbe 0x10015f5c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xa8]
mov eax, dword [edx + 0x7bc]
cmp ecx, eax
jb 0x10015da7
mov ecx, eax
cmp ecx, eax
jne 0x10015da7
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x7c0], eax
jne 0x10015da7
lea ecx, [esp + 0x24]
jmp 0x10015dc7
mov eax, dword [esp + 0xac]
push eax
push ecx
lea ecx, [esp + 0x2c]
push ecx
call fcn.10005070
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0x5868
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x7b0]
cmp eax, 5
ja case.0x10015dd6.11
jmp dword [eax*4 + 0x10015f68]
mov eax, dword [esp + 0x14]
add eax, 0x7e8
push eax
push ecx
call fcn.10005b50
jmp 0x10015e47
mov eax, dword [esp + 0x14]
add eax, 0x7e8
push eax
push ecx
call fcn.100052c0
jmp 0x10015e47
mov eax, dword [esp + 0x14]
add eax, 0x7e8
push eax
push ecx
call fcn.100055a0
jmp 0x10015e47
mov eax, dword [esp + 0x14]
add eax, 0x7e8
push eax
push ecx
call fcn.10006c50
jmp 0x10015e47
mov eax, dword [esp + 0x14]
add eax, 0x7e8
push eax
push ecx
call fcn.10008e60
jmp 0x10015e47
mov eax, dword [esp + 0x14]
add eax, 0x7e8
push eax
push ecx
call fcn.10008e80
mov edx, dword [esp + 0x1c]
add esp, 8
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
cmp dword [edx + 0x7c4], eax
jbe 0x10015eda
lea esi, [edx + 0x7cc]
mov eax, dword [esi + 0x53e4]
mov edx, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [edx + eax*8 + 0x5b90]
mov dword [esp + 0x18], ecx
cmp dword [esi], edi
jle 0x10015ec3
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0xb4]
shl eax, 8
lea ebx, [eax + edx + 0x7e8]
mov eax, dword [esp + 0x10]
shl eax, 7
add ebp, eax
mov eax, dword [esp + 0x18]
inc edi
push eax
push ebp
push ebx
add ebp, 0x80
add ebx, 0x100
call section..text
inc dword [esp + 0x1c]
add esp, 0xc
cmp dword [esi], edi
jg 0x10015e9f
add esi, 4
mov edx, dword [esp + 0x14]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp dword [edx + 0x7c4], eax
ja 0x10015e66
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x7bc]
cmp dword [esp + 0xa8], eax
jbe 0x10015f1e
sub dword [esp + 0xa8], eax
cmp dword [esp + 0xac], 0
je 0x10015f29
lea esi, [esp + 0x24]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x14]
add esi, 4
mov ecx, dword [edx + 0x7c8]
add dword [esi - 4], ecx
dec eax
jne 0x10015f09
jmp 0x10015f29
mov dword [esp + 0xa8], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xb4]
inc dword [esp + 0x20]
mov eax, dword [edx + 0x758]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xb4], edx
cmp dword [ecx + 0x6f8], eax
ja 0x10015d73
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x94
ret
Function at 0x10015f80
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 4
mov eax, dword [0x1002b150]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [eax + 0x6f8]
mov esi, eax
mov eax, dword [esp + 0xc]
push 0x58
push eax
push ecx
call fcn.1000eef0
lea eax, [esp + 0x10]
add esp, 0xc
mov ecx, dword [esi + 0x748]
mov edx, dword [esi + 0x744]
push ecx
push edx
push eax
mov ecx, dword [esi + 0x710]
push ecx
lea edx, [esi + 0x70c]
push edx
mov eax, dword [esi + 0x708]
push eax
lea ecx, [esi + 0x704]
push ecx
push 2
call fcn.10015020
add esp, 0x20
test eax, eax
jne 0x10016072
cmp dword [esp + 4], 0
jne 0x10015ffa
mov eax, 0xffffffc6
pop esi
add esp, 4
ret
push 0
push 2
call fcn.1001b070
add esp, 8
test eax, eax
jne 0x10016072
test byte [esi + 0x74c], 4
je 0x1001601c
cmp dword [esi + 0x79c], 0
jne 0x1001602c
push 1
push 2
call fcn.1001b070
add esp, 8
test eax, eax
jne 0x10016072
test byte [esi + 0x74c], 4
je 0x1001603e
cmp dword [esi + 0x7a0], 0
jle 0x1001604e
push 2
push 2
call fcn.1001b070
add esp, 8
test eax, eax
jne 0x10016072
mov eax, dword [esi + 0x700]
mov dword [esi + 0x7e0], eax
xor eax, eax
mov dword [esi + 0x7dc], 0
mov ecx, dword [esi + 0x74c]
mov dword [esi + 0x750], ecx
pop esi
add esp, 4
ret
Function at 0x10016d40
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x14], 3
lea ebx, [eax + 0x5b78]
mov dword [esp + 0x10], 0
cmp dword [ebx], 0
jbe 0x10016da8
lea edi, [ebx + 0x18]
lea esi, [ebx + 8]
mov eax, dword [esi]
mov ebp, 2
push eax
call fcn.1000ef20
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x10016d93
push eax
call fcn.1000ef20
add esp, 4
add edi, 4
dec ebp
jne 0x10016d84
add esi, 4
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp dword [ebx], eax
ja 0x10016d74
mov dword [ebx], 0
add ebx, 0x48
dec dword [esp + 0x14]
jne 0x10016d61
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x10016dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov eax, dword [0x1002b150]
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x754], 0
mov esi, eax
xor ecx, ecx
cmp dword [esi + 0x7c4], ecx
jle 0x10016e10
lea eax, [esi + 0x7cc]
mov edx, dword [eax]
add eax, 4
inc ecx
add dword [esi + 0x754], edx
cmp dword [esi + 0x7c4], ecx
jg 0x10016dfc
mov ecx, dword [esi + 0x754]
mov ebp, dword [esp + 0x14]
shl ecx, 6
sub edx, edx
mov dword [esi + 0x758], ecx
mov eax, dword [ebp + 4]
mov edi, dword [esi + 0x7bc]
mov ebx, dword [esi + 0x7c0]
lea eax, [eax + ebx - 1]
div ebx
mov ebx, eax
mov edx, dword [ebp]
lea eax, [edx + edi - 1]
sub edx, edx
div edi
imul ebx, eax
mov eax, ebx
imul eax, ecx
add eax, eax
push eax
call sub.LTKRN70N.dll_Ordinal_203
mov edi, eax
mov dword [esi + 0x75c], eax
test edi, edi
jne 0x10016e6d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
mov edx, dword [esp + 0x18]
cmp edx, 1
je 0x10016e96
mov ebp, dword [esi + 0x758]
xor eax, eax
imul ebp, ebx
add ebp, ebp
mov ecx, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
cmp edx, 1
jne 0x10016eda
mov eax, dword [esi + 0x6900]
test eax, eax
je 0x10016ea6
push eax
call sub.LTKRN70N.dll_Ordinal_208
push 0x1f40
call sub.LTKRN70N.dll_Ordinal_203
mov dword [esi + 0x6900], eax
test eax, eax
jne 0x10016eda
mov eax, dword [esi + 0x75c]
push eax
call sub.LTKRN70N.dll_Ordinal_208
mov eax, 0xffffffff
pop ebp
mov dword [esi + 0x75c], 0
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10019ba0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov ebp, dword [esp + 0x20]
cmp dword [ebp], 0
jle 0x10019cc1
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 2
movsx edx, word [esi]
push eax
push ecx
lea eax, [edx + edx*2]
mov ecx, dword [esp + 0x30]
shl eax, 2
lea edx, [esp + 0x18]
add eax, dword [ecx]
push eax
push edx
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x10019ccb
cmp dword [esp + 0x24], 0x4949
jne 0x10019c1c
mov ebx, dword [esp + 0x10]
jmp 0x10019c43
xor ebx, ebx
xor eax, eax
mov bl, byte [esp + 0x10]
mov al, byte [esp + 0x12]
shl ebx, 0x10
or ebx, eax
xor eax, eax
shl ebx, 8
mov al, byte [esp + 0x11]
shl eax, 0x10
or ebx, eax
xor eax, eax
mov al, byte [esp + 0x13]
or ebx, eax
test ebx, ebx
je 0x10019cd9
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push eax
push ecx
dec dword [ebp]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 2
push ebx
push edx
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x10019d23
cmp dword [esp + 0x24], 0x4949
jne 0x10019c98
mov ax, word [esp + 0x10]
mov word [esi], ax
jmp 0x10019cae
movzx cx, byte [esp + 0x10]
shl cx, 8
movzx ax, byte [esp + 0x11]
or cx, ax
mov word [esi], cx
add ebx, 2
mov ecx, dword [esp + 0x28]
mov dword [ecx], ebx
cmp dword [ebp], 0
jg 0x10019bc7
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 3
push eax
push ecx
movsx eax, word [esi]
mov ecx, 0xfffffffc
lea edx, [esp + 0x18]
lea eax, [eax + eax*2]
shl eax, 2
sub ecx, eax
push ecx
push edx
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
je 0x10019cc1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1001a190
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 8]
mov dword [eax + 0x588], ecx
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x1001a1bf
cmp ecx, 1
jl 0x1001a1b8
cmp ecx, 5
jle 0x1001a1cb
mov eax, 0xffffffda
pop esi
ret
mov dword [eax + 0x584], 1
jmp 0x1001a1d5
mov dword [eax + 0x584], 3
lea esi, [eax + 0x676c]
push esi
call fcn.1001a9e0
add esp, 4
call fcn.1001a7e0
push esi
call fcn.1001ae70
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x1001a7e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 4
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
mov dword [esp + 0xc], 0
mov byte [eax + 0x51a], 8
mov esi, eax
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x588]
mov dl, byte [eax + 5]
add eax, 4
mov byte [ecx + esi + 0x51a], dl
inc dword [esp + 0xc]
mov bl, byte [eax]
mov ecx, dword [esp + 0xc]
mov byte [ecx + esi + 0x51a], bl
inc dword [esp + 0xc]
mov eax, dword [esi + 0x588]
mov ecx, dword [esp + 0xc]
mov dl, byte [eax + 1]
mov byte [ecx + esi + 0x51a], dl
inc dword [esp + 0xc]
mov bl, byte [eax]
mov ecx, dword [esp + 0xc]
mov byte [ecx + esi + 0x51a], bl
inc dword [esp + 0xc]
mov dl, byte [esi + 0x584]
mov ecx, dword [esp + 0xc]
mov byte [ecx + esi + 0x51a], dl
inc dword [esp + 0xc]
mov ecx, dword [esi + 0x584]
lea eax, [ecx + ecx*2]
add eax, dword [esp + 0xc]
cmp eax, 0x64
jbe 0x1001a891
mov eax, 0xfffffff7
pop edi
pop esi
pop ebx
add esp, 4
ret
xor edi, edi
test ecx, ecx
je 0x1001a8f7
lea eax, [esi + 0x5ac]
xor ebx, ebx
lea ecx, [edi + 1]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 0x51a], cl
inc dword [esp + 0xc]
mov edx, dword [esi + 0x588]
add edx, ebx
add ebx, 4
add eax, 4
inc edi
mov ecx, dword [edx + 0x1c]
mov edx, dword [edx + 0x2c]
shl cl, 4
and dl, 0xf
or cl, dl
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 0x51a], cl
inc dword [esp + 0xc]
mov cl, byte [eax - 4]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 0x51a], cl
inc dword [esp + 0xc]
cmp dword [esi + 0x584], edi
ja 0x1001a89f
mov eax, dword [esi + 0x5d38]
test al, 4
je 0x1001a953
test al, 0x20
jne 0x1001a953
add dword [esp + 0xc], 2
mov byte [esi + 0x5c1], 0xc2
mov eax, dword [esp + 0xc]
lea edi, [esi + 0x5d84]
push 2
mov byte [esi + 0x5c2], ah
mov al, byte [esp + 0x10]
lea ecx, [esi + 0x5c0]
mov byte [esi + 0x5c3], al
lea eax, [esi + 0x5bc]
push eax
push 0xffffffffffffffff
push ecx
mov dword [eax], 4
call fcn.1000e380
add esp, 0x10
mov dword [edi], eax
test eax, eax
jne 0x1001a9cd
jmp 0x1001a99f
add dword [esp + 0xc], 2
mov byte [esi + 0x5c1], 0xc0
mov eax, dword [esp + 0xc]
lea edi, [esi + 0x5d84]
push 2
mov byte [esi + 0x5c2], ah
mov al, byte [esp + 0x10]
lea ecx, [esi + 0x5c0]
mov byte [esi + 0x5c3], al
lea eax, [esi + 0x5bc]
push eax
push 0xffffffffffffffff
push ecx
mov dword [eax], 4
call fcn.1000e380
add esp, 0x10
mov dword [edi], eax
test eax, eax
jne 0x1001a9cd
lea eax, [esp + 0xc]
push 2
push eax
add esi, 0x51a
sub dword [esp + 0x14], 2
push 0xffffffffffffffff
push esi
call fcn.1000e380
add esp, 0x10
mov ecx, eax
mov dword [edi], eax
cmp ecx, 1
mov eax, 0
adc eax, 0xffffffff
and eax, ecx
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x1001ae70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 4
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov al, byte [ebx]
mov byte [esi + 0x51a], al
mov ecx, dword [ebx]
inc dword [esp + 0x10]
lea eax, [ecx*2]
add eax, dword [esp + 0x10]
add eax, 3
cmp eax, 0x64
jbe 0x1001aebf
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
test ecx, ecx
je 0x1001af12
lea edi, [esi + 0x59c]
lea ecx, [ebx + 4]
mov edx, dword [ecx]
mov ebp, dword [esp + 0x10]
inc dl
add edi, 4
add ecx, 4
inc eax
mov byte [ebp + esi + 0x51a], dl
inc dword [esp + 0x10]
mov edx, dword [edi - 4]
mov ebp, dword [esp + 0x10]
shl dl, 4
mov byte [ebp + esi + 0x51a], dl
mov ebp, dword [esp + 0x10]
mov edx, dword [edi - 0x14]
and dl, 0xf
or byte [ebp + esi + 0x51a], dl
inc dword [esp + 0x10]
cmp dword [ebx], eax
ja 0x1001aece
mov cl, byte [ebx + 0x14]
mov eax, dword [esp + 0x10]
mov byte [eax + esi + 0x51a], cl
mov dl, byte [ebx + 0x18]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov byte [eax + esi + 0x51a], dl
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
and al, 0xf
shl cl, 4
inc dword [esp + 0x10]
or cl, al
mov edx, dword [esp + 0x10]
mov byte [edx + esi + 0x51a], cl
inc dword [esp + 0x10]
lea eax, [esi + 0x5bc]
add dword [esp + 0x10], 2
mov byte [esi + 0x5c1], 0xda
mov edx, dword [esp + 0x10]
push 2
push eax
lea ecx, [esi + 0x5c0]
push 0xffffffffffffffff
mov byte [esi + 0x5c2], dh
mov dl, byte [esp + 0x1c]
push ecx
mov byte [esi + 0x5c3], dl
mov dword [eax], 4
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x1001afce
lea eax, [esp + 0x10]
push 2
push eax
lea ecx, [esi + 0x51a]
sub dword [esp + 0x18], 2
push 0xffffffffffffffff
push ecx
call fcn.1000e380
add esp, 0x10
mov ecx, eax
mov dword [esi + 0x5d84], eax
cmp ecx, 1
mov eax, 0
adc eax, 0xffffffff
and eax, ecx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x1001afe0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 4
mov eax, dword [0x1002b150]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [eax + 0x59f4]
cmp eax, 8
jge 0x1001b015
push eax
push 0xff
call fcn.10010820
add esp, 8
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x1001b065
mov dword [esp + 4], 0
lea ecx, [esp + 4]
push 2
mov byte [esi + 0x51a], 0xff
push ecx
lea edx, [esi + 0x51a]
inc dword [esp + 0xc]
push 0xffffffffffffffff
mov eax, dword [esp + 0x10]
push edx
mov byte [eax + esi + 0x51a], 0xd9
inc dword [esp + 0x14]
call fcn.1000e380
add esp, 0x10
mov ecx, eax
mov dword [esi + 0x5d84], eax
cmp ecx, 1
mov eax, 0
adc eax, 0xffffffff
and eax, ecx
pop esi
add esp, 4
ret