Function at 0x49e510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.00596bf0
mov eax, dword [esi + 0x170]
mov edx, dword [esi + 0x164]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [esi + 0x174]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov edx, eax
add edx, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x49e7e5
jb 0x49e560
cmp edx, 0xffffffe0
ja 0x49e7e5
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x168]
xor edx, edx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x16c], edx
je 0x49e5e2
cmp eax, edx
jne 0x49e5a2
mov edx, dword [esi + 0x160]
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call edx
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x178], ecx
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x17c], ecx
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x180], ecx
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 4], 0x10
mov dword [esi + 0x184], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x16c], edx
mov edx, dword [esi + 0xc]
bswap edx
mov dword [ebp - 8], edx
mov edx, ecx
and edx, 0xf
mov dword [ebp - 0x18], edx
je 0x49e64b
jmp 0x49e5fc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49e620
mov al, byte [edx + esi + 0x10]
xor al, byte [ebx]
dec dword [ebp + 0xc]
mov byte [edi], al
mov byte [ecx + esi + 0x178], al
inc edx
inc ecx
inc edi
inc ebx
and edx, 0xf
mov dword [ebp - 0x18], edx
jne 0x49e5f6
jmp 0x49e628
test edx, edx
jne 0x49e7d7
push ecx
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
add esp, 0x10
cmp eax, 0x10
jb 0x49e677
test ecx, ecx
je 0x49e677
push ecx
lea edx, [esi + 0x178]
push edx
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
call dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
add esp, 0x10
cmp eax, 0xc00
jb 0x49e70b
mov eax, 0xaaaaaaab
mul dword [ebp + 0xc]
shr edx, 0xb
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0xc0
mov edx, dword [ebp - 0x10]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [ebx]
add esp, 0xc
mov dword [edi], eax
mov ecx, dword [ebx + 4]
xor ecx, dword [esi + 0x14]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov edx, dword [ebx + 8]
xor edx, dword [esi + 0x18]
add ebx, 0x10
mov dword [edi - 8], edx
mov eax, dword [ebx - 4]
xor eax, dword [esi + 0x1c]
dec dword [ebp - 0x1c]
mov dword [edi - 4], eax
jne 0x49e697
push 0xc00
lea ecx, [edi - 0xc00]
push ecx
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
sub dword [ebp + 0xc], 0xc00
add esp, 0x10
dec dword [ebp - 0x20]
jne 0x49e690
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov edx, eax
and edx, 0xfffffff0
mov dword [ebp - 0x1c], edx
je 0x49e789
cmp eax, 0x10
jb 0x49e76f
shr eax, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x10]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
sub dword [ebp + 0xc], 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [ebx]
add esp, 0xc
mov dword [edi], eax
mov ecx, dword [ebx + 4]
xor ecx, dword [esi + 0x14]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov edx, dword [ebx + 8]
xor edx, dword [esi + 0x18]
add ebx, 0x10
mov dword [edi - 8], edx
mov eax, dword [ebx - 4]
xor eax, dword [esi + 0x1c]
dec dword [ebp - 0x20]
mov dword [edi - 4], eax
jne 0x49e720
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, edi
sub ecx, edx
push ecx
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x49e7d7
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [esi + 0x10]
push edx
push esi
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
inc eax
bswap eax
add esp, 0xc
lea ecx, [edx + edi]
mov dword [esi + 0xc], eax
lea edx, [edx + esi + 0x10]
sub ebx, edi
movzx edi, byte [edx]
movzx eax, byte [ebx + ecx]
dec dword [ebp + 0xc]
xor eax, edi
mov edi, dword [ebp - 4]
mov byte [ecx], al
mov byte [esi + edi + 0x178], al
inc edi
inc edx
inc ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], edi
jne 0x49e7b1
mov ecx, edi
mov dword [esi + 0x168], ecx
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret