Function at 0x1000efb0
Capabilities:
Encode data using xor
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10075604]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
jae 0x1000efd1
add edx, 4
jmp 0x1000efd4
mov edx, dword [edx + 4]
cmp byte [edx], 0
jne 0x1000efdd
xor ecx, ecx
jmp 0x1000efeb
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000efe2
sub ecx, esi
push ecx
mov edi, 0x100760b4
push edx
mov ecx, edi
call fcn.10002800
mov esi, dword [0x100760c4]
mov ebx, 0x100760cc
test esi, esi
je 0x1000f291
cmp dword [0x100760e0], 0x10
mov edx, ebx
mov ecx, edi
mov edi, dword [0x100760dc]
cmovae edx, dword [0x100760cc]
mov eax, edi
cmp dword [0x100760c8], 0x10
cmovae ecx, dword [0x100760b4]
cmp esi, edi
cmovb eax, esi
push eax
push edx
push ecx
call fcn.1000bba0
add esp, 0xc
test eax, eax
jne 0x1000f052
cmp esi, edi
jb 0x1000f052
jbe 0x1000f291
mov ah, 0x2a
mov byte [ebp - 0x13], 0
mov bl, 4
mov byte [ebp - 0x18], ah
mov al, 0x4e
mov byte [ebp - 0x13], 0
mov cl, 0x59
mov dl, 0x5e
xor bl, ah
xor al, ah
xor cl, ah
mov byte [ebp - 0x17], bl
xor dl, ah
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x14], dl
test bl, bl
jne 0x1000f083
xor ecx, ecx
jmp 0x1000f099
lea ecx, [ebp - 0x17]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f090
sub ecx, edx
push ecx
push 0
lea eax, [ebp - 0x17]
mov ebx, 0x100760b4
push eax
mov ecx, ebx
call fcn.1000e320
cmp eax, 0xffffffff
je 0x1000f28c
movaps xmm0, xmmword [0x100659c0]
xor ecx, ecx
push dword [0x10076098]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x191a1a4b
mov dword [ebp - 0x24], 0x44e0f75
mov dword [ebp - 0x20], 0x5e5e4d
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x1a
jb 0x1000f0e0
sub esp, 0x18
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x50]
push eax
call fcn.10031980
add esp, 0x20
mov ecx, 0x100760cc
push eax
call fcn.10007d70
lea ecx, [ebp - 0x50]
call fcn.10001840
cmp dword [0x100760c8], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmovae ebx, dword [0x100760b4]
push 0
push 0x80
push 3
push 0
push 3
push connect
push ebx
call esi
cmp dword [0x100760e0], 0x10
mov edi, eax
push 0
push 0x80
push 2
push 0
push 2
mov eax, 0x100760cc
mov dword [ebp - 0x18], edi
cmovae eax, dword [0x100760cc]
push 0x40000000
push eax
call esi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp edi, 0xffffffff
je 0x1000f265
cmp ebx, 0xffffffff
je 0x1000f265
lea eax, [ebp - 0x10]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
or ecx, dword [ebp - 0x10]
and cl, 1
cdq
movzx edi, cl
neg edi
sbb edi, edi
add edi, 0x20
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1000f25f
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000f1eb
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
nop
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000f251
cmp dword [ebp - 8], edi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push 1
push 0
push dword [0x10076094]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1000f251
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x1000f200
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1000f272
push edi
call esi
test ebx, ebx
je 0x1000f2a1
push ebx
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005e77e
mov esp, ebp
pop ebp
ret
mov ebx, 0x100760cc
push 0xffffffffffffffff
push 0
push 0x100760b4
mov ecx, ebx
call fcn.100026e0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e77e
mov esp, ebp
pop ebp
ret