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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x14]
test byte [edx + 9], 4
jne 0x40de78
mov edx, dword [ecx]
mov edi, ebx
sub edi, dword [edx + 4]
js 0x40ddb0
cmp edi, dword [eax + 0x10]
jae 0x40ddb0
mov eax, dword [ecx + edi*4]
xor ebx, ebx
mov edi, dword [eax + 0xc]
test edi, edi
je 0x40de6a
mov dword [esp], edi
mov ebp, 7
call sub.msvcrt.dll_strlen
mov ebx, dword [0x49c308]
cmp eax, ebp
mov esi, eax
cmovge ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov edx, dword [esp + 0x1c]
add ebx, 0x20
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp + 9]
mov ecx, 0x472020
sub esp, 4
mov dword [esp], ebx
call fcn.004082e0
mov dword [eax + 4], ebp
sub esp, 4
mov ebx, eax
lea eax, [eax + 8]
mov dword [eax - 8], esi
add esi, 1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x19
mov dword [esp], 0x472020
call fcn.00408420
lea ecx, [esp + 0x2c]
mov dword [eax + 4], 0x10
mov dword [eax], 0
mov dword [esp], ebx
sar ebx, 0x1f
mov dword [esp + 4], ebx
mov dword [esp + 0x2c], eax
call fcn.004088d0
sub esp, 8
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x40deb8
mov eax, dword [edi]
mov dword [esp], 0x472020
lea esi, [eax + 0x10]
mov eax, 7
cmp esi, eax
cmovl esi, eax
lea eax, [esi + 9]
mov dword [esp + 4], eax
call fcn.00408420
lea ecx, [edi + 8]
mov dword [eax + 4], esi
lea edx, [eax + 8]
mov ebx, eax
mov dword [eax], 0
mov eax, dword [edi]
mov dword [esp + 4], ecx
add eax, 1
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [edi]
mov dword [ebx], eax
add eax, 8
add eax, ebx
mov dword [eax], 0x6e692820
mov dword [eax + 4], 0x696c6176
mov dword [eax + 8], 0x61642064
mov dword [eax + 0xc], 0x29216174
mov byte [eax + 0x10], 0
add dword [ebx], 0x10
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [eax + 0x10]
test esi, esi
jle 0x40ddb0
xor eax, eax
jmp 0x40de9b
add eax, 1
cmp esi, eax
je 0x40ddb0
mov edx, dword [ecx + eax*4]
cmp dword [edx + 4], ebx
jne 0x40de90
mov edi, dword [edx + 0xc]
xor ebx, ebx
test edi, edi
jne 0x40dd2f
jmp 0x40de6a
mov dword [esp + 4], 0x19
mov dword [esp], 0x472020
call fcn.00408420
mov dword [eax + 4], 0x10
mov ebx, eax
mov dword [eax], 0
mov eax, 8
jmp 0x40de46

