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

Disassembly:
push 0xffffffffffffffff
push 0x4aaf88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
lea ecx, [esp + 0x14]
call fcn.00418f10
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.00419170
mov ebp, eax
mov eax, dword [0x4eb358]
xor esi, esi
cmp eax, 0xffffffff
je 0x4183d1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4183d1
push edi
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x418371
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x20], bl
mov word [esp + 0x22], bx
mov edi, dword [esp + 0x20]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x24], bx
mov word [esp + 0x26], bx
mov dword [esi], edi
mov edi, dword [esp + 0x24]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x418373
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x41839d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
push 0x4cb060
push ecx
mov dword [esp + 0x1c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esi + 0xb4], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.00420e20
mov ecx, dword [esp + 0x28]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret
Function at 0x418750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4188d5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4188d5
push ebp
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x418883
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov ebp, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], ebp
mov ebp, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], ebp
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x418885
xor esi, esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x4188ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
push 0x4cb060
push ecx
mov dword [esp + 0x1c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov ebx, eax
lea ebp, [edi + 8]
push ebp
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 4]
push ebp
mov dword [ebx + 4], edx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x418f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4eb358]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x4190a6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4190a6
push edi
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x419046
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x419048
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x419072
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
push 0x4cb060
push ecx
mov dword [esp + 0x1c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x41a3c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4ab083
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [eax + 0x10c]
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x41a59f
push edi
push esi
push ebx
jmp 0x41a3f8
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41a58d
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
call fcn.0048b346
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov cl, byte [esp + 0x38]
mov byte [esp + 0x18], cl
mov edi, ebx
mov byte [ebx + eax], 0
xor eax, eax
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], eax
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.0041a720
test al, al
je 0x41a47e
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0041a700
mov eax, dword [0x4eb358]
xor ebp, ebp
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebp
je 0x41a52e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, ebp
jne 0x41a52e
push 0xb8
call fcn.0048b346
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 1
je 0x41a4ca
mov ecx, eax
call fcn.00418520
mov edi, eax
jmp 0x41a4cc
xor edi, edi
mov eax, dword [0x4eb358]
push edi
push eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebp
jne 0x41a4fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x4cb060
push ecx
mov dword [esp + 0x18], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], edx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [edi + 0x90]
lea ecx, [edi + 0x88]
lea eax, [esp + 0x18]
push eax
push 1
push edx
call fcn.0041aa20
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebp
je 0x41a574
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41a56b
cmp al, 0xff
je 0x41a56b
dec al
mov byte [ecx], al
jmp 0x41a574
push ecx
call fcn.0048b36f
add esp, 4
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0048b36f
mov ebp, dword [esp + 0x3c]
add esp, 4
mov ebp, dword [ebp]
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x41a3f4
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x41fe40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4eb358]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x41ffd6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x41ffd6
push edi
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x41ff76
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x41ff78
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x41ffa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
push 0x4cb060
push ecx
mov dword [esp + 0x1c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp], ebx
mov dword [ebp + 0x1c], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x420c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4eb358]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x420df6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x420df6
push edi
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x420d96
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x420d98
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x420dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
push 0x4cb060
push ecx
mov dword [esp + 0x1c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp + 0x10], 0x9999999a
mov dword [ebp + 0x14], 0x40019999
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x420e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4eb358]
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
je 0x420fb3
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x420fb3
push edi
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x420f53
mov cl, byte [esp + 0xf]
mov dl, byte [esp + 0xf]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0xf]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0xf]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x14], bl
mov word [esp + 0x16], bx
mov edi, dword [esp + 0x14]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov dword [esi], edi
mov edi, dword [esp + 0x18]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x420f55
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x420f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x4cb060
push ecx
mov dword [esp + 0x18], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x424d90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4eb358]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x424f26
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x424f26
push edi
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x424ec6
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x424ec8
xor esi, esi
mov eax, dword [0x4eb358]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x424ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
push 0x4cb060
push ecx
mov dword [esp + 0x1c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], edx
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp + 0x112c], ebx
mov dword [ebp + 0x1130], ebx
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x425720
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x1120]
cmp eax, ecx
jle 0x42585a
push edi
push ebp
push ebx
mov eax, dword [esi + 0x112c]
mov dword [esp + 0x10], eax
mov cl, byte [eax + 4]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
and ebx, 0xff
lea edx, [ebx - 1]
test edx, edx
setl cl
dec ecx
xor ebp, ebp
mov bp, word [eax + 6]
and ecx, edx
mov byte [esp + 0x18], cl
mov eax, ebp
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
and edx, 0xff
shr eax, 3
mov dword [esp + 0x1c], eax
lea edi, [esi + edx*4 + 0x304]
lea eax, [eax + eax*2]
mov edx, dword [edi]
shl eax, 3
cmp dword [eax + edx + 0xc], 0
je 0x4257b7
mov ecx, dword [esi + 0x1120]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x1120]
dec ecx
mov dword [esi + 0x1120], ecx
jmp 0x4257cd
mov edx, dword [esp + 0x10]
mov byte [edx + 4], cl
mov ecx, dword [esi + 0x112c]
mov dx, word [esp + 0x1c]
mov word [ecx + 6], dx
mov ecx, dword [edi]
lea edx, [ebp + ebp*2]
mov ebp, dword [esi + ebx*4 + 0x304]
push 1
shl edx, 3
lea ecx, [eax + ecx + 0xc]
mov ebp, dword [edx + ebp + 0xc]
add dword [ecx], ebp
mov ecx, dword [edi]
mov ebp, dword [esi + ebx*4 + 0x304]
add ecx, eax
mov ebp, dword [edx + ebp]
add dword [ecx], ebp
mov ecx, dword [edi]
mov ebp, dword [esi + ebx*4 + 0x304]
lea ecx, [eax + ecx + 4]
mov ebp, dword [edx + ebp + 4]
add dword [ecx], ebp
mov ecx, dword [edi]
mov ebx, dword [esi + ebx*4 + 0x304]
mov ebp, dword [eax + ecx + 8]
lea ecx, [eax + ecx + 8]
mov edx, dword [edx + ebx + 8]
add ebp, edx
mov dl, 1
mov dword [ecx], ebp
mov ecx, dword [edi]
lea eax, [eax + ecx + 0x14]
mov ecx, dword [esp + 0x24]
and ecx, 7
mov bl, byte [eax]
shl dl, cl
mov ecx, esi
not dl
and bl, dl
mov byte [eax], bl
call fcn.00425600
mov eax, dword [esi + 0x1120]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x42573b
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x14
ret 4