joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ee7
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f04
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f13
mov ebx, 0x417cc0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f28
mov ecx, dword [0x446f58]
add ecx, eax
push ecx
call fcn.00403116
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030e4
test eax, eax
je 0x40308f
test byte [ebp + 0x17], 0x80
je 0x403078
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x413bf0
mov dword [ebp - 0xc], eax
call fcn.00405d03
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030da
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f78
mov esi, dword [ebp + 0x14]
mov edi, 0x413cc0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
sub dword [ebp + 0x14], esi
mov dword [0x413c08], edi
mov dword [0x413c0c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x413bf0
mov dword [0x413c10], ebx
mov dword [0x413c14], eax
call fcn.00405d23
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403070
mov esi, dword [0x413c10]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409234], 1
mov edi, eax
je 0x40301a
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fe7
cmp dword [ebp + 0x14], 0
jne 0x40301a
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404cee
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403065
cmp dword [ebp + 0x10], eax
jne 0x403043
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp dword [ebp - 0x10], esi
jne 0x403074
add dword [ebp - 4], esi
jmp 0x403059
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x413c10]
jl 0x4030da
cmp dword [ebp - 0x14], 1
jne 0x402f9b
jmp 0x4030da
cmp dword [ebp + 0x14], eax
jg 0x402f6b
jmp 0x4030da
push 0xfffffffffffffffc
jmp 0x403091
push 0xfffffffffffffffe
jmp 0x403091
test edi, edi
je 0x4030cf
cmp dword [ebp + 0x14], esi
jge 0x403084
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030e4
test eax, eax
jne 0x4030d7
push 0xfffffffffffffffd
pop eax
jmp 0x4030dd
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40309f
mov esi, dword [ebp + 0x14]
mov edi, 0x413cc0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp esi, dword [ebp + 0x10]
jne 0x403074
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403094
jmp 0x4030da
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4051b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43e518], 0x44
push eax
xor eax, eax
push 0x43e518
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4051eb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405275
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405517
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052ab
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446f88], eax
jmp 0x405430
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4052c6
test eax, eax
je 0x4053db
test cl, 2
je 0x4053db
mov esi, 0x439d18
push ebx
push esi
call fcn.00405943
cmp dword [ebp + 8], 0
je 0x4052e5
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4052eb
push ebx
call fcn.0040547d
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053d1
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405461
cmp byte [eax], 0
je 0x40533c
cmp byte [ebp - 0x18], 0
je 0x40533c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405352
mov al, byte [esi + 1]
test al, al
je 0x4053b0
cmp al, 0x2e
jne 0x405352
cmp byte [esi + 2], 0
je 0x4053b0
push esi
push edi
call fcn.00405943
test byte [ebp - 0x148], 0x10
je 0x405377
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053b0
push dword [ebp + 0xc]
push ebx
call fcn.00405275
jmp 0x4053b0
push ebx
call fcn.004055fb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053a8
test byte [ebp + 0xc], 4
je 0x4053a0
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push 0
push ebx
call fcn.00405691
jmp 0x4053b0
inc dword [0x446f88]
jmp 0x4053b0
push ebx
push 0xfffffffffffffff2
call fcn.00404cee
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40531a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4053db
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405430
cmp dword [ebp - 8], esi
jne 0x4053f0
inc dword [0x446f88]
jmp 0x405430
push ebx
call fcn.00405beb
test eax, eax
je 0x405430
push ebx
call fcn.00405436
push ebx
call fcn.004055fb
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405428
test byte [ebp + 0xc], 4
je 0x4053e8
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push esi
push ebx
call fcn.00405691
jmp 0x405430
push ebx
push 0xffffffffffffffe5
call fcn.00404cee
pop esi
pop ebx
leave
ret 8
Function at 0x405517
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43bd18
push esi
call fcn.00405943
push esi
call fcn.004054ca
mov edi, eax
test edi, edi
jne 0x405538
xor eax, eax
jmp 0x40558a
push edi
call fcn.00405b52
test byte [0x446f10], 0x80
je 0x405551
mov al, byte [edi]
test al, al
je 0x405534
cmp al, 0x5c
je 0x405534
sub edi, esi
jmp 0x405569
call fcn.00405beb
test eax, eax
je 0x405563
test byte [eax], 0x10
je 0x405534
push esi
call fcn.0040547d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405555
call fcn.00405436
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4055fb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405617
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40561a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405649
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40568d
test edi, edi
jne 0x405654
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405687
Function at 0x405691
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c29
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056b5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4057ee
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43e6a0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43e6a0
je 0x4056f9
push 1
push 0
push esi
call fcn.0040561a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057f4
cmp eax, edi
jg 0x4057f4
mov esi, 0x43e118
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057f4
cmp eax, edi
jg 0x4057f4
push esi
push ebp
push str._s_s_r_n
push 0x43dd18
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446f08]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405965
push 4
push 0xc0000000
push esi
call fcn.0040561a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4057ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4057e7
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4057e7
cmp edi, dword [esp + 0x18]
jne 0x4057e7
push str._Rename__r_n
push esi
call fcn.0040558f
test eax, eax
jne 0x4057fb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405943
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43dd18
push eax
call fcn.004055db
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x446f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409388
push eax
call fcn.0040558f
test eax, eax
je 0x4057b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405822
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405817
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4057b4
Function at 0x40582a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40589b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40588a
cmp dword [ebp + 0x14], 1
je 0x40588c
cmp dword [ebp + 0x14], 2
je 0x40588c
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405965
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x405986
mov ecx, dword [0x442edc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x446f38]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x43eea0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x4000
jae 0x405b2c
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405b2c
mov edx, ebx
sub edx, eax
cmp edx, 0x2000
jge 0x405b39
inc edi
cmp cl, 0xfc
jbe 0x405b1f
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405aca
cmp dword [0x446f84], 0
push 2
pop esi
je 0x405a11
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405a48
mov ecx, eax
and eax, 0x3f
add eax, dword [0x446f38]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.0040582a
cmp byte [ebx], 0
jne 0x405ab1
push dword [ebp - 0xc]
push ebx
call fcn.00405965
jmp 0x405aac
cmp eax, 0x25
jne 0x405a5b
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405aac
cmp eax, 0x24
jne 0x405aa8
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405aa8
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x446f04]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405aa5
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405aac
and byte [ebx], 0
test esi, esi
jne 0x405a70
cmp byte [ebx], 0
je 0x405ac2
cmp dword [ebp - 0xc], 0x1a
jne 0x405ac2
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.00405b52
jmp 0x405b10
cmp byte [ebp + 0xf], 0xfd
jne 0x405afe
cmp esi, 0x1d
jne 0x405ae3
push dword [0x446f04]
push ebx
call fcn.004058a1
jmp 0x405af4
mov eax, esi
shl eax, 0xd
add eax, section..ndata
push eax
push ebx
call fcn.00405943
add esi, 0xffffffeb
cmp esi, 7
jae 0x405b10
jmp 0x405ac2
cmp byte [ebp + 0xf], 0xff
jne 0x405b10
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.00405965
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x43eea0
jmp 0x405b2c
jne 0x405b29
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405b2c
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4059b1
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405b4e
push eax
push dword [ebp + 8]
call fcn.00405943
leave
ret 8
Function at 0x405c95
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43eaa4], 0
push esi
jne 0x405ccc
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ca6
mov dword [ecx*4 + 0x43eaa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ca1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cfd
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43eaa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cdf
pop edi
not eax
pop esi
ret 0xc
Function at 0x405dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x405e10
cmp edi, esi
jb 0x405e7b
cmp edi, dword [ebp + 0x10]
ja 0x405e8e
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x405e12
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x405e00
jmp 0x405e6f
ja 0x405e19
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x405dd5
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x405e50
mov ebx, esi
sub ecx, edx
jns 0x405e67
jmp 0x405e71
cmp esi, edi
je 0x405ea2
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x405e71
xor al, 1
cmp ebx, edi
jne 0x405e30
jmp 0x405e71
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x8eecd4
call fcn.00404a00
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x8eecd4
call fcn.00404310
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov edx, 0x2b
push 0x8eecc4
call fcn.00404630
add esp, 4
ud2
Function at 0x410180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x410197
test eax, eax
jne 0x4102f8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x4101b7
mov edi, dword [edi + 8]
test edi, edi
je 0x4101e6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4101b0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4101b0
test byte [ebp - 0x10], 1
je 0x4102f8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x410217
mov edi, dword [edi + 8]
test edi, edi
je 0x410246
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x410210
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x410210
test byte [ebp - 0x10], 1
je 0x4102f8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x410277
mov edi, dword [edi + 8]
test edi, edi
je 0x4102a6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x410270
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x410270
test byte [ebp - 0x10], 1
je 0x4102f8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x4102c7
mov edi, dword [edi + 8]
test edi, edi
je 0x4102f2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4102c0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4102c0
test byte [ebp - 0x10], 1
jne 0x410302
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x8fa0c4]
jmp 0x41030d
mov edi, dword [edi + 8]
test edi, edi
je 0x4102f8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x41030a
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x41030a
mov edx, 0x2b
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
push 0x8f1b48
call fcn.00404630
add esp, 4
ud2
Function at 0x410f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x445030]
test eax, eax
je 0x410f2a
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x410f3f
cmp dword [eax + 4], 0
mov edi, eax
je 0x410f3f
add edi, 8
jmp 0x410ffe
mov ecx, 0x445030
call fcn.00411290
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x410f1a
mov eax, dword [0x445030]
test eax, eax
je 0x410fe3
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x410ffc
mov esi, eax
test eax, eax
jne 0x410fb2
movzx eax, byte [0x8fa060]
mov eax, dword [0x8fa0c0]
test eax, eax
jne 0x410f84
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x411010
mov dword [0x8fa0c0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x411010
mov dword [eax], 0x445030
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x445030]
test eax, eax
je 0x411004
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [esi + 0xc]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x410ffe
test ecx, ecx
je 0x410ffe
lock dec dword [ecx]
jne 0x410ffe
call fcn.00411040
jmp 0x410ffe
mov ecx, 0x445030
call fcn.00411290
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x410f5c
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x445030
call fcn.00411290
jmp 0x410fab
mov ecx, 4
mov edx, 0x10
call fcn.00403710
ud2
Function at 0x411290
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4112f9
lea ebx, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x41132f
cmp dword [ebp - 0x14], 0
je 0x411316
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x411343
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x8fa0c4]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x8fa0c4], esi
jne 0x4112e0
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x411325
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x41137f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x41131a
mov edi, dword [ebp - 0x10]
jmp 0x411325
mov edi, dword [esi]
jmp 0x411324
mov edi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.004113b0
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x8f1b14
mov dword [ebp - 0x2c], 0x8f1adc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov dword [ebp - 0x20], 0
call fcn.00403c30
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x8f1adc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00411410
ud2
Function at 0x413170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x445020]
test eax, eax
je 0x413195
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x4131aa
cmp dword [eax + 4], 0
je 0x4131aa
add eax, 8
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411290
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x413189
mov eax, dword [0x445020]
test eax, eax
je 0x413229
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x41323e
mov esi, eax
test eax, eax
jne 0x413211
movzx eax, byte [0x8fa060]
mov eax, dword [0x8fa0c0]
test eax, eax
jne 0x4131e3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x41324f
mov dword [0x8fa0c0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x41324f
mov dword [eax], 0x445020
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x445020]
test eax, eax
je 0x413243
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411290
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x4131bf
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411290
jmp 0x41320a
mov ecx, 4
mov edx, 0x10
call fcn.00403710
ud2