joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453070
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 0x453087
test eax, eax
jne 0x4531be
mov esi, dword [0x5b4120]
mov cl, 1
nop
test esi, esi
je 0x4530cd
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x453201
mov esi, dword [esi + 8]
test ebx, ebx
je 0x453090
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x453090
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x453090
test cl, 1
jne 0x4531be
mov esi, dword [0x5b4120]
mov cl, 1
nop
test esi, esi
je 0x45311d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x453201
mov esi, dword [esi + 8]
test ebx, ebx
je 0x4530e0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4530e0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x4530e0
test cl, 1
jne 0x4531be
mov esi, dword [0x5b4120]
mov cl, 1
nop
test esi, esi
je 0x45316d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x453201
mov esi, dword [esi + 8]
test ebx, ebx
je 0x453130
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x453130
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x453130
test cl, 1
jne 0x4531be
mov esi, dword [0x5b4120]
mov cl, 1
nop word [eax + eax]
test esi, esi
je 0x4531b9
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x453201
mov esi, dword [esi + 8]
test ebx, ebx
je 0x453180
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x453180
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x453180
test cl, 1
je 0x4531c8
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x5b4120]
nop
test edi, edi
je 0x4531be
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x453201
mov edi, dword [edi + 8]
test esi, esi
je 0x4531d0
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4531d0
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x4531d0
push 0x584d88
call sym.core::option::unwrap_failed::h400a3d34e496ce4a
add esp, 4
ud2
Function at 0x453220
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x45329e
lea ebx, [edi + 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 - 0x30], eax
jne 0x4532d8
cmp dword [ebp - 0x14], 0
je 0x4532bf
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4532f5
mov esi, eax
mov eax, dword [entry1]
mov eax, dword [0x5b4120]
nop word cs:[eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x5b4120], edi
jne 0x453280
mov eax, esi
inc eax
mov dword [edi], eax
push 0
push 0
push ebx
call sub.kernel32.dll_InitOnceComplete
jmp 0x4532ce
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x453330
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x4532c3
mov esi, dword [ebp - 0x10]
jmp 0x4532ce
mov esi, dword [edi]
jmp 0x4532cd
mov esi, eax
push dword [ebp - 0x10]
call sub.kernel32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov edx, 0x5843a8
push 0x584d64
push eax
call sym.core::panicking::assert_failed::hb8c648543f8d8a15
push 0
push 4
push ebx
call sub.kernel32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x584d1c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x584d54
push eax
call sym.core::panicking::panic_fmt::h653fda680bf9012e
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x584d1c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call sym.core::panicking::assert_failed::h62a725424a957060
nop
Function at 0x453560
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov word [ebp - 0xe], ax
mov eax, dword [0x5b4104]
cmp eax, 4
jne 0x45364e
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
ja 0x453665
lea esi, [ebp - 0x1c4]
push ebx
push edi
push esi
call sym._memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c4], 0
inc ebx
lea eax, [ebp - 0x24]
push ebx
push esi
push eax
call sym.core::ffi::c_str::CStr::from_bytes_with_nul::hb9aff93770f97fb9
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x4535ec
mov eax, dword [0x583230]
mov esi, dword [ebp + 8]
mov ecx, dword [0x583234]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x453676
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3c], 1
push ecx
push edx
push 0
push eax
call sub.ws2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x453637
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x453676
mov eax, dword [ebp - 0x14]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x453676
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h265ad4195d8cf096
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
jbe 0x45359f
lea eax, [ebp - 0x18]
mov ecx, esi
mov edx, edi
push eax
push ebx
call sym.std::sys::pal::common::small_c_string::run_with_cstr_allocating::hf9c0a8f116d16976
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x453690
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x4536f8
mov ebx, dword [eax + 4]
mov eax, dword [0x5b4104]
cmp eax, 4
jne 0x45379f
lea eax, [ebp - 0x34]
push 1
push ebx
push eax
call sym.std::sys::pal::windows::net::Socket::new::h108fc50ba3e954c8
add esp, 0xc
movzx eax, byte [ebp - 0x34]
cmp al, 4
jne 0x453714
mov eax, dword [ebp - 0x30]
cmp word [ebx], 0
mov dword [ebp - 0x18], eax
je 0x45372d
mov ecx, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
lea eax, [ebx + 0x14]
mov edi, 0x1c
mov edx, 0x1c
mov dword [ebp - 0x14], ecx
mov cx, 0x17
jmp 0x453747
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x453795
movzx ecx, byte [ebp - 0x31]
movzx edi, word [ebp - 0x33]
mov edx, dword [ebp - 0x30]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x453795
lea eax, [ebx + 2]
xorps xmm0, xmm0
mov edx, 0x10
mov cx, 2
mov edi, 6
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx edi, word [ebx + edi]
mov eax, dword [eax]
mov word [ebp - 0x34], cx
rol di, 8
mov word [ebp - 0x32], di
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
push edx
lea eax, [ebp - 0x34]
push eax
mov edi, dword [ebp - 0x18]
push edi
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x453781
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x453795
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.ws2_32.dll_closesocket
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h265ad4195d8cf096
jmp 0x4536b8
Function at 0x453c10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 8]
mov dword [esp + 8], pe_nt_image_headers32
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
push ecx
push edx
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x453ceb
movzx ecx, word [esp + 0x20]
mov eax, dword [esp + 8]
cmp ecx, 2
je 0x453d03
cmp ecx, 0x17
jne 0x453d23
cmp eax, 0x1b
jbe 0x453d3a
movsd xmm0, qword [esp + 0x28]
movzx eax, word [esp + 0x22]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov word [esi], 1
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x30]
rol ax, 8
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0xe]
movsd xmm1, qword [esp + 0x16]
movzx edi, word [esp + 0x1e]
movsd qword [esi + 2], xmm0
movsd qword [esi + 0xa], xmm1
mov word [esi + 0x12], di
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
jmp 0x453d33
call sub.ws2_32.dll_WSAGetLastError
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x453d2e
cmp eax, 0xf
jbe 0x453d4b
movzx ecx, word [esp + 0x22]
mov eax, dword [esp + 0x24]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
jmp 0x453d33
mov byte [esi + 4], 2
mov dword [esi + 8], 0x584e60
mov word [esi], 2
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 0x584e40
push 0x3a
push 0x584e04
call sym.core::panicking::panic::h2de0902fd6c3d9b1
push 0x584df4
push 0x39
push 0x584d98
call sym.core::panicking::panic::h2de0902fd6c3d9b1
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ecx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb ecx, eax
cmp word [edi], 0
je 0x453fdf
mov eax, dword [edi + 0x18]
movups xmm0, xmmword [edi + 4]
lea ebx, [edi + 0x14]
mov si, 0x17
mov edx, 0x1c
mov dword [ebp - 0x14], eax
mov eax, 0x1c
jmp 0x453ff9
lea eax, [edi + 2]
xorps xmm0, xmm0
mov edx, 0x10
mov si, 2
mov dword [ebp - 0x10], eax
mov eax, 6
mov ebx, dword [ebp - 0x10]
movzx eax, word [edi + eax]
mov edi, dword [ebx]
mov word [ebp - 0x30], si
rol ax, 8
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push edx
push eax
push 0
push ecx
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.ws2_32.dll_sendto
cmp eax, 0xffffffff
je 0x454039
mov edx, dword [ebp + 8]
mov cl, 4
jmp 0x45404d
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp + 8]
xor ecx, ecx
mov byte [edx + 3], 0
mov word [edx + 1], 0
mov byte [edx], cl
mov dword [edx + 4], eax
mov eax, edx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x454060
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x45409d
mov ecx, dword [eax + 4]
cmp word [ecx], 0
je 0x4540b6
mov eax, dword [ecx + 0x18]
movups xmm0, xmmword [ecx + 4]
lea edx, [ecx + 0x14]
mov edi, 0x1c
mov ebx, 0x1c
mov dword [ebp - 0x14], eax
mov ax, 0x17
jmp 0x4540d0
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x454116
lea eax, [ecx + 2]
xorps xmm0, xmm0
mov ebx, 0x10
mov edi, 6
mov dword [ebp - 0x10], eax
mov ax, 2
mov edx, dword [ebp - 0x10]
movzx ecx, word [ecx + edi]
mov edx, dword [edx]
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x14]
rol cx, 8
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x2c], edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x454108
mov byte [esi], 4
jmp 0x454116
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x454240
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp word [edx], 0
je 0x454281
movsd xmm0, qword [edx + 4]
movsd xmm1, qword [edx + 0xc]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x18]
movzx edx, word [edx + 0x1c]
mov di, 0x17
movsd qword [eax + 0x10], xmm1
movsd qword [eax + 8], xmm0
mov dword [eax + 0x18], esi
rol dx, 8
mov esi, 0x1c
jmp 0x4542a3
mov ecx, dword [edx + 2]
movzx edx, word [edx + 6]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov esi, 0x10
mov di, 2
rol dx, 8
mov word [eax], di
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 0x1c], esi
pop esi
pop edi
pop ebp
ret
Function at 0x454300
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
movsd qword [esp + 0x32], xmm0
movsd qword [esp + 0x2c], xmm0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call sym.std::sys::pal::windows::fs::File::open::h3e8e5909ba41fa7f
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x454364
mov esi, dword [esp + 0x14]
jmp 0x454371
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp al, 4
jne 0x4543eb
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call sym.std::sys::pal::windows::fs::File::file_attr::h1ba73a76d0a278d7
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x4543d9
cmp byte [esp + 0x20], 3
jne 0x4543e0
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x4543af
push ebx
call eax
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x4543c3
push dword [edi + 8]
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push dword [esp + 0x14]
call sym.___rust_dealloc
add esp, 0xc
mov edi, dword [esp + 4]
jmp 0x4543e0
cmp dword [esp + 0x54], 0
je 0x454437
mov dword [edi], 0
jmp 0x4544de
cmp al, 3
jne 0x45442c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x454407
push dword [esp + 4]
call eax
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 4]
test eax, eax
je 0x45441f
push dword [ebx + 8]
push eax
push ecx
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push esi
call sym.___rust_dealloc
add esp, 0xc
mov dword [edi], 0
jmp 0x4544e4
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 0xc], eax
je 0x454469
mov dword [esp + 0x18], 0
call sub.kernel32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x4544d3
mov eax, dword [esp + 0x18]
jmp 0x45446b
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x4544c2
push dword [esp + 0xc]
push 0
push 0
push 4
push eax
mov dword [esp + 0x18], edi
mov edi, eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
push edi
mov edi, dword [esp + 8]
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x4544c2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x4544de
mov dword [edi], 0
push dword [esp + 8]
call sub.kernel32.dll_CloseHandle
jmp 0x4544de
call sub.kernel32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.kernel32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x459310
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 esi, dword [0x4a602c]
mov edi, ecx
test esi, esi
je 0x4593b2
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4593aa
je 0x459352
test edi, edi
je 0x459356
mov ebx, dword [edi]
mov dword [edi], 0
mov eax, dword [edi + 8]
test ebx, ebx
cmove eax, ebx
cmovne ebx, dword [edi + 4]
mov dword [ebp - 0x10], eax
jmp 0x45935f
xor eax, eax
jmp 0x4593aa
mov dword [ebp - 0x10], 0
xor ebx, ebx
mov eax, dword [0x59ce94]
movzx eax, byte [eax]
push 4
push 0xc
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x4593d2
mov ecx, dword [ebp - 0x10]
mov dword [eax], ebx
mov byte [eax + 4], cl
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4593a7
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a602c
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x459333
jmp 0x4593aa
push 0xc
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
nop dword [eax + eax]

