Function at 0x42a240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x34c
mov dword [esp + 0x14], eax
cmp ecx, 0x180
ja 0x42a597
mov esi, edx
mov ebx, ecx
mov ecx, 0x68
xor eax, eax
lea edi, [esp + 0x1a0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.0042cb20
mov word [esp + 0x1b0], 0
mov eax, ebx
rol ax, 8
mov word [esp + 0x1b2], ax
mov byte [esp + 0x1b7], 0x30
lea eax, [esp + 0x1b8]
cmp ebx, 4
jae 0x42a4da
test ebx, ebx
je 0x42a2c3
mov al, byte [esi]
mov byte [esp + 0x1b8], al
test bl, 2
jne 0x42a59e
mov byte [esp + ebx + 0x1b8], pe_nt_image_headers32
xor eax, eax
lea ebp, [esp + 0x38]
lea esi, [esi]
lea esi, [esi]
nop
mov byte [ebp + eax], al
inc eax
cmp eax, 0x20
jne 0x42a2e0
mov dword [esp + 8], 0x100
mov dword [esp + 4], ebp
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.0042cb70
test eax, eax
jne 0x42a57d
lea eax, [ebx + 0x19]
mov dword [esp + 0x10], eax
lea edi, [esp + 0x58]
mov edx, edi
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], edi
mov ecx, 4
mov edi, ebx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x1a0]
mov dword [esp + 0x1c], edx
mov eax, edi
mov edi, esi
mov esi, eax
lea esi, [esi]
lea esi, [esi]
xor eax, eax
mov edx, dword [ebx + eax]
xor edx, dword [edi + eax]
mov dword [ebx + eax], edx
add eax, 4
cmp eax, 0x10
jne 0x42a352
add edi, 0x10
mov eax, esi
cmp esi, 0x10
jbe 0x42a372
mov eax, 0x10
sub esi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.0042dc30
test eax, eax
jne 0x42a4f4
test esi, esi
jne 0x42a350
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0xc], eax
lea edi, [edx + 4]
and edi, 0xfffffffc
mov eax, edx
sub eax, edi
mov esi, ebx
sub esi, eax
lea ecx, [eax + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
inc byte [esp + 0x1a3]
add edx, 0x10
lea eax, [esp + 0x88]
cmp edx, eax
jne 0x42a322
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0x100
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0042cb70
test eax, eax
jne 0x42a4f8
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x30]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov ebx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], 1
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.0042dc30
test eax, eax
jne 0x42a58a
lea edx, [esp + 0x78]
mov ecx, dword [edx]
mov dword [ebx], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebx + 0xc], ecx
lea edi, [ebx + 4]
and edi, 0xfffffffc
mov ecx, ebx
sub ecx, edi
mov esi, edx
sub esi, ecx
add ecx, 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add ebx, 0x10
cmp dword [esp + 0x10], ebx
jne 0x42a415
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.0042cb50
mov dword [esp + 4], 0x1a0
lea eax, [esp + 0x1a0]
mov dword [esp], eax
call fcn.0042b3a0
mov dword [esp + 4], 0x30
mov dword [esp], edi
call fcn.0042b3a0
mov dword [esp + 4], 0x20
mov dword [esp], ebp
call fcn.0042b3a0
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call fcn.0042b3a0
mov eax, dword [esp + 0x10]
add esp, 0x34c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + ebx - 4]
mov dword [esp + ebx + 0x1b4], edx
lea ecx, [ebx - 1]
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x42a2c3
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.0042cb50
mov dword [esp + 4], 0x1a0
lea eax, [esp + 0x1a0]
mov dword [esp], eax
call fcn.0042b3a0
mov dword [esp + 4], 0x30
mov dword [esp], edi
call fcn.0042b3a0
mov dword [esp + 4], 0x20
mov dword [esp], ebp
call fcn.0042b3a0
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call fcn.0042b3a0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x30
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042b3a0
mov eax, dword [esp + 0x10]
add esp, 0x34c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x58]
lea ebx, [esp + 0x28]
jmp 0x42a4f8
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x42a4f8
mov eax, 0xffffffc8
jmp 0x42a572
mov ax, word [esi + ebx - 2]
mov word [esp + ebx + 0x1b6], ax
jmp 0x42a2c3