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

Disassembly:
mov eax, dword [0x653c7e24]
push esi
test eax, eax
push edi
je 0x65368993
mov eax, dword [0x653c7e64]
test eax, eax
je 0x6536899d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call eax
pop edi
pop esi
ret 8
call fcn.65359048
jmp 0x653590a4
mov eax, dword [section..data]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x653689c5
call fcn.65353daf
test eax, eax
jl 0x653689f2
mov ecx, dword [section..data]
push ecx
call edi
mov esi, eax
xor eax, eax
test eax, eax
jl 0x653689f2
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x653689df
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esi + 8], eax
je 0x653689f0
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x653590c2
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x653c7e24]
push esi
test eax, eax
push edi
jne 0x653590d2
call fcn.65359048
mov eax, dword [0x653c7e68]
test eax, eax
je 0x653689f7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call eax
pop edi
pop esi
ret 8
mov eax, dword [section..data]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x65368a1f
call fcn.65353daf
test eax, eax
jl 0x65368a45
mov ecx, dword [section..data]
push ecx
call edi
mov esi, eax
xor eax, eax
test eax, eax
jl 0x65368a45
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
test eax, eax
mov dword [edx], eax
jne 0x65368a3c
mov eax, 1
pop edi
pop esi
ret 8
mov dword [esi + 8], 0
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x65359982
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 0xc]
push ebx
push esi
push edi
test edx, edx
je 0x6536c9fc
mov eax, dword [esp + 0x14]
cmp eax, 0x409
jne 0x6536ca04
mov eax, 1
mov ebx, dword [esp + 0x10]
xor ecx, ecx
cmp ebx, 2
sete cl
and eax, 0xffff
and ecx, 0xffff
lea esi, [ecx + eax*2]
shl eax, 4
mov esi, dword [esi*4 + 0x65365a78]
or eax, ecx
mov cl, byte [edx]
shl eax, 0x10
mov edi, eax
mov eax, 0xdeadbee
test cl, cl
je 0x653599f8
and ecx, 0xff
xor ebx, ebx
mov bl, byte [esi + ecx]
mov ecx, ebx
lea ebx, [eax + eax*8]
lea eax, [eax + ebx*4]
add eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x653599db
xor edx, edx
mov ecx, 0x1003f
div ecx
mov eax, edx
and eax, 0xffff
or eax, edi
pop edi
pop esi
pop ebx
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc
cmp eax, 0x408
ja 0x6536ca56
je 0x6536ca4c
cmp eax, 0x405
je case.0x6536ca6a.1038
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
je 0x6536ca37
cmp ecx, 0x10
jle 0x6536cad3
cmp ecx, 0x12
jg 0x6536cad3
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.653a65d9
add esp, 0xc
pop edi
pop esi
pop ebx
ret 0xc
mov eax, 8
jmp 0x653599a5
cmp eax, 0x419
ja 0x6536ca8f
je 0x6536ca85
lea ecx, [eax - 0x40d]
cmp ecx, 8
ja case.0x6536ca6a.1040
jmp dword [ecx*4 + 0x6536cafc]
mov eax, 9
jmp 0x653599a5
mov eax, 0xe
jmp 0x653599a5
mov eax, 3
jmp 0x653599a5
cmp eax, 0x41f
ja 0x6536cab7
je 0x6536caad
cmp eax, 0x41b
jne case.0x6536ca6a.1040
mov eax, 2
jmp 0x653599a5
mov eax, 0xa
jmp 0x653599a5
cmp eax, 0x814
je 0x6536caf2
cmp eax, 0x1809
jne case.0x6536ca6a.1040
mov eax, 0xc
jmp 0x653599a5
cmp al, 1
je 0x6536cae8
cmp eax, 0x429
je 0x6536cae8
mov eax, 1
jmp 0x653599a5
mov eax, 0xd
jmp 0x653599a5
mov eax, 0xb
jmp 0x653599a5
Function at 0x6535b387
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x653c3008], 0
jne 0x6535b3d5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6535b3e1
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x6535b3e5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x6535b3e1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret 8
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call fcn.6535b387
test eax, eax
jne 0x6535b3c8
jmp 0x6535b3ad
Function at 0x6535e118
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push edi
push dword [section..data]
mov esi, ecx
mov dword [esi + 0xc], 0x100
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
shl edx, 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
mov dword [esi + 0x18], edi
je 0x6536f4f1
mov ecx, dword [esi + 0xc]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [section..data]
call ebx
mov eax, dword [eax]
push 0x2000
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
mov dword [esi + 0x1c], edi
je 0x6536f4f1
mov ecx, 0x800
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
ret
mov eax, 0x8007000e
jmp 0x6535e18f