Function at 0x4593e0
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, 8
mov esi, dword [0x4a603c]
mov edi, ecx
test esi, esi
je 0x459409
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x459423
add eax, 4
jmp 0x459493
push 0x4a603c
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x459401
je 0x45943d
xor ecx, ecx
test edi, edi
je 0x459441
cmp byte [edi], 0
mov byte [edi], 0
movzx eax, byte [edi + 1]
cmove eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x459448
xor eax, eax
jmp 0x459493
mov dword [ebp - 0x14], 0
mov eax, dword [0x59ce94]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x45949b
mov ebx, eax
mov dword [eax], esi
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov byte [ebx + 4], al
push esi
call sub.kernel32.dll_TlsGetValue
mov edi, eax
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x459490
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
nop word cs:[eax + eax]
nop
Function at 0x4594b0
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, 0xc
mov esi, dword [0x4a605c]
mov edi, ecx
test esi, esi
je 0x459557
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x45954f
je 0x4594ec
test edi, edi
je 0x4594f0
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x4594f2
mov ebx, dword [edi + 4]
jmp 0x4594f2
xor eax, eax
jmp 0x45954f
xor ebx, ebx
mov eax, dword [0x59ce94]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x459577
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x45954c
mov eax, dword [edi]
test eax, eax
je 0x45953f
lock dec dword [eax]
jne 0x45953f
mov ecx, edi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h39c803f4a20ab912
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a605c
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4594d5
jmp 0x45954f
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2

