joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov eax, dword [ecx + 0x14]
mov esi, ecx
lock dec dword [eax]
jne 0x403553
lea ecx, [esi + 0x14]
call fcn.00403b30
cmp dword [esi + 8], 0
je 0x40356a
push dword [esi + 0xc]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0x268]
cmp eax, 0x80000000
je 0x403641
test eax, eax
je 0x403593
push dword [esi + 0x26c]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x274], 0
je 0x4035b0
push dword [esi + 0x278]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x280], 0
je 0x4035cd
push dword [esi + 0x284]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x290], 0
je 0x4035ea
push dword [esi + 0x294]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x2a4], 0
je 0x403607
push dword [esi + 0x2a8]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x2b0], 0
je 0x403624
push dword [esi + 0x2b4]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x2c0], 0
je 0x403641
push dword [esi + 0x2c4]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0x2d4]
cmp eax, 0x80000000
je 0x403683
test eax, eax
je 0x403666
push dword [esi + 0x2d8]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x2e0], 0
je 0x403683
push dword [esi + 0x2e4]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [esi + 0x258], 0x7fffffff
jne 0x4036a3
cmp dword [esi + 0x248], 2
jne 0x4036c0
cmp dword [esi + 0xc8], 2
jne 0x4036df
pop esi
ret
push dword [esi + 0x25c]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 0x248], 2
je 0x403698
lea ecx, [esi + 0xd8]
call fcn.00403350
lea ecx, [esi + 0x198]
call fcn.00403350
cmp dword [esi + 0xc8], 2
je 0x4036a1
add esi, 0x18
mov ecx, esi
pop esi
jmp fcn.00403350
Function at 0x4225e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x422630
cmp esi, edi
ja 0x422698
cmp edi, dword [esp + 0x1c]
ja 0x4226a6
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x422632
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x422620
jmp 0x42268f
ja 0x422638
cmp eax, edx
mov esi, edi
jne 0x4225f3
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x422670
mov ebp, esi
sub ecx, edx
jns 0x422687
jmp 0x422691
cmp esi, edi
je 0x4226b6
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x422691
xor al, 1
cmp ebp, edi
jne 0x422650
jmp 0x422691
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x4e0f90
call fcn.004d6620
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x4e0f90
call fcn.004d6430
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs
mov edx, 0x2b
push 0x4e0f80
call fcn.004d6490
int3
Function at 0x423c30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x810
mov eax, dword [0x537020]
test eax, eax
je 0x423c65
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x423c7b
cmp dword [eax + 4], 0
mov edi, eax
je 0x423c7b
add edi, 8
jmp 0x423e66
mov ecx, 0x537020
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x423c55
mov eax, dword [0x537020]
test eax, eax
je 0x423e4a
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x423e64
mov esi, eax
test eax, eax
jne 0x423cfa
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x423cc2
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x423ea4
mov dword [0x5371d8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x423ea4
mov dword [eax], 0x537020
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x537020]
test eax, eax
je 0x423e86
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x53715c]
cmp eax, 3
jne 0x423e70
mov edi, dword [0x537160]
lock inc dword [edi]
jle 0x423e84
movsd xmm0, qword [0x4e2224]
movsd xmm1, qword [0x4e221c]
mov eax, 0xfffffc00
nop dword [eax]
movsd qword [esp + eax + 0x410], xmm0
movsd qword [esp + eax + 0x408], xmm1
add eax, 0x10
jne 0x423d30
lea eax, [esp + 8]
lea ecx, [esp + 0x408]
push 0x400
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x423d84
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x423e95
mov dword [0x5371d8], eax
push 0x4c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x423e95
mov dword [esp + 4], esi
mov esi, eax
and esi, 0xffffffc0
mov dword [esi + 0x3c], eax
lea ebx, [esi + 0x40]
lea eax, [esi + 0x48]
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], edi
push 0x400
lea ecx, [esp + 0x40c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movaps xmm0, xmmword [0x4de460]
movups xmmword [esi + 0x448], xmm0
mov dword [esi + 0x480], 0
mov eax, dword [edi + 0x100]
mov dword [esi + 0x40], eax
lock cmpxchg dword [edi + 0x100], ebx
je 0x423e0c
nop word [eax + eax]
mov dword [ebx], eax
lock cmpxchg dword [edi + 0x100], ebx
jne 0x423e00
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], 0
lea edi, [eax + 8]
mov dword [eax + 4], 1
mov dword [eax + 8], ebx
je 0x423e66
mov eax, dword [ecx + 0x410]
lea edx, [eax - 1]
mov dword [ecx + 0x410], edx
cmp dword [ecx + 0x40c], 0
jne 0x423e66
cmp eax, 1
jne 0x423e66
call fcn.004d6c40
jmp 0x423e66
mov ecx, 0x537020
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x423c99
xor edi, edi
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004d6e60
mov edi, dword [0x537160]
lock inc dword [edi]
jg 0x423d17
ud2
mov ecx, 0x537020
call fcn.004dccd0
jmp 0x423cf2
mov ecx, 0x40
mov edx, 0x480
call fcn.004d6180
mov ecx, 4
mov edx, 0xc
call fcn.004d6180
int3
Function at 0x429910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x537030]
test eax, eax
je 0x429932
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x429948
cmp dword [eax + 4], 0
je 0x429948
add eax, 8
pop esi
ret
mov ecx, 0x537030
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x429927
mov eax, dword [0x537030]
test eax, eax
je 0x4299db
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4299f5
mov esi, eax
test eax, eax
jne 0x4299bb
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x42998b
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x429a05
mov dword [0x5371d8], eax
push 0x14
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x429a05
mov dword [eax], 0x537030
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x537030]
test eax, eax
je 0x4299f9
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov word [esi + 0xc], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], 0
pop esi
ret
mov ecx, 0x537030
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x429966
xor eax, eax
pop esi
ret
mov ecx, 0x537030
call fcn.004dccd0
jmp 0x4299b3
mov ecx, 4
mov edx, 0x14
call fcn.004d6180
int3
Function at 0x48ff70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
mov dword [esp + 8], ecx
lea eax, [ebx - 1]
cmp eax, edx
jae 0x490100
cmp ebx, edx
jae 0x4900f8
mov ecx, dword [esp + 8]
mov eax, ebx
mov dword [esp + 0x10], edx
shl eax, 4
lea eax, [eax + ecx - 0x10]
mov dword [esp + 0xc], eax
jmp 0x48ffec
add esi, 0xfffffff0
mov ebp, esi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ch, byte [esp + 3]
movzx edx, word [esp + 4]
mov cl, byte [esp + 6]
mov ebx, dword [esp + 0x14]
mov dword [ebp], eax
mov dword [ebp + 4], esi
mov dword [ebp + 8], edi
mov byte [ebp + 0xc], ch
mov word [ebp + 0xd], dx
mov edx, dword [esp + 0x10]
mov byte [ebp + 0xf], cl
add dword [esp + 0xc], 0x10
inc ebx
cmp ebx, edx
je 0x4900f8
mov ebp, dword [esp + 8]
mov esi, ebx
mov dword [esp + 0x14], ebx
shl esi, 4
mov edi, dword [ebp + esi + 8]
mov eax, dword [ebp + esi - 8]
mov ecx, dword [ebp + esi + 4]
mov ebx, edi
sub ebx, eax
cmovb eax, edi
push eax
push dword [ebp + esi - 0xc]
mov dword [esp + 0x20], ecx
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
movzx ecx, byte [ebp + esi + 0xc]
test eax, eax
mov edx, dword [esp + 0x10]
cmovne ebx, eax
xor eax, eax
mov byte [esp + 3], cl
sub cl, byte [ebp + esi - 4]
cmp cl, 0xff
sete al
xor ecx, ecx
test ebx, ebx
mov ebx, dword [esp + 0x14]
sets cl
cmovne eax, ecx
cmp al, 1
jne 0x48ffde
add esi, dword [esp + 8]
mov ebp, dword [esp + 0xc]
dec ebx
mov eax, dword [esi]
movzx edx, byte [esi + 0xf]
movzx ecx, word [esi + 0xd]
movsd xmm0, qword [esi - 0x10]
movsd xmm1, qword [esi - 8]
mov dword [esp + 0x1c], eax
mov byte [esp + 6], dl
mov word [esp + 4], cx
movsd qword [esi], xmm0
movsd qword [esi + 8], xmm1
je 0x48ffa9
nop word [eax + eax]
mov eax, dword [ebp - 8]
mov esi, edi
sub esi, eax
cmovb eax, edi
push eax
push dword [ebp - 0xc]
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
movzx ecx, byte [esp + 3]
test eax, eax
cmovne esi, eax
xor eax, eax
sub cl, byte [ebp - 4]
cmp cl, 0xff
sete al
xor ecx, ecx
test esi, esi
sets cl
cmove ecx, eax
cmp cl, 1
jne 0x48ffae
lea eax, [ebp - 0x10]
dec ebx
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
test ebx, ebx
movsd qword [ebp + 8], xmm1
movsd qword [ebp], xmm0
mov ebp, eax
jne 0x490090
mov ebp, dword [esp + 8]
jmp 0x48ffae
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.assertion_failed:_offset___0__offset___len
mov edx, 0x2e
push 0x4e8290
call fcn.004d6490
int3
Function at 0x4996b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 0x18
mov eax, dword [0x537054]
test eax, eax
je 0x4996d8
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4996ee
cmp dword [eax + 4], 0
je 0x4996ee
add eax, 8
add esp, 0x18
pop esi
ret
mov ecx, 0x537054
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x4996ca
mov eax, dword [0x537054]
test eax, eax
je 0x49978c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4997a6
mov esi, eax
test eax, eax
jne 0x499769
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x499735
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4997ec
mov dword [0x5371d8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4997ec
mov dword [eax], 0x537054
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x537054]
test eax, eax
je 0x4997ad
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, 1
lock xadd dword [0x537050], ecx
test ecx, ecx
je 0x4997b9
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], ecx
add esp, 0x18
pop esi
ret
mov ecx, 0x537054
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x49970c
xor eax, eax
add esp, 0x18
pop esi
ret
mov ecx, 0x537054
call fcn.004dccd0
jmp 0x499761
mov ecx, esp
mov edx, 0x4e7e7c
mov dword [esp], str.regex:_thread_ID_allocation_space_exhausted
mov dword [esp + 4], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_sliceiter.rs
mov dword [esp + 0xc], 0
call fcn.004d6340
mov ecx, 4
mov edx, 0xc
call fcn.004d6180
int3
Function at 0x4c3da0
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 dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4d3eb0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x5371dc]
test al, al
je 0x4c3f71
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c3dec
cmp eax, 3
jne 0x4c3f6a
mov ebx, dword [0x5371e0]
test ebx, ebx
je 0x4c3f6a
mov dword [ebp - 0x20], 0
jmp 0x4c3e17
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4c3e48
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4c3fbb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c3e10
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 0x4c3e10
test byte [ebp - 0x20], 1
je 0x4c3f6a
mov ebx, dword [0x5371e0]
test ebx, ebx
je 0x4c3f6a
mov dword [ebp - 0x20], 0
jmp 0x4c3e77
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4c3ea8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4c3fbb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c3e70
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 0x4c3e70
test byte [ebp - 0x20], 1
je 0x4c3f6a
mov ebx, dword [0x5371e0]
test ebx, ebx
je 0x4c3f6a
mov dword [ebp - 0x20], 0
jmp 0x4c3ed7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4c3f08
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4c3fbb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c3ed0
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 0x4c3ed0
test byte [ebp - 0x20], 1
je 0x4c3f6a
mov ebx, dword [0x5371e0]
test ebx, ebx
je 0x4c3f6a
mov dword [ebp - 0x20], 0
jmp 0x4c3f37
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4c3f64
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4c3fbb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c3f30
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 0x4c3f30
test byte [ebp - 0x20], 1
jne 0x4c3f84
movzx eax, byte [0x534b40]
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 [0x5371e0]
jmp 0x4c3f8f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4c3f6a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4c3fbb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c3f8c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4c3f8c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs
mov edx, 0x2b
push 0x5340a4
call fcn.004d6490
add esp, 4
ud2
Function at 0x4c4d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x5370a8]
test eax, eax
je 0x4c4d48
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4c4d5e
cmp dword [eax + 4], 0
mov edi, eax
je 0x4c4d5e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5370a8
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x4c4d38
mov eax, dword [0x5370a8]
test eax, eax
je 0x4c4e12
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4c4e2c
mov esi, eax
test eax, eax
jne 0x4c4dd9
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x4c4da5
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4c4e3f
mov dword [0x5371d8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4c4e3f
mov dword [eax], 0x5370a8
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5370a8]
test eax, eax
je 0x4c4e33
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4c4d43
test ecx, ecx
je 0x4c4d43
lock dec dword [ecx]
jne 0x4c4d43
call fcn.00425670
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5370a8
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4c4d7c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5370a8
call fcn.004dccd0
jmp 0x4c4dd1
mov ecx, 4
mov edx, 0xc
call fcn.004d6180
int3

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

