joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45af15
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x28
mov eax, 0x498229
call fcn.0045d7db
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
and dword [ebp - 0x2c], 0
xor edi, edi
push ebx
call fcn.00404257
and dword [ebp - 4], edi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45af56
xor esi, esi
jmp 0x45aff8
and eax, 0x10
push 0x5c
mov dword [ebp - 0x34], eax
pop edx
je 0x45af8f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp dx, word [ecx + eax*2 - 2]
je 0x45af8f
push 0x49a8b4
call fcn.0047a35c
pop ecx
push eax
push 0x49a8b4
lea ecx, [ebp - 0x28]
call fcn.004047c2
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x1c]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x45afa5
mov eax, dword [eax]
push dword [esi + 0x2c]
push ecx
push eax
call fcn.00482c24
add esp, 0xc
test eax, eax
jne 0x45afbb
mov edi, dword [esi + 0x2c]
jmp 0x45afe5
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x34]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x45afd1
mov eax, dword [eax]
push dword [esi + 0x44]
push ecx
push eax
call fcn.00482c24
add esp, 0xc
test eax, eax
jne 0x45afff
mov edi, dword [esi + 0x44]
cmp edi, dword [ebp - 0x18]
jne 0x45afff
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0045b0c3
mov esi, dword [ebp - 0x2c]
xor edi, edi
jmp 0x45b0ae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
lea esi, [edi + 1]
cmovae eax, edx
push 0x5c
pop ecx
cmp word [eax + edi*2], cx
cmovne esi, edi
cmp dword [ebx + 0x14], 8
jb 0x45b021
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x14]
xor edi, edi
cmp word [ebx + esi*2], di
jne 0x45b041
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
lea esi, [eax + esi*2]
cmp word [esi], di
jne 0x45b056
mov eax, edi
jmp 0x45b05d
push esi
call fcn.0047a35c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403126
cmp dword [ebp - 0x34], edi
je 0x45b09a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 0x5c
pop edx
cmp dx, word [ecx + eax*2 - 2]
je 0x45b09a
mov ebx, 0x49a8b4
push ebx
call fcn.0047a35c
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004047c2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00403013
mov eax, esi
call fcn.0045d785
ret 4

