Function at 0x4c81c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebx, dword [esp + 0xc0]
mov esi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xcc]
test ebp, ebp
je 0x4c84f4
mov dword [ebx], ebp
test esi, esi
je 0x4c8290
mov dword [esp], ebp
call fcn.004da1d0
cmp eax, 0x80
jg 0x4c8420
cmp eax, dword [esp + 0xc8]
jl 0x4c83b2
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1c], eax
cmp eax, 0x80
ja 0x4c8484
lea edi, [ebx + 0x50]
cmp eax, 4
jae 0x4c8456
xor edx, edx
test al, 2
jne 0x4c82ee
test al, 1
jne 0x4c82e3
mov eax, dword [esp + 0xc8]
mov dword [ebx + 0x4c], eax
cmp dword [esp + 0x1c], 0x80
je 0x4c8290
mov edx, pe_nt_image_headers32
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
lea edi, [ebx + eax + 0x50]
cmp edx, 4
jae 0x4c84d0
test dl, 2
jne 0x4c84bd
and edx, 1
jne 0x4c84b5
lea esi, [esi]
lea edi, [edi]
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebx + eax + 0x50]
xor edx, 0x36363636
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x80
jne 0x4c82a0
lea esi, [ebx + 0x1c]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.004d1a50
test eax, eax
jne 0x4c8303
xor eax, eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, byte [esi + edx]
mov byte [edi + edx], al
jmp 0x4c8245
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x4c8245
jmp 0x4c82e3
mov dword [esp], ebp
call fcn.004da1d0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004d1d50
test eax, eax
je 0x4c82d6
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebx + eax + 0x50]
xor edx, 0x5c5c5c5c
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x80
jne 0x4c8330
lea edi, [ebx + 0x34]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.004d1a50
test eax, eax
je 0x4c82d6
mov dword [esp], ebp
call fcn.004da1d0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004d1d50
test eax, eax
je 0x4c82d6
mov dword [esp + 4], esi
add ebx, 4
mov dword [esp], ebx
call fcn.004d2120
test eax, eax
setne al
and eax, 0xff
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebx + 4]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.004d1a50
test eax, eax
je 0x4c82d6
mov eax, dword [esp + 0xc8]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004d1d50
test eax, eax
je 0x4c82d6
lea eax, [ebx + 0x4c]
mov dword [esp + 8], eax
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004d1d60
test eax, eax
je 0x4c82d6
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x1c], eax
jmp 0x4c824f
mov dword [esp + 8], str.j____int_sizeof_ctx__key_
mov dword [esp + 4], 0x52
mov dword [esp], str.hmac.c
mov dword [esp + 0x18], eax
call fcn.004d2d10
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xc8]
jge 0x4c8211
jmp 0x4c83b2
test edi, 1
jne 0x4c8506
test edi, 2
jne 0x4c851c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor edx, edx
test al, 2
je 0x4c823d
jmp 0x4c82ee
mov dword [esp + 8], str.len_0__len__int_sizeof_ctx__key_
mov dword [esp + 4], 0x5f
mov dword [esp], str.hmac.c
call fcn.004d2d10
mov eax, dword [esp + 0xc8]
lea edi, [ebx + 0x50]
cmp eax, 4
jb 0x4c8233
jmp 0x4c8456
mov byte [edi], 0
jmp 0x4c8290
mov word [edi], 0
add edi, 2
and edx, 1
je 0x4c8290
jmp 0x4c84b5
test edi, 1
jne 0x4c853d
test edi, 2
jne 0x4c8530
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
test dl, 2
je 0x4c827c
jmp 0x4c84bd
mov ebp, dword [ebx]
test esi, esi
jne 0x4c81f1
lea esi, [ebx + 0x1c]
jmp 0x4c838e
mov al, byte [esi]
mov byte [ebx + 0x50], al
lea edi, [ebx + 0x51]
inc esi
mov eax, dword [esp + 0xc8]
dec eax
jmp 0x4c8462
mov dx, word [esi]
mov word [edi], dx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x4c846e
mov word [edi], 0
add edi, 2
sub edx, 2
jmp 0x4c84e0
mov byte [edi], 0
inc edi
dec edx
jmp 0x4c84d8