Function at 0x10019af0
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 [0x100d6084]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [ecx + 0x18], 0x10
lea edx, [ecx + 4]
push ebx
push esi
push edi
jb 0x10019b13
mov edx, dword [ecx + 4]
cmp byte [edx], 0
jne 0x10019b1c
xor ecx, ecx
jmp 0x10019b2a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019b21
sub ecx, esi
push ecx
mov edi, 0x100df890
push edx
mov ecx, edi
call fcn.10002840
mov esi, dword [0x100df8a0]
mov ebx, 0x100df8a8
test esi, esi
je 0x10019de8
cmp dword [0x100df8bc], 0x10
mov edx, ebx
mov ecx, edi
mov edi, dword [0x100df8b8]
cmovae edx, dword [0x100df8a8]
mov eax, edi
cmp dword [0x100df8a4], 0x10
cmovae ecx, dword [0x100df890]
cmp esi, edi
cmovb eax, esi
push eax
call fcn.10002df0
add esp, 4
test eax, eax
jne 0x10019b8f
cmp esi, edi
jb 0x10019b8f
jbe 0x10019de8
mov ah, 0x5b
mov byte [esp + 0x11], 0
mov bl, 0x75
mov byte [esp + 0xc], ah
mov al, 0x3f
mov byte [esp + 0x11], 0
mov cl, 0x28
mov dl, 0x2f
xor bl, ah
xor al, ah
xor cl, ah
mov byte [esp + 0xd], bl
xor dl, ah
mov byte [esp + 0xe], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], dl
test bl, bl
jne 0x10019bc7
xor ecx, ecx
jmp 0x10019bd9
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019bd0
sub ecx, edx
push ecx
push ecx
lea eax, [esp + 0x15]
mov ebx, 0x100df890
push eax
mov ecx, ebx
call fcn.10008f70
cmp eax, 0xffffffff
je 0x10019de3
movaps xmm0, xmmword [0x100c8a10]
xor ecx, ecx
push dword [0x100db408]
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x2c], 0x5a595908
mov dword [esp + 0x30], 0x470d4c36
mov dword [esp + 0x34], 0x1d1d0e
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x1d], al
inc ecx
cmp ecx, 0x1a
jb 0x10019c21
sub esp, 0x18
mov byte [esp + 0x4f], 0
lea eax, [esp + 0x35]
mov ecx, esp
push eax
call fcn.10002940
lea eax, [esp + 0x50]
push eax
call fcn.1000f620
add esp, 0x20
mov ecx, 0x100df8a8
push eax
call fcn.10006bb0
lea ecx, [esp + 0x34]
call fcn.100022f0
cmp dword [0x100df8a4], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmovae ebx, dword [0x100df890]
push 0
push 0x80
push 3
push 0
push 3
push connect
push ebx
call esi
cmp dword [0x100df8bc], 0x10
mov edi, eax
push 0
push 0x80
push 2
push 0
push 2
mov eax, 0x100df8a8
mov dword [esp + 0x20], edi
cmovae eax, dword [0x100df8a8]
push 0x40000000
push eax
call esi
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp edi, 0xffffffff
je 0x10019dbd
cmp ebx, 0xffffffff
je 0x10019dbd
lea eax, [esp + 0x50]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x54]
xor ecx, ecx
or ecx, dword [esp + 0x50]
and cl, 1
cdq
movzx edi, cl
neg edi
sbb edi, edi
add edi, 0x20
push edi
call fcn.10090a5c
mov esi, eax
add esp, 4
test esi, esi
je 0x10019db5
push 0
lea eax, [esp + 0x50]
push eax
push 4
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019d3a
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push esi
call fcn.10086ac0
add esp, 0xc
mov dword [esp + 0x4c], 0
nop
push 0
lea eax, [esp + 0x50]
push eax
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019da8
cmp dword [esp + 0x4c], edi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [esp + 0x4c]
push eax
push esi
push 0
push 1
push 0
push dword [0x100db40c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10019da8
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x10019d50
push esi
call fcn.1009056e
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10019dca
push edi
call esi
test ebx, ebx
je 0x10019df8
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1006e1c5
mov esp, ebp
pop ebp
ret
mov ebx, 0x100df8a8
push 0xffffffffffffffff
push 0
push 0x100df890
mov ecx, ebx
call fcn.10002400
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006e1c5
mov esp, ebp
pop ebp
ret