joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003123
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
aeskeygenassist xmm0, xmmword [edx], 2
movdqa xmmword [ecx], xmm0
pop ebp
ret

Function at 0x10005185
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
cmp dword [edx], 0
mov dword [ebp - 0x14], ecx
je 0x100051be
mov ecx, dword [edx + 0x30]
cmp dword [edx + 0x24], 0xffffffff
mov edi, dword [edx + 0x34]
mov ebx, dword [edx + 0x38]
mov esi, dword [edx + 0x3c]
lea eax, [edx + 8]
mov dword [ebp - 0x18], ecx
je 0x100052a8
mov ecx, dword [ebp - 0x14]
mov edx, eax
push 0
jmp 0x100052af
mov al, byte [edx + 0xe]
mov ecx, dword [edx + 0x30]
mov esi, dword [edx + 0x34]
mov edi, dword [edx + 4]
mov ah, byte [edx + 0xc]
mov byte [ebp - 0xd], al
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
xor ebx, ebx
cmp byte [ebp - 0xd], 0
jne 0x100052c7
mov al, ah
xor al, 1
test edi, edi
mov byte [edx + 0xc], al
je 0x10005202
cmp edi, esi
jae 0x100051fc
cmp byte [ecx + edi], 0xbf
jg 0x10005202
jmp 0x100052e4
jne 0x100052e4
cmp edi, esi
je 0x100052bf
mov byte [ebp - 0x18], ah
movzx eax, byte [ecx + edi]
test al, al
jns 0x1000526e
movzx ebx, byte [ecx + edi + 1]
mov esi, eax
and esi, 0x1f
and ebx, 0x3f
cmp al, 0xdf
jbe 0x10005253
movzx ecx, byte [ecx + edi + 2]
shl ebx, 6
and ecx, 0x3f
or ecx, ebx
cmp al, 0xf0
jb 0x1000525f
mov ebx, dword [ebp - 0x20]
and esi, 7
shl ecx, 6
shl esi, 0x12
movzx eax, byte [ebx + edi + 3]
and eax, 0x3f
or eax, ecx
mov ecx, ebx
or eax, esi
jmp 0x1000525a
shl esi, 6
or esi, ebx
mov eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x1000526c
shl esi, 0xc
or ecx, esi
mov esi, dword [ebp - 0x1c]
mov eax, ecx
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
cmp byte [ebp - 0x18], 0
jne 0x100052cc
cmp eax, 0x110000
je 0x100052c3
cmp eax, 0x80
mov ebx, 1
jb 0x1000529c
cmp eax, 0x800
push 2
pop ebx
jb 0x1000529c
cmp eax, 0x10000
push 4
pop ebx
sbb ebx, 0
add edi, ebx
mov ah, 1
mov dword [edx + 4], edi
jmp 0x100051d6
mov ecx, dword [ebp - 0x14]
mov edx, eax
push 1
push esi
push ebx
push edi
push dword [ebp - 0x18]
call sym.core::str::pattern::TwoWaySearcher::next::h0c00c3c6c043e0a3
add esp, 0x28
jmp 0x100052df
test ah, ah
jne 0x100052ce
mov byte [edx + 0xe], 1
mov eax, dword [ebp - 0x14]
jmp 0x100052da
mov esi, edi
mov eax, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax], ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, esi
push 0x101e6974
push esi
push edi
call dbg.slice_error_fail
Function at 0x1001cca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x1001ccf0
cmp esi, edi
ja 0x1001cd5b
cmp edi, dword [ebp + 0x10]
ja 0x1001cd69
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x1001ccf2
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x1001cce0
jmp 0x1001cd4f
ja 0x1001ccf9
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x1001ccb5
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x1001cd30
mov ebx, esi
sub ecx, edx
jns 0x1001cd47
jmp 0x1001cd51
cmp esi, edi
je 0x1001cd78
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x1001cd51
xor al, 1
cmp ebx, edi
jne 0x1001cd10
jmp 0x1001cd51
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x1016a410
call dbg.slice_index_order_fail
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x1016a410
call dbg.slice_end_index_len_fail
mov ecx, 0x1016a400
call dbg.unwrap_failed
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x1001f5c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, edx
mov edx, dword [ebp + 8]
mov ebx, ecx
not ebx
cmp edx, 0x40
jb 0x1001f6f2
push 4
pop ecx
sub ecx, 1
jb 0x1001f5d2
cmp edx, 0xf
jbe 0x1001f702
movzx esi, byte [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov dword [ebp - 0x14], ecx
mov ecx, ebx
mov dword [ebp - 0x10], edx
mov edx, 0xff
shr ecx, 0x18
mov esi, dword [esi*4 + 0x1016b284]
xor esi, dword [edi*4 + 0x1016ae84]
movzx edi, byte [eax + 0xd]
xor esi, dword [edi*4 + 0x1016b684]
movzx edi, byte [eax + 0xc]
xor esi, dword [edi*4 + 0x1016ba84]
movzx edi, byte [eax + 0xb]
xor esi, dword [edi*4 + 0x1016be84]
movzx edi, byte [eax + 0xa]
xor esi, dword [edi*4 + 0x1016c284]
movzx edi, byte [eax + 9]
xor esi, dword [edi*4 + 0x1016c684]
movzx edi, byte [eax + 8]
xor esi, dword [edi*4 + 0x1016ca84]
movzx edi, byte [eax + 7]
xor esi, dword [edi*4 + 0x1016ce84]
movzx edi, byte [eax + 6]
xor esi, dword [edi*4 + 0x1016d284]
movzx edi, byte [eax + 5]
xor esi, dword [edi*4 + 0x1016d684]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x1016da84]
movzx edi, byte [eax + 3]
xor ecx, edi
mov edi, ebx
xor esi, dword [ecx*4 + 0x1016de84]
movzx ecx, byte [eax + 2]
shr edi, 0x10
and edi, edx
xor edi, ecx
movzx ecx, byte [eax + 1]
xor esi, dword [edi*4 + 0x1016e284]
mov edi, ebx
and ebx, edx
shr edi, 8
and edi, edx
mov edx, dword [ebp - 0x10]
xor edi, ecx
movzx ecx, byte [eax]
xor esi, dword [edi*4 + 0x1016e684]
xor ebx, ecx
mov ecx, eax
xor esi, dword [ebx*4 + 0x1016ea84]
push 0x1016ae74
call fcn.1001fb60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov ebx, esi
jmp 0x1001f5de
mov cl, byte [eax]
inc eax
dec edx
xor cl, bl
shr ebx, 8
movzx esi, cl
xor ebx, dword [esi*4 + 0x1016ae84]
test edx, edx
jne 0x1001f6df
not ebx
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xf
pop ecx
push 0x1016ae64
call dbg.panic_bounds_check

