joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488b10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
push edi
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x50fd18], eax
je 0x488b34
pop edi
mov eax, 0x10dd
pop ebx
add esp, 0x10
ret 8
mov eax, dword [0x50fd1c]
cmp eax, edi
jne 0x488d52
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x488b56
pop edi
mov eax, 6
pop ebx
add esp, 0x10
ret 8
push esi
mov esi, dword [eax]
cmp esi, edi
jne 0x488b7a
pop esi
pop edi
mov dword [0x50fd20], eax
mov dword [0x50fd1c], 6
mov eax, 6
pop ebx
add esp, 0x10
ret 8
push ebp
mov dword [esp + 0x10], edi
call fcn.00488640
mov esi, dword [esp + 0x28]
mov ebp, eax
call fcn.00488640
mov dword [esp + 0x28], eax
cmp eax, ebp
jne 0x488ba8
cmp dword [0x50fd14], ebx
jne 0x488ce8
jmp 0x488cc6
push 0x18
call fcn.004b383b
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x488bc2
lea ebx, [eax + 8]
jmp 0x488cc6
mov eax, ebp
call fcn.00488330
mov edi, eax
test edi, edi
jne 0x488bd7
lea ebx, [eax + 8]
jmp 0x488cc6
mov esi, ebp
xor ebx, ebx
jmp 0x488be0
lea eax, [ebx + edi]
push eax
lea edx, [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0
call fcn.00488d60
cmp dword [esp + 0x14], 0
mov esi, eax
jne 0x488c29
mov ecx, dword [esp + 0x1c]
mov ebx, esi
sub ebx, ebp
call fcn.00488280
test eax, eax
jne 0x488c29
cmp ebx, 5
jl 0x488be0
cmp ebx, 0x12
jbe 0x488c45
mov ebx, 6
jmp 0x488cc6
cmp ebx, 5
jge 0x488c1a
cmp dword [0x50fd14], 0
mov ebx, 9
jne 0x488ccc
jmp 0x488cc6
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1c], ecx
lea ecx, [ebx + edi]
lea edx, [ebx + ebp]
mov dword [edi + 0x18], edx
lea eax, [edi + 0x17]
lea esi, [ecx + 5]
mov byte [eax], bl
mov byte [ecx], 0xe9
inc ecx
sub edx, esi
mov dword [ecx], edx
add ecx, 4
call fcn.00488250
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x18]
push edx
push 0x40
push ebx
push ebp
mov dword [esp + 0x28], 0
call esi
test eax, eax
je 0x488cbe
mov ecx, ebp
call fcn.00488590
mov ebx, eax
test ebx, ebx
je 0x488d22
mov eax, 0x6544
cmp word [ebx + 0x1c], ax
je 0x488d22
lea ecx, [esp + 0x28]
push ecx
push 0x40
push 0x40
push ebx
mov dword [esp + 0x38], 0
call esi
test eax, eax
jne 0x488cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x50fd1c], ebx
test edi, edi
je 0x488cd7
mov eax, edi
call fcn.00488560
mov eax, dword [esp + 0x10]
test eax, eax
je 0x488ce8
push eax
call fcn.004b3716
add esp, 4
mov edx, dword [esp + 0x24]
pop ebp
pop esi
pop edi
mov eax, ebx
mov dword [0x50fd20], edx
pop ebx
add esp, 0x10
ret 8
mov eax, 0x6544
mov word [ebx + 0x1c], ax
mov ecx, 0x6f74
mov edx, 0x7275
mov eax, 0x2173
mov word [ebx + 0x1e], cx
mov word [ebx + 0x20], dx
mov word [ebx + 0x22], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [0x50fd28]
mov dword [eax + 0xc], ebp
mov dword [eax + 4], 0
mov dword [eax + 0x10], edi
mov edx, dword [esp + 0x18]
pop ebp
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x50fd28], eax
xor eax, eax
pop esi
pop edi
pop ebx
add esp, 0x10
ret 8
Function at 0x490010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0
je 0x490176
cmp byte [0x50d327], 0
je 0x490176
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.004b5895
add esp, 8
test eax, eax
je 0x49006d
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004b63d9
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x490097
mov ecx, dword [esi + 4]
mov dword [ebp - 0x230], ecx
jmp 0x4900a0
lea edx, [esi + 4]
mov dword [ebp - 0x230], edx
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x22c], eax
call fcn.0048f300
add esp, 8
cmp dword [ebp - 0x214], 0
je 0x49016b
push 0x44
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.004b4970
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x284], 0x44
call fcn.00431660
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x49014b
mov ecx, dword [ebp - 0x240]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x240]
push eax
call esi
jmp 0x49016b
push 0x40010
push 0x4e3064
push 0
lea ecx, [ebp - 0x228]
call fcn.00431660
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x228]
call fcn.00401d80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b3721
mov esp, ebp
pop ebp
ret
Function at 0x491370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.0049f040
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x491397
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

Function at 0x491400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.0049f040
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x491416
mov eax, dword [eax + 4]
jmp 0x491419
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49142d
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4916d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.0049f040
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x49177f
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00401d10
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00489700
mov ecx, eax
call fcn.00489a90
push eax
mov ecx, esi
call fcn.00489910
lea ecx, [ebp - 0x248]
call fcn.004896d0
lea ecx, [ebp - 0x264]
call fcn.004896d0
cmp dword [ebp - 0x214], 8
jb 0x49176e
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.004b3716
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004b3721
mov esp, ebp
pop ebp
ret

Function at 0x491870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.0049f040
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x49192f
cmp eax, 0x104
ja 0x49192f
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.00401d10
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00489700
mov ecx, eax
call fcn.00489a90
push eax
mov ecx, esi
call fcn.00489910
lea ecx, [ebp - 0x244]
call fcn.004896d0
lea ecx, [ebp - 0x260]
call fcn.004896d0
cmp dword [ebp - 0x210], 8
jb 0x49191e
mov edx, dword [ebp - 0x224]
push edx
call fcn.004b3716
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004b3721
mov esp, ebp
pop ebp
ret
Function at 0x492320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x24], 0
call fcn.0049f040
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x49234f
mov ebx, dword [edi]
jmp 0x492351
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x492373
pop edi
shr al, 4
pop esi
and al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00489930
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x492389
mov edi, dword [edi]
mov ecx, dword [ebp - 0xc]
push eax
push edi
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00406fb0
test eax, eax
jne 0x4923b8
lea ecx, [ebp - 0x20]
call fcn.004896d0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
call fcn.00492320
add esp, 4
test al, al
je 0x49239d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4923ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49239d
push esi
call fcn.00491400
add esp, 4
test al, al
je 0x49239d
lea ecx, [ebp - 0x20]
call fcn.004896d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004b3721
mov esp, ebp
pop ebp
ret

Function at 0x492410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call fcn.0049f040
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x49242e
mov eax, dword [eax + 4]
jmp 0x492431
add eax, 4
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], 0
test esi, esi
je 0x49246e
lea ecx, [ebp + 8]
call fcn.00491fb0
cmp esi, 0xffffffff
je 0x492467
mov dword [ebp + 8], esi
jmp 0x49246a
mov esi, dword [ebp + 8]
test esi, esi
jne 0x49247e
lea ecx, [ebp + 8]
call fcn.00491fb0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 4]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4924af
mov esi, dword [ebp - 4]
cmp esi, edi
jne 0x4924af
lea ecx, [ebp + 8]
call fcn.00491fb0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
call fcn.00491fb0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4979e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
push eax
xor ebx, ebx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x497a47
call fcn.0048ffc0
cmp eax, 4
jg 0x497a37
push 4
push 0x24
push str.._threading_thread_local_win.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.00490c40
add eax, 4
push str.Failed_to_TlsSetValue__.
push eax
call fcn.0046d940
add esp, 8
test bl, 1
je 0x497a47
lea ecx, [ebp - 0x98]
call fcn.00490680
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497a50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp + 8], 0xffffffff
cmp eax, 0xffffffff
jne 0x497aa4
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.0048a740
add esp, 0xc
test eax, eax
je 0x497aa4
push eax
push 0x12
push str.._threading_thread_local_win.cc
lea ecx, [ebp - 0x94]
call fcn.00490c90
lea ecx, [ebp - 0x94]
call fcn.00490680
mov esp, ebp
pop ebp
ret

