Function at 0x1004c8b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.100a1060
mov eax, dword [0x100ed68c]
test eax, eax
push ebx
push ebp
je 0x1004c99b
push 0xd8
push 0x100b3088
push 0x13
push 5
call sym.LIBEAY32.dll_CRYPTO_lock
call sym.LIBEAY32.dll_CRYPTO_thread_id
mov ebx, dword [0x100ed690]
xor ecx, ecx
cmp ebx, eax
sete cl
push 0xda
push 0x100b3088
push 0x13
push 6
mov ebp, ecx
mov dword [esp + 0x28], ebp
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x20
test ebp, ebp
jne 0x1004c924
push 0xdf
push 0x100b3088
push 0x12
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
mov edx, dword [0x100ed678]
mov ecx, dword [0x100ed67c]
mov eax, dword [0x100ed674]
mov dword [esp + 0x10], edx
mov edx, dword [0x100ed65c]
push esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x100ed660]
mov dword [esp + 0x2c], edx
mov edx, dword [0x100ed664]
push edi
mov edi, eax
add eax, esi
cmp eax, 0x3ff
mov dword [esp + 0x34], ecx
mov ecx, dword [0x100ed668]
mov dword [esp + 0x38], edx
mov edx, dword [0x100ed66c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [0x100ed674], eax
jl 0x1004c9ac
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x100ed670], ecx
mov dword [0x100ed674], edx
jmp 0x1004c9c3
mov dword [esp + 8], 0
mov ebp, dword [esp + 8]
jmp 0x1004c90e
mov ecx, dword [0x100ed670]
cmp ecx, 0x3ff
jge 0x1004c9c3
cmp eax, ecx
jle 0x1004c9c3
mov dword [0x100ed670], eax
mov eax, esi
cdq
mov ecx, 0x14
idiv ecx
xor ecx, ecx
test edx, edx
mov edx, dword [0x100ed67c]
setg cl
add ecx, eax
add edx, ecx
test ebp, ebp
mov dword [0x100ed67c], edx
jne 0x1004c9fe
push 0xff
push 0x100b3088
push 0x12
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call sym.LIBEAY32.dll_EVP_MD_CTX_init
add esp, 4
test esi, esi
jle 0x1004cb30
mov ebp, dword [esp + 0x48]
mov ecx, esi
dec esi
mov eax, 0xcccccccd
mul esi
shr edx, 4
inc edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], edx
jmp 0x1004ca33
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x14
mov esi, ecx
jle 0x1004ca3f
mov esi, 0x14
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
lea eax, [esp + 0x28]
push eax
call sym.LIBEAY32.dll_EVP_DigestInit_ex
push 0x14
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
call sym.LIBEAY32.dll_EVP_DigestUpdate
lea ebx, [esi + edi - 0x3ff]
add esp, 0x18
test ebx, ebx
lea edx, [esp + 0x20]
lea ecx, [edi + 0x100ed248]
jle 0x1004ca9b
mov eax, esi
sub eax, ebx
push eax
push ecx
push edx
call sym.LIBEAY32.dll_EVP_DigestUpdate
push ebx
lea eax, [esp + 0x30]
push 0x100ed248
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x18
jmp 0x1004caa6
push esi
push ecx
push edx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
push esi
lea eax, [esp + 0x24]
push ebp
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
push 8
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
call sym.LIBEAY32.dll_EVP_DigestUpdate
push 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
mov ebx, dword [esp + 0x40]
add esp, 0x24
inc ebx
add ebp, esi
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x1004cb12
jmp 0x1004caf0
mov bl, byte [edi + 0x100ed248]
mov dl, byte [esp + eax + 0x30]
xor bl, dl
mov byte [edi + 0x100ed248], bl
inc edi
cmp edi, 0x3ff
jl 0x1004cb0d
xor edi, edi
inc eax
cmp eax, esi
jl 0x1004caf0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
sub ecx, 0x14
dec eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], eax
jne 0x1004ca2f
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call sym.LIBEAY32.dll_EVP_MD_CTX_cleanup
add esp, 4
test ebp, ebp
pop edi
pop esi
jne 0x1004cb59
push 0x12a
push 0x100b3088
push 0x12
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
xor eax, eax
jmp 0x1004cb60
mov cl, byte [esp + eax + 0x28]
mov dl, byte [eax + 0x100ed65c]
mov bl, byte [eax + 0x100ed65d]
xor dl, cl
mov cl, byte [esp + eax + 0x2a]
mov byte [eax + 0x100ed65c], dl
mov dl, byte [esp + eax + 0x29]
xor bl, dl
mov dl, byte [eax + 0x100ed65e]
xor dl, cl
mov cl, byte [eax + 0x100ed65f]
mov byte [eax + 0x100ed65e], dl
mov dl, byte [esp + eax + 0x2b]
xor cl, dl
mov byte [eax + 0x100ed65d], bl
mov bl, byte [eax + 0x100ed660]
mov byte [eax + 0x100ed65f], cl
mov cl, byte [esp + eax + 0x2c]
xor bl, cl
mov byte [eax + 0x100ed660], bl
add eax, 5
cmp eax, 0x14
jl 0x1004cb60
fld qword [0x100ed680]
fcomp qword [0x100b3080]
fnstsw ax
test ah, 5
jp 0x1004cbe5
fld qword [0x100ed680]
fadd qword [esp + 0x48]
fstp qword [0x100ed680]
test ebp, ebp
pop ebp
pop ebx
jne 0x1004cc01
push 0x135
push 0x100b3088
push 0x12
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
add esp, 0x34
ret