Function at 0x65362c82
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
lea eax, [esi + 4]
push eax
call fcn.6535eb8f
xor edi, edi
cmp eax, edi
jl 0x65362d55
mov ecx, dword [ebp + 8]
push esi
call fcn.6535eb9c
cmp eax, edi
jl 0x65362d55
cmp dword [esi], edi
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jbe 0x65362d1d
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, edi
mov dword [esi + 8], eax
je 0x6536f4fb
mov ecx, dword [esi]
mov dword [ebp - 8], eax
cmp ecx, edi
mov dword [ebp - 4], ecx
jle 0x65362d1d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, 0xffff
cmp dword [ebp - 4], eax
jg 0x65362cfe
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movzx edi, ax
push edi
push dword [ebp - 8]
call dword [ebp - 0xc]
test eax, eax
jl 0x65362d55
sub dword [ebp - 4], edi
add dword [ebp - 8], edi
cmp dword [ebp - 4], 0
jg 0x65362cf1
xor edi, edi
cmp dword [esi + 0x1c], edi
je 0x65362d38
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [esi + 0x1c], edi
cmp dword [esi + 0x18], edi
je 0x65362d53
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [esi + 0x18], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, 0x8007000e
jmp 0x65362d55
Function at 0x65362d5c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [section..data]
mov ebx, ecx
call edi
movzx edx, word [ebx + 4]
mov eax, dword [eax]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 4], eax
je 0x6536f505
push esi
push dword [section..data]
call edi
movzx edx, word [ebx + 4]
mov eax, dword [eax]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
je 0x6536f50f
push dword [ebp - 4]
lea eax, [ebp - 0x10]
and byte [esi], 0
mov ecx, ebx
push eax
push dword [ebp + 8]
push dword [ebx + 8]
call fcn.65362ecf
test eax, eax
mov dword [ebp - 8], eax
jge 0x65362e5a
push dword [section..data]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov eax, dword [eax]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [section..data]
call edi
mov eax, dword [eax]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret 8
mov edi, dword [ebp - 4]
mov ecx, edx
xor eax, eax
push dword [ebp - 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 8]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x10]
push eax
and ecx, 3
push dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 8]
mov ecx, ebx
call fcn.65362ecf
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], eax
test eax, eax
jl 0x65362dd5
mov edi, dword [ebp - 4]
or edx, 0xffffffff
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x65362e86
mov edi, esi
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x65362e09
mov edi, esi
mov ecx, edx
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x653c80fe
movsw word es:[edi], word [esi]
jmp 0x65362e09
movzx ecx, word [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push ecx
push esi
push eax
push eax
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x6536f51b
push eax
push 0
call sym.OLEAUT32.dll_SysAllocStringLen
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ecx], eax
je 0x6536f51b
push dword [ebp + 8]
push eax
movzx eax, word [ebx + 4]
push eax
push esi
push 0
push 0
call edi
jmp 0x65362dd5
mov eax, 0x8007000e
jmp 0x65362e03
mov dword [ebp - 8], 0x8007000e
jmp 0x65362dec
mov dword [ebp - 8], 0x8007000e
jmp 0x65362dd5
Function at 0x653641bd
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax]
xor edi, edi
cmp dword [esi + 0x1c], edi
je 0x6536420e
cmp dword [esi + 0x24], edi
jne 0x65364205
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 4]
mov edi, dword [eax + ecx]
test edi, edi
jne 0x6536f475
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x2000
jb 0x653641e5
xor edi, edi
push dword [esi + 0x1c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x14]
cmp dword [esi + 0x18], edi
je 0x65364228
cmp dword [esi + 0x10], edi
mov dword [ebp - 4], edi
ja 0x6536f4a5
push dword [esi + 0x18]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x14]
mov eax, dword [esi + 8]
cmp eax, edi
jne 0x6536423d
cmp dword [esi + 0x10], edi
jne 0x6536f4d9
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebx]
push eax
push ebx
call dword [ecx + 0x14]
jmp 0x6536422f
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
push dword [edi + 4]
mov dword [ebp - 0xc], eax
call sym.OLEAUT32.dll_SysFreeString
push dword [edi + 0xc]
call sym.OLEAUT32.dll_SysFreeString
push edi
push ebx
call dword [ebp - 8]
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x653641f6
jmp 0x6536f47d
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 4]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x6536f4c7
mov eax, dword [edi + 4]
test eax, eax
je 0x6536f4c0
mov ecx, dword [ebx]
push eax
push ebx
call dword [ecx + 0x14]
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x14]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x6536f4a5
xor edi, edi
jmp 0x6536421f
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x65364238
push eax
mov ecx, esi
call fcn.653b064e
jmp 0x65364238
Function at 0x6537c05d
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x34
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0x27
push eax
push ecx
call fcn.653585a9
mov ecx, dword [esp + 0x48]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x6537c17f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push 0x653767f8
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x6537c0e2
mov edx, dword [esp + 0x54]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x50]
push edx
push 1
push eax
push 0x6537681c
push ecx
call ebx
mov edx, dword [esp + 0x4c]
mov esi, eax
push edx
call ebp
test esi, esi
jne 0x6537c16a
mov edx, dword [esp + 0x50]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push 0x6537681c
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x6537c16a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ecx
push 0x65376810
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x6537c16a
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x14]
push 0xa
push eax
push ecx
call fcn.653b61f5
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x5c]
push 0x6537681c
push eax
call ebx
mov ecx, dword [esp + 0x4c]
mov esi, eax
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call ebp
test esi, esi
jne 0x6537c17f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
and esi, 0xffff
pop edi
or esi, 0x80070000
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x6537d18c
Capabilities:
Set registry value

