joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c590
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1002c760
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x230]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x200
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x100
push edi
push dword [esi]
call dword [sym.imp.user32.dll_GetWindowTextW]
cmp eax, 0x101
jae 0x1002c6c7
lea esi, [ebp - 0x30]
push eax
push edi
push esi
call fcn.1003d780
add esp, 0xc
mov dword [ebp - 0x10], 0
push esi
call fcn.10045e00
add esp, 4
push edx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10045ff0
add esp, 0xc
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x230], 0x80000000
jne 0x1002c666
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x22c]
test ebx, ebx
je 0x1002c6a6
mov dword [ebp - 0x20], eax
js 0x1002c6d7
movzx eax, byte [0x1008c829]
push 1
push ebx
call fcn.10002ab0
add esp, 8
test eax, eax
je 0x1002c6db
mov edi, eax
mov eax, dword [ebp - 0x20]
jmp 0x1002c6ab
mov eax, dword [ebp - 0x228]
movsd xmm0, qword [ebp - 0x230]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1002c690
push 1
push eax
push dword [ebp - 0x2c]
call fcn.10002ac0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 1
push ebx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x1002c682
jmp 0x1002c690
push 0x10067834
push 0x100
push eax
call fcn.1005f340
xor eax, eax
jmp 0x1002c6e0
mov eax, 1
push ebx
push eax
call fcn.1005ee90
add esp, 8
ud2