Function at 0x100203c7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [eax]
and dword [eax], 0
test edi, edi
je 0x1002042e
lea ecx, [ebp - 0x414]
and dword [ecx + 0x408], 0
call sym.__LT_T_u20_as_u20_crossbeam_epoch..atomic..Pointable_GT_::init::hf185813f5d5f2fd9
mov esi, eax
push 0x40
pop edx
mov ecx, 0x140
call sym.alloc::alloc::exchange_malloc::h142decb00e75c662
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x40], esi
mov dword [eax + 0x80], esi
and dword [eax + 0xc0], 0
and dword [eax + 0x100], 0
mov ecx, dword [edi]
mov dword [ecx], eax
add esp, 0x40c
pop esi
pop edi
pop ebp
ret
mov ecx, 0x101bce0c
call dbg.unwrap_failed
Function at 0x1003065d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
cmp dword [edx], 0
mov esi, ecx
je 0x100306a3
mov edi, edx
mov edx, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
cmp ebx, dword [edi + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
jne 0x100306a8
cmp eax, ecx
jne 0x100306a8
lea ecx, [ebp - 0x18]
call sym.__LT_h2..proto..streams..store..Ptr_u20_as_u20_core..ops..deref..Deref_GT_::deref::hb1bc1385b2798cd5
cmp dword [eax + 0x90], 0
jne 0x1003070a
and dword [edi], 0
jmp 0x100306d9
and dword [esi], 0
jmp 0x100306f8
lea ecx, [ebp - 0x18]
call sym.__LT_h2..proto..streams..store..Ptr_u20_as_u20_core..ops..deref..DerefMut_GT_::deref_mut::hac5f9a777264761c
mov ecx, dword [eax + 0x90]
and dword [eax + 0x90], 0
test ecx, ecx
je 0x10030700
mov ecx, dword [eax + 0x94]
mov eax, dword [eax + 0x98]
mov dword [edi], 1
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
lea edi, [ebp - 0x18]
mov ecx, edi
call sym.__LT_h2..proto..streams..store..Ptr_u20_as_u20_core..ops..deref..DerefMut_GT_::deref_mut::hac5f9a777264761c
mov dword [eax + 0x20], 0x3b9aca00
movsd xmm0, qword [edi]
mov eax, dword [edi + 8]
movsd qword [esi], xmm0
mov dword [esi + 8], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x1019f9f8
call dbg.unwrap_failed
push 0x2d
pop edx
mov ecx, str.assertion_failed:_N::next_stream_.is_none__
push 0x1019fa38
call dbg.panic
Function at 0x10030db2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, ecx
mov ecx, dword [0x10163054]
mov dword [esp + 0x50], 2
mov dword [esp + 4], edx
mov dword [esp + 0x60], ecx
lea eax, [ecx + 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [esp], eax
test edx, edx
je 0x10030e02
mov eax, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
and dword [esp + 0x44], 0
jmp 0x10030e04
xor eax, eax
lea edi, [esp + 0x34]
lea ebx, [esp + 0x78]
mov dword [edi], eax
mov ecx, ebx
mov edx, edi
push 0x1019f740
call sym.core::option::Option_LT_T_GT_::expect::h2606bffcee7b7f89
pop eax
lea eax, [esp + 4]
mov dword [edi], ebx
lea edx, [esp + 0x6c]
mov dword [edi + 4], eax
mov eax, dword [esp]
mov dword [edx], edi
mov dword [edi + 8], 0x1019f6e8
lea edi, [esp + 0x48]
mov dword [edx + 4], 1
mov ecx, edi
mov dword [edx + 8], eax
call sym.tracing::span::Span::record_all::h86859229ee59b1aa
movsd xmm1, qword [edi + 8]
movsd xmm0, qword [edi]
movsd xmm2, qword [edi + 0x10]
movsd qword [esp + 0x10], xmm1
movsd xmm1, qword [edi + 0x18]
movsd qword [esp + 8], xmm0
movsd qword [esp + 0x18], xmm2
movsd qword [esp + 0x20], xmm1
cmp dword [esp + 0x10], 2
je 0x10030e8a
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
call sym.tracing_core::dispatcher::Dispatch::enter::h952e9fb5ca537f24
mov eax, dword [esi + 0x4c]
lea ecx, [esi + 0x14]
lea edi, [esp + 0x28]
mov dword [esp], ecx
add eax, dword [esp + 4]
mov dword [esi + 0x4c], eax
test eax, eax
jle 0x10030f27
mov edx, dword [esp]
lea ecx, [esp + 0x48]
push dword [ebp + 8]
call sym.h2::proto::streams::store::Queue_LT_N_GT_::pop::h04d9c32117c9ed3f
pop eax
cmp dword [esp + 0x48], 0
je 0x10030f27
mov eax, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x48]
mov ecx, edi
mov dword [esp + 0x30], eax
movsd qword [esp + 0x28], xmm0
call sym.__LT_h2..proto..streams..store..Ptr_u20_as_u20_core..ops..deref..Deref_GT_::deref::hb1bc1385b2798cd5
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
call sym.h2::proto::streams::state::State::is_send_streaming::h571c40e8caf84e33
test al, al
jne 0x10030ef7
mov ecx, edi
call sym.__LT_h2..proto..streams..store..Ptr_u20_as_u20_core..ops..deref..Deref_GT_::deref::hb1bc1385b2798cd5
cmp dword [eax + 0xc8], 0
je 0x10030f1f
mov ecx, edi
call sym.__LT_h2..proto..streams..store..Ptr_u20_as_u20_core..ops..deref..Deref_GT_::deref::hb1bc1385b2798cd5
xor ebx, ebx
cmp dword [eax + 0x20], 0x3b9aca00
mov ecx, esi
mov edx, edi
setne bl
call sym.h2::proto::streams::prioritize::Prioritize::try_assign_capacity::h29404a08f305cf27
mov ecx, dword [ebp + 0xc]
mov edx, edi
push ebx
call sym.h2::proto::streams::counts::Counts::transition_after::h0ea1a078518110a4
pop eax
mov eax, dword [esi + 0x4c]
jmp 0x10030e9e
lea esi, [esp + 8]
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_tracing..span..Entered_GT_::h4ff1c8d0357b79b9
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_tracing..span..Span_GT_::h2def6da7ce82a54f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10046bba
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov al, byte [edx + 0x44]
mov esi, edx
mov ebx, ecx
add al, 0xfc
movzx ecx, al
cmp al, 3
push 3
pop eax
cmovb eax, ecx
movzx eax, al
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x10046c9d
test eax, eax
jne 0x10046ca7
cmp dword [esi], 0
mov edx, 0
je 0x10046c03
mov eax, dword [esi + 4]
mov edx, dword [eax]
and edx, 0xe
lea eax, [esi + 0x44]
mov ecx, esi
mov dword [esp + 4], eax
call sym.mio::sys::windows::selector::ReadyBinding::set_readiness::h8840b9b4375ad74c
mov edi, dword [ebx]
lea eax, [esp + 0x24]
lea edx, [esp + 0x20]
lea ebx, [esp + 0x10]
and dword [eax], 0
and dword [edx], 0
and dword [ebx], 0
mov dword [eax + 4], str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srccharmethods.rs_g
lea ecx, [edi + 4]
push 0
push ecx
push edx
push ebx
push 1
push eax
push dword [edi]
call sub.ws2_32.dll_WSARecv
lea ebx, [esp + 0x14]
mov edx, eax
lea eax, [esp + 0x10]
mov ecx, ebx
push dword [eax]
call sym.miow::net::cvt::h1aa28f1bd1d1a3d7
pop eax
xor eax, eax
cmp dword [ebx], eax
je 0x10046c7d
movsd xmm0, qword [esp + 0x18]
mov ecx, dword [esp + 4]
movsd qword [esp + 8], xmm0
call sym.core::ptr::drop_in_place_LT_mio..sys..windows..tcp..State_LT__LP__RP__C__LP__RP__GT__GT_::h7d8fca943df61d06
movsd xmm0, qword [esp + 8]
movsd qword [esi + 0x44], xmm0
jmp 0x10046c9d
mov ecx, dword [esp + 4]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x18]
mov bl, byte [esi + 0x4c]
call sym.core::ptr::drop_in_place_LT_mio..sys..windows..tcp..State_LT__LP__RP__C__LP__RP__GT__GT_::h7d8fca943df61d06
test edi, edi
je 0x10046caf
test bl, bl
je 0x10046caf
mov byte [esi + 0x44], 6
xor edx, edx
mov ecx, esi
inc edx
call sym.mio::sys::windows::tcp::StreamImp::add_readiness::h555ef0eadf4adff7
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [eax], 5
lock inc dword [ecx + 0x88]
jmp 0x10046ca7
Function at 0x1004c42e
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], ecx
push 0x20
pop ecx
xor ebx, ebx
mov edi, dword [ebp - 0x10]
test bl, 1
jne 0x1004c497
mov esi, ecx
lea eax, [edi + ecx]
mov dword [ebp - 0x10], eax
push 2
push ecx
push edi
push 0
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
mov bl, 1
cmp eax, 0xc0000000
mov dword [ebp - 0x14], eax
jb 0x1004c43f
push esi
push edi
call sub.advapi32.dll_SystemFunction036
xor ecx, ecx
test al, al
jne 0x1004c43f
mov esi, dword [ebp - 0x14]
and esi, 0x7fffffff
je 0x1004c497
mov al, byte [0x10226114]
push 4
pop edx
xor ecx, ecx
call dbg.process_heap_alloc
test eax, eax
je 0x1004c4a1
mov dword [eax], esi
jmp 0x1004c499
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
pop ecx
mov edx, ecx
call dbg.handle_alloc_error
Function at 0x1005946b
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [ecx + 0xf8]
sub ebx, edx
jb 0x100594b2
mov esi, ecx
je 0x1005949d
mov eax, edx
lea edi, [ebp - 0x20]
lea edx, [esi + 0x100]
mov ecx, edi
push eax
call sym.alloc::vec::Vec_LT_T_C_A_GT_::drain::h7bae02e3537438ae
pop eax
mov ecx, edi
call sym.__LT_alloc..vec..drain..Drain_LT_T_C_A_GT__u20_as_u20_core..ops..drop..Drop_GT_::drop::h13820fc22718ee90
and dword [esi + 0xfc], 0
mov dword [esi + 0xf8], ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1f
pop edx
mov ecx, 0x101b8fdf
push 0x101b9000
call dbg.panic
Function at 0x100594c4
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 0x101b9080
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::hb34d9ff47b0a8358
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 0x10059630
test eax, eax
je 0x1005959e
cmp eax, 0x90317
je 0x10059629
cmp eax, 0x90321
jne 0x1005963b
mov dword [edi + 0x128], 0x10000
mov byte [edi + 0x12c], 0
xor eax, eax
cmp dword [ebp - 0x1c], 5
mov edx, dword [edi + 0xf8]
jne 0x10059589
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::h325cbe21165e1572
and dword [edi + 0x16c], 0
jmp 0x1005964c
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::h1a01cfef02cb605e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov esi, edx
mov edx, eax
add esi, eax
push esi
call fcn.100e604d
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 0x100595ff
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::h325cbe21165e1572
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 0x10059651
mov word [esi], 0x104
jmp 0x10059651
cmp dword [ebp - 0x34], 4
jne 0x10059643
mov eax, dword [ebp - 0x38]
jmp 0x10059646
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x10059651
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 0x1005a393
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
lea eax, [edx + 0x28]
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
lea eax, [edx + 0x78]
mov edx, dword [edx + 0xc0]
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, eax
test edx, edx
je 0x1005a46d
mov esi, dword [edi + 0x20]
mov dword [ebp - 0x20], ecx
lea eax, [esi + esi]
cmp eax, edx
cmova edx, eax
cmp edx, 0x401
jae 0x1005a3da
mov edx, 0x400
mov eax, dword [edi + 0x30]
cmp eax, edx
jae 0x1005a3ec
mov ecx, dword [ebp - 0x14]
call sym.alloc::vec::Vec_LT_T_C_A_GT_::resize::h319274c7255c9d6c
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x2c]
mov edx, eax
push 0x101b9100
mov dword [ebp - 0x1c], esi
push esi
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..IndexMut_LT_I_GT__GT_::index_mut::h1094b8a2c4053b3d
pop ecx
pop ecx
mov esi, dword [edi + 0xa0]
test esi, esi
je 0x1005a488
mov ebx, edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push ebx
push eax
push esi
call sym.__LT_tokio..net..tcp..stream..TcpStream_u20_as_u20_tokio..io..async_read..AsyncRead_GT_::poll_read::hd1dfc274c5e65f33
add esp, 0xc
cmp byte [ebp - 0x28], 5
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edx, 0xd01
mov esi, 0
cmove ecx, edx
cmove eax, esi
cmp cl, 4
je 0x1005a442
cmp cl, 4
jne 0x1005a47e
mov ecx, dword [ebp - 0x1c]
and dword [edi + 0x24], 0
add ecx, eax
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi + 0xc0]
sub edx, eax
cmovb edx, esi
test eax, eax
lea eax, [eax + ecx]
mov dword [edi + 0xc0], edx
jne 0x1005a3b5
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov byte [eax], 4
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x1005a476
push 0x29
pop edx
mov ecx, str.assertion_failed:__self.context.is_null__
push 0x101b94d0
call dbg.panic
Function at 0x1005a49a
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 0x101b9080
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::hb34d9ff47b0a8358
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 0x1005a5d6
test eax, eax
je 0x1005a55f
cmp eax, 0x90317
je 0x1005a5cf
cmp eax, 0x90321
jne 0x1005a5e1
mov dword [edi + 0x50], 0x10000
mov byte [edi + 0x54], 0
xor eax, eax
cmp dword [ebp - 0x1c], 5
mov edx, dword [edi + 0x20]
jne 0x1005a54a
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::h41878a00d2e7f45e
and dword [edi + 0xc0], 0
jmp 0x1005a5f2
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::h1a01cfef02cb605e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov esi, edx
mov edx, eax
add esi, eax
push esi
call fcn.100e604d
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 0x1005a5ab
mov eax, dword [ebp - 0x20]
sub edx, eax
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::consume_enc_in::h41878a00d2e7f45e
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 0x1005a5f7
mov word [esi], 0x104
jmp 0x1005a5f7
cmp dword [ebp - 0x34], 4
jne 0x1005a5e9
mov eax, dword [ebp - 0x38]
jmp 0x1005a5ec
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x1005a5f7
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 0x1008d4c4
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::h1eefb79073b9e2b7
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::h9db53d74deea90ba
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 0x1008d526
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call sym.alloc::vec::Vec_LT_T_C_A_GT_::reserve::h93bab8fef9e74902
jmp 0x1008d501
test eax, eax
jne 0x1008d544
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xb
jbe 0x1008d560
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0xde
jmp 0x1008d54a
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_::h798a764fd649a212
pop eax
jmp 0x1008d575
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::h7a806ae938e9df1e
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret