Function at 0x1001ad40
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, 0x5c
mov eax, dword [0x100f2040]
xor eax, esp
mov dword [esp + 0x58], eax
cmp dword [ecx + 0x18], 0x10
lea edx, [ecx + 4]
push ebx
push esi
push edi
jb 0x1001ad62
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ad67
sub ecx, esi
push ecx
push edx
mov ecx, 0x100f63cc
call fcn.10006e70
mov esi, dword [0x100f63e0]
mov edi, dword [0x100f63e4]
mov ebx, dword [0x100f63d0]
test esi, esi
je 0x1001b053
call fcn.100198e0
test al, al
jne 0x1001b053
mov dl, 0x1c
mov dword [esp + 0x10], 0x6f78321c
mov word [esp + 0x14], 0x68
xor ecx, ecx
xor byte [esp + ecx + 0x11], dl
inc ecx
cmp ecx, 4
jae 0x1001adc6
mov dl, byte [esp + 0x10]
jmp 0x1001adb6
lea edx, [esp + 0x11]
mov byte [esp + 0x15], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1001add2
sub edx, ecx
lea eax, [esp + 0x11]
push edx
cmp edi, 0xf
mov ecx, 0x100f63d0
push eax
cmova ecx, ebx
mov edx, esi
push ecx
call fcn.100048d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001b053
movaps xmm0, xmmword [0x100e99e0]
xor ecx, ecx
push dword [0x100f5fb0]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0x1b181849
mov dword [esp + 0x34], 0x64c0d77
mov dword [esp + 0x38], 0x5c5c4f
nop dword [eax]
mov al, byte [esp + ecx + 0x21]
xor al, byte [esp + 0x20]
mov byte [esp + ecx + 0x21], al
inc ecx
cmp ecx, 0x1a
jb 0x1001ae30
sub esp, 0x1c
mov byte [esp + 0x57], 0
mov edx, esp
lea ecx, [esp + 0x3d]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ae70
sub ecx, esi
lea eax, [esp + 0x3d]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [esp + 0x58]
push eax
call fcn.1000d650
mov esi, eax
add esp, 0x24
cmp esi, 0x100f63e8
je 0x1001aeb2
mov ecx, 0x100f63e8
call fcn.10002f50
push esi
mov ecx, 0x100f63e8
call fcn.100082f0
lea ecx, [esp + 0x38]
call fcn.10002f50
mov eax, dword [esp + 0x38]
push 8
push eax
mov dword [esp + 0x40], 0
call fcn.100891b0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
cmp dword [0x100f63e4], 0xf
mov eax, 0x100f63d0
cmova eax, dword [0x100f63d0]
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
call esi
cmp dword [0x100f6400], 0xf
mov ecx, 0x100f63ec
push 0
cmova ecx, dword [0x100f63ec]
mov edi, eax
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x2c], edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp edi, 0xffffffff
je 0x1001b037
cmp ebx, 0xffffffff
je 0x1001b033
lea eax, [esp + 0x58]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
or esi, dword [esp + 0x58]
not esi
and esi, 1
add esi, 0x1f
push esi
call fcn.1009fa00
mov edi, eax
add esp, 4
test edi, edi
je 0x1001b025
push 0
lea eax, [esp + 0x58]
push eax
push 4
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001afa9
push 0
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x5c]
push edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
mov dword [esp + 0x54], 0
nop dword [eax]
push 0
lea eax, [esp + 0x58]
push eax
push esi
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001b018
cmp dword [esp + 0x54], esi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [esp + 0x54]
push eax
push edi
push 0
push 1
push 0
push dword [0x100f5fb4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1001b018
push 0
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x5c]
push edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x1001afc0
push edi
call fcn.10091a20
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x1001b03a
push edi
call esi
test ebx, ebx
je 0x1001b06a
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.10089100
mov esp, ebp
pop ebp
ret
cmp edi, 0xf
mov eax, 0x100f63d0
push esi
cmova eax, ebx
mov ecx, 0x100f63e8
push eax
call fcn.10006e70
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10089100
mov esp, ebp
pop ebp
ret