Function at 0x599570
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d022d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x5c]
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
push str.initCrypt_blowfish
push eax
mov dword [ebp - 0x74], ebx
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], 0
call fcn.004481f0
mov eax, dword [ebx + 0x10]
cdq
and edx, 7
mov dword [ebp - 4], 0
add eax, edx
sar eax, 3
push 0x40
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebx + 0x14]
call fcn.00402fb0
lea ecx, [ebx + 0x14]
cmp eax, 0x40
jbe 0x59960c
call fcn.00438ea0
test eax, eax
je 0x599633
push 0x40
jmp 0x59961e
call fcn.00438ea0
test eax, eax
je 0x599633
lea ecx, [ebx + 0x14]
call fcn.00402fb0
push eax
lea ecx, [ebx + 0x14]
call fcn.00438ea0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040df90
add esp, 0xc
mov eax, 0xc
mov ebx, 8
sub eax, 0x69147c
xor edi, edi
mov dword [ebp - 0x68], eax
sub ebx, 0x69147c
mov eax, 0x10
sub eax, 0x69147c
mov dword [ebp - 0x60], eax
mov eax, 0x14
sub eax, 0x69147c
mov dword [ebp - 0x6c], eax
nop word [eax + eax]
mov eax, dword [edi + 0x691478]
lea edx, [edi + 0x69147c]
mov ecx, dword [esi + 0x88]
mov dword [edi + ecx], eax
mov eax, dword [edx]
mov ecx, dword [esi + 0x88]
mov dword [edi + ecx + 4], eax
mov ecx, dword [esi + 0x88]
mov eax, dword [edx + 4]
add ecx, edx
mov dword [ecx + ebx], eax
mov eax, dword [edx + 8]
mov ecx, dword [esi + 0x88]
add ecx, edx
mov edx, dword [ebp - 0x68]
mov dword [ecx + edx], eax
lea edx, [edi + 0x69147c]
mov eax, dword [edx + 0xc]
mov ecx, dword [esi + 0x88]
add ecx, edx
mov edx, dword [ebp - 0x60]
mov dword [ecx + edx], eax
lea edx, [edi + 0x69147c]
mov ecx, dword [esi + 0x88]
add edi, 0x18
mov eax, dword [edx + 0x10]
add ecx, edx
mov edx, dword [ebp - 0x6c]
mov dword [ecx + edx], eax
cmp edi, 0x48
jl 0x599670
mov edx, 8
mov eax, 0xc
sub edx, 0x6914c4
sub eax, 0x6914c4
mov dword [ebp - 0x60], edx
xor edi, edi
mov dword [ebp - 0x6c], eax
mov ebx, 0x40
nop dword [eax + eax]
mov ecx, dword [esi + 0x8c]
lea edx, [edx + 0x6914c4]
mov eax, dword [edi + 0x6914c0]
add edx, edi
mov dword [edi + ecx], eax
mov ecx, dword [esi + 0x8c]
mov eax, dword [edi + 0x6914c4]
mov dword [ecx + edi + 4], eax
mov ecx, dword [esi + 0x8c]
mov eax, dword [edi + 0x6914c8]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [esi + 0x8c]
lea edx, [eax + 0x6914c4]
mov eax, dword [edi + 0x6914cc]
add edx, edi
add edi, 0x10
mov dword [edx + ecx], eax
mov edx, dword [ebp - 0x60]
sub ebx, 1
jne 0x599710
cmp edi, 0x1000
jl 0x599703
cmp byte [esi + 0x90], 0
je 0x5997f3
mov ebx, dword [ebp - 0x64]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], edx
nop dword [eax]
mov edi, dword [esi + 0x88]
lea eax, [ecx + 1]
add edi, edx
cdq
idiv ebx
movzx ecx, byte [ebp + edx - 0x50]
mov edx, dword [ebp - 0x60]
movzx eax, byte [ebp + edx - 0x50]
shl eax, 8
or ecx, eax
lea eax, [edx + 2]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x50]
or ecx, eax
mov eax, dword [ebp - 0x60]
add eax, 3
shl ecx, 8
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x50]
or ecx, eax
mov eax, dword [ebp - 0x60]
add eax, 4
xor dword [edi], ecx
cdq
idiv ebx
mov ecx, edx
mov edx, dword [ebp - 0x68]
add edx, 4
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], edx
cmp edx, 0x48
jl 0x599790
jmp 0x599858
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x68], ecx
nop word [eax + eax]
lea eax, [ebx + 2]
mov edi, dword [esi + 0x88]
cdq
add edi, ecx
idiv dword [ebp - 0x64]
movzx eax, byte [ebp + ebx - 0x4d]
shl eax, 8
movzx ecx, byte [ebp + edx - 0x50]
or ecx, eax
lea eax, [ebx + 1]
cdq
idiv dword [ebp - 0x64]
shl ecx, 8
movzx eax, byte [ebp + edx - 0x50]
or ecx, eax
mov eax, ebx
cdq
idiv dword [ebp - 0x64]
shl ecx, 8
movzx eax, byte [ebp + edx - 0x50]
or ecx, eax
lea eax, [ebx + 4]
cdq
idiv dword [ebp - 0x64]
xor dword [edi], ecx
mov ecx, dword [ebp - 0x68]
mov ebx, edx
add ecx, 4
mov dword [ebp - 0x68], ecx
cmp ecx, 0x48
jl 0x599800
xor edi, edi
mov dword [ebp - 0x60], 0
cmp byte [esi + 0x90], 0
mov dword [ebp - 0x64], 0
je 0x5998e2
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00598cf0
mov ecx, dword [esi + 0x88]
mov eax, dword [ebp - 0x60]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 0x88]
mov eax, dword [ebp - 0x64]
mov dword [edi + ecx + 4], eax
add edi, 8
cmp edi, 0x48
jl 0x599871
xor edi, edi
mov ebx, 0x80
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00598cf0
mov ecx, dword [esi + 0x8c]
mov eax, dword [ebp - 0x60]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 0x8c]
mov eax, dword [ebp - 0x64]
mov dword [edi + ecx + 4], eax
add edi, 8
sub ebx, 1
jne 0x5998a8
cmp edi, 0x1000
jl 0x5998a3
jmp 0x599958
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00599130
mov ecx, dword [esi + 0x88]
mov eax, dword [ebp - 0x60]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 0x88]
mov eax, dword [ebp - 0x64]
mov dword [edi + ecx + 4], eax
add edi, 8
cmp edi, 0x48
jl 0x5998e2
xor edi, edi
mov ebx, 0x80
nop dword [eax]
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00599130
mov ecx, dword [esi + 0x8c]
mov eax, dword [ebp - 0x60]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 0x8c]
mov eax, dword [ebp - 0x64]
mov dword [edi + ecx + 4], eax
add edi, 8
sub ebx, 1
jne 0x599920
cmp edi, 0x1000
jl 0x599914
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x599992
mov edi, dword [ebp - 0x74]
mov eax, dword [edi + 8]
cmp eax, 3
je 0x59996f
cmp eax, 4
jne 0x599992
push dword [esi + 0x80]
lea ecx, [edi + 0x34]
call fcn.00402fb0
push eax
lea ecx, [edi + 0x34]
call fcn.00438ea0
push eax
lea ecx, [ebx + 0x484]
call fcn.00597b60
lea ecx, [ebp - 0x5c]
call fcn.004482f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x10