Function at 0x518c70
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
test dword [0x87ed4c], 0xfffff000
jne 0x518ca0
test dword [0x87ed4c], 0xffffffff
jne 0x519140
call fcn.007663a0
jmp fcn.00518c70
push ebx
mov ebx, esp
and esp, 0xfffffff0
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x774050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov esi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov dword [eax + 0x10], eax
mov dword [eax + 0x14], eax
mov dword [ebp - 4], 7
mov dword [ebp - 4], 0
mov ecx, 0x893aa0
mov edx, dword [eax + 0x10]
mov byte [edx], 0
mov edx, dword [esi]
cmp edx, ecx
jne 0x518d83
push dword [esi + 0x2c]
lea edx, [ebp - 0x1c]
mov eax, 1
push eax
push eax
push edx
call fcn.0074301a
add esp, 0x10
movzx edx, byte [esi + 0x30]
mov dword [ebp - 0x64], edx
test edx, edx
je 0x518d94
test eax, eax
je 0x518d94
jle 0x518d94
lea ecx, [ebp - 0x1c]
and ecx, 0xf
mov edi, ecx
neg edi
add edi, 0x10
test ecx, ecx
cmovne ecx, edi
lea edi, [ecx + 0x10]
cmp eax, edi
jl 0x519021
mov edi, eax
sub edi, ecx
and edi, 0xf
neg edi
add edi, eax
mov dword [ebp - 0x68], edi
test ecx, ecx
jbe 0x518fd7
mov dword [ebp - 0x60], 0
mov dl, byte [ebp - 0x64]
mov edi, dword [ebp - 0x60]
xor byte [ebp + edi - 0x1c], dl
inc edi
mov dword [ebp - 0x60], edi
cmp edi, ecx
jae 0x518fd3
movzx edx, byte [esi + 0x30]
mov dword [ebp - 0x64], edx
jmp 0x518d64
lea eax, [ebp - 0x1c]
push 1
mov ecx, esi
push eax
call dword [edx + 4]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x20], edx
test eax, eax
je 0x518fb0
movsx edi, byte [ebp - 0x1c]
test edi, edi
jne 0x518dc7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov dword [ebp - 4], 4
lea eax, [ebp - 0x1c]
and eax, 0xf
mov dword [ebp - 0x38], eax
neg eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 4
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x18], edx
add ecx, 2
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
je 0x519100
cmp ecx, 0x10
ja 0x5190bf
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x50]
mov byte [edx], 0
lea ecx, [ebp - 0x60]
push dword [eax + 0x10]
push dword [eax + 0x14]
call fcn.00583ef0
push edi
lea ecx, [ebp - 0x60]
call fcn.0051a240
mov dword [ebp - 4], 5
lea eax, [ebp - 0x60]
cmp eax, dword [ebx + 8]
je 0x518edd
mov edx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], edi
sub edi, edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp edi, ecx
ja 0x518eac
test edi, edi
je 0x518e80
push edi
push dword [ebp - 0x40]
push edx
call fcn.007666b0
add esp, 0xc
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x64], eax
add edi, edx
cmp edi, eax
je 0x518edd
mov edx, 1
push edx
push eax
push edi
call fcn.00743960
add esp, 0xc
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
sub eax, dword [ebp - 0x64]
mov edx, dword [ebx + 8]
add eax, edi
mov dword [edx + 0x10], eax
jmp 0x518edd
cmp dword [ebp - 0x44], 0
je 0x518eca
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push edx
call fcn.007666b0
add esp, 0xc
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov edi, dword [ebp - 0x40]
push dword [ebp - 0x48]
sub edi, edx
add edi, eax
mov ecx, dword [ebx + 8]
push edi
call fcn.00583ef0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x60]
cmp edx, eax
je 0x518f09
test edx, edx
je 0x518f09
mov eax, dword [ebp - 0x60]
sub eax, edx
cmp eax, 0x80
jbe 0x519042
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0
mov edx, dword [esi]
mov eax, 0x893aa0
cmp edx, eax
jne 0x518f8c
push dword [esi + 0x2c]
mov eax, 1
lea edx, [ebp - 0x1c]
push eax
push eax
push edx
call fcn.0074301a
add esp, 0x10
movzx edx, byte [esi + 0x30]
mov dword [ebp - 0x34], edx
test edx, edx
je 0x518f97
test eax, eax
je 0x518f97
jle 0x518f97
mov ecx, dword [ebp - 0x38]
test ecx, ecx
cmovne ecx, dword [ebp - 0x3c]
lea edi, [ecx + 0x10]
cmp eax, edi
jl 0x5190ab
mov edi, eax
sub edi, ecx
and edi, 0xf
neg edi
add edi, eax
mov dword [ebp - 0x30], edi
test ecx, ecx
jbe 0x519060
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x2c]
xor byte [ebp + edi - 0x1c], dl
inc edi
mov dword [ebp - 0x2c], edi
cmp edi, ecx
jae 0x519059
movzx edx, byte [esi + 0x30]
jmp 0x518f73
push 1
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call dword [edx + 4]
test eax, eax
je 0x519116
movsx edi, byte [ebp - 0x1c]
test edi, edi
jne 0x518ddf
jmp 0x5190b4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
movzx edx, byte [esi + 0x30]
movd xmm0, edx
punpcklbw xmm0, xmm0
punpcklbw xmm0, xmm0
pshufd xmm1, xmm0, 0
movdqa xmm0, xmmword [ebp + ecx - 0x1c]
pxor xmm0, xmm1
movdqa xmmword [ebp + ecx - 0x1c], xmm0
add ecx, 0x10
cmp ecx, dword [ebp - 0x68]
jb 0x518fe8
cmp eax, dword [ebp - 0x68]
jbe 0x518d94
movzx edx, byte [esi + 0x30]
mov ecx, dword [ebp - 0x68]
xor byte [ebp + ecx - 0x1c], dl
inc ecx
mov dword [ebp - 0x68], ecx
cmp ecx, eax
jb 0x519009
jmp 0x518d94
mov dword [ebp - 0x68], 0
jmp 0x519000
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x518f09
movzx edx, byte [esi + 0x30]
mov dword [ebp - 0x34], edx
movd xmm0, dword [ebp - 0x34]
punpcklbw xmm0, xmm0
punpcklbw xmm0, xmm0
pshufd xmm1, xmm0, 0
movdqa xmm0, xmmword [ebp + ecx - 0x1c]
pxor xmm0, xmm1
movdqa xmmword [ebp + ecx - 0x1c], xmm0
add ecx, 0x10
cmp ecx, dword [ebp - 0x30]
jb 0x519072
cmp eax, dword [ebp - 0x30]
jbe 0x518f97
movzx edx, byte [esi + 0x30]
mov ecx, dword [ebp - 0x30]
xor byte [ebp + ecx - 0x1c], dl
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jb 0x519093
jmp 0x518f97
mov dword [ebp - 0x30], 0
jmp 0x51908a
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], eax
jmp 0x518da4
mov dword [ebp - 0x68], ecx
cmp ecx, 0x80
jbe 0x5190f2
push eax
mov dword [esp], ecx
call fcn.00742a45
pop ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
add eax, edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 8]
jmp 0x518e0d
push eax
lea eax, [ebp - 0x68]
mov dword [esp], eax
call fcn.005d3350
jmp 0x5190d3
push eax
mov dword [esp], str.basic_string
call fcn.005d3bb0
pop ecx
mov eax, dword [ebx + 8]
jmp 0x518e0d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push ebx
mov ebx, esp
and esp, 0xfffffff0
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x774070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov esi, ecx
mov edx, dword [ebx + 8]
mov dword [edx + 0x10], edx
mov dword [edx + 0x14], edx
mov dword [ebp - 4], 7
mov dword [ebp - 4], 0
mov edi, dword [edx + 0x10]
mov byte [edi], 0
mov edi, dword [esi]
mov ecx, 0x893aa0
cmp edi, ecx
jne 0x5191e2
lea edi, [ebp - 0x24]
mov ecx, 1
push dword [esi + 0x2c]
push ecx
push ecx
push edi
mov dword [ebp - 0x58], edx
call fcn.0074301a
mov edx, dword [ebp - 0x58]
add esp, 0x10
movzx ecx, byte [esi + 0x30]
test ecx, ecx
je 0x5191f0
test eax, eax
je 0x5191f0
jle 0x5191f0
mov dword [ebp - 0x58], 0
mov edi, dword [ebp - 0x58]
xor byte [ebp + edi - 0x24], cl
inc edi
mov dword [ebp - 0x58], edi
cmp edi, eax
jge 0x5191f0
movzx ecx, byte [esi + 0x30]
jmp 0x5191cd
lea eax, [ebp - 0x24]
push 1
push eax
mov ecx, esi
call dword [edi + 4]
mov edx, dword [ebx + 8]
test eax, eax
je 0x5193bb
movsx edi, byte [ebp - 0x24]
test edi, edi
jne 0x519222
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov dword [ebp - 4], 4
mov dword [ebp - 4], 4
lea edx, [ebp - 0x50]
mov dword [ebp - 0x20], edx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0x14]
add ecx, 2
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
je 0x519455
cmp ecx, 0x10
ja 0x519414
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x40]
mov byte [edx], 0
push dword [eax + 0x10]
push dword [eax + 0x14]
lea ecx, [ebp - 0x50]
call fcn.00583ef0
push edi
lea ecx, [ebp - 0x50]
call fcn.0051a240
mov dword [ebp - 4], 5
lea eax, [ebp - 0x50]
cmp eax, dword [ebx + 8]
je 0x519327
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], edx
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x38], edi
sub edi, edx
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x34], ecx
cmp edi, ecx
ja 0x5192f6
test edi, edi
je 0x5192ca
push edi
push dword [ebp - 0x30]
push edx
call fcn.007666b0
add esp, 0xc
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x54], eax
add edi, edx
cmp edi, eax
je 0x519327
mov edx, 1
push edx
push eax
push edi
call fcn.00743960
add esp, 0xc
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
sub eax, dword [ebp - 0x54]
add eax, edi
mov edx, dword [ebx + 8]
mov dword [edx + 0x10], eax
jmp 0x519327
cmp dword [ebp - 0x34], 0
je 0x519314
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push edx
call fcn.007666b0
add esp, 0xc
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov edi, dword [ebp - 0x30]
sub edi, edx
add edi, eax
push dword [ebp - 0x38]
push edi
mov ecx, dword [ebx + 8]
call fcn.00583ef0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x50]
cmp edx, eax
je 0x519353
test edx, edx
je 0x519353
mov eax, dword [ebp - 0x50]
sub eax, edx
cmp eax, 0x80
jbe 0x5193f5
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0
mov edx, dword [esi]
mov eax, 0x893aa0
cmp edx, eax
jne 0x51939a
mov eax, 1
push dword [esi + 0x2c]
push eax
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.0074301a
add esp, 0x10
movzx edx, byte [esi + 0x30]
test edx, edx
je 0x5193a5
test eax, eax
je 0x5193a5
jle 0x5193a5
xor ecx, ecx
xor byte [ebp + ecx - 0x24], dl
inc ecx
cmp ecx, eax
jge 0x5193a5
movzx edx, byte [esi + 0x30]
jmp 0x51938b
push 1
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call dword [edx + 4]
test eax, eax
je 0x51946b
movsx edi, byte [ebp - 0x24]
test edi, edi
jne 0x519229
jmp 0x51940c
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x519353
mov edx, dword [ebx + 8]
jmp 0x519200
mov dword [ebp - 0x58], ecx
cmp ecx, 0x80
jbe 0x519447
push eax
mov dword [esp], ecx
call fcn.00742a45
pop ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
add eax, edx
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 8]
jmp 0x519257
push eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.005d3350
jmp 0x519428
push eax
mov dword [esp], str.basic_string
call fcn.005d3bb0
pop ecx
mov eax, dword [ebx + 8]
jmp 0x519257
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 8]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4