joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aee40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov edi, dword [ecx]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
test edx, edx
mov edx, 0
je 0x100aef5a
mov esi, edi
add edi, ebp
xor edx, edx
mov dword [esp], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 4], esi
nop
cmp esi, edi
je 0x100aef53
movzx ebx, byte [esi]
lea eax, [esi + 1]
movzx ecx, bl
test bl, bl
js 0x100aeeb0
mov esi, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x100aef48
jmp 0x100aef53
cmp eax, edi
je 0x100aeeec
movzx eax, byte [esi + 1]
add esi, 2
and eax, 0x3f
and ecx, 0x1f
cmp bl, 0xdf
jbe 0x100aeef8
cmp esi, edi
je 0x100aef07
movzx ebp, byte [esi]
inc esi
and ebp, 0x3f
shl eax, 6
or eax, ebp
cmp bl, 0xf0
jb 0x100aef15
mov ebp, dword [esp + 0x14]
cmp esi, edi
je 0x100aef28
movzx ebx, byte [esi]
inc esi
and ebx, 0x3f
jmp 0x100aef2a
xor eax, eax
mov esi, edi
and ecx, 0x1f
cmp bl, 0xdf
ja 0x100aeec6
shl ecx, 6
or ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x100aef48
jmp 0x100aef53
xor ebp, ebp
mov esi, edi
shl eax, 6
or eax, ebp
cmp bl, 0xf0
jae 0x100aeedb
mov ebp, dword [esp + 0x14]
shl ecx, 0xc
or ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x100aef48
jmp 0x100aef53
xor ebx, ebx
and ecx, 7
shl eax, 6
shl ecx, 0x12
or eax, ecx
or eax, ebx
cmp eax, 0x110000
mov ecx, eax
je 0x100aef53
add ecx, 0xffffffd0
cmp ecx, 0xa
jae 0x100aef53
inc edx
cmp dword [esp + 0x20], edx
jne 0x100aee80
mov edi, dword [esp + 4]
mov eax, dword [esp]
cmp edx, eax
jb 0x100aefc9
test edx, edx
mov eax, ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
sete ch
sub eax, edx
sete cl
or cl, ch
jne 0x100aef80
cmp ebp, edx
jbe 0x100aefd7
cmp byte [edi + edx], 0xbf
jle 0x100aefd7
test cl, cl
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
jne 0x100aef9e
cmp ebp, edx
jbe 0x100aefe2
cmp byte [edi + edx], 0xbf
jle 0x100aefe2
mov esi, dword [esp + 0x1c]
lea ecx, [edi + edx]
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [esp + 8]
push edx
push edi
push eax
call fcn.100e46d0
add esp, 0xc
movzx eax, byte [esp + 8]
mov esi, dword [esp + 0xc]
xor eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov edx, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.100034a0
ud2
lea eax, [esp + 0x2c]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
call fcn.10019530
ud2
Function at 0x100c2500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1019d13c]
test eax, eax
je 0x100c2527
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x100c253e
xor edi, edi
mov esi, eax
cmp eax, 1
je 0x100c25ba
jmp 0x100c257a
push 0x1019d13c
call fcn.100cc460
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
jne 0x100c2518
push 4
push 0x10
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100c25c2
mov dword [eax], 0
mov dword [eax + 0xc], 0x1019d13c
mov esi, eax
mov eax, dword [0x1019d13c]
test eax, eax
jne 0x100c2573
push 0x1019d13c
call fcn.100cc460
add esp, 4
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
je 0x100c25ba
test eax, eax
je 0x100c25ba
lock dec dword [eax]
jne 0x100c25ba
lea ecx, [esp + 8]
call fcn.100c1c20
mov eax, edi
add esp, 0xc
pop esi
pop edi
ret
push 4
push 0x10
call fcn.100da490
add esp, 8
ud2
Function at 0x100c3350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x444
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100d27f0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x450]
push 0x400
push 0
push eax
call fcn.100f20e0
add esp, 0xc
mov esi, 0x200
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 2
cmp esi, 0x201
jae 0x100c33e2
jmp 0x100c3410
cmp edi, esi
mov esi, edi
jb 0x100c3462
cmp esi, 0x201
jb 0x100c3410
mov dword [ebp - 0x20], esi
sub esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 0
mov edx, esi
call fcn.100c1b20
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ebx
jmp 0x100c341d
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x450]
push 0
call sub.KERNEL32.dll_SetLastError
push ebx
push esi
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x100c343e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x100c34ce
cmp edi, esi
jne 0x100c33d0
mov dword [ebp - 0x20], ebx
call sub.KERNEL32.dll_GetLastError
mov ebx, dword [ebp - 0x20]
cmp eax, 0x7a
jne 0x100c33d0
add esi, esi
cmp esi, 0x201
jae 0x100c33e2
jmp 0x100c3410
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp eax, edi
jb 0x100c34ef
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.100cf560
add esp, 0xc
mov eax, dword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
movsd qword [ebp - 0x50], xmm0
mov dword [esi + 0xc], eax
movsd qword [esi + 4], xmm0
mov dword [esi], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100c34b8
add eax, eax
je 0x100c34b8
push 2
push eax
push dword [ebp - 0x24]
call fcn.10017710
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x444
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 1
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x100c34a6
jmp 0x100c34b8
push eax
push edi
call fcn.100e2170
add esp, 8
ud2
Function at 0x100c45d0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, esp
mov edx, dword [edx]
mov dword [esp], 0
push 0
push edi
push ecx
push eax
push edx
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x100c4605
mov eax, dword [esp]
mov dword [esi + 4], eax
jmp 0x100c461d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x100c4616
cmp eax, 0xe8
jne 0x100c4629
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi], eax
mov eax, esi
add esp, 4
pop esi
pop edi
ret
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x100c461f