Function at 0x1002cb00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
sub esp, 0x18
movzx eax, word [esp + 0x28]
cmp eax, 0x100
ja 0x1002cb68
movzx esi, ax
push esi
call dword [sym.imp.user32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
setns bl
cmp esi, 0x100
je 0x1002cb54
mov edx, dword [esp + 0x24]
mov cl, bl
lea ecx, [ecx + ecx*2]
cmp byte [edx + esi], cl
jne 0x1002cb45
movzx eax, ax
mov cl, 2
shr eax, 0xf
sub cl, al
jmp 0x1002cb4c
mov byte [edx + esi + 0x100], cl
mov eax, ecx
add esp, 0x18
pop esi
pop ebx
ret
push 0x10067a48
push 0x100
push 0x100
call fcn.1005f0e0
mov dword [esp], str.Virtual_keys_cant_have_an_index_of_more_than_256_
mov dword [esp + 4], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], str.description___is_deprecated__use_DisplayFromUtf16Error
mov dword [esp + 0xc], 0
mov eax, esp
push 0x10067a94
push eax
call fcn.1005ef70
int3
Function at 0x10035aa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
xorps xmm0, xmm0
call 0x10035aaf
pop edi
lea eax, [esp + 0x18]
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x18], xmm0
push eax
call sub.KERNEL32.dll_GetSystemInfo
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10035b4f
mov ecx, dword [esp + 0x54]
xor edx, edx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
mov eax, ecx
div esi
lea eax, [esi + ecx]
sub eax, edx
test edx, edx
cmove eax, ecx
test eax, eax
cmove eax, esi
test ebx, ebx
mov dword [esp + 4], eax
je 0x10035b37
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov dword [esp + 8], 0
xor edx, edx
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
lea ebp, [ecx + ebx*8]
mov ebx, dword [ecx + 4]
mov esi, dword [eax*4 + 0x10035d04]
xor eax, eax
add esi, edi
jmp esi
mov ebx, dword [esp + 4]
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [esp + 8], 0
test dl, dl
je 0x10035b59
jmp 0x10035b66
push 0x1006d830
call fcn.1005f4f0
mov eax, 1
test cl, cl
je 0x10035c7d
mov dword [ebp + 4], 7
jmp 0x10035cf2
test esi, esi
je 0x10035c8a
mov dword [ebp + 4], 8
jmp 0x10035cf2
push eax
push 0x3000
push ebx
push dword [esp + 0x14]
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x10035ca7
mov dword [ebp], 1
jmp 0x10035cdb
call fcn.100443c0
mov dword [ebp + 4], 0xa
jmp 0x10035cef
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
jmp 0x10035cf9
mov dword [ebp + 8], eax
mov dword [ebp], 2
mov eax, ebp
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10039f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100484a0
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x10039ff0
jmp 0x10039fde
jbe 0x1003a076
cmp edi, 0x201
jae 0x10039ff0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x454]
mov esi, edi
jmp 0x1003a021
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x1003a015
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.1005e350
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1003a045
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003a0e3
cmp edi, esi
jne 0x10039fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003a102
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x10039fde
jmp 0x10039ff0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x1003a11f
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.1003d780
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1003a0cd
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.10002ac0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x1003a0bd
jmp 0x1003a0cd
mov dword [ebp - 0x10], 0
push 0x1006fb0c
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_79424056b05eaa9563d16dfab9b9a0c8f033f220library_alloc_src_vecmod.rs
call fcn.1005f040
add esp, 0xc
jmp 0x1003a12e
push 0x1006fafc
push eax
push edi
call fcn.1005f340
add esp, 0xc
ud2
Function at 0x1003dfd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov edi, edx
call fcn.1003da40
mov ecx, dword [edi + 4]
cmp eax, ecx
ja 0x1003e0eb
mov edx, dword [edi]
mov ebx, edx
lea esi, [edx + eax]
movzx edx, byte [edi + 8]
mov edi, eax
sub edi, ecx
mov byte [ebp - 0xd], dl
jne 0x1003e017
mov ebx, dword [ebp - 0x14]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x1003e093
jmp 0x1003e071
cmp dl, 3
mov dword [ebp - 0x18], esi
jae 0x1003e03f
mov edx, ebx
lea esi, [ecx + ebx - 1]
mov ebx, dword [ebp - 0x14]
mov edi, eax
sub edi, ecx
nop dword [eax]
cmp byte [esi], 0x5c
je 0x1003e0d5
dec esi
inc edi
jne 0x1003e030
jmp 0x1003e064
mov edx, ebx
lea esi, [ecx + ebx - 1]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
cmp ebx, 0x2f
je 0x1003e075
cmp ebx, 0x5c
je 0x1003e075
dec esi
inc edi
jne 0x1003e050
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x1003e093
mov al, 0xa
jmp 0x1003e0c0
mov ebx, dword [ebp - 0x14]
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
ja 0x1003e0df
add edx, eax
mov edi, 1
mov esi, edx
movzx edx, byte [ebp - 0xd]
sub ecx, eax
je 0x1003e071
mov al, 9
cmp ecx, 2
je 0x1003e0b2
cmp ecx, 1
jne 0x1003e0c0
cmp byte [esi], 0x2e
jne 0x1003e0c0
xor eax, eax
cmp dl, 3
setae al
lea eax, [eax + eax*2 + 7]
jmp 0x1003e0c0
cmp byte [esi], 0x2e
jne 0x1003e0c0
cmp byte [esi + 1], 0x2e
sete al
xor al, 9
add edi, ecx
mov dword [ebx], edi
mov byte [ebx + 4], al
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
jbe 0x1003e082
push 0x1006eaf0
push ecx
push eax
call fcn.1005f320
push 0x1006eae0
push ecx
push eax
call fcn.1005f320
int3
Function at 0x10044190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x100441d4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x100441da
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1004420f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x1004421f
mov dword [esi + 4], 0
jmp 0x10044231
cmp eax, 0x103
je 0x1004424b
test eax, eax
js 0x1004423c
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10044234
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1006f5fc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.1003d0c0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.10037870
mov ecx, 7
int 0x29
ud2
Function at 0x100442b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x100442f4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x100442fa
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x10044336
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10044358
test eax, eax
js 0x10044342
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x1004434b
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1006f5fc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.1003d0c0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.10037870
mov ecx, 7
int 0x29
ud2
Function at 0x10044e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10048810
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x1008c829]
push 4
push 8
call fcn.10002ab0
add esp, 8
test eax, eax
je 0x10044f22
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x10044fa0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10044ebd
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x10044f0f
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x10044ef4
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.10002ac0
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.10002ac0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.1005eeb0
add esp, 8
ud2
Function at 0x10045110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10048830
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x1004514e
test eax, eax
jne 0x100452ca
mov ebx, dword [0x1008c8e4]
test ebx, ebx
je 0x100452ca
mov dword [ebp - 0x20], 0
jmp 0x10045177
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100451a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1004531b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10045170
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x10045170
test byte [ebp - 0x20], 1
je 0x100452ca
mov ebx, dword [0x1008c8e4]
test ebx, ebx
je 0x100452ca
mov dword [ebp - 0x20], 0
jmp 0x100451d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x10045208
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1004531b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100451d0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x100451d0
test byte [ebp - 0x20], 1
je 0x100452ca
mov ebx, dword [0x1008c8e4]
test ebx, ebx
je 0x100452ca
mov dword [ebp - 0x20], 0
jmp 0x10045237
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x10045268
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1004531b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10045230
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x10045230
test byte [ebp - 0x20], 1
je 0x100452ca
mov ebx, dword [0x1008c8e4]
test ebx, ebx
je 0x100452ca
mov dword [ebp - 0x20], 0
jmp 0x10045297
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100452c4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1004531b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10045290
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x10045290
test byte [ebp - 0x20], 1
jne 0x100452e4
movzx eax, byte [0x10072e80]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x1008c8e4]
jmp 0x100452ef
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100452ca
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1004531b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100452ec
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x100452ec
mov dword [ebp - 0x10], 0
push 0x1006fa00
call fcn.1005ef30
add esp, 4
ud2
Function at 0x10045370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x10048840
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
movq xmm0, qword [0x1008c8e8]
movd ecx, xmm0
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
mov eax, ecx
or eax, edx
jne 0x100453f9
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100454a1
mov ecx, dword [esi]
mov edx, dword [esi + 4]
movq xmm0, qword [esi]
mov eax, ecx
movq qword [0x1008c8e8], xmm0
or eax, edx
je 0x10045497
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
push edx
push ecx
push dword [ebp + 0xc]
push eax
mov ebx, ecx
mov dword [esi + 0x1c], ecx
call fcn.1005b630
mov edi, edx
mov dword [esi + 0x14], eax
mul ebx
imul ecx, edi, 0x3b9aca00
imul edi, ebx
mov ebx, dword [esi + 0x14]
add edi, edx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
imul edx, dword [esi + 0x10]
add edi, edx
sub dword [esi + 0xc], eax
mov edx, 0x3b9aca00
mov eax, ebx
sbb ecx, edi
mul edx
mov edi, eax
mov eax, dword [esi + 0xc]
mov ebx, edx
mov edx, 0x3b9aca00
imul ecx, ecx, 0x3b9aca00
add ebx, dword [esi + 0x18]
mul edx
add edx, ecx
push dword [esi + 0x10]
push dword [esi + 0x1c]
push edx
push eax
call fcn.1005b630
add edi, eax
adc edx, ebx
push 0
push 0x3b9aca00
push edx
push edi
call fcn.1005b630
imul ecx, eax, 0x3b9aca00
sub edi, ecx
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
mov ecx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1006ee28
call fcn.1005f4b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x20]
push 0x1006fa7c
push 0x1006ded4
push eax
push 0x2b
push 0x1006dee4
call fcn.1005f2b0
add esp, 0x14
ud2
Function at 0x10047e10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x1008c71c]
mov esi, ecx
test eax, eax
je 0x10047e3a
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x10047e53
cmp dword [eax + 4], 0
je 0x10047e53
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x1008c71c
call fcn.1005e6b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x10047e2d
mov eax, dword [0x1008c71c]
test eax, eax
je 0x10047eee
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x10047f0b
test eax, eax
jne 0x10047eb4
movzx eax, byte [0x1008c829]
push 4
push 0x10
call fcn.10002ab0
add esp, 8
test eax, eax
je 0x10047f26
mov dword [eax], 0x1008c71c
mov dword [eax + 4], 0
mov ecx, dword [0x1008c71c]
test ecx, ecx
je 0x10047f11
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x10047ed4
mov edx, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp edx, 1
mov edx, 0
jne 0x10047ed8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x10047ed8
xor ecx, ecx
xor edx, edx
lea esi, [eax + 8]
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x1008c71c
call fcn.1005e6b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x10047e71
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x1008c71c
mov edi, eax
call fcn.1005e6b0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x10047ea8
push 0x10
push 4
call fcn.1005eeb0
int3