Disassembly:
sub esp, 0x44
mov eax, 0x65364828
push ebx
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
push esi
lea eax, [esp + 0x10]
push edi
push eax
push str.Interface
push 0x80000000
mov dword [esp + 0x30], str.00020412_0000_0000_C000_000000000046
mov dword [esp + 0x34], str.ITypeInfo2
mov dword [esp + 0x38], 0x653c8150
mov dword [esp + 0x3c], 0x653c815c
mov dword [esp + 0x40], 0x653c8160
mov dword [esp + 0x48], str.00020411_0000_0000_C000_000000000046
mov dword [esp + 0x4c], str.ITypeLib2
mov dword [esp + 0x50], str.NumMethods
mov dword [esp + 0x54], 0x653c81b4
mov dword [esp + 0x58], str.ProxyStubClsid32
lea esi, [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, eax
test edi, edi
jne 0x6537d313
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, eax
test edi, edi
jne 0x6537d308
mov edx, dword [esi + 4]
add esi, 4
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x6537d301
add esi, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, eax
test edi, edi
jne 0x6537d301
mov edx, dword [esi + 4]
add esi, 4
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x20]
push 1
push eax
push eax
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call ebp
add esi, 4
test edi, edi
jne 0x6537d301
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x6537d26d
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x6537d223
call fcn.653a61fa
mov esi, eax
test esi, esi
jl 0x6537d2f0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.6537c195
mov esi, eax
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
test edi, edi
je 0x6537d329
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
Function at 0x6538af90
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x6538b049
mov eax, dword [esi + 8]
test eax, eax
jbe 0x6538afaf
mov eax, 0x8002000d
pop edi
pop esi
ret 4
test byte [esi + 2], 0x20
je 0x6538afc9
mov eax, dword [esi - 4]
test eax, eax
je 0x6538afc9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi - 4], 0
test byte [esi + 3], 0x20
je 0x6538b03d
push esi
call fcn.65343388
mov edx, dword [esi + 4]
mov cx, word [esi + 2]
push edx
mov edx, dword [esi + 0xc]
push ecx
push eax
push edx
push esi
call fcn.653435c7
mov eax, dword [section..data]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x6538b00d
call fcn.65353daf
test eax, eax
jl 0x6538b013
mov ecx, dword [section..data]
push ecx
call edi
xor eax, eax
test eax, eax
jge 0x6538b02e
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x6538b01d
jl 0x6538b04b
mov eax, dword [ecx]
add esi, 0xfffffff0
push esi
push ecx
call dword [eax + 0x14]
xor eax, eax
pop edi
pop esi
ret 4
mov edx, dword [section..data]
push edx
call edi
mov ecx, dword [eax]
xor eax, eax
jmp 0x6538b017
add esi, 0xfffffff0
push esi
call fcn.6534328f
add esp, 4
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x6538b153
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
push ebp
mov dword [esp + 0x10], ecx
xor ebp, ebp
xor ecx, ecx
push esi
cmp ax, 0x24
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebp
jne 0x6538b1ae
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], edx
mov ecx, edx
and eax, 0xffff
mov dword [esp + 0x10], eax
add eax, 0xfffffffe
cmp eax, 0x22
ja case.0x6538b1a7.17
xor edx, edx
mov dl, byte [eax + 0x6538b3e0]
jmp dword [edx*4 + 0x6538b3a0]
cmp ax, 9
je 0x6538b1ba
cmp ax, 0xd
jne 0x6538b18a
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
jmp 0x6538b18a
mov eax, 1
mov ebx, eax
lea eax, [esp + 0x14]
and ebx, 0xffff
push eax
push ebx
push 1
call fcn.653433a0
mov esi, eax
cmp esi, 0xffffffff
je case.0x6538b1a7.17
cmp esi, 0x7fffffe7
ja case.0x6538b1a7.17
mov ecx, dword [section..data]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
add esi, 0x18
call edi
test eax, eax
jne 0x6538b349
call fcn.65353daf
test eax, eax
jge 0x6538b340
mov ecx, eax
test ecx, ecx
jge 0x6538b350
mov eax, dword [esp + 0x2c]
test ecx, ecx
jl case.0x6538b1a7.17
mov ecx, dword [eax]
lea edi, [esi + 0x10]
push edi
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
je case.0x6538b1a7.17
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esi, 0x10
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esi + 0x18]
mov word [esi], 1
mov dword [esi + 0xc], eax
mov eax, ebp
or ah, 0x20
mov dword [esi + 4], ebx
mov word [esi + 2], ax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp cx, 9
mov dword [esi + 0x14], edx
je 0x6538b37a
cmp cx, 0xd
je 0x6538b37a
cmp cx, 0x24
jne 0x6538b361
or al, 0x20
mov word [esi + 2], ax
mov eax, dword [esp + 0x28]
push eax
push esi
call sym.OLEAUT32.dll_SafeArraySetRecordInfo
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
mov eax, 2
jmp 0x6538b1c9
mov eax, 8
jmp 0x6538b1c9
mov ebp, 0x100
mov eax, 4
jmp 0x6538b1c9
mov ebp, 0x800
mov eax, 0x10
jmp 0x6538b1c9
mov ebp, 0x200
mov eax, 4
jmp 0x6538b1c9
mov ebp, 0x400
mov eax, 4
jmp 0x6538b1c9
cmp ecx, ebp
je case.0x6538b1a7.17
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
push ecx
mov ebp, 0x20
call dword [eax + 0x20]
mov eax, dword [esp + 0x2c]
cmp eax, 0xffff
jbe 0x6538b1c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x10
mov edx, dword [section..data]
push edx
call edi
xor ecx, ecx
jmp 0x6538b21e
mov eax, dword [section..data]
push eax
call edi
mov eax, dword [eax]
xor ecx, ecx
jmp 0x6538b22a
mov ecx, dword [esp + 0x10]
or al, 0x80
mov word [esi + 2], ax
mov dword [esi - 4], ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
or al, 0x40
mov word [esi + 2], ax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6538b38f
push eax
push esi
call sym.OLEAUT32.dll_SafeArraySetIID
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x6538b46c
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x6538b4a6
mov eax, dword [section..data]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
jne 0x6538b4b4
call fcn.65353daf
test eax, eax
jge 0x6538b4ab
mov ecx, eax
test ecx, ecx
jge 0x6538b4b8
mov eax, dword [esp + 0xc]
test ecx, ecx
jne 0x6538b4a6
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
pop edi
pop esi
ret 4
mov ecx, dword [section..data]
push ecx
call esi
xor ecx, ecx
jmp 0x6538b493
mov edx, dword [section..data]
push edx
call esi
mov eax, dword [eax]
xor ecx, ecx
jmp 0x6538b49b