Function at 0x100c4640
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, esp
mov edx, dword [edx]
mov dword [esp], 0
push 0
push edi
push ecx
push eax
push edx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x100c4677
mov eax, dword [esp]
mov dword [esi + 4], eax
xor eax, eax
jmp 0x100c468b
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x100c49d0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp byte [edx], 0
je 0x100c49f9
mov ecx, esi
push edi
push eax
call fcn.100c4a60
add esp, 8
jmp 0x100c4a3e
mov ecx, esp
mov edx, eax
push edi
call fcn.100d1c60
add esp, 4
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
cmp dword [esp], 1
jne 0x100c4a1b
mov dword [esi], edi
mov dword [esi + 4], ebx
jmp 0x100c4a3e
push 0
push edi
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x100c4a47
mov byte [esi], 3
test ebx, ebx
je 0x100c4a3e
add ebx, ebx
je 0x100c4a3e
push 2
push ebx
push edi
call fcn.10017710
add esp, 0xc
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
test ebx, ebx
jne 0x100c4a2e
jmp 0x100c4a3e
Function at 0x100c5cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100d28d0
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ebx, dword [edi + 8]
mov dword [ebp - 0x44], edi
mov esi, ebx
mov dword [ebp - 0x20], ebx
cmp ebx, esi
mov dword [ebp - 0x40], ebx
jne 0x100c5d42
nop dword [eax + eax]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3c]
mov edx, edi
push 1
push 0x20
mov dword [ebp - 0x28], esi
push esi
call fcn.100c1ed0
add esp, 0xc
cmp dword [ebp - 0x3c], 1
je 0x100c5e30
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [edi + 4]
cmp eax, ecx
mov dword [edi + 8], eax
jb 0x100c5e3d
mov esi, eax
mov eax, esi
sub eax, ebx
jb 0x100c5e1d
mov edx, dword [ebp - 0x30]
mov ecx, dword [edi]
mov edx, dword [edx]
add ecx, ebx
mov dword [ebp - 0x3c], 0
push 0
lea esi, [ebp - 0x3c]
push esi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x100c5d90
mov edx, dword [ebp - 0x3c]
mov ecx, edx
mov esi, edx
and ecx, 0xffffff00
and esi, 0xffff0000
jmp 0x100c5dc0
xor esi, esi
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xe8
je 0x100c5db0
cmp eax, 0x6d
mov ecx, 0
mov edx, 0
je 0x100c5dc0
jmp 0x100c5df1
xor ecx, ecx
xor edx, edx
nop word cs:[eax + eax]
nop
and ecx, 0xff00
movzx eax, dl
or ecx, esi
or eax, ecx
je 0x100c5de4
mov esi, dword [edi + 8]
add ebx, eax
cmp ebx, esi
mov dword [ebp - 0x40], ebx
je 0x100c5d00
jmp 0x100c5d42
mov ecx, ebx
xor edx, edx
xor esi, esi
xor eax, eax
sub ecx, dword [ebp - 0x20]
jmp 0x100c5dfa
xor ecx, ecx
mov esi, 1
xor edx, edx
or ecx, edx
or edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [edi + 8], ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push esi
push ebx
call fcn.100e21d0
add esp, 8
jmp 0x100c5e5d
cmp dword [ebp - 0x34], 0
jne 0x100c5e49
call fcn.100da7a0
jmp 0x100c5e5d
push eax
push ecx
call fcn.100e21d0
add esp, 8
jmp 0x100c5e5d
push 0x10184050
push 0x28
push str.internal_error:_entered_unreachable_code_::core::macros::panic_macros_
call fcn.100df260
add esp, 0xc
ud2
Function at 0x100c8130
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, closesocket
cmp eax, 0x7fffffff
cmovb edx, eax
push 2
push edx
push dword [esp + 0x18]
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x100c8162
mov dword [esi + 4], eax
jmp 0x100c8175
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100c817d
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
ret
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, esi
pop esi
ret