Function at 0x4595a0
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 esi, dword [0x4a607c]
mov edi, ecx
test esi, esi
je 0x459646
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x45963e
je 0x4595ee
test edi, edi
je 0x4595f2
mov eax, dword [edi]
xor ecx, ecx
mov ebx, 0
mov dword [edi], 0
or eax, dword [edi + 4]
mov dword [edi + 4], 0
je 0x4595ea
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov edi, ecx
jmp 0x4595f6
xor eax, eax
jmp 0x45963e
xor ebx, ebx
xor edi, edi
mov eax, dword [0x59ce94]
movzx eax, byte [eax]
push 8
push 0x10
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x459666
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x45963b
push 8
push 0x10
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a607c
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4595c3
jmp 0x45963e
push 0x10
push 8
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
nop
Function at 0x459670
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, 0xc
mov esi, dword [0x4a608c]
mov edi, ecx
test esi, esi
je 0x459717
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x45970f
je 0x4596ac
test edi, edi
je 0x4596b0
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x4596b2
mov ebx, dword [edi + 4]
jmp 0x4596b2
xor eax, eax
jmp 0x45970f
xor ebx, ebx
mov eax, dword [0x59ce94]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x459737
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x45970c
mov eax, dword [edi]
test eax, eax
je 0x4596ff
lock dec dword [eax]
jne 0x4596ff
mov ecx, edi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::hc39c94033ce122a6
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a608c
call sym.std::sys::thread_local::key::windows::LazyKey::init::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x459695
jmp 0x45970f
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2

Function at 0x45cda0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45cdce
mov edx, dword [ebp + 8]
xor eax, eax
movzx esi, byte [edx]
shl eax, 4
inc edx
add esi, eax
mov eax, esi
shr eax, 0x18
and eax, 0xfffffff0
xor eax, esi
dec ecx
jne 0x45cdb0
and eax, 0xfffffff
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45cde0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45ce13
mov edx, dword [ebp + 8]
mov eax, 0x1505
nop word cs:[eax + eax]
nop dword [eax]
mov esi, eax
shl esi, 5
add esi, eax
movzx eax, byte [edx]
inc edx
add eax, esi
dec ecx
jne 0x45ce00
pop esi
pop ebp
ret
mov eax, 0x1505
pop esi
pop ebp
ret