Disassembly:
push esi
mov eax, dword [0x5370b8]
test eax, eax
je 0x4c5574
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4c54f3
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4c556d
mov eax, dword [0x5370b8]
test eax, eax
je 0x4c5593
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4c55ad
mov esi, eax
test eax, eax
jne 0x4c5567
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x4c553a
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4c55bf
mov dword [0x5371d8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4c55bf
mov dword [eax], 0x5370b8
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x5370b8]
test eax, eax
je 0x4c55b3
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
ret
mov ecx, 0x5370b8
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x4c54eb
jmp 0x4c54f3
mov ecx, 0x5370b8
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4c5511
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x5370b8
call fcn.004dccd0
jmp 0x4c555f
mov ecx, 4
mov edx, 8
call fcn.004d6180
int3
Function at 0x4c6460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x537098]
test eax, eax
je 0x4c6482
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4c6498
cmp dword [eax + 4], 0
je 0x4c6498
add eax, 8
pop esi
ret
mov ecx, 0x537098
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x4c6477
mov eax, dword [0x537098]
test eax, eax
je 0x4c651e
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4c6538
mov esi, eax
test eax, eax
jne 0x4c6507
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x4c64d7
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4c6548
mov dword [0x5371d8], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4c6548
mov dword [eax], 0x537098
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x537098]
test eax, eax
je 0x4c653c
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
mov ecx, 0x537098
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4c64b2
xor eax, eax
pop esi
ret
mov ecx, 0x537098
call fcn.004dccd0
jmp 0x4c64ff
mov ecx, 4
mov edx, 0x10
call fcn.004d6180
int3
Function at 0x4c7130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x4d4040
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4c7243
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.004c72e0
mov ecx, eax
or ecx, edx
je 0x4c722f
push edx
push eax
push ebx
push dword [esi]
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.004d42d0
mov ecx, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 0x24], eax
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
imul ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esi]
sub edx, eax
sbb ebx, ecx
mov eax, edx
imul ecx, ebx, 0x3b9aca00
mov ebx, 0x3b9aca00
mul ebx
add edx, ecx
push dword [esi + 0x20]
push edi
push edx
push eax
call fcn.004d42d0
mov ebx, eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 4], 0x3b9aca00
add eax, edx
add edi, ebx
adc eax, ecx
push 0
push 0x3b9aca00
push eax
push edi
call fcn.004d42d0
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.attempt_to_divide_by_zero_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_strpattern.rs
mov edx, 0x19
push 0x533544
call fcn.004d6490
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x5341a0
push 0x532590
push eax
call fcn.004d6720
add esp, 0xc
ud2
Function at 0x4cced0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4ccf1d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x4ccf2d
mov dword [esi + 4], 0
jmp 0x4ccf3f
cmp eax, 0x103
je 0x4ccf5b
test eax, eax
js 0x4ccf48
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0x533bc4
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.004c4390
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004c44f0
mov ecx, 7
int 0x29
ud2