Function at 0x100c81a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, closesocket
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x100c81d2
mov dword [esi + 4], eax
jmp 0x100c81e5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100c81ed
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
ret
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, esi
pop esi
ret

Function at 0x100c8290
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, closesocket
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x100c82c8
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
ret
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, esi
pop esi
ret

Function at 0x100c8350
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x100c838b
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
ret
mov byte [esi], 3
mov eax, esi
add esp, 4
pop esi
ret
Function at 0x100ca150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x94], 0x100d2960
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x90]
mov edi, dword fs:[0]
mov dword [esi + 0x90], edi
lea edi, [esi + 0x14]
mov dword fs:[0], ecx
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov word [esi + 0x34], 0
mov dword [esi + 0x24], 7
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], 0x2000000
lea ecx, [esi + 8]
push edi
push eax
call fcn.100cfda0
add esp, 8
mov edx, dword [esi + 0xc]
cmp dword [esi + 8], 1
jne 0x100ca210
mov eax, dword [esi + 0x10]
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 1
cmp byte [esi + 0x3c], 2
jae 0x100ca239
jmp 0x100ca27c
lea ecx, [esi + 0x38]
mov dword [esi + 0x98], 0
mov dword [esi + 4], edx
call fcn.100cff60
push dword [esi + 4]
call sub.KERNEL32.dll_CloseHandle
cmp dword [esi + 0x38], 1
jne 0x100ca280
cmp byte [esi + 0x3c], 2
jb 0x100ca27c
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
mov dword [esi + 4], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x98], 1
push eax
call dword [ecx]
add esp, 4
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100ca26f
push dword [eax + 8]
push ecx
push dword [edi]
call fcn.10017710
add esp, 0xc
push 4
push 0xc
push edi
call fcn.10017710
add esp, 0xc
xor eax, eax
jmp 0x100ca282
mov al, 1
mov ecx, dword [esi + 0x90]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ca2f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x94], 0x100d2970
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x90]
mov edi, dword fs:[0]
mov dword [esi + 0x90], edi
lea edi, [esi + 0x14]
mov dword fs:[0], ecx
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov word [esi + 0x34], 0
mov dword [esi + 0x24], 7
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], 0x2000000
lea ecx, [esi + 8]
push edi
push eax
call fcn.100cfda0
add esp, 8
mov edx, dword [esi + 0xc]
cmp dword [esi + 8], 1
jne 0x100ca3b0
mov eax, dword [esi + 0x10]
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 1
cmp byte [esi + 0x3c], 2
jae 0x100ca3d9
jmp 0x100ca41c
lea ecx, [esi + 0x38]
mov dword [esi + 0x98], 0
mov dword [esi + 4], edx
call fcn.100cff60
push dword [esi + 4]
call sub.KERNEL32.dll_CloseHandle
cmp dword [esi + 0x38], 1
jne 0x100ca420
cmp byte [esi + 0x3c], 2
jb 0x100ca41c
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
mov dword [esi + 4], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x98], 1
push eax
call dword [ecx]
add esp, 4
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100ca40f
push dword [eax + 8]
push ecx
push dword [edi]
call fcn.10017710
add esp, 0xc
push 4
push 0xc
push edi
call fcn.10017710
add esp, 0xc
xor eax, eax
jmp 0x100ca43c
mov eax, dword [esi + 0x58]
test eax, 0x400
sete cl
test dword [esi + 0x74], 0x20000000
sete dl
shr al, 4
or dl, cl
and al, dl
mov ecx, dword [esi + 0x90]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ca4f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100d2980
mov ecx, dword [ebp + 8]
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ecx]
jmp 0x100ca535
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, 2
mov esi, eax
test eax, eax
je 0x100ca54f
cmp esi, 1
jne 0x100ca560
cmp byte [ebp + 0xc], 0
je 0x100ca6e4
mov ecx, dword [ebp + 8]
mov eax, esi
lock cmpxchg dword [ecx], edx
jne 0x100ca53a
jmp 0x100ca66c
cmp esi, 3
je 0x100ca6af
mov eax, esi
and eax, 3
cmp eax, 2
je 0x100ca58a
jmp 0x100ca704
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x100ca530
mov eax, dword [0x1019d13c]
test eax, eax
je 0x100ca5b0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100ca5cf
cmp dword [eax], 1
mov dword [ebp - 0x10], 0xffffffff
jne 0x100ca5cf
add eax, 4
jmp 0x100ca5e3
mov dword [ebp - 0x10], 0xffffffff
push 0x1019d13c
call fcn.100cc460
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x100ca59e
mov dword [ebp - 0x10], 0xffffffff
call fcn.100c2500
test eax, eax
je 0x100ca6c0
mov ecx, eax
call fcn.100cbfd0
mov ecx, esi
mov dword [ebp - 0x28], eax
mov eax, esi
mov esi, dword [ebp + 8]
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x26]
and ecx, 0xfffffffc
mov dword [ebp - 0x24], ecx
lock cmpxchg dword [esi], edx
je 0x100ca63c
mov esi, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100ca580
lock dec dword [eax]
jne 0x100ca580
lea ecx, [ebp - 0x28]
call fcn.100c1c20
jmp 0x100ca580
mov dword [ebp - 0x10], 1
call fcn.100c2a70
movzx eax, byte [ebp - 0x20]
test al, al
je 0x100ca630
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100ca530
lock dec dword [eax]
jne 0x100ca530
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xffffffff
call fcn.100c1c20
jmp 0x100ca530
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x28], eax
xor eax, eax
cmp esi, 1
mov dword [ebp - 0x24], 1
sete al
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call dword [eax + 0xc]
add esp, 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.100ca790
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
push 0x101841f8
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyedsrclibstd_threadmod.rs
call fcn.100df0e0
add esp, 0xc
ud2
mov ecx, str.Once_instance_has_previously_been_poisoned
mov edx, 0x2a
mov dword [ebp - 0x10], 0xffffffff
push 0x10184850
call fcn.100cdf40
add esp, 4
ud2
mov ecx, str.assertion_failed:_state_and_queue__STATE_MASK__RUNNING
mov edx, 0x39
mov dword [ebp - 0x10], 0xffffffff
push 0x10184814
call fcn.100cdf40
add esp, 4
ud2
Function at 0x100cc180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100d2a20
mov ecx, dword fs:[0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x1019d13c]
test eax, eax
jne 0x100cc1d4
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
push 0x1019d13c
call fcn.100cc460
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100cc1f3
cmp dword [eax], 1
jne 0x100cc1f3
add eax, 4
mov ecx, dword [eax]
inc ecx
test ecx, ecx
jg 0x100cc216
jmp 0x100cc2d8
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
call fcn.100c2500
test eax, eax
je 0x100cc356
mov ecx, dword [eax]
inc ecx
test ecx, ecx
jle 0x100cc2d8
cmp dword [eax + 4], 0
jne 0x100cc305
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [0x1019d13c]
test eax, eax
jne 0x100cc247
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 1
push 0x1019d13c
call fcn.100cc460
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100cc26c
cmp dword [eax], 1
mov ecx, eax
jne 0x100cc26c
add ecx, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp dword [ecx], 0
je 0x100cc295
jmp 0x100cc32c
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 1
call fcn.100c2500
mov ecx, eax
test eax, eax
je 0x100cc379
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp dword [ecx], 0
jne 0x100cc32c
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x28], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x100cc2bc
lock dec dword [eax]
jne 0x100cc2bc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 3
lea ecx, [eax + 4]
call fcn.100c1c20
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
inc dword [ecx]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
push 0x10183eb0
push 0x10183f8c
push eax
push 0x18
push str.already_mutably_borrowedD_
call fcn.100df140
add esp, 0x14
jmp 0x100cc3bc
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
mov ecx, str.assertion_failed:_c.borrow__.is_none__
mov edx, 0x26
push 0x10184a70
call fcn.100cdf40
add esp, 4
jmp 0x100cc3bc
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x20]
push 0x10183e88
push 0x10183f7c
push eax
push 0x10
push str.already_borrowed_rustc_8d69840ab92ea7f4d323420088dd8c9775f180cd_srclibcorecell.rs
call fcn.100df140
add esp, 0x14
jmp 0x100cc3bc
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 0x20]
push 0x10184170
push 0x10183f6c
push eax
push 0x46
push 0x1018410f
call fcn.100df140
add esp, 0x14
jmp 0x100cc3bc
mov eax, dword [ebp - 0x28]
lock dec dword [eax]
jne 0x100cc394
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 0
call fcn.100c1c20
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
push 0x10184170
push 0x10183f6c
push eax
push 0x46
push 0x1018410f
call fcn.100df140
add esp, 0x14
ud2