Function at 0xd279e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
cmp dword [edi], 0
je 0xd27a32
mov ecx, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
test ecx, ecx
jle 0xd27a25
mov edi, eax
movzx eax, byte [edi]
lea ecx, [esi*8]
dec ebx
lea edi, [edi + 1]
movzx edx, byte [eax + 0xa3c740]
xor edx, ecx
xor esi, edx
test ebx, ebx
jg 0xd27a05
mov edi, dword [ebp - 8]
mov eax, esi
xor edx, edx
div dword [edi]
mov eax, dword [ebp - 4]
mov ebx, edx
jmp 0xd27a34
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov edx, eax
mov ecx, edi
call fcn.00d27db0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0xd27ab7
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
test eax, eax
jne 0xd27aa5
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0xd27a61
mov dword [edx], eax
jmp 0xd27a64
mov dword [edi + 8], eax
mov edx, dword [ecx]
test edx, edx
je 0xd27a70
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [edi + 0xc]
test edx, edx
je 0xd27a86
cmp dword [edx + ebx*8 + 4], ecx
jne 0xd27a83
mov eax, dword [ecx]
mov dword [edx + ebx*8 + 4], eax
dec dword [edx + ebx*8]
push ecx
call fcn.00d2b990
add esp, 4
add dword [edi + 4], 0xffffffff
jne 0xd27aae
mov ecx, edi
call fcn.00d28070
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0xd27cbf
push 0x14
call fcn.00d2bcf0
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0xd27aae
mov eax, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 8], esi
mov edx, dword [edi + 4]
inc edx
mov dword [edi + 4], edx
cmp edx, 0xa
jb 0xd27c55
mov eax, dword [edi]
add eax, eax
cmp edx, eax
jbe 0xd27c55
lea esi, [edx + edx]
mov edx, pe_nt_image_headers32
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, edx
cmp esi, dword [edi]
je 0xd27c55
mov eax, dword [0xa596e4]
test eax, eax
je 0xd27b2a
call eax
lea eax, [esi*8]
push eax
call fcn.00d2bcf0
mov ecx, dword [0xa596e8]
add esp, 4
mov esi, eax
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0xd27b4b
call ecx
test esi, esi
je 0xd27c52
push dword [edi + 0xc]
call fcn.00d2b990
add esp, 4
mov dword [edi + 0xc], esi
push esi
call dword [0xa56ef4]
shr eax, 3
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [edi], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.00c175b0
mov esi, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test esi, esi
je 0xd27c41
mov edx, dword [esi + 0x10]
xor ebx, ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
test edx, edx
jle 0xd27bd0
mov edi, eax
nop dword [eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
dec edx
movzx ecx, byte [eax + 0xa3c740]
lea eax, [ebx*8]
xor ecx, eax
xor ebx, ecx
test edx, edx
jg 0xd27bb0
mov edi, dword [ebp - 8]
mov eax, dword [esi]
xor edx, edx
mov dword [ebp - 0x10], eax
mov eax, ebx
div dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [eax + edx*8]
test edx, edx
je 0xd27c1b
mov eax, dword [edx]
test eax, eax
je 0xd27bf1
mov ecx, dword [edx + 4]
jmp 0xd27bf3
xor ecx, ecx
inc eax
mov dword [edx + 4], esi
mov dword [edx], eax
test ecx, ecx
je 0xd27c1b
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0xd27c13
mov dword [eax], esi
mov dword [ecx + 4], esi
jmp 0xd27c34
mov dword [edi + 8], esi
mov dword [ecx + 4], esi
jmp 0xd27c34
mov eax, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 8]
test eax, eax
je 0xd27c2a
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x10]
mov esi, eax
test eax, eax
jne 0xd27b98
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00d28030
xor edx, edx
div dword [edi]
mov ebx, edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [edi + 0xc]
test eax, eax
je 0xd27ca6
lea esi, [eax + ebx*8]
test esi, esi
je 0xd27ca6
mov eax, dword [esi]
test eax, eax
je 0xd27c6e
mov edx, dword [esi + 4]
jmp 0xd27c70
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0xd27ca6
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0xd27c97
mov dword [eax], ecx
xor eax, eax
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], ecx
xor eax, eax
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov eax, dword [edi + 8]
test eax, eax
je 0xd27cb5
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret