Function at 0x101127c0
Capabilities:
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 0x101ba414
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10247db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], 0
mov eax, dword [0x102e2f44]
push eax
mov ecx, 0x102e2f58
call fcn.10045070
mov ecx, dword [0x102e2f44]
call fcn.10044e20
movzx ecx, al
test ecx, ecx
jne 0x10112879
movzx edx, byte [ebp - 0x8d]
push edx
push str..byracs
lea ecx, [ebp - 0x1c]
call fcn.10073690
mov ecx, eax
call fcn.1004de10
push eax
lea ecx, [ebp - 0x38]
call fcn.100451a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x88]
or eax, 1
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [0x102e2f44]
push edx
call fcn.10112750
add esp, 8
movzx eax, al
test eax, eax
je 0x10112879
mov dword [ebp - 0x98], 1
jmp 0x10112883
mov dword [ebp - 0x98], 0
mov cl, byte [ebp - 0x98]
mov byte [ebp - 0x7d], cl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x88]
and edx, 1
je 0x101128ad
and dword [ebp - 0x88], 0xfffffffe
lea ecx, [ebp - 0x38]
call fcn.100450b0
movzx eax, byte [ebp - 0x7d]
test eax, eax
je 0x10112b26
mov ecx, dword [0x10266cb0]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xb8], esp
movzx edx, byte [ebp - 0x8e]
push edx
push 0x1020dc30
lea ecx, [ebp - 0x70]
call fcn.101156b0
mov ecx, eax
call fcn.100d6680
push eax
mov ecx, esi
call fcn.100451a0
lea eax, [ebp - 0x54]
push eax
call fcn.1004d5a0
add esp, 0x24
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
push edx
mov ecx, 0x102e2f58
call fcn.1004eac0
lea ecx, [ebp - 0x54]
call fcn.100450b0
mov dword [ebp - 0x78], 0
push 0
push 0x80
push 3
push 0
push 1
push 1
mov ecx, dword [0x102e2f44]
call fcn.10044e70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x84], eax
push 0
push 0x80
push 4
push 0
push 1
push 2
mov ecx, 0x102e2f58
call fcn.10044e70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x84], 0xffffffff
je 0x10112ae8
cmp dword [ebp - 0x8c], 0xffffffff
je 0x10112ae8
mov byte [ebp - 0x71], 0
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0xb0]
shl edx, 0x20
or edx, dword [ebp - 0xb4]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
and eax, 0x80000001
jns 0x101129d3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x101129e3
mov dword [ebp - 0x9c], 0x20
jmp 0x101129ed
mov dword [ebp - 0x9c], 0x1f
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
call fcn.10175980
add esp, 4
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x10112ae8
push 0
lea ecx, [ebp - 0x7c]
push ecx
push 4
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10112a59
push 0
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xa0]
push edx
push 0
mov eax, dword [ebp - 0x78]
push eax
call fcn.1015cb20
add esp, 0xc
mov dword [ebp - 0x7c], 0
push 0
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10112ae0
mov edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 0x94]
jae 0x10112aa6
mov byte [ebp - 0x71], 1
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
push 0
push 1
push 0
mov edx, dword [0x10266ccc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10112ae0
push 0
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, byte [ebp - 0x71]
test ecx, ecx
je 0x10112a75
cmp dword [ebp - 0x78], 0
je 0x10112afa
mov edx, dword [ebp - 0x78]
push edx
call fcn.10173f80
add esp, 4
cmp dword [ebp - 0x84], 0
je 0x10112b10
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x8c], 0
je 0x10112b26
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10159b70
mov esp, ebp
pop ebp
ret