Function at 0x545f70
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push ebx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov esi, edx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
sub edx, eax
and ecx, 3
mov ebx, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 8
xor esi, esi
sub ecx, eax
mov dword [ebp + 0x14], esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x18], ecx
jmp 0x545fbc
mov edx, dword [ebp + 0x10]
xor esi, esi
add edx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov esi, pe_nt_image_headers32
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov dl, byte [ecx + 0x742f5c]
dec dl
mov byte [ebp - 4], dl
mov eax, dword [ebp - 4]
and eax, 0xff
mov edx, eax
and eax, 7
shr edx, 3
mov dl, byte [ebp + edx - 0x28]
test byte [eax + 0x742f54], dl
je 0x546013
mov eax, ecx
mov edx, ecx
shr eax, 3
and edx, 7
lea eax, [ebp + eax - 0x30]
mov dl, byte [edx + 0x742f54]
or byte [eax], dl
inc ecx
dec esi
jne 0x545fd6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov edi, 0x30
mov dl, byte [ecx + 0x743054]
add dl, 0x1f
mov byte [ebp - 0xc], dl
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov edx, eax
and eax, 7
shr edx, 3
mov dl, byte [ebp + edx - 0x28]
test byte [eax + 0x742f54], dl
je 0x546092
mov eax, 0x2aaaaaab
mov ebx, 6
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
lea esi, [ebp + edx - 0x20]
cdq
idiv ebx
mov al, byte [esi]
mov ebx, dword [ebp + 8]
mov dl, byte [edx + 0x742f54]
or al, dl
mov byte [esi], al
inc ecx
dec edi
jne 0x54603f
xor eax, eax
mov ecx, 8
mov dl, byte [ebp + eax - 0x48]
xor byte [ebp + eax - 0x20], dl
inc eax
dec ecx
jne 0x54609d
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov edi, 8
mov edx, eax
and edx, 0x80000001
jns 0x5460c7
dec edx
or edx, 0xfffffffe
inc edx
jne 0x5460e6
xor edx, edx
mov esi, eax
mov dl, byte [ebp + eax - 0x20]
shr edx, 2
mov dl, byte [edx + ecx + 0x7430a4]
shl dl, 4
shr esi, 1
mov byte [ebp + esi - 0x38], dl
jmp 0x546100
mov edx, eax
shr edx, 1
lea esi, [ebp + edx - 0x38]
xor edx, edx
mov dl, byte [ebp + eax - 0x20]
shr edx, 2
mov dl, byte [edx + ecx + 0x7430a4]
add byte [esi], dl
inc eax
add ecx, 0x40
dec edi
jne 0x5460b8
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], esi
mov edi, 0x20
mov al, byte [ecx + 0x743084]
dec al
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov edx, eax
and eax, 7
shr edx, 3
mov dl, byte [ebp + edx - 0x38]
test byte [eax + 0x742f54], dl
je 0x546156
mov eax, ecx
mov edx, ecx
shr eax, 3
and edx, 7
lea eax, [ebp + eax - 0x20]
mov dl, byte [edx + 0x742f54]
or byte [eax], dl
mov esi, dword [ebp - 0x20]
inc ecx
dec edi
jne 0x546116
mov eax, dword [ebp - 0x30]
xor esi, eax
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov esi, pe_nt_image_headers32
mov dl, byte [ecx + 0x742f9c]
dec dl
mov byte [ebp - 0x14], dl
mov eax, dword [ebp - 0x14]
and eax, 0xff
mov edx, eax
and eax, 7
shr edx, 3
mov dl, byte [ebp + edx - 0x28]
test byte [eax + 0x742f54], dl
je 0x5461b2
mov eax, ecx
mov edx, ecx
shr eax, 3
and edx, 7
lea eax, [ebp + eax - 0x40]
mov dl, byte [edx + 0x742f54]
or byte [eax], dl
inc ecx
dec esi
jne 0x546175
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
add eax, ebx
cmp eax, ecx
jge 0x5461e5
mov eax, dword [ebp + 0x14]
add ebx, 8
inc eax
mov dword [ebp + 8], ebx
cmp eax, 0x14
mov dword [ebp + 0x14], eax
jl 0x545fb7
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10