Function at 0x40def0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test ecx, ecx
je 0x40df40
push esi
add ecx, 8
xor eax, eax
push ebx
mov esi, dword [ecx - 8]
lea ebx, [ecx + esi]
test esi, esi
jle 0x40df3b
lea esi, [esi]
nop
movzx edx, byte [ecx]
add ecx, 1
add edx, eax
mov eax, edx
shl eax, 0xa
add eax, edx
mov edx, eax
shr edx, 6
xor eax, edx
cmp ebx, ecx
jne 0x40df10
lea edx, [eax + eax*8]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 0xf
add edx, eax
mov eax, edx
pop ebx
pop esi
ret
mov eax, edx
ret
Function at 0x40e090
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [0x49c308]
test cl, cl
jne 0x40e100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
add ebx, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], ebx
call fcn.004082e0
mov edx, 0x65
sub esp, 4
mov dword [eax + 4], 7
mov dword [eax], 5
mov dword [eax + 8], 0x736c6166
mov word [eax + 0xc], dx
add esp, 0x14
pop ebx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
add ebx, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], ebx
call fcn.004082e0
sub esp, 4
mov dword [eax + 4], 7
mov dword [eax], 4
mov dword [eax + 8], 0x65757274
mov byte [eax + 0xc], 0
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40e1c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov esi, dword [0x49c308]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
add esi, 0x20
mov edi, 0x27
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], esi
call fcn.004082e0
mov dword [eax + 4], 7
sub esp, 4
mov esi, eax
mov dword [eax], 1
mov word [eax + 8], di
cmp bl, 0x5c
je 0x40e370
ja 0x40e280
cmp bl, 0x1f
jbe 0x40e289
cmp bl, 0x22
jne 0x40e3a0
mov ecx, eax
mov edx, 2
mov ebx, 0x225c
call fcn.00408c60
mov ecx, eax
mov eax, dword [eax]
lea eax, [ecx + eax + 8]
mov word [eax], bx
mov byte [eax + 2], 0
add dword [ecx], 2
mov edx, 1
call fcn.00408ef0
mov ecx, 0x27
mov edx, dword [eax]
mov word [eax + edx + 8], cx
add dword [eax], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp bl, 0x7e
jbe 0x40e3a0
mov dword [esp + 4], 0x29
movzx ebx, bl
mov dword [esp], 0x472020
call fcn.00408420
lea ecx, [esp + 0x2c]
mov dword [eax + 4], 0x20
mov dword [eax], 0
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x2c], eax
call fcn.004088d0
sub esp, 8
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40e3b8
mov eax, dword [ebp]
mov dword [esp], 0x472020
lea edi, [eax + 1]
mov eax, 7
cmp edi, eax
cmovl edi, eax
lea eax, [edi + 9]
mov dword [esp + 4], eax
call fcn.00408420
lea ecx, [ebp + 8]
mov dword [eax + 4], edi
mov ebx, eax
lea edi, [eax + 8]
mov eax, 0x5c
mov word [ebx + 8], ax
lea edx, [ebx + 9]
mov dword [ebx], 1
mov eax, dword [ebp]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp]
add edx, 1
mov dword [ebx], edx
mov ecx, esi
call fcn.00408ef0
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
lea edx, [ecx + eax + 8]
mov eax, dword [ebx]
mov dword [esp + 4], edi
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx]
add dword [ecx], eax
jmp 0x40e25d
mov edx, 2
mov ecx, eax
call fcn.00408c60
mov edx, 0x5c5c
mov ecx, eax
mov eax, dword [eax]
lea eax, [ecx + eax + 8]
mov word [eax], dx
mov byte [eax + 2], 0
add dword [ecx], 2
jmp 0x40e25d
mov ecx, esi
movsx edx, bl
call fcn.00408ff0
mov ecx, eax
jmp 0x40e25d
mov dword [esp + 4], 0x10
mov ebp, 0x5c
mov dword [esp], 0x472020
call fcn.00408420
mov edx, 1
mov dword [eax + 4], 7
mov ebx, eax
lea edi, [eax + 8]
mov word [eax + 8], bp
mov dword [eax], 1
jmp 0x40e332
Function at 0x40e400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x2c
mov edx, dword [esp + 0x40]
cmp byte [edx + 8], 0x2a
ja case.0x40e419.44
movzx eax, byte [edx + 8]
jmp dword [eax*4 + 0x4737e4]
mov ecx, dword [ebx]
mov edx, 0x10
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov edx, dword [ebx]
mov eax, dword [edx]
lea eax, [edx + eax + 8]
mov dword [eax], 0x6e692820
mov dword [eax + 4], 0x696c6176
mov dword [eax + 8], 0x61642064
mov dword [eax + 0xc], 0x29216174
mov byte [eax + 0x10], 0
add dword [edx], 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 4], 0x29
mov dword [esp], 0x472020
call fcn.00408420
lea ecx, [esp + 0x1c]
mov dword [eax + 4], 0x20
mov dword [eax], 0
mov dword [esp], esi
sar esi, 0x1f
mov dword [esp + 4], esi
mov dword [esp + 0x1c], eax
call fcn.004088d0
sub esp, 8
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40e5c4
mov edx, dword [esi]
mov ecx, dword [ebx]
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov ebx, dword [ebx]
lea ecx, [esi + 8]
mov eax, dword [ebx]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], ecx
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ebp, dword [0x49c308]
test esi, esi
jne 0x40e608
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
add esi, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], esi
call fcn.004082e0
mov edx, 5
mov dword [eax + 4], 7
lea edi, [eax + 8]
mov esi, eax
sub esp, 4
mov dword [eax], 5
mov dword [eax + 8], 0x736c6166
mov eax, 0x65
mov word [edi + 4], ax
mov ecx, dword [ebx]
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], edi
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, esi
movsx ecx, al
call fcn.0040e1c0
mov esi, eax
test eax, eax
jne 0x40e4b7
mov ecx, dword [ebx]
xor edx, edx
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edx, dword [edx + 0xc]
jmp 0x40e40f
mov ecx, esi
call fcn.0040dcf0
mov esi, eax
test eax, eax
jne 0x40e4b7
jmp 0x40e5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
add esi, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], esi
call fcn.004082e0
mov edx, 4
lea edi, [eax + 8]
mov dword [eax + 4], 7
sub esp, 4
mov esi, eax
mov dword [eax], 4
mov dword [eax + 8], 0x65757274
mov byte [edi + 4], 0
jmp 0x40e56f
Function at 0x40e500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x2c
mov edx, dword [esp + 0x40]
cmp byte [edx + 8], 0x2a
ja case.0x40e419.44
movzx eax, byte [edx + 8]
jmp dword [eax*4 + 0x4737e4]
mov ecx, dword [ebx]
mov edx, 0x10
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov edx, dword [ebx]
mov eax, dword [edx]
lea eax, [edx + eax + 8]
mov dword [eax], 0x6e692820
mov dword [eax + 4], 0x696c6176
mov dword [eax + 8], 0x61642064
mov dword [eax + 0xc], 0x29216174
mov byte [eax + 0x10], 0
add dword [edx], 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 4], 0x29
mov dword [esp], 0x472020
call fcn.00408420
lea ecx, [esp + 0x1c]
mov dword [eax + 4], 0x20
mov dword [eax], 0
mov dword [esp], esi
sar esi, 0x1f
mov dword [esp + 4], esi
mov dword [esp + 0x1c], eax
call fcn.004088d0
sub esp, 8
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40e5c4
mov edx, dword [esi]
mov ecx, dword [ebx]
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov ebx, dword [ebx]
lea ecx, [esi + 8]
mov eax, dword [ebx]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], ecx
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ebp, dword [0x49c308]
test esi, esi
jne 0x40e608
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
add esi, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], esi
call fcn.004082e0
mov edx, 5
mov dword [eax + 4], 7
lea edi, [eax + 8]
mov esi, eax
sub esp, 4
mov dword [eax], 5
mov dword [eax + 8], 0x736c6166
mov eax, 0x65
mov word [edi + 4], ax
mov ecx, dword [ebx]
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], edi
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, esi
movsx ecx, al
call fcn.0040e1c0
mov esi, eax
test eax, eax
jne 0x40e4b7
mov ecx, dword [ebx]
xor edx, edx
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edx, dword [edx + 0xc]
jmp 0x40e40f
mov ecx, esi
call fcn.0040dcf0
mov esi, eax
test eax, eax
jne 0x40e4b7
jmp 0x40e5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
add esi, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], esi
call fcn.004082e0
mov edx, 4
lea edi, [eax + 8]
mov dword [eax + 4], 7
sub esp, 4
mov esi, eax
mov dword [eax], 4
mov dword [eax + 8], 0x65757274
mov byte [edi + 4], 0
jmp 0x40e56f
Function at 0x40e5e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x2c
mov edx, dword [esp + 0x40]
cmp byte [edx + 8], 0x2a
ja case.0x40e419.44
movzx eax, byte [edx + 8]
jmp dword [eax*4 + 0x4737e4]
mov ecx, dword [ebx]
mov edx, 0x10
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov edx, dword [ebx]
mov eax, dword [edx]
lea eax, [edx + eax + 8]
mov dword [eax], 0x6e692820
mov dword [eax + 4], 0x696c6176
mov dword [eax + 8], 0x61642064
mov dword [eax + 0xc], 0x29216174
mov byte [eax + 0x10], 0
add dword [edx], 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 4], 0x29
mov dword [esp], 0x472020
call fcn.00408420
lea ecx, [esp + 0x1c]
mov dword [eax + 4], 0x20
mov dword [eax], 0
mov dword [esp], esi
sar esi, 0x1f
mov dword [esp + 4], esi
mov dword [esp + 0x1c], eax
call fcn.004088d0
sub esp, 8
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40e5c4
mov edx, dword [esi]
mov ecx, dword [ebx]
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov ebx, dword [ebx]
lea ecx, [esi + 8]
mov eax, dword [ebx]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], ecx
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ebp, dword [0x49c308]
test esi, esi
jne 0x40e608
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
add esi, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], esi
call fcn.004082e0
mov edx, 5
mov dword [eax + 4], 7
lea edi, [eax + 8]
mov esi, eax
sub esp, 4
mov dword [eax], 5
mov dword [eax + 8], 0x736c6166
mov eax, 0x65
mov word [edi + 4], ax
mov ecx, dword [ebx]
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], edi
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, esi
movsx ecx, al
call fcn.0040e1c0
mov esi, eax
test eax, eax
jne 0x40e4b7
mov ecx, dword [ebx]
xor edx, edx
call fcn.00408ef0
mov ecx, ebx
mov edx, eax
call fcn.00406e10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edx, dword [edx + 0xc]
jmp 0x40e40f
mov ecx, esi
call fcn.0040dcf0
mov esi, eax
test eax, eax
jne 0x40e4b7
jmp 0x40e5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
add esi, 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x10
mov ecx, 0x472020
sub esp, 4
mov dword [esp], esi
call fcn.004082e0
mov edx, 4
lea edi, [eax + 8]
mov dword [eax + 4], 7
sub esp, 4
mov esi, eax
mov dword [eax], 4
mov dword [eax + 8], 0x65757274
mov byte [edi + 4], 0
jmp 0x40e56f
Function at 0x40ea40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
xor edi, edi
push esi
mov esi, ecx
push ebx
sub esp, 0x2c
mov dword [esp + 4], 0x45
mov dword [esp], 0x472020
call fcn.00408420
mov dword [eax + 4], 0x3c
mov ebx, eax
add eax, 8
mov dword [eax - 8], 0x3c
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4731a0
mov dword [esp], eax
mov dword [esp + 0x10], eax
call fcn.00403100
mov edx, dword [ebx + 4]
test eax, eax
mov esi, eax
cmovns edi, eax
mov eax, edx
and eax, 0x3fffffff
cmp edi, eax
jle 0x40eb6e
mov ecx, 4
test eax, eax
je 0x40eabb
and edx, 0x3fff0000
lea ecx, [eax + eax]
je 0x40eabb
add ecx, eax
sar ecx, 1
cmp esi, ecx
mov eax, 7
mov ebp, dword [0x49c308]
cmovge ecx, esi
cmp ecx, eax
mov dword [esp + 0x18], ecx
cmovge eax, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebp, eax
mov edx, dword [esp + 0x1c]
add ebp, 0x20
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x472020
sub esp, 4
mov dword [esp], ebp
mov eax, dword [esp + 0x14]
lea edx, [eax + 9]
call fcn.004082e0
sub esp, 4
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dword [ebp], 0
lea edx, [ebp + 8]
mov dword [ebp + 4], eax
mov eax, dword [ebx]
mov dword [ebp], eax
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov ebx, ebp
sub esi, eax
lea eax, [ebp + eax + 8]
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x18]
mov dword [ebp + 4], ecx
mov dword [ebx], edi
mov eax, ebx
mov byte [ebx + edi + 8], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ed70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
fld qword [esp + 0x90]
mov dword [esp + 4], 0x11
lea edi, [esp + 0x2f]
mov dword [esp], 0x472020
fstp qword [esp + 0x10]
call fcn.00408420
fld qword [esp + 0x10]
mov ecx, edi
mov dword [eax + 4], 8
mov ebx, eax
mov dword [eax], 0
fstp qword [esp]
mov dword [esp + 0x28], eax
call fcn.004019f0
mov ebp, dword [ebx]
mov ecx, ebx
sub esp, 8
lea edx, [eax + ebp]
mov dword [esp + 0x10], eax
call fcn.00408790
mov esi, eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00406db0
test al, al
jne 0x40ee05
test esi, esi
je 0x40ede8
add dword [esi - 8], 8
cmp ebx, 0xfff
jbe 0x40ee05
mov eax, dword [ebx - 8]
lea ecx, [ebx - 8]
mov dword [esp + 0x18], ecx
sub eax, 8
mov dword [ebx - 8], eax
cmp eax, 7
jbe 0x40ee30
mov ecx, dword [esp + 0x10]
lea eax, [esi + ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memcpy
add esp, 0x7c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ebx, dword [0x49c308]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov eax, dword [esp + 0x1c]
add ebx, 0x2c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00405190
jmp 0x40ee05
Function at 0x410970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
xor eax, eax
push edi
push esi
mov esi, ecx
push ebx
mov ebx, edx
xor edx, edx
sub esp, 0x4c
mov dword [esp + 0x20], 0
mov dword [esp + eax + 0x28], edx
add eax, 4
cmp eax, 0x18
jb 0x410987
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x49c308]
mov dword [esp + 0x18], eax
call eax
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x1c], eax
call eax
sub esp, 4
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp], edx
call eax
lea ecx, [edi + 0x54]
mov edx, 0x1008
sub esp, 4
call fcn.00404070
lea edx, [eax + 8]
lea edi, [eax + 0xc]
mov dword [eax + 8], 0
and edi, 0xfffffffc
mov ecx, edx
mov dword [eax + 4], 1
mov dword [eax + 0x1004], 0
sub ecx, edi
xor eax, eax
add ecx, 0x1000
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], 0x3ff
movzx eax, byte [ebx + 8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
lea edx, [eax - 0x10]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0
cmp dl, 3
jbe 0x410a78
cmp al, 4
je 0x410a78
lea eax, [esp + 0x28]
mov dword [esp], ebx
lea edx, [esp + 0x24]
mov dword [esp + 4], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], esi
call fcn.0040f4f0
sub esp, 8
jmp 0x410a91
lea eax, [esp + 0x28]
mov dword [esp], ebx
mov edx, esi
lea ecx, [esp + 0x20]
mov dword [esp + 4], eax
call fcn.0040f4f0
sub esp, 8
mov ecx, dword [esp + 0x20]
mov edx, 1
call fcn.00408ef0
mov ecx, 0xa
mov dword [esp + 0x20], eax
mov edx, dword [eax]
mov word [eax + edx + 8], cx
add dword [eax], 1
mov esi, dword [esp + 0x30]
test esi, esi
je 0x410afb
lea esi, [esi]
mov ebx, dword [0x49c308]
mov eax, dword [esp + 0x18]
mov edi, esi
mov esi, dword [esi]
call eax
mov dword [esp], ebx
mov ebp, eax
mov eax, dword [esp + 0x1c]
call eax
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
mov eax, dword [esp + 0x14]
call eax
lea edx, [edi - 8]
lea ecx, [ebx + 0x54]
sub esp, 4
call fcn.00404df0
test esi, esi
jne 0x410ac0
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], 0
mov esi, dword [0x49c308]
call eax
mov edi, eax
mov dword [esp], esi
mov eax, dword [esp + 0x1c]
call eax
sub esp, 4
mov esi, eax
mov dword [esp], edi
mov eax, dword [esp + 0x14]
call eax
lea edx, [ebx - 8]
lea ecx, [esi + 0x54]
sub esp, 4
call fcn.00404df0
mov eax, dword [esp + 0x20]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x410c40
Capabilities:
Get thread local storage value

Disassembly:
test ecx, ecx
je 0x410c50
mov ecx, dword [ecx + 0x10]
jmp fcn.00409140
xor eax, eax
ret