Function at 0x100dab80
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
push 0xffffffffffffffff
push 0x1017751e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x101cfdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov eax, dword [0x102a2d80]
cmp eax, 0x102a2d94
je 0x100dabda
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
jb 0x100dabc7
mov ecx, dword [ecx]
push dword [eax + 0x14]
push ecx
mov ecx, 0x102a2d94
call fcn.10046d30
mov eax, dword [0x102a2d80]
cmp dword [eax + 0x14], ebx
je 0x100dac69
mov cl, 0x62
mov dword [ebp - 0x1c], 0x1b004c62
mov dword [ebp - 0x18], 0x11010310
xor eax, eax
mov byte [ebp - 0x14], bl
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 7
jae 0x100dac07
mov cl, byte [ebp - 0x1c]
jmp 0x100dabf8
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x14], bl
push eax
lea ecx, [ebp - 0x38]
call fcn.100461a0
mov dword [ebp - 4], 0
or ebx, 1
mov esi, dword [0x102a2d80]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x60], ebx
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jb 0x100dac69
mov eax, ecx
sub eax, edx
cmp ecx, eax
jb 0x100daf29
cmp dword [ebp - 0x20], 0x10
lea edi, [ebp - 0x34]
lea ecx, [esi + 4]
cmovae edi, dword [ebp - 0x34]
cmp dword [esi + 0x18], 0x10
jb 0x100dac55
mov ecx, dword [ecx]
push edx
push edi
add ecx, eax
call fcn.1008d0d0
add esp, 8
mov byte [ebp - 0x55], 1
test eax, eax
je 0x100dac6d
mov byte [ebp - 0x55], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x100dacbd
lea ecx, [ebp - 0x38]
call fcn.100432e0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100dac96
inc eax
push eax
push dword [ebp - 0x34]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x38]
push 8
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call fcn.100479d0
add esp, 8
cmp byte [ebp - 0x55], 0
je 0x100daf0d
movaps xmm0, xmmword [0x101b73f0]
xor ecx, ecx
push dword [0x1027109c]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x552f0803
mov dword [ebp - 0x24], 0x8145e14
mov word [ebp - 0x20], 4
nop
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x18
jb 0x100dacf0
sub esp, 0x1c
mov byte [ebp - 0x1f], 0
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x54]
push eax
call fcn.100492e0
mov esi, eax
add esp, 0x24
cmp esi, 0x102a2d94
je 0x100dad6f
mov ecx, 0x102a2d94
call fcn.100432e0
mov eax, dword [0x102a2dac]
cmp eax, 0x10
jb 0x100dad49
inc eax
push eax
push dword [0x102a2d98]
call fcn.100479d0
add esp, 8
push esi
mov ecx, 0x102a2d94
mov dword [0x102a2da8], 0
mov dword [0x102a2dac], 0xf
mov byte [0x102a2d98], 0
call fcn.10046f40
lea ecx, [ebp - 0x54]
call fcn.100432e0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x100dad8c
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x54]
push 8
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
call fcn.100479d0
mov eax, dword [0x102a2d80]
add esp, 8
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
jb 0x100dadc3
mov ecx, dword [ecx]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 1
push ecx
call esi
cmp dword [0x102a2dac], 0x10
mov ecx, 0x102a2d98
push 0
cmovae ecx, dword [0x102a2d98]
mov edi, eax
push 0x80
push 4
push 0
push 1
push 2
push ecx
mov dword [ebp - 0x64], edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [ebp - 0x60], ebx
cmp edi, 0xffffffff
je 0x100daf03
cmp ebx, 0xffffffff
je 0x100daeff
lea eax, [ebp - 0x6c]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x6c]
and esi, 0x80000001
jns 0x100dae3f
dec esi
or esi, 0xfffffffe
inc esi
neg esi
sbb esi, esi
add esi, 0x20
push esi
call fcn.10132270
mov edi, eax
add esp, 4
test edi, edi
je 0x100daef3
push 0
lea eax, [ebp - 0x5c]
push eax
push 4
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100dae82
push 0
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call fcn.101193b0
add esp, 0xc
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100daee6
cmp dword [ebp - 0x5c], esi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [ebp - 0x5c]
push eax
push edi
push 0
push 1
push 0
push dword [0x102710b8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100daee6
push 0
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x100dae95
push edi
call fcn.10130870
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x100daf06
push edi
call esi
test ebx, ebx
je 0x100daf0d
push ebx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101163c0
mov esp, ebp
pop ebp
ret
call fcn.100472d0
int3