joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10073f3c
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, ecx
mov edi, edx
mov ecx, dword [edx + 0x104]
mov edx, dword [edx + 0x108]
push 0x101c82b0
push dword [edi + 0xf8]
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..IndexMut_LT_I_GT__GT_::index_mut::h5c5330ee35215303
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
cmove edx, eax
and dword [ecx + 0x24], 0
and dword [ecx + 0x28], 0
and dword [ecx + 0x2c], 0
mov dword [ecx], edx
mov dword [ecx + 4], 1
mov dword [ecx + 8], eax
lea eax, [ebp - 0x50]
movsd qword [ecx + 0xc], xmm0
movsd qword [ecx + 0x14], xmm0
movsd qword [ecx + 0x1c], xmm0
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [edi + 0x140]
push 0
push 0
push eax
push ecx
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x100740a6
test eax, eax
je 0x10074016
cmp eax, 0x90317
je 0x1007409f
cmp eax, 0x90321
jne 0x100740b1
mov dword [edi + 0x128], 0x10000
mov byte [edi + 0x12c], 0
xor eax, eax
cmp dword [ebp - 0x1c], 5
mov edx, dword [edi + 0xf8]
jne 0x10074001
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::hd0b8a4c36f350581
and dword [edi + 0x16c], 0
jmp 0x100740c2
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x104]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x38]
mov edx, dword [edi + 0x108]
and dword [edi + 0xf0], 0
lea ebx, [edi + 0xe8]
mov dword [ebp - 0x14], ebx
sub eax, ecx
add esi, eax
push esi
push eax
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..Index_LT_I_GT__GT_::index::h250a941603a2b674
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov esi, edx
mov edx, eax
push esi
call sym.alloc::vec::Vec_LT_T_C_A_GT_::extend_from_slice::haa875039e7ca96e2
pop eax
and dword [edi + 0xe4], 0
and dword [edi + 0xe0], 0
xor eax, eax
cmp dword [ebp - 0x1c], 5
mov edx, dword [edi + 0xf8]
jne 0x10074075
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::hd0b8a4c36f350581
mov eax, dword [edi + 0xf8]
xor ecx, ecx
or eax, dword [edi + 0xfc]
mov eax, dword [ebp - 0x10]
sete cl
mov word [eax], 4
mov dword [edi + 0x16c], ecx
jmp 0x100740c7
mov word [esi], 0x104
jmp 0x100740c7
cmp dword [ebp - 0x34], 4
jne 0x100740b9
mov eax, dword [ebp - 0x38]
jmp 0x100740bc
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x100740c7
xor eax, eax
inc eax
mov dword [edi + 0x16c], eax
mov word [esi], 4
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10074f0b
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, ecx
mov edi, edx
mov ecx, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
push 0x101c82b0
push dword [edi + 0x20]
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..IndexMut_LT_I_GT__GT_::index_mut::h5c5330ee35215303
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
cmove edx, eax
and dword [ecx + 0x24], 0
and dword [ecx + 0x28], 0
and dword [ecx + 0x2c], 0
mov dword [ecx], edx
mov dword [ecx + 4], 1
mov dword [ecx + 8], eax
lea eax, [ebp - 0x50]
movsd qword [ecx + 0xc], xmm0
movsd qword [ecx + 0x14], xmm0
movsd qword [ecx + 0x1c], xmm0
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [edi + 0x68]
push 0
push 0
push eax
push ecx
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x10075045
test eax, eax
je 0x10074fd0
cmp eax, 0x90317
je 0x1007503e
cmp eax, 0x90321
jne 0x10075050
mov dword [edi + 0x50], 0x10000
mov byte [edi + 0x54], 0
xor eax, eax
cmp dword [ebp - 0x1c], 5
mov edx, dword [edi + 0x20]
jne 0x10074fbb
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::h523ddb80dbd6cf37
and dword [edi + 0xc0], 0
jmp 0x10075061
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x2c]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x38]
mov edx, dword [edi + 0x30]
and dword [edi + 0x18], 0
lea ebx, [edi + 0x10]
mov dword [ebp - 0x14], ebx
sub eax, ecx
add esi, eax
push esi
push eax
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..Index_LT_I_GT__GT_::index::h250a941603a2b674
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov esi, edx
mov edx, eax
push esi
call sym.alloc::vec::Vec_LT_T_C_A_GT_::extend_from_slice::haa875039e7ca96e2
pop eax
and dword [edi + 0xc], 0
and dword [edi + 8], 0
xor eax, eax
cmp dword [ebp - 0x1c], 5
mov edx, dword [edi + 0x20]
jne 0x1007501a
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::h523ddb80dbd6cf37
mov eax, dword [edi + 0x20]
xor ecx, ecx
or eax, dword [edi + 0x24]
mov eax, dword [ebp - 0x10]
sete cl
mov word [eax], 4
mov dword [edi + 0xc0], ecx
jmp 0x10075066
mov word [esi], 0x104
jmp 0x10075066
cmp dword [ebp - 0x34], 4
jne 0x10075058
mov eax, dword [ebp - 0x38]
jmp 0x1007505b
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x10075066
xor eax, eax
inc eax
mov dword [edi + 0xc0], eax
mov word [esi], 4
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1008cb99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, edx
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x10], ecx
mov ecx, edi
push 0xb
call sym.winreg::to_utf16::hebb9992c2212d8fc
pop eax
lea ebx, [ebp - 0x24]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
mov edx, 0x800
and dword [ebx], 0
mov dword [eax], 0x800
call sym.alloc::vec::Vec_LT_T_GT_::with_capacity::h085c20fd3d97080f
mov edi, dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
push ebx
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1008cbfb
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call sym.alloc::vec::Vec_LT_T_C_A_GT_::reserve::h6ba76762ba16e1f2
jmp 0x1008cbd6
test eax, eax
jne 0x1008cc19
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xb
jbe 0x1008cc35
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0xde
jmp 0x1008cc1f
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
and dword [ecx + 4], 0
lea eax, [ebp - 0x20]
mov dword [ecx], 0x80000000
push eax
call sym.core::ptr::drop_in_place_LT_alloc..vec..Vec_LT_u8_GT__GT_::hc2d4a7daa21d9ff6
pop eax
jmp 0x1008cc4a
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x20]
mov dword [edx + 8], ecx
movsd qword [edx], xmm0
mov byte [edx + 0xc], al
mov ecx, dword [ebp - 0x30]
mov edx, edi
call sym.__LT_alloc..raw_vec..RawVec_LT_T_C_A_GT__u20_as_u20_core..ops..drop..Drop_GT_::drop::h7bb24c24b88caf4f
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1009afc5
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x20], 0
cmp dword [edx + 0xc], 0x80000000
xorps xmm0, xmm0
mov ebx, ecx
movsd qword [ebp - 0x28], xmm0
movsd qword [ebp - 0x30], xmm0
movsd qword [ebp - 0x38], xmm0
movsd qword [ebp - 0x40], xmm0
movsd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x24], 0x400010
je 0x1009b01b
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
cmp dword [edx + 0x18], 0x80000000
je 0x1009b045
mov eax, dword [edx + 0x20]
test eax, eax
je 0x1009b040
mov esi, dword [edx + 0x1c]
xor ecx, ecx
movzx edi, byte [esi]
inc esi
or ecx, dword [edi*4 + 0x101f6824]
dec eax
jne 0x1009b030
jmp 0x1009b042
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov esi, dword [edx + 8]
test esi, esi
je 0x1009b08c
cmp esi, 0x1fffffff
mov dword [ebp - 0x14], ebx
ja 0x1009b10a
mov ebx, dword [edx + 4]
lea edx, [esi*4]
push 4
pop ecx
mov dword [ebp - 0x10], edx
call sym.__ZN63__LT_alloc..alloc..Global_u20_as_u20_core..alloc..Allocator_GT_8allocate17hf6ea05e3b69cdf8fE.852
test eax, eax
je 0x1009b10f
mov edi, eax
xor eax, eax
mov ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp esi, eax
jne 0x1009b07c
mov ebx, dword [ebp - 0x14]
jmp 0x1009b091
xor esi, esi
push 4
pop edi
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x1c]
mov dword [eax + 4], esi
mov dword [eax + 8], edi
push 0
push ecx
push 0
push 0
push eax
push 0
push 2
push 0x101c9eaf
push 0
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x1009b0c1
and dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x1009b0ef
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push 0x10
pop ecx
call sym.__ZN5alloc5alloc15exchange_malloc17h142decb00e75c662E.866
xor ecx, ecx
mov edx, dword [ebp - 0x10]
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [ebx + 4], eax
mov byte [ebx], 4
test esi, esi
je 0x1009b102
shl esi, 2
push 4
pop edx
mov ecx, edi
push esi
call sym.__LT_alloc..alloc..Global_u20_as_u20_core..alloc..Allocator_GT_::deallocate::hcacc92fefce56ab3
pop eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.alloc::raw_vec::capacity_overflow::h5648a8ceafa88914
push 4
pop ecx
mov edx, dword [ebp - 0x10]
call dbg.handle_alloc_error

