Function at 0x10014a70
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
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x100b7040]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [ecx + 0x18], 0x10
lea edx, [ecx + 4]
push ebx
push esi
push edi
jb 0x10014a92
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014a97
sub ecx, esi
push ecx
push edx
mov ecx, 0x100b8f48
call fcn.10006300
mov esi, dword [0x100b8f58]
mov edi, dword [0x100b8f5c]
test esi, esi
je 0x10014d79
call fcn.10013de0
test al, al
jne 0x10014d79
mov ah, 0x6c
mov byte [esp + 0x11], 0
mov dl, 0x1f
mov byte [esp + 0xc], ah
xor dl, ah
mov byte [esp + 0x11], 0
mov cl, 8
mov byte [esp + 0xf], dl
mov al, 0x42
lea edx, [esp + 0xd]
xor cl, ah
mov bl, 0x18
xor al, ah
mov byte [esp + 0xe], cl
xor bl, ah
mov byte [esp + 0xd], al
mov byte [esp + 0x10], bl
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10014b04
mov ebx, dword [0x100b8f48]
lea eax, [esp + 0xd]
sub edx, ecx
cmp edi, 0xf
push edx
mov ecx, 0x100b8f48
mov edx, esi
cmova ecx, ebx
push eax
push ecx
call fcn.10004190
add esp, 0xc
cmp eax, 0xffffffff
je 0x10014d7f
movaps xmm0, xmmword [0x100afb30]
xor ecx, ecx
push dword [0x100baa2c]
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x2c], 0x5060657
mov dword [esp + 0x30], 0x18521369
mov dword [esp + 0x34], 0x424251
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x1d], al
inc ecx
cmp ecx, 0x1a
jb 0x10014b64
sub esp, 0x18
mov byte [esp + 0x4f], 0
mov edx, esp
lea ecx, [esp + 0x35]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014b97
sub ecx, esi
lea eax, [esp + 0x35]
push ecx
push eax
mov ecx, edx
call fcn.10002540
lea eax, [esp + 0x50]
push eax
call fcn.1000ae50
add esp, 0x20
mov ecx, 0x100badf8
push eax
call fcn.10005c60
mov ecx, dword [esp + 0x48]
cmp ecx, 0xf
jbe 0x10014bfb
mov edx, dword [esp + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10014bf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014da8
push ecx
push edx
call fcn.1007fa46
add esp, 8
cmp dword [0x100b8f5c], 0xf
mov eax, 0x100b8f48
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmova eax, dword [0x100b8f48]
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
call esi
cmp dword [0x100bae0c], 0xf
mov ecx, 0x100badf8
push 0
cmova ecx, dword [0x100badf8]
mov edi, eax
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x28], edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp edi, 0xffffffff
je 0x10014d5d
cmp ebx, 0xffffffff
je 0x10014d59
lea eax, [esp + 0x50]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
or esi, dword [esp + 0x50]
not esi
and esi, 1
add esi, 0x1f
push esi
call fcn.10087c92
mov edi, eax
add esp, 4
test edi, edi
je 0x10014d4b
push 0
lea eax, [esp + 0x50]
push eax
push 4
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014cd2
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call fcn.10081b50
add esp, 0xc
mov dword [esp + 0x4c], 0
push 0
lea eax, [esp + 0x50]
push eax
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014d3e
cmp dword [esp + 0x4c], esi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [esp + 0x4c]
push eax
push edi
push 0
push 1
push 0
push dword [0x100baa30]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10014d3e
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x10014ce6
push edi
call fcn.10085603
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x10014d60
push edi
call esi
test ebx, ebx
je 0x10014d96
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1007f9e5
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x100b8f48]
cmp edi, 0xf
mov eax, 0x100b8f48
push esi
cmova eax, ebx
mov ecx, 0x100badf8
push eax
call fcn.10006300
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007f9e5
mov esp, ebp
pop ebp
ret
call fcn.10084bdf
int3