Function at 0x10030420
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
push pe_nt_image_headers32
lea eax, [esp + 0x14]
mov esi, edx
push 0
push eax
mov ebx, ecx
call fcn.10046690
push dword [ebp + 8]
lea edi, [ebx + 8]
mov edx, esi
lea ecx, [esp + 0x20]
mov dword [ebx + 4], edi
call fcn.1002f480
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10030620
mov ecx, dword [esp + 0x10]
mov dword [ebx], ecx
shl ecx, 4
add ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
sub ecx, 0x10
mov dword [edi + 0xc], eax
add edi, 0x10
mov esi, dword [ebx]
dec esi
test esi, esi
jle 0x1003060a
nop dword [eax]
movzx eax, byte [ecx + 3]
dec esi
movzx edx, byte [eax + 0x10075630]
movzx eax, byte [ecx + 2]
mov edx, dword [edx*4 + 0x10075730]
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10077458]
movzx eax, byte [ecx + 1]
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076458]
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076858]
mov dword [edi], edx
mov ebx, dword [ecx + 4]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x10075630]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x10077458]
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076458]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10075730]
movzx eax, bl
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076858]
mov dword [edi + 4], edx
mov ebx, dword [ecx + 8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x10075630]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x10077458]
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076458]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10075730]
movzx eax, bl
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076858]
mov dword [edi + 8], edx
mov ebx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 0x10
sub ecx, 0x10
movzx eax, al
movzx edx, byte [eax + 0x10075630]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x10077458]
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076458]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10075730]
movzx eax, bl
movzx eax, byte [eax + 0x10075630]
xor edx, dword [eax*4 + 0x10076858]
mov dword [edi + 0xc], edx
add edi, 0x10
test esi, esi
jg 0x100304b0
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
mov ecx, dword [esp + 0x138]
add esp, 0xc
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10045387
mov esp, ebp
pop ebp
ret