Function at 0x1009b591
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
lea eax, [ebp - 8]
mov esi, ecx
and dword [eax], 0
push eax
push 0x53
push edx
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x1009b5b3
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x1009b5bc
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 4
pop esi
pop ebp
ret
Function at 0x1009c201
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [ebp + 8]
cmp edx, ecx
jbe 0x1009c211
add eax, ecx
pop ebp
ret
push dword [ebp + 0xc]
call dbg.panic_bounds_check
Function at 0x100a3dec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dl, 4
jne 0x100a3e5b
mov eax, dword [0x102370d4]
cmp eax, 3
jne 0x100a3f37
cmp word [edi], 0
push 2
pop eax
push 0x17
pop ebx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x100a3e74
cmp word [edi], 0
je 0x100a3ec3
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [edi + 4]
lea eax, [edi + 0x14]
mov edx, edi
mov word [ebp - 0xe], 0x17
mov dword [ebp - 0x18], ecx
push 0x1c
pop ebx
mov ecx, ebx
jmp 0x100a3ed7
mov eax, edx
mov byte [esi], dl
shr edx, 0x18
shr eax, 8
mov byte [esi + 3], dl
mov word [esi + 1], ax
mov dword [esi + 4], edi
jmp 0x100a3f5f
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x100a3e8b
cmp eax, 0x2726
jne 0x100a3f50
push 1
push 0
push 0
push 0
push 2
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x100a3f30
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x100a3f41
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
jmp 0x100a3e35
lea eax, [edi + 2]
push 0x10
pop ecx
xorps xmm0, xmm0
mov edx, edi
mov word [ebp - 0xe], 2
push 6
pop ebx
movzx ebx, word [edx + ebx]
movzx edi, word [ebp - 0xe]
mov eax, dword [eax]
lea edx, [ebp - 0x34]
rol bx, 8
mov word [edx], di
mov word [edx + 2], bx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], eax
push ecx
push edx
mov edi, dword [ebp - 0x14]
push edi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x100a3f14
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x100a3f5f
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push edi
call sub.ws2_32.dll_closesocket
jmp 0x100a3f5f
call sub.ws2_32.dll_WSAGetLastError
jmp 0x100a3f50
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
jmp 0x100a3e0d
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call sub.ws2_32.dll_closesocket
mov eax, ebx
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100a5660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0xc
mov eax, dword [0x1016f1c4]
test eax, eax
je 0x100a5735
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100a568e
cmp dword [eax + 4], 0
je 0x100a568e
add eax, 8
jmp 0x100a572f
mov eax, dword [0x1016f1c4]
test eax, eax
je 0x100a5744
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100a572d
test eax, eax
jne 0x100a56fd
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x1016f1c4
movzx eax, byte [0x10237124]
xor ecx, ecx
mov edx, 0xc
call dbg.process_heap_alloc
test eax, eax
je 0x100a5765
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x10]
movsd qword [eax], xmm0
mov ecx, dword [0x1016f1c4]
test ecx, ecx
je 0x100a5753
dec ecx
push eax
push ecx
mov esi, eax
call sub.kernel32.dll_TlsSetValue
mov eax, esi
mov edx, eax
add eax, 8
mov ecx, dword [edx + 8]
cmp dword [edx + 4], 0
mov dword [edx + 4], 1
mov dword [edx + 8], 0
je 0x100a572f
test ecx, ecx
je 0x100a572f
lock dec dword [ecx]
jne 0x100a572f
mov esi, eax
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov eax, esi
jmp 0x100a572f
xor eax, eax
add esp, 0xc
pop esi
pop ebp
ret
mov ecx, 0x1016f1c4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a5675
mov ecx, 0x1016f1c4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a569c
mov ecx, 0x1016f1c4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100a56f2
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
ud2
Function at 0x100a5830
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 0x100a589b
mov eax, dword [dbg.on_tls_callback]
lea edi, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push edi
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x100a58d5
cmp dword [ebp - 0x14], 0
je 0x100a58bc
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x100a58f2
mov ebx, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x102370e4]
mov dword [esi + 8], eax
lock cmpxchg dword [0x102370e4], esi
jne 0x100a5880
push 0
push 0
push edi
call sub.kernel32.dll_InitOnceComplete
mov eax, ebx
jmp 0x100a58cd
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x100a592c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x100a58c0
mov eax, dword [ebp - 0x10]
jmp 0x100a58cd
mov eax, dword [esi]
jmp 0x100a58cc
push dword [ebp - 0x10]
mov esi, eax
call sub.kernel32.dll_TlsFree
mov eax, esi
dec eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x101ce33c
push 0x101ce838
push eax
call dbg.assert_failed<i32, i32>
push 0
push 4
push edi
call sub.kernel32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x101ce828
mov dword [ebp - 0x2c], 0x101ce7ec
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srccharmethods.rs__
mov dword [ebp - 0x20], 0
call dbg.panic_fmt
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x101ce7ec
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srccharmethods.rs__
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dbg.assert_failed<u32, u32>
nop word [eax + eax]
Function at 0x100a5a80
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 0x100a5a97
test eax, eax
jne 0x100a5bf8
mov edi, dword [0x102370e4]
test edi, edi
je 0x100a5bf8
mov dword [ebp - 0x10], 0
jmp 0x100a5ab7
mov edi, dword [edi + 8]
test edi, edi
je 0x100a5ae6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a5c37
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a5ab0
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 0x100a5ab0
test byte [ebp - 0x10], 1
je 0x100a5bf8
mov edi, dword [0x102370e4]
test edi, edi
je 0x100a5bf8
mov dword [ebp - 0x10], 0
jmp 0x100a5b17
mov edi, dword [edi + 8]
test edi, edi
je 0x100a5b46
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a5c37
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a5b10
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 0x100a5b10
test byte [ebp - 0x10], 1
je 0x100a5bf8
mov edi, dword [0x102370e4]
test edi, edi
je 0x100a5bf8
mov dword [ebp - 0x10], 0
jmp 0x100a5b77
mov edi, dword [edi + 8]
test edi, edi
je 0x100a5ba6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a5c37
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a5b70
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 0x100a5b70
test byte [ebp - 0x10], 1
je 0x100a5bf8
mov edi, dword [0x102370e4]
test edi, edi
je 0x100a5bf8
mov dword [ebp - 0x10], 0
jmp 0x100a5bc7
mov edi, dword [edi + 8]
test edi, edi
je 0x100a5bf2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a5c37
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a5bc0
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 0x100a5bc0
test byte [ebp - 0x10], 1
jne 0x100a5c02
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x102370e4]
jmp 0x100a5c0d
mov edi, dword [edi + 8]
test edi, edi
je 0x100a5bf8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a5c37
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a5c0a
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x100a5c0a
mov ecx, 0x101ce85c
call dbg.unwrap_failed
ud2
Function at 0x100a5f60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x1016f1d4]
test eax, eax
je 0x100a5fdf
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100a5f7f
cmp byte [eax + 4], 0
jne 0x100a5fd5
mov eax, dword [0x1016f1d4]
test eax, eax
je 0x100a5feb
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100a5fda
test eax, eax
jne 0x100a5fcf
movzx eax, byte [0x10237124]
xor ecx, ecx
mov edx, 8
call dbg.process_heap_alloc
test eax, eax
je 0x100a6009
mov dword [eax], 0x1016f1d4
mov byte [eax + 4], 0
mov ecx, dword [0x1016f1d4]
test ecx, ecx
je 0x100a5ff7
dec ecx
push eax
push ecx
mov esi, eax
call sub.kernel32.dll_TlsSetValue
mov eax, esi
mov word [eax + 4], 1
add eax, 5
jmp 0x100a5fdc
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x1016f1d4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a5f6e
mov ecx, 0x1016f1d4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a5f89
mov ecx, 0x1016f1d4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100a5fc4
mov ecx, 4
mov edx, 8
call dbg.handle_alloc_error
nop dword [eax + eax]
Function at 0x100a62d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [edx + 8]
call 0x100a6111
pop eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x100a61f9
mov dword [ebp - 0x18], ecx
lea eax, [edx + 0xd]
xor ecx, ecx
mov dword [ebp - 0x14], eax
jmp 0x100a614c
mov ebx, dword [edx + 8]
cmp ecx, ebx
jae 0x100a61fe
mov byte [edx + 0xc], 1
sub ebx, ecx
mov esi, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [edx + 4]
add eax, ecx
mov edx, 0xfffffff5
lea ecx, [ebp - 0x28]
push dword [ebp - 0x14]
push ebx
push eax
call dbg.write
add esp, 0xc
movzx eax, byte [ebp - 0x28]
mov edi, dword [ebp - 0x24]
cmp al, 4
jne 0x100a61a0
mov eax, dword [ebp - 0x28]
mov edx, esi
mov byte [esi + 0xc], 0
movzx ecx, al
mov ecx, dword [ecx*4 + 0x100a62b8]
add ecx, dword [ebp - 0x20]
jmp ecx
test al, al
jne 0x100a617c
cmp edi, 6
jne 0x100a617c
mov edx, esi
mov edi, ebx
mov byte [esi + 0xc], 0
test edi, edi
je 0x100a621f
mov ecx, dword [ebp - 0x10]
add ecx, edi
jmp 0x100a6141
mov byte [ecx], 4
jmp 0x100a625e
mov eax, dword [ebp - 0x18]
test ecx, ecx
mov byte [eax], 4
je 0x100a625e
cmp ebx, ecx
jb 0x100a6270
mov dword [edx + 8], 0
jmp 0x100a625e
mov eax, dword [ebp - 0x18]
mov byte [eax], 2
mov dword [eax + 4], 0x101ccedc
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100a625e
mov eax, edx
mov edx, dword [edx + 8]
mov edi, edx
sub edi, ecx
jb 0x100a6266
mov dword [eax + 8], 0
je 0x100a625e
mov edx, eax
mov eax, dword [eax + 4]
add ecx, eax
push edi
push ecx
push eax
mov esi, edx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esi + 8], edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101f5374
call dbg.slice_end_index_len_fail
mov edx, ebx
push 0x101f5374
call dbg.slice_end_index_len_fail
cmp dword [ebx + 4], 0
mov dword [ebp - 0x14], eax
je 0x100a6290
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 0x1c]
call sym.___rust_dealloc
mov ecx, edi
mov edx, 4
call sym.___rust_dealloc
jmp 0x100a62a1
mov edx, dword [ebp - 0x10]
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_std..io..buffered..bufwriter..BufWriter_LT_W_GT_..flush_buf..BufGuard_GT_::hf941ae27ec065d6f
push dword [ebp - 0x14]
call sym.__Unwind_Resume
call dbg.panic_in_cleanup
add al, 1
add byte [eax], al
sbb dword [eax], eax
add byte [eax], al
add dword [eax], 0
add byte [ebx - 0x60000000], ch
add byte [eax], al
add byte [edi], cl
pop ds
inc eax
add byte [ebp - 0x77], dl
push ebp
mov ebp, esp
push edi
push esi
test edx, edx
je 0x100a6300
mov eax, dword [ecx + 8]
mov esi, eax
sub esi, edx
jb 0x100a6304
mov dword [ecx + 8], 0
je 0x100a6300
mov eax, dword [ecx + 4]
add edx, eax
push esi
push edx
push eax
mov edi, ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [edi + 8], esi
pop esi
pop edi
pop ebp
ret
mov ecx, edx
mov edx, eax
push 0x101f5374
call dbg.slice_end_index_len_fail
nop word cs:[eax + eax]
nop dword [eax]