Function at 0x4771c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x2c], edi
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [edi + 4]
shl ebx, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test ebx, ebx
jle 0x47721d
mov edi, dword [ebp + 8]
jmp 0x477200
mov eax, esi
lea ecx, [ebp - 0x14]
shr eax, 2
mov edx, esi
add ecx, eax
and edx, 3
mov al, byte [esi + edi]
inc esi
mov byte [ecx + edx*4], al
cmp esi, ebx
jl 0x477200
mov edi, dword [ebp - 0x2c]
lea edx, [edi + 0x34]
mov esi, 4
lea ecx, [ebp - 0x13]
jmp 0x477230
movzx eax, byte [edx - 4]
lea edx, [edx + 1]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 1]
xor byte [ecx - 4], al
movzx eax, byte [edx + 3]
xor byte [ecx - 3], al
movzx eax, byte [edx + 7]
xor byte [ecx - 2], al
sub esi, 1
jne 0x477230
mov eax, dword [edi + 0xc]
dec eax
mov dword [ebp - 0x30], 1
cmp eax, 1
jl 0x4773a4
lea eax, [edi + 0x44]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00477f00
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00477e50
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov dh, byte [ebp + esi - 0x24]
mov al, byte [ebp + esi - 0x20]
mov cl, dh
mov byte [ebp - 0x26], al
mov dl, al
mov al, byte [ebp + esi - 0x1c]
add cl, cl
mov byte [ebp - 0x25], al
add dl, dl
mov ch, byte [ebp + esi - 0x18]
mov al, cl
xor al, 0x1b
movzx ebx, cl
movzx eax, al
cmp dh, 0x80
mov cl, byte [ebp - 0x25]
cmovae ebx, eax
mov byte [ebp - 0x27], dh
mov al, dl
mov dword [ebp - 0x34], ebx
xor al, 0x1b
movzx edx, dl
cmp byte [ebp - 0x26], 0x80
movzx eax, al
cmovae edx, eax
mov byte [ebp - 0x28], ch
mov dh, byte [ebp - 0x27]
add cl, cl
mov al, dl
xor al, bl
movzx ebx, cl
xor al, ch
xor al, byte [ebp - 0x25]
xor al, byte [ebp - 0x26]
mov byte [ebp + esi - 0x14], al
mov al, cl
xor al, 0x1b
mov cl, ch
cmp byte [ebp - 0x25], 0x80
movzx eax, al
cmovae ebx, eax
add cl, cl
mov al, bl
xor al, dl
xor al, ch
xor al, dh
xor al, byte [ebp - 0x25]
mov byte [ebp + esi - 0x10], al
mov al, cl
xor al, 0x1b
movzx ecx, cl
cmp byte [ebp - 0x28], 0x80
movzx eax, al
cmovae ecx, eax
mov al, cl
xor cl, byte [ebp - 0x34]
xor cl, byte [ebp - 0x25]
xor al, bl
xor al, dh
xor cl, dh
xor al, byte [ebp - 0x28]
xor al, byte [ebp - 0x26]
xor cl, byte [ebp - 0x26]
mov byte [ebp + esi - 0xc], al
mov byte [ebp + esi - 8], cl
inc esi
cmp esi, 4
jl 0x4772a1
mov esi, dword [ebp - 0x2c]
xor edx, edx
mov eax, esi
mov cl, byte [eax - 4]
lea eax, [eax + 1]
xor byte [ebp + edx*4 - 0x14], cl
mov cl, byte [eax - 1]
xor byte [ebp + edx*4 - 0x13], cl
mov cl, byte [eax + 3]
xor byte [ebp + edx*4 - 0x12], cl
mov cl, byte [eax + 7]
xor byte [ebp + edx*4 - 0x11], cl
inc edx
cmp edx, 4
jl 0x477366
mov ebx, dword [ebp - 0x30]
add esi, 0x10
mov eax, dword [edi + 0xc]
inc ebx
dec eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
cmp ebx, eax
jle 0x477271
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00477f00
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00477e50
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0x34]
shl eax, 4
xor edx, edx
add ecx, eax
jmp 0x4773d0
movzx eax, byte [ecx - 4]
lea ecx, [ecx + 1]
xor byte [ebp + edx*4 - 0x14], al
movzx eax, byte [ecx - 1]
xor byte [ebp + edx*4 - 0x13], al
movzx eax, byte [ecx + 3]
xor byte [ebp + edx*4 - 0x12], al
movzx eax, byte [ecx + 7]
xor byte [ebp + edx*4 - 0x11], al
inc edx
cmp edx, 4
jl 0x4773d0
mov eax, dword [edi + 4]
xor edx, edx
shl eax, 2
test eax, eax
jle 0x477427
mov esi, dword [ebp - 0x38]
mov eax, edx
mov ecx, edx
shr eax, 2
and ecx, 3
lea eax, [ebp + eax - 0x14]
mov al, byte [eax + ecx*4]
mov byte [esi + edx], al
inc edx
mov eax, dword [edi + 4]
shl eax, 2
cmp edx, eax
jl 0x477408
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8