Function at 0x46050e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10011410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1001141f
pop dword [ebp - 0x44]
mov eax, 0xa26a1ed
sub eax, 0xfa258dce
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x56cd4b9f
sub dword [ebp - 0x54], 0x87b0654
mov dword [ebp - 0x50], 0xa3eea99f
add dword [ebp - 0x50], 0x8e44a2a6
mov dword [ebp - 0x4c], 0xb390a6dd
sub dword [ebp - 0x4c], 0x674462af
mov dword [ebp - 0x48], 0xb6a40c96
sub dword [ebp - 0x48], 0xb6a40c96
lea eax, [ebp - 0x54]
push eax
mov eax, 0xd4ffb647
sub eax, 0xc4fb457f
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xc4e058a4
sub dword [ebp - 0x54], 0x506def4e
mov dword [ebp - 0x50], 0x1cf9a522
add dword [ebp - 0x50], 0x2472bc53
mov dword [ebp - 0x4c], 0x57063e53
sub dword [ebp - 0x4c], 0xf396d1e7
mov dword [ebp - 0x48], 0x1b028e8c
add dword [ebp - 0x48], 0xe4fd7174
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xbd525276
add eax, 0x52b21e6e
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x44853
push 0
call eax
mov ecx, 0x6ee324bb
sub ecx, 0x6ee2d418
mov esi, eax
mov edx, 0x54611652
add edx, 0xbba519ae
add edx, dword [ebp - 0x44]
mov ebx, 0xe35d32e
sub dword [ebp - 0x10], 0x7cd7d23e
mov edi, dword [edx]
mov dword [ebp - 4], 0x4543c1e1
xor edi, ebx
add dword [ebp - 0x20], 0x9a41e379
mov dword [esi], edi
xor dword [ebp - 0x2c], 0x78460fa1
add esi, 0x64fc373f
add esi, 0x9b03c8c5
add edx, 0x77030daf
add edx, 0x88fcf255
loop 0x1001153b
add eax, 0xd2ae5614
add eax, 0x2d52df4b
xor ebx, ebx
add ebx, eax
add eax, 0x7479f89d
add eax, 0x8b860768
mov ecx, 0x12ea67c8
add ecx, 0xfd159838
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x405d6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x405d79
pop dword [ebp - 0x28]
mov eax, 0xbeaedb35
sub eax, 0xbe6e7dbc
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xc5bd24f0
add dword [ebp - 0x38], 0x8895205b
mov dword [ebp - 0x34], 0xeb4ba43f
sub dword [ebp - 0x34], 0xb91857fa
mov dword [ebp - 0x30], 0x311432f3
add dword [ebp - 0x30], 0x1b38113b
mov dword [ebp - 0x2c], 0x2456af9a
add dword [ebp - 0x2c], 0xdba95066
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xd8c8ad59
sub dword [ebp - 0x38], 0x64564403
mov dword [ebp - 0x34], 0x92696781
add dword [ebp - 0x34], 0xaf02f9f4
mov dword [ebp - 0x30], 0x74546c3a
sub dword [ebp - 0x30], 0x10e4ffce
mov dword [ebp - 0x2c], 0xc2897568
add dword [ebp - 0x2c], 0x3d768a98
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xb35517a3
sub eax, 0xb314a783
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x39447
push 0
call eax
mov ecx, 0x4e36
xor edi, edi
add edi, eax
mov edx, 0xda46586c
add edx, 0x25fa6f94
add edx, dword [ebp - 0x28]
mov esi, 0x6aee40e4
sub esi, 0xd7b77969
mov ebx, dword [edx]
mov dword [ebp - 8], 0x8d5464e6
add ebx, esi
xor dword [ebp - 8], eax
mov dword [edi], ebx
sub dword [ebp - 0x1c], 0x4acc8d67
add edi, 0x12348457
add edi, 0xedcb7bad
add edx, 4
loop 0x405e92
add eax, 0x7cc2d2fd
sub eax, 0x7cc1a752
mov ebx, eax
add eax, 0x6c77ded6
add eax, 0x9388212f
mov ecx, 0xefe0ffa2
add ecx, 0x105f005e
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x417f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x417f3d
pop dword [ebp - 0x50]
mov eax, 0x8aaa5850
add eax, 0x759726ed
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3a118
push 0
mov eax, 0x9ad17fad
add eax, 0x6571107f
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x9276a3af
sub ecx, 0x9276579b
xor edi, edi
add edi, eax
mov edx, 0x436e00
add edx, dword [ebp - 0x50]
mov esi, 0x13f7acb7
add esi, 0x793029cb
sub dword [ebp - 0x28], esi
mov ebx, dword [edx]
xor dword [ebp - 0x3c], 0x6c120b4b
xor ebx, esi
sub dword [ebp - 0x38], ebx
mov dword [edi], ebx
xor dword [ebp - 0x28], 0x684e3ae5
add edi, 0xfe5cfefa
sub edi, 0xfe5cfef6
add edx, 0xa8978d37
sub edx, 0xa8978d33
loop 0x417f98
add eax, 0x12323
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x181c530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x181c552
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x181c559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x181c548
mov eax, 1
add ebx, ebx
jne 0x181c56b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x181c560
jne 0x181c57c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x181c560
xor ecx, ecx
sub eax, 3
jb 0x181c590
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x181c602
mov ebp, eax
add ebx, ebx
jne 0x181c59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x181c5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x181c5cc
inc ecx
add ebx, ebx
jne 0x181c5b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x181c5ad
jne 0x181c5c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x181c5ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x181c5ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x181c5dd
jmp 0x181c54e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x181c5ec
add edi, ecx
jmp 0x181c54e
pop esi
mov edi, esi
mov ecx, 0x271
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x181c60a
cmp byte [edi], 1
jne 0x181c60a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x181c60f
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x181c687
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c720]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c7f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x181c63c
mov ecx, edi
jns 0x181c66b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c800]
or eax, eax
je 0x181c681
mov dword [ebx], eax
add ebx, 4
jmp 0x181c659
call dword [esi + 0x1c7fc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x181c6b8
cmp al, 0xef
ja 0x181c6ab
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x181c68d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x181c69a
mov ebp, dword [esi + 0x1c804]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x181c6ec
sub esp, 0xffffff80
jmp 0x1803cbd
Function at 0x401000
Capabilities:
Accept command line arguments
Access peb ldr_data
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
push edi
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401174
cmp dword [esp + 0x14], 1
jl 0x401174
xorps xmm0, xmm0
mov dword [esp + 0x38], 0x44
push str.KrkrUniversalPatch.dll
lea eax, [esp + 0x1c]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movaps xmmword [esp + 0x28], xmm0
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x1c]
sub ecx, 0x10
mov edi, ecx
mov ecx, dword [ecx + 0x10]
sub ecx, 0x10
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x4010e4
mov eax, dword [edx]
mov esi, dword [edx + 4]
and eax, 0xffdfffdf
and esi, 0xffdfffdf
cmp eax, 0x45004b
jne 0x4010e4
cmp esi, 0x4e0052
jne 0x4010e4
mov eax, dword [edx + 8]
mov esi, dword [edx + 0xc]
and eax, 0xffdfffdf
and esi, 0xffdfffdf
cmp eax, 0x4c0045
jne 0x4010e4
cmp esi, 0x120013
jne 0x4010e4
cmp word [edx + 0x10], 0x2e
je 0x4010ea
cmp edi, ecx
jne 0x401091
xor ecx, ecx
mov ecx, dword [ecx + 0x18]
mov edx, 0x638020fb
call fcn.004015c0
push 0
lea ecx, [esp + 0x24]
mov dword [0x4145a8], eax
push ecx
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push str.haramimura.exe
push 0
push 0
call eax
test eax, eax
je 0x40115c
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub esp, 0xc
push eax
call fcn.00401330
add esp, 0x10
push 0
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Krkr_Universal_Patch
push str.Couldnt_Launch_Game
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4011e0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
mov eax, 0x5a4d
push edi
cmp word [esi], ax
jne 0x401240
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x401240
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
je 0x40121a
mov edx, 0x20b
cmp cx, dx
jne 0x401240
mov ecx, 0x88
jmp 0x40121f
mov ecx, 0x78
mov edx, dword [eax + 0x50]
lea edi, [eax + ecx]
mov ecx, edi
call fcn.004011a0
test eax, eax
je 0x401240
mov eax, dword [edi]
cmp dword [eax + esi + 0x1c], edx
jae 0x401240
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x405db0
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 0x405e00
cmp edi, esi
jb 0x405e6b
cmp edi, dword [ebp + 0x10]
ja 0x405e7e
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x405e02
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x405df0
jmp 0x405e5f
ja 0x405e09
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x405dc5
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 0x405e40
mov ebx, esi
sub ecx, edx
jns 0x405e57
jmp 0x405e61
cmp esi, edi
je 0x405e92
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x405e61
xor al, 1
cmp ebx, edi
jne 0x405e20
jmp 0x405e61
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.004049f0
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x8eecd4
call fcn.00404300
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.00404620
add esp, 4
ud2
Function at 0x410170
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 0x410187
test eax, eax
jne 0x4102e8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102e8
mov dword [ebp - 0x10], 0
jmp 0x4101a7
mov edi, dword [edi + 8]
test edi, edi
je 0x4101d6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410327
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4101a0
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 0x4101a0
test byte [ebp - 0x10], 1
je 0x4102e8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102e8
mov dword [ebp - 0x10], 0
jmp 0x410207
mov edi, dword [edi + 8]
test edi, edi
je 0x410236
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410327
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x410200
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 0x410200
test byte [ebp - 0x10], 1
je 0x4102e8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102e8
mov dword [ebp - 0x10], 0
jmp 0x410267
mov edi, dword [edi + 8]
test edi, edi
je 0x410296
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410327
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x410260
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 0x410260
test byte [ebp - 0x10], 1
je 0x4102e8
mov edi, dword [0x8fa0c4]
test edi, edi
je 0x4102e8
mov dword [ebp - 0x10], 0
jmp 0x4102b7
mov edi, dword [edi + 8]
test edi, edi
je 0x4102e2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410327
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4102b0
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 0x4102b0
test byte [ebp - 0x10], 1
jne 0x4102f2
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x8fa0c4]
jmp 0x4102fd
mov edi, dword [edi + 8]
test edi, edi
je 0x4102e8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410327
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4102fa
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x4102fa
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.00404620
add esp, 4
ud2
Function at 0x410ef0
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 0x410f1a
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x410f2f
cmp dword [eax + 4], 0
mov edi, eax
je 0x410f2f
add edi, 8
jmp 0x410fee
mov ecx, 0x445030
call fcn.00411280
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x410f0a
mov eax, dword [0x445030]
test eax, eax
je 0x410fd3
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x410fec
mov esi, eax
test eax, eax
jne 0x410fa2
movzx eax, byte [0x8fa060]
mov eax, dword [0x8fa0c0]
test eax, eax
jne 0x410f74
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x411000
mov dword [0x8fa0c0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x411000
mov dword [eax], 0x445030
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x445030]
test eax, eax
je 0x410ff4
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 0x410fee
test ecx, ecx
je 0x410fee
lock dec dword [ecx]
jne 0x410fee
call fcn.00411030
jmp 0x410fee
mov ecx, 0x445030
call fcn.00411280
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x410f4c
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x445030
call fcn.00411280
jmp 0x410f9b
mov ecx, 4
mov edx, 0x10
call fcn.00403700
ud2
Function at 0x411280
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 0x4112e9
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 0x41131f
cmp dword [ebp - 0x14], 0
je 0x411306
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x411333
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 0x4112d0
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x411315
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x41136f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x41130a
mov edi, dword [ebp - 0x10]
jmp 0x411315
mov edi, dword [esi]
jmp 0x411314
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.004113a0
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.00403c20
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.00411400
ud2
Function at 0x413160
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 0x413185
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x41319a
cmp dword [eax + 4], 0
je 0x41319a
add eax, 8
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411280
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x413179
mov eax, dword [0x445020]
test eax, eax
je 0x413219
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x41322e
mov esi, eax
test eax, eax
jne 0x413201
movzx eax, byte [0x8fa060]
mov eax, dword [0x8fa0c0]
test eax, eax
jne 0x4131d3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x41323f
mov dword [0x8fa0c0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x41323f
mov dword [eax], 0x445020
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x445020]
test eax, eax
je 0x413233
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.00411280
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x4131af
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411280
jmp 0x4131fa
mov ecx, 4
mov edx, 0x10
call fcn.00403700
ud2