Function at 0x10047f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x1008c72c]
mov esi, ecx
test eax, eax
je 0x10047f5a
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x10047f73
cmp byte [eax + 4], 0
je 0x10047f73
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x1008c72c
call fcn.1005e6b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x10047f4d
mov eax, dword [0x1008c72c]
test eax, eax
je 0x10047fea
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x10048003
test eax, eax
jne 0x10047fc5
movzx eax, byte [0x1008c829]
push 4
push 8
call fcn.10002ab0
add esp, 8
test eax, eax
je 0x1004801e
mov dword [eax], 0x1008c72c
mov byte [eax + 4], 0
mov ecx, dword [0x1008c72c]
test ecx, ecx
je 0x10048009
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
xor ecx, ecx
test esi, esi
je 0x10047fda
cmp byte [esi], 0
mov byte [esi], 0
movzx edx, byte [esi + 1]
cmove edx, ecx
mov ecx, edx
lea edx, [eax + 5]
mov byte [eax + 4], 1
mov byte [eax + 5], cl
mov eax, edx
pop esi
pop edi
pop ebp
ret
push 0x1008c72c
call fcn.1005e6b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x10047f89
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x1008c72c
mov edi, eax
call fcn.1005e6b0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x10047fb9
push 8
push 4
call fcn.1005eeb0
int3
Function at 0x10048030
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100488d0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x1008c73c]
test eax, eax
je 0x10048143
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x10048083
cmp dword [eax + 4], 0
jne 0x1004813e
mov eax, dword [0x1008c73c]
test eax, eax
je 0x10048165
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x10048182
test eax, eax
jne 0x100480f8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1008c73c
movzx eax, byte [0x1008c829]
push 4
push 0xc
call fcn.10002ab0
add esp, 8
test eax, eax
je 0x100481ae
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x1008c73c]
test ecx, ecx
je 0x10048196
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x1004810d
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x1004810f
mov ecx, dword [esi + 4]
jmp 0x1004810f
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x1004813e
test edx, edx
je 0x1004813e
lock dec dword [edx]
jne 0x1004813e
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.100381c0
mov eax, esi
add eax, 8
jmp 0x10048184
push 0x1008c73c
call fcn.1005e6b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x10048079
jmp 0x10048083
push 0x1008c73c
call fcn.1005e6b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x100480a1
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1008c73c
mov edi, eax
call fcn.1005e6b0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x100480ec
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.1005eeb0
add esp, 8
ud2