Function at 0x6538d773
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [section..data]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
jne 0x6538d7ac
call fcn.65353daf
test eax, eax
jge 0x6538d7a3
mov ecx, eax
test ecx, ecx
jge 0x6538d7b0
mov eax, dword [esp + 8]
test ecx, ecx
jge 0x6538d7bf
xor eax, eax
pop esi
ret 4
mov ecx, dword [section..data]
push ecx
call esi
xor ecx, ecx
jmp 0x6538d791
mov edx, dword [section..data]
push edx
call esi
mov eax, dword [eax]
xor ecx, ecx
jmp 0x6538d799
mov edx, dword [esp + 8]
mov ecx, dword [eax]
add edx, 7
and edx, 0xfffffff8
add edx, 8
push edx
push eax
call dword [ecx + 0xc]
mov ecx, eax
lea eax, [ecx + 7]
and al, 0xf8
cmp eax, ecx
jne 0x6538d7e1
lea eax, [ecx + 8]
mov dl, al
pop esi
sub dl, cl
mov byte [eax - 1], dl
ret 4

Function at 0x6538d7ec
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x6538d82d
mov eax, dword [section..data]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
jne 0x6538d83b
call fcn.65353daf
test eax, eax
jge 0x6538d832
mov ecx, eax
test ecx, ecx
jge 0x6538d83f
mov eax, dword [esp + 0xc]
test ecx, ecx
jl 0x6538d82d
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [edi - 1]
sub edi, edx
push edi
push eax
call dword [ecx + 0x14]
pop edi
pop esi
ret 4
mov ecx, dword [section..data]
push ecx
call esi
xor ecx, ecx
jmp 0x6538d813
mov edx, dword [section..data]
push edx
call esi
mov eax, dword [eax]
xor ecx, ecx
jmp 0x6538d81b