Function at 0x448e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x30], eax
test esi, esi
je 0x449387
cmp dword [0x59fbc8], 0
je 0x448f70
mov eax, dword [0x59fb6c]
test eax, eax
je 0x448eda
lea ecx, [esp + 0x38]
push ecx
call eax
add esp, 4
jmp 0x448efa
mov eax, dword [0x59fb68]
test eax, eax
je 0x448ee7
call eax
jmp 0x448eed
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xorps xmm0, xmm0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x3c], eax
mov ecx, dword [0x59fb80]
mov dword [esp + 8], ecx
test ecx, ecx
je 0x448f25
push 0xdf
push str.crypto_randmd_rand.c
push 0x13
push 5
call ecx
mov ecx, dword [0x59fb80]
add esp, 0x10
mov dword [esp + 8], ecx
mov eax, dword [0x5a18dc]
lea edx, [esp + 0x38]
cmp eax, dword [edx]
jne 0x448f43
mov eax, dword [0x5a18e0]
cmp eax, dword [edx + 4]
jne 0x448f43
mov edi, 1
jmp 0x448f45
xor edi, edi
mov dword [esp + 0xc], edi
test ecx, ecx
je 0x448f6a
push 0xe1
push str.crypto_randmd_rand.c
push 0x13
push 6
call ecx
mov ecx, dword [0x59fb80]
add esp, 0x10
mov dword [esp + 8], ecx
test edi, edi
jne 0x448fa2
jmp 0x448f82
mov ecx, dword [0x59fb80]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
test ecx, ecx
je 0x448fa2
push 0xe6
push str.crypto_randmd_rand.c
push 0x12
push 9
call ecx
mov eax, dword [0x59fb80]
add esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x59fbb4]
mov ecx, dword [0x59fbcc]
movq xmm0, qword [0x5a14b4]
mov dword [esp + 0x40], eax
mov eax, dword [0x59fbb8]
mov edi, ecx
add ecx, esi
mov dword [esp + 0x44], eax
mov eax, dword [0x5a14c4]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x5a14bc]
movq qword [esp + 0x50], xmm0
mov dword [esp + 0x58], eax
mov dword [0x59fbcc], ecx
cmp ecx, 0x3ff
jb 0x44901d
mov eax, 0x401005
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0xfffffc01
add ecx, eax
mov dword [0x59fbcc], ecx
mov dword [0x59fbbc], 0x3ff
jmp 0x449033
mov eax, dword [0x59fbbc]
cmp eax, 0x3ff
jae 0x449033
cmp ecx, eax
cmova eax, ecx
mov dword [0x59fbbc], eax
mov ecx, dword [ebp + 0xc]
mov eax, 0x66666667
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 8]
lea eax, [esi + esi*4]
shl eax, 2
sub ecx, eax
xor eax, eax
test ecx, ecx
setg al
add eax, esi
mov esi, dword [esp + 0xc]
add dword [0x59fbb8], eax
test esi, esi
jne 0x449087
test edx, edx
je 0x449087
push 0x106
push str.crypto_randmd_rand.c
push 0x12
push 0xa
call edx
mov edx, dword [0x59fb80]
add esp, 0x10
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 8], 0
test eax, eax
jle 0x4491ed
mov dword [esp + 0x34], eax
mov ecx, 0x14
mov esi, eax
cmp eax, 0x14
cmovg esi, ecx
push 0
mov edx, 0x547470
lea ecx, [esp + 0x14]
call fcn.00424050
add esp, 4
test eax, eax
je 0x44928d
push 0x14
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x44928d
lea ecx, [edi - 0x3ff]
add ecx, esi
test ecx, ecx
jle 0x44912c
mov eax, esi
sub eax, ecx
push eax
lea eax, [edi + 0x5a14c8]
push eax
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x44928d
lea eax, [edi - 0x3ff]
add eax, esi
push eax
push 0x5a14c8
jmp 0x449134
push esi
lea eax, [edi + 0x5a14c8]
push eax
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x44928d
push esi
push dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x44928d
push 8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x44928d
push 0
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x14]
call fcn.004242a0
add esp, 4
test eax, eax
je 0x44928d
inc dword [esp + 0x44]
add dword [esp + 0x30], esi
xor ecx, ecx
test esi, esi
jle 0x4491bf
mov al, byte [esp + ecx + 0x48]
xor byte [edi + 0x5a14c8], al
inc edi
xor eax, eax
cmp edi, 0x3ff
cmovge edi, eax
inc ecx
cmp ecx, esi
jl 0x4491a4
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x34]
add ecx, 0x14
sub eax, 0x14
cmp ecx, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x34], eax
mov ecx, 0x14
jl 0x4490b2
mov edx, dword [0x59fb80]
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x44920e
test edx, edx
je 0x44920e
push 0x13b
push str.crypto_randmd_rand.c
push 0x12
push 9
call edx
mov edx, dword [0x59fb80]
add esp, 0x10
xor ecx, ecx
movzx eax, byte [esp + ecx + 0x48]
xor byte [ecx + 0x5a14b4], al
movzx eax, byte [esp + ecx + 0x49]
xor byte [ecx + 0x5a14b5], al
movzx eax, byte [esp + ecx + 0x4a]
xor byte [ecx + 0x5a14b6], al
movzx eax, byte [esp + ecx + 0x4b]
xor byte [ecx + 0x5a14b7], al
movzx eax, byte [esp + ecx + 0x4c]
xor byte [ecx + 0x5a14b8], al
add ecx, 5
cmp ecx, 0x14
jl 0x449210
movsd xmm0, qword [0x58d800]
movsd xmm1, qword [0x59fbd0]
comisd xmm0, xmm1
jbe 0x449272
addsd xmm1, qword [ebp + 0x10]
movsd qword [0x59fbd0], xmm1
test esi, esi
jne 0x44928d
test edx, edx
je 0x44928d
push 0x148
push str.crypto_randmd_rand.c
push 0x12
push 0xa
call edx
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44930e
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4492b5
test byte [esp + 0x18], 2
jne 0x4492b5
lea eax, [esp + 0x10]
push eax
call ecx
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x44930e
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x44930e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44930e
test byte [esp + 0x18], 4
jne 0x44930e
push ecx
push 0
push eax
mov eax, dword [fcn.004f2670]
call eax
mov eax, dword [0x59fb4c]
mov esi, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x4492f2
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x594128]
mov eax, dword [0x59fb4c]
add esp, 4
test eax, eax
je 0x44930e
push 1
push 0
call eax
add esp, 8
mov esi, dword [esp + 0x20]
test esi, esi
je 0x44937a
mov eax, dword [esi]
test eax, eax
je 0x449329
mov eax, dword [eax + 0x10]
test eax, eax
je 0x449329
push esi
call eax
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x449335
call fcn.004209e0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x449341
call fcn.004209e0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44934d
call fcn.0042c830
mov eax, dword [0x59fb4c]
test eax, eax
je 0x44935e
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x594128]
mov eax, dword [0x59fb4c]
add esp, 4
test eax, eax
je 0x44937a
push 1
push 0
call eax
add esp, 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x449387
call fcn.0042c830
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret