joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451e80
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45202b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45200c
mov dl, 1
mov eax, dword [0x412708]
call fcn.004034fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042b8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451ffb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043fd2c
test al, al
je 0x451fee
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45203c
lea eax, [ebp - 0x254]
call fcn.00409218
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451fee
xor eax, eax
push ebp
push 0x451fe7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452074
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451fd0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404528
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451fd0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451fee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451ef1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004162f8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452032
lea eax, [ebp - 0x260]
call fcn.004042b8
ret

Function at 0x4529bc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47bb44]
cmp byte [eax + 0xa5], 0
jne 0x452a2d
cmp dword [0x47bb5c], 0
jne 0x4529ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452978
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47bb5c], eax
cmp dword [0x47bb58], 0
jne 0x452a09
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47bb58], eax
cmp dword [0x47bb60], 0
jne 0x452a2d
push esp
push 0
push 0
push 0x45291c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47bb60], eax
pop edx
ret
Function at 0x4530c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47bb44]
cmp dword [eax + 0x30], 0
je 0x45316a
cmp dword [ebx + 0x94], 0
jne 0x453164
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453050
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453164
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45312a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453164
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004146f4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453139
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453cc8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453cfd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004043a8
jmp 0x453d0a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040430c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454e1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454e5d
mov eax, esi
call fcn.0043b308
test al, al
je 0x454e5d
mov eax, dword [ebx + 0x84]
call fcn.0043b004
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454e5d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b004
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x404a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404ad8
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x404ad0
cmp ebx, ebp
ja 0x404b46
cmp ebp, dword [esp + 0x1c]
ja 0x404b52
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x404ad2
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x404ac0
jmp 0x404b2f
ja 0x404ad8
cmp edx, edi
mov ebx, ebp
jne 0x404a95
mov edx, dword [esp + 0x24]
test edx, edx
je 0x404b33
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x404b10
mov esi, edi
sub ecx, ebx
jns 0x404b27
jmp 0x404b35
cmp edi, edx
je 0x404b3c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x404b35
xor al, 1
cmp esi, edx
jne 0x404af0
jmp 0x404b35
xor eax, eax
jmp 0x404b35
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x702e50
call fcn.006676e0
push 0x702e60
push ebp
push ebx
call fcn.00667b20
push 0x702e60
push dword [esp + 0x20]
push ebp
call fcn.00667b00
int3
Function at 0x406f40
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], 0x40e970
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 0x406fd0
jmp 0x406fbe
jbe 0x407056
cmp edi, 0x201
jae 0x406fd0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x454]
mov esi, edi
jmp 0x407001
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x406ff5
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.00667c30
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 0x407025
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4070c3
cmp edi, esi
jne 0x406fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4070e2
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x406fbe
jmp 0x406fd0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x4070ff
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.00408320
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 0x4070ad
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.0040ec40
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], bind
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40709d
jmp 0x4070ad
mov dword [ebp - 0x10], 0
push 0x704960
push 0x28
push str.internal_error:_entered_unreachable_code_
call fcn.006677d0
add esp, 0xc
jmp 0x40710e
push 0x704950
push eax
push edi
call fcn.00667b00
add esp, 0xc
ud2
Function at 0x40c640
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 0x40c684
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 0x40c68a
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 0x40c6c6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x40c6e8
test eax, eax
js 0x40c6d2
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x40c6db
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], 0x7045a8
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.00407f20
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00406040
mov ecx, 7
int 0x29
ud2
Function at 0x40ce80
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], 0x40eb00
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x40cebe
test eax, eax
jne 0x40d03a
mov ebx, dword [0x7863ac]
test ebx, ebx
je 0x40d03a
mov dword [ebp - 0x20], 0
jmp 0x40cee7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40cf18
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40d08b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40cee0
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 0x40cee0
test byte [ebp - 0x20], 1
je 0x40d03a
mov ebx, dword [0x7863ac]
test ebx, ebx
je 0x40d03a
mov dword [ebp - 0x20], 0
jmp 0x40cf47
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40cf78
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40d08b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40cf40
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 0x40cf40
test byte [ebp - 0x20], 1
je 0x40d03a
mov ebx, dword [0x7863ac]
test ebx, ebx
je 0x40d03a
mov dword [ebp - 0x20], 0
jmp 0x40cfa7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40cfd8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40d08b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40cfa0
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 0x40cfa0
test byte [ebp - 0x20], 1
je 0x40d03a
mov ebx, dword [0x7863ac]
test ebx, ebx
je 0x40d03a
mov dword [ebp - 0x20], 0
jmp 0x40d007
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40d034
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40d08b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d000
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 0x40d000
test byte [ebp - 0x20], 1
jne 0x40d054
movzx eax, byte [0x716b40]
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 [0x7863ac]
jmp 0x40d05f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40d03a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40d08b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d05c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x40d05c
mov dword [ebp - 0x10], 0
push 0x7048e0
call fcn.006676e0
add esp, 4
ud2
Function at 0x40e460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x73ba74]
mov esi, ecx
test eax, eax
je 0x40e486
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40e49f
cmp dword [eax + 4], 0
je 0x40e49f
add eax, 8
pop esi
pop edi
ret
push 0x73ba74
call fcn.00667eb0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x40e47a
mov eax, dword [0x73ba74]
test eax, eax
je 0x40e539
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40e556
test eax, eax
jne 0x40e500
movzx eax, byte [0x7863ed]
push 4
push 0x10
call fcn.0040ec30
add esp, 8
test eax, eax
je 0x40e570
mov dword [eax], 0x73ba74
mov dword [eax + 4], 0
mov ecx, dword [0x73ba74]
test ecx, ecx
je 0x40e55b
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x40e520
mov edx, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp edx, 1
mov edx, 0
jne 0x40e524
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x40e524
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
ret
push 0x73ba74
call fcn.00667eb0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40e4bd
xor eax, eax
pop esi
pop edi
ret
push 0x73ba74
mov edi, eax
call fcn.00667eb0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x40e4f4
push 0x10
push 4
call fcn.00668260
int3
Function at 0x40e580
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], 0x40eb50
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 [0x73ba84]
test eax, eax
je 0x40e693
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40e5d3
cmp dword [eax + 4], 0
jne 0x40e68e
mov eax, dword [0x73ba84]
test eax, eax
je 0x40e6b5
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40e6d2
test eax, eax
jne 0x40e648
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x73ba84
movzx eax, byte [0x7863ed]
push 4
push 0xc
call fcn.0040ec30
add esp, 8
test eax, eax
je 0x40e6fe
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x73ba84]
test ecx, ecx
je 0x40e6e6
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x40e65d
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x40e65f
mov ecx, dword [esi + 4]
jmp 0x40e65f
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 0x40e68e
test edx, edx
je 0x40e68e
lock dec dword [edx]
jne 0x40e68e
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00406890
mov eax, esi
add eax, 8
jmp 0x40e6d4
push 0x73ba84
call fcn.00667eb0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x40e5c9
jmp 0x40e5d3
push 0x73ba84
call fcn.00667eb0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40e5f1
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 0x73ba84
mov edi, eax
call fcn.00667eb0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x40e63c
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.00668260
add esp, 8
ud2
Function at 0x40e740
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], 0x40eb60
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 [0x73ba94]
test eax, eax
je 0x40e853
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40e793
cmp dword [eax + 4], 0
jne 0x40e84e
mov eax, dword [0x73ba94]
test eax, eax
je 0x40e875
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40e892
test eax, eax
jne 0x40e808
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x73ba94
movzx eax, byte [0x7863ed]
push 4
push 0xc
call fcn.0040ec30
add esp, 8
test eax, eax
je 0x40e8be
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x73ba94]
test ecx, ecx
je 0x40e8a6
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x40e81d
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x40e81f
mov ecx, dword [esi + 4]
jmp 0x40e81f
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 0x40e84e
test edx, edx
je 0x40e84e
lock dec dword [edx]
jne 0x40e84e
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004068f0
mov eax, esi
add eax, 8
jmp 0x40e894
push 0x73ba94
call fcn.00667eb0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x40e789
jmp 0x40e793
push 0x73ba94
call fcn.00667eb0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40e7b1
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 0x73ba94
mov edi, eax
call fcn.00667eb0
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x40e7fc
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.00668260
add esp, 8
ud2
Function at 0x421d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6687e5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x73bb00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x38]
call fcn.00422ee0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00422ee0
mov bh, byte [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test bh, bh
je 0x421dc1
push 0x67a95c
push str.TW_TEXTURED
mov ecx, edi
call fcn.00417260
mov bl, byte [ebp + 0x18]
test bl, bl
je 0x421dd9
push 0x67a95c
push str.TW_ROTATIONLESS
mov ecx, edi
call fcn.00417260
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
push 0x8b31
push str.shader_primex.vert
push esi
push edi
call fcn.00422fd0
push 0x8b30
push str.shader_primex.frag
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00422fd0
test bh, bh
jne 0x421e0c
test bl, bl
je 0x421e13
mov ecx, edi
call fcn.004173b0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00424240
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00424200
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00424200
mov ecx, esi
call fcn.00424290
mov ecx, esi
call fcn.00422fb0
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x240b8], eax
je 0x421e60
mov ecx, esi
call fcn.004243f0
mov ecx, esi
call fcn.00422fb0
mov dword [edi + 0x240b8], eax
push str.gPos
mov ecx, esi
call fcn.00424270
push str.gTextureSampler
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.00424270
push str.gRotation
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.00424270
push str.gCenter
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.00424270
push str.gVerticesColor
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.00424270
push ecx
mov dword [esp], 0
mov ecx, esi
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call fcn.004243b0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 1
push dword [esi + 0x30]
mov ecx, esi
mov dword [ebp - 0x14], 0
call fcn.004243d0
lea ecx, [ebp - 0x28]
call fcn.00422ef0
lea ecx, [ebp - 0x38]
call fcn.00422ef0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4588b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a6a7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x73bb00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
lea edi, [ecx + 0x80]
movups xmm0, xmmword [eax]
lea esi, [eax + 0x80]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [ecx + 0x40], xmm0
movups xmm0, xmmword [eax + 0x50]
movups xmmword [ecx + 0x50], xmm0
movups xmm0, xmmword [eax + 0x60]
movups xmmword [ecx + 0x60], xmm0
movups xmm0, xmmword [eax + 0x70]
movups xmmword [ecx + 0x70], xmm0
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x108]
mov ecx, dword [eax + 0x104]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov dword [eax + 0x108], 0
mov dword [eax + 0x104], 0
mov eax, dword [eax + 0x100]
mov dword [esi + 0x100], 0
mov dword [edi + 0x100], eax
mov dword [edi + 0x104], ecx
mov dword [edi + 0x108], edx
mov edx, dword [esi + 0x114]
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x10c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x10c], eax
mov dword [edi + 0x110], ecx
mov dword [edi + 0x114], edx
mov al, byte [esi + 0x118]
mov byte [edi + 0x118], al
add edi, 0x11c
mov eax, dword [esi + 0x11c]
push 0x88
mov byte [ebp - 4], 1
mov dword [edi], eax
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.006326f1
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
push 0x10
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 3
call fcn.004417b0
mov ecx, dword [edi + 4]
mov edx, esi
mov eax, dword [edx + 0x120]
mov dword [edi + 4], eax
mov eax, dword [edx + 0x124]
mov dword [edx + 0x120], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0x128]
mov dword [edx + 0x124], ecx
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x12c]
mov dword [edx + 0x128], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 0x130]
mov dword [edx + 0x12c], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edx + 0x134]
mov dword [edx + 0x130], ecx
mov dword [edx + 0x134], 7
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x138]
mov dword [edx + 0x138], 8
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4