Function at 0x49f650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
jbe 0x49f678
call fcn.004a0ef0
cmp eax, 1
jl 0x49f678
mov dword [ebp - 4], 0x10000
jmp 0x49f67a
xor edi, edi
push 8
call fcn.004b383b
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
add esp, 4
push 0
mov esi, eax
mov eax, dword [ebp + 0xc]
push edx
push esi
push 0x49f610
test ebx, ebx
push edi
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x49f6c1
push esi
call fcn.004b3716
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x49f6d0
pop edi
mov dword [ebx], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0cd0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x148], ebx
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004a0c80
push 0x118
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004b4970
add esp, 0x10
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x4a0d6b
test ecx, ecx
jle 0x4a0df0
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4a0df0
cmp eax, 6
jne 0x4a0d9b
cmp byte [ebp - 6], 1
jne 0x4a0d93
sub ecx, ebx
je 0x4a0d8b
sub ecx, 1
je 0x4a0d83
mov dword [esi], eax
jmp 0x4a0df0
mov dword [esi], 5
jmp 0x4a0df0
mov dword [esi], 3
jmp 0x4a0df0
mov dword [esi], 4
jmp 0x4a0df0
jle 0x4a0df0
cmp dword [0x50d30c], 1
jne 0x4a0dda
call fcn.0048ffc0
cmp eax, 3
jg 0x4a0dda
push 3
push 0x39
push str..winwindows_version.cc
lea ecx, [ebp - 0x1dc]
mov ebx, 1
call fcn.00490c40
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0046d940
add esp, 8
test bl, 1
je 0x4a0dea
lea ecx, [ebp - 0x1dc]
call fcn.00490680
mov dword [esi], 7
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
xor eax, eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x144], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x144]
test eax, eax
je 0x4a0e6e
cmp eax, 6
je 0x4a0e65
cmp eax, 9
jne 0x4a0e75
mov dword [esi + 0x18], 1
jmp 0x4a0e75
mov dword [esi + 0x18], 2
jmp 0x4a0e75
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3721
mov esp, ebp
pop ebp
ret
Function at 0x4a0f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.004b75d0
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x4f3738
push eax
call fcn.00491790
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a0f45
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.004b8862
add esp, 0x10
test eax, eax
jbe 0x4a0f8e
test edi, edi
je 0x4a0f73
push eax
lea ecx, [ebp - 0x10004]
push ecx
mov ecx, edi
call fcn.0046b660
push esi
push 0x10000
lea edx, [ebp - 0x10004]
push 1
push edx
call fcn.004b8862
add esp, 0x10
test eax, eax
ja 0x4a0f60
push esi
call fcn.004b79aa
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004b3721
mov esp, ebp
pop ebp
ret

Function at 0x4a1440
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
xor ebx, ebx
cmp dword [0x5042a0], 0xffffffff
push esi
push edi
mov dword [ebp - 4], ebx
jne 0x4a14d1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp dword [0x50d30c], 1
mov esi, eax
jne 0x4a14a4
call fcn.0048ffc0
cmp eax, 3
jg 0x4a14a4
cmp esi, 0xffffffff
jne 0x4a14a4
push 3
push 0x37
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.00490c40
add eax, 4
push str.Check_failed:_value___TLS_OUT_OF_INDEXES.
push eax
call fcn.0046d940
add esp, 8
test bl, 1
je 0x4a14b7
lea ecx, [ebp - 0x98]
and ebx, 0xfffffffe
call fcn.00490680
push 0xffffffffffffffff
push esi
push 0x5042a0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x4a14d1
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
cmp dword [0x50d30c], 1
jne 0x4a151c
call fcn.0048ffc0
cmp eax, 3
jg 0x4a151c
mov eax, dword [0x5042a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a151c
push 3
push 0x43
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x98]
or ebx, 2
call fcn.00490c40
add eax, 4
push str.Check_failed:__TlsGetValue_tls_key__.
push eax
call fcn.0046d940
add esp, 8
test bl, 2
je 0x4a152c
lea ecx, [ebp - 0x98]
call fcn.00490680
push 0x100
lea ecx, [ebp - 0x198]
push 0
push ecx
call fcn.004b4970
mov eax, dword [0x5042a0]
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.004a2026
mov ebx, eax
add esp, 4
mov ecx, 0x40
lea esi, [ebp - 0x198]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x5042a0]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x5042a0]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x4a169d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4a169c
push esi
push edi
mov ecx, 0x40
mov esi, ebx
lea edi, [ebp - 0x104]
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x5042a0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004b3add
add esp, 4
mov ebx, 0x40
mov esi, dword [0x5042a4]
dec esi
xor edi, edi
xor dl, dl
cmp esi, edi
jle 0x4a162c
mov eax, dword [ebp + esi*4 - 0x104]
cmp eax, edi
je 0x4a1627
mov ecx, dword [esi*4 + 0x50d5a8]
cmp ecx, edi
je 0x4a1627
push eax
mov dword [ebp + esi*4 - 0x104], edi
call ecx
add esp, 4
mov dl, 1
dec esi
cmp esi, edi
jg 0x4a1602
dec ebx
cmp ebx, edi
jle 0x4a1637
test dl, dl
jne 0x4a15f3
jmp 0x4a168c
cmp dword [0x50d30c], 1
jne 0x4a1679
call fcn.0048ffc0
cmp eax, 3
jg 0x4a1679
push 3
push 0xbe
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x198]
mov ebx, 1
call fcn.00490c40
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0046d940
add esp, 8
jmp 0x4a167c
mov bl, byte [ebp - 4]
test bl, 1
je 0x4a168c
lea ecx, [ebp - 0x198]
call fcn.00490680
mov edx, dword [0x5042a0]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a16d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x5042a0]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x4a16f7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4a16fc
call fcn.004a1440
push 0x5042a4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
dec eax
mov dword [esi + 4], eax
cmp dword [0x50d30c], 1
jne 0x4a1764
call fcn.0048ffc0
cmp eax, 3
jg 0x4a1764
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jg 0x4a1764
push str.slot____0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00495210
add esp, 0xc
cmp eax, ebx
je 0x4a1764
push eax
push 3
push 0x65
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00490d30
lea ecx, [ebp - 0x9c]
call fcn.00490680
mov eax, dword [esi + 4]
cmp eax, 0x40
jl 0x4a17c3
cmp dword [0x50d30c], 1
jne 0x4a17a9
call fcn.0048ffc0
cmp eax, 3
jg 0x4a17a9
push 3
push 0x67
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x130]
mov ebx, 1
call fcn.00490c40
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0046d940
add esp, 8
test bl, 1
je 0x4a17b9
lea ecx, [ebp - 0x130]
call fcn.00490680
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov dword [eax*4 + 0x50d5a8], edx
mov byte [esi], 1
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a17e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5042a0]
sub esp, 0x9c
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4a1806
call fcn.004a1440
mov edi, eax
cmp dword [0x50d30c], 1
jne 0x4a18c8
call fcn.0048ffc0
cmp eax, 3
jg 0x4a1867
mov eax, dword [esi + 4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
test eax, eax
jg 0x4a1867
push str.slot____0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00495210
add esp, 0xc
test eax, eax
je 0x4a1867
push eax
push 3
push 0x7f
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00490d30
lea ecx, [ebp - 0x9c]
call fcn.00490680
cmp dword [0x50d30c], 1
jne 0x4a18c8
call fcn.0048ffc0
cmp eax, 3
jg 0x4a18c8
mov eax, dword [esi + 4]
cmp eax, 0x40
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], eax
jl 0x4a18c8
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00495210
add esp, 0xc
test eax, eax
je 0x4a18c8
push eax
push 3
push 0x80
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00490d30
lea ecx, [ebp - 0x9c]
call fcn.00490680
mov edx, dword [esi + 4]
mov eax, dword [edi + edx*4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a18e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5042a0]
sub esp, 0x9c
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4a1906
call fcn.004a1440
mov edi, eax
cmp dword [0x50d30c], 1
jne 0x4a19cb
call fcn.0048ffc0
cmp eax, 3
jg 0x4a196a
mov eax, dword [esi + 4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
test eax, eax
jg 0x4a196a
push str.slot____0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00495210
add esp, 0xc
test eax, eax
je 0x4a196a
push eax
push 3
push 0x88
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00490d30
lea ecx, [ebp - 0x9c]
call fcn.00490680
cmp dword [0x50d30c], 1
jne 0x4a19cb
call fcn.0048ffc0
cmp eax, 3
jg 0x4a19cb
mov eax, dword [esi + 4]
cmp eax, 0x40
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], eax
jl 0x4a19cb
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00495210
add esp, 0xc
test eax, eax
je 0x4a19cb
push eax
push 3
push 0x89
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x9c]
call fcn.00490d30
lea ecx, [ebp - 0x9c]
call fcn.00490680
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [edi + edx*4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b3721
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x504f68]
jne 0x4b372b
repz ret
jmp fcn.004c0973