Function at 0x1002ac35
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x38
pop eax
call fcn.1005ead0
mov eax, dword [0x100a4120]
xor eax, dword [ebp + 4]
push esi
push edi
xor edi, edi
cmp dword [0x100a4e94], edi
mov dword [ebp - 4], eax
mov esi, 0x10079158
je 0x1002ac92
push 0xd8
push esi
push 0x13
push 5
call sym.LIBEAY32.dll_CRYPTO_lock
call sym.LIBEAY32.dll_CRYPTO_thread_id
xor ecx, ecx
cmp dword [0x100a4e98], eax
push 0xda
sete cl
push esi
push 0x13
push 6
mov dword [ebp - 8], ecx
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x20
jmp 0x1002ac95
mov dword [ebp - 8], edi
cmp dword [ebp - 8], edi
jne 0x1002acac
push 0xdf
push esi
push 0x12
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
mov eax, dword [0x100a4e80]
mov edi, dword [0x100a4e7c]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x100a4e84]
push 0x14
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push 0x100a4e64
push eax
call sub.MSVCR70.dll_memcpy
mov eax, dword [0x100a4e7c]
mov ebx, dword [ebp + 0xc]
add eax, ebx
mov ecx, 0x3ff
add esp, 0xc
cmp eax, ecx
mov dword [0x100a4e7c], eax
jl 0x1002ad04
cdq
mov ebx, ecx
idiv ebx
mov ebx, dword [ebp + 0xc]
mov dword [0x100a4e78], ecx
mov dword [0x100a4e7c], edx
jmp 0x1002ad17
mov edx, dword [0x100a4e78]
cmp edx, ecx
jge 0x1002ad17
cmp eax, edx
jle 0x1002ad17
mov dword [0x100a4e78], eax
mov eax, ebx
push 0x14
cdq
pop ecx
idiv ecx
xor ecx, ecx
test edx, edx
setg cl
add ecx, eax
add dword [0x100a4e84], ecx
cmp dword [ebp - 8], 0
jne 0x1002ad46
push 0xff
push esi
push 0x12
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_MD_CTX_init
test ebx, ebx
pop ecx
jle 0x1002ae45
push 0x14
xor edx, edx
lea eax, [ebx - 1]
pop ecx
div ecx
mov dword [ebp + 0xc], ebx
inc eax
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0xc]
cmp esi, 0x14
jle 0x1002ad74
push 0x14
pop esi
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_DigestInit_ex
push 0x14
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
lea ebx, [esi + edi - 0x3ff]
add esp, 0x18
test ebx, ebx
jle 0x1002adcb
mov eax, esi
sub eax, ebx
push eax
lea eax, [edi + 0x100a4a50]
push eax
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
push ebx
lea eax, [ebp - 0x24]
push 0x100a4a50
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x18
jmp 0x1002addf
push esi
lea eax, [edi + 0x100a4a50]
push eax
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
push 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
add dword [ebp + 8], esi
add esp, 0x24
inc dword [ebp - 0x10]
xor eax, eax
test esi, esi
jle 0x1002ae33
mov cl, byte [ebp + eax - 0x38]
xor byte [edi + 0x100a4a50], cl
inc edi
cmp edi, 0x3ff
jl 0x1002ae2e
xor edi, edi
inc eax
cmp eax, esi
jl 0x1002ae19
sub dword [ebp + 0xc], 0x14
dec dword [ebp - 0xc]
jne 0x1002ad69
mov esi, 0x10079158
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_EVP_MD_CTX_cleanup
cmp dword [ebp - 8], 0
pop ecx
pop ebx
jne 0x1002ae68
push 0x12a
push esi
push 0x12
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
xor eax, eax
mov cl, byte [ebp + eax - 0x38]
xor byte [eax + 0x100a4e64], cl
inc eax
cmp eax, 0x14
jl 0x1002ae6a
fld qword [0x100a4e88]
fcomp qword [0x10079150]
fnstsw ax
test ah, 5
jp 0x1002ae9c
fld qword [0x100a4e88]
fadd qword [ebp + 0x10]
fstp qword [0x100a4e88]
cmp dword [ebp - 8], 0
jne 0x1002aeb4
push 0x135
push esi
push 0x12
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.1005eb3e
leave
ret