Function at 0x10039c80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.10086e00
mov eax, dword [0x100c474c]
push ebx
test eax, eax
push ebp
je 0x10039d49
push 0xd9
push 0x10093db8
push 0x13
push 5
call sym.LIBEAY32.dll_CRYPTO_lock
call sym.LIBEAY32.dll_CRYPTO_thread_id
mov ebx, dword [0x100c4750]
xor ecx, ecx
cmp ebx, eax
push 0xdb
sete cl
push 0x10093db8
mov ebp, ecx
push 0x13
push 6
mov dword [esp + 0x28], ebp
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x20
test ebp, ebp
jne 0x10039cf4
push 0xe0
push 0x10093db8
push 0x12
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
mov ecx, dword [0x100c473c]
mov eax, dword [0x100c4734]
push esi
push edi
mov edx, dword [0x100c4738]
mov dword [esp + 0x1c], ecx
mov ecx, 5
mov esi, 0x100c471c
lea edi, [esp + 0x30]
mov ebx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x18], edx
add eax, esi
cmp eax, 0x3ff
mov dword [0x100c4734], eax
jl 0x10039d57
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x100c4730], ecx
mov dword [0x100c4734], edx
jmp 0x10039d6e
mov dword [esp + 8], 0
mov ebp, dword [esp + 8]
jmp 0x10039cde
mov ecx, dword [0x100c4730]
cmp ecx, 0x3ff
jge 0x10039d6e
cmp eax, ecx
jle 0x10039d6e
mov dword [0x100c4730], eax
mov eax, esi
mov ecx, 0x14
cdq
idiv ecx
mov ecx, dword [0x100c473c]
mov edi, eax
xor eax, eax
test edx, edx
setg al
add eax, edi
add ecx, eax
test ebp, ebp
mov dword [0x100c473c], ecx
jne 0x10039dab
push 0x100
push 0x10093db8
push 0x12
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
call sym.LIBEAY32.dll_EVP_MD_CTX_init
add esp, 4
test esi, esi
jle 0x10039ed5
mov ecx, esi
dec esi
mov eax, 0xcccccccd
mov ebp, dword [esp + 0x48]
mul esi
shr edx, 4
inc edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], edx
jmp 0x10039de0
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x14
mov esi, ecx
jle 0x10039dec
mov esi, 0x14
push 0
call sym.LIBEAY32.dll_EVP_sha1
lea edx, [esp + 0x24]
push eax
push edx
call sym.LIBEAY32.dll_EVP_DigestInit_ex
lea eax, [esp + 0x3c]
push 0x14
lea ecx, [esp + 0x30]
push eax
push ecx
call sym.LIBEAY32.dll_EVP_DigestUpdate
lea edi, [esi + ebx - 0x3ff]
add esp, 0x18
test edi, edi
lea ecx, [esp + 0x20]
lea eax, [ebx + 0x100c4308]
jle 0x10039e48
mov edx, esi
sub edx, edi
push edx
push eax
push ecx
call sym.LIBEAY32.dll_EVP_DigestUpdate
push edi
lea edx, [esp + 0x30]
push 0x100c4308
push edx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0x18
jmp 0x10039e53
push esi
push eax
push ecx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
push esi
lea edx, [esp + 0x24]
push ebp
push edx
call sym.LIBEAY32.dll_EVP_DigestUpdate
lea eax, [esp + 0x24]
push 8
lea ecx, [esp + 0x30]
push eax
push ecx
call sym.LIBEAY32.dll_EVP_DigestUpdate
lea edx, [esp + 0x48]
push 0
lea eax, [esp + 0x3c]
push edx
push eax
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
mov edi, dword [esp + 0x40]
add esp, 0x24
inc edi
add ebp, esi
xor eax, eax
mov dword [esp + 0x1c], edi
test esi, esi
jle 0x10039eb7
mov cl, byte [esp + eax + 0x30]
mov dl, byte [ebx + 0x100c4308]
xor dl, cl
mov byte [ebx + 0x100c4308], dl
inc ebx
cmp ebx, 0x3ff
jl 0x10039eb2
xor ebx, ebx
inc eax
cmp eax, esi
jl 0x10039e95
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 0x10039ddc
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
call sym.LIBEAY32.dll_EVP_MD_CTX_cleanup
add esp, 4
test ebp, ebp
pop edi
pop esi
jne 0x10039efe
push 0x12b
push 0x10093db8
push 0x12
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
xor eax, eax
mov cl, byte [esp + eax + 0x28]
mov bl, byte [eax + 0x100c471c]
xor bl, cl
mov byte [eax + 0x100c471c], bl
inc eax
cmp eax, 0x14
jb 0x10039f00
fld qword [0x100c4740]
fcomp qword [0x10093db0]
fnstsw ax
test ah, 5
jp 0x10039f3b
fld qword [0x100c4740]
fadd qword [esp + 0x48]
fstp qword [0x100c4740]
test ebp, ebp
pop ebp
pop ebx
jne 0x10039f57
push 0x136
push 0x10093db8
push 0x12
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
add esp, 0x34
ret