Function at 0x42c8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x48106c]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov eax, edx
mov dword [esp + 0x18], eax
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
test eax, eax
je 0x42cf85
mov esi, dword [ebp + 8]
add eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [edi + reloc.USER32.dll_PeekMessageA]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x42c93e
lea eax, [edi + 0x40]
mov dword [esp + 0x38], eax
push 0x40
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.0043ea90
mov eax, dword [edi + reloc.USER32.dll_PeekMessageA]
add esp, 0xc
add dword [edi + reloc.USER32.dll_PeekMessageA], esi
adc dword [edi + reloc.USER32.dll_PeekMessageA], 0
mov edi, 0x100
sub edi, eax
cmp esi, edi
ja 0x42c9a1
mov edi, dword [esp + 0xc]
add eax, 0x100
push esi
push dword [esp + 0x20]
add eax, edi
push eax
call fcn.0043ea90
add dword [edi + reloc.USER32.dll_PeekMessageA], esi
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0043c755
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x42cc91
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
add ecx, 0x100
push edi
add eax, ecx
push esi
push eax
call fcn.0043ea90
mov eax, dword [esp + 0x18]
add esi, edi
mov edx, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xc]
mov ecx, dword [eax + reloc.USER32.dll_PeekMessageA]
lea edi, reloc.USER32.dll_PeekMessageA
mov eax, dword [eax + reloc.USER32.dll_PeekMessageA]
mov dword [esp + 0x2c], 4
mov esi, dword [esi + reloc.USER32.dll_PeekMessageA]
sub esi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
lea edx, [edx + eax*8]
mov dword [esp + 0x20], edx
cmp esi, 4
ja 0x42cb95
mov eax, dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0x18], eax
nop word [eax + eax]
test esi, esi
je 0x42cadb
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], esi
mov eax, edi
sub eax, ecx
lea ecx, reloc.USER32.dll_PeekMessageA
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
nop
lea eax, [eax + ecx*8]
xor ecx, 1
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x30], xmm0
movq xmm0, qword [edx]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
movq qword [esp + 0x40], xmm0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
xor eax, esi
xor edi, edx
add dword [esp + ecx*8 + 0x58], esi
adc dword [esp + ecx*8 + 0x5c], edx
mov ecx, dword [esp + 0x50]
mul edi
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x54]
add edx, 8
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
cmp ecx, 8
jb 0x42ca50
mov ecx, dword [esp + 0x3c]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x3c], ecx
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x42ca42
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], eax
movq xmm0, qword [eax]
xor eax, eax
mov ecx, dword [esp + edi*8 + 0x5c]
mov esi, ecx
movq qword [esp + 0x30], xmm0
xor eax, dword [esp + 0x34]
xor eax, ecx
shr esi, 0xf
xor esi, dword [esp + 0x30]
mov ecx, 0x9e3779b1
xor esi, dword [esp + edi*8 + 0x58]
mul ecx
mov edx, 0x9e3779b1
mov ecx, eax
mov eax, esi
mul edx
add ecx, edx
mov dword [esp + edi*8 + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esp + edi*8 + 0x5c], ecx
add eax, 8
inc edi
mov dword [esp + 0x14], eax
cmp edi, 8
jb 0x42cae1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
shl eax, 6
add edi, eax
mov dword [esp + 0x2c], ecx
mov eax, dword [edx + reloc.USER32.dll_PeekMessageA]
mov esi, eax
mov edx, dword [esp + 0x38]
cmp ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edx
jae 0x42ca20
mov eax, dword [esp + 0xc]
mov dword [eax + reloc.USER32.dll_PeekMessageA], 0
xor eax, eax
test ecx, ecx
jne 0x42cb9a
mov edi, dword [esp + 0xc]
mov dword [edi + reloc.USER32.dll_PeekMessageA], eax
jmp 0x42cc95
mov ecx, 4
test ecx, ecx
je 0x42cc79
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x58]
mov eax, edi
mov dword [esp + 0x14], esi
sub eax, ecx
lea ecx, reloc.USER32.dll_PeekMessageA
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
nop dword [eax]
lea eax, [eax + ecx*8]
xor ecx, 1
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [edx]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
movq qword [esp + 0x30], xmm0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
xor eax, esi
xor edi, edx
add dword [esp + ecx*8 + 0x58], esi
adc dword [esp + ecx*8 + 0x5c], edx
mov ecx, dword [esp + 0x18]
mul edi
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x28]
add edx, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
cmp ecx, 8
jb 0x42cbd0
mov ecx, dword [esp + 0x24]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x24], ecx
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x42cbc0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + reloc.USER32.dll_PeekMessageA]
add eax, ecx
mov dword [edi + reloc.USER32.dll_PeekMessageA], eax
mov dword [edi + reloc.USER32.dll_PeekMessageA], 0
jmp 0x42cc95
mov edi, dword [esp + 0xc]
add eax, ecx
mov dword [edi + reloc.USER32.dll_PeekMessageA], eax
mov dword [edi + reloc.USER32.dll_PeekMessageA], 0
jmp 0x42cc95
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
sub eax, esi
cmp eax, 0x100
jle 0x42cf53
mov ecx, dword [edi + reloc.USER32.dll_PeekMessageA]
lea edi, [eax - 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xc]
shr edi, 6
mov dword [esp + 0x2c], edi
mov eax, dword [esi + reloc.USER32.dll_PeekMessageA]
mov esi, dword [esi + reloc.USER32.dll_PeekMessageA]
sub esi, eax
mov dword [esp + 0x14], esi
lea edx, [edx + eax*8]
mov dword [esp + 0x20], edx
cmp edi, esi
jb 0x42ce61
mov eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
test esi, esi
je 0x42cdb3
mov eax, ecx
mov dword [esp + 0x24], esi
lea edi, [esp + 0x58]
sub eax, edi
add ecx, 0x180
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x18], edx
lea eax, [eax + ecx*8]
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [edx]
mov edx, ecx
mov edi, dword [esp + 0x40]
xor edx, 1
mov esi, dword [esp + 0x44]
movq qword [esp + 0x30], xmm0
mov eax, dword [esp + 0x30]
xor eax, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
xor eax, esi
add dword [esp + edx*8 + 0x58], edi
mov dword [esp + 0x50], eax
adc dword [esp + edx*8 + 0x5c], esi
mov eax, dword [esp + 0x54]
mul dword [esp + 0x50]
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x18]
add edx, 8
mov dword [esp + 0x18], edx
cmp ecx, 8
jb 0x42cd20
mov ecx, dword [esp + 0x28]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x28], ecx
sub dword [esp + 0x24], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x42cd17
mov eax, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x18], eax
nop dword [eax]
movq xmm0, qword [eax]
xor eax, eax
mov ecx, dword [esp + edi*8 + 0x5c]
mov esi, ecx
movq qword [esp + 0x30], xmm0
xor eax, dword [esp + 0x34]
xor eax, ecx
shr esi, 0xf
xor esi, dword [esp + 0x30]
mov ecx, 0x9e3779b1
xor esi, dword [esp + edi*8 + 0x58]
mul ecx
mov edx, 0x9e3779b1
mov ecx, eax
mov eax, esi
mul edx
add ecx, edx
mov dword [esp + edi*8 + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + edi*8 + 0x5c], ecx
add eax, 8
inc edi
mov dword [esp + 0x18], eax
cmp edi, 8
jb 0x42cdc0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
sub edi, dword [esp + 0x14]
shl eax, 6
add ecx, eax
mov dword [esp + 0x2c], edi
mov eax, dword [edx + reloc.USER32.dll_PeekMessageA]
mov esi, eax
mov edx, dword [esp + 0x38]
cmp edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
jae 0x42ccf5
mov eax, dword [esp + 0xc]
mov dword [eax + reloc.USER32.dll_PeekMessageA], 0
jmp 0x42ce65
mov ecx, dword [esp + 0x1c]
test edi, edi
je 0x42cf36
mov eax, ecx
mov dword [esp + 0x14], edi
lea esi, [esp + 0x58]
sub eax, esi
add ecx, 0x180
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
lea eax, [eax + ecx*8]
xor ecx, 1
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [edx]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
movq qword [esp + 0x30], xmm0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
xor eax, esi
xor edi, edx
add dword [esp + ecx*8 + 0x58], esi
adc dword [esp + ecx*8 + 0x5c], edx
mov ecx, dword [esp + 0x18]
mul edi
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x28]
add edx, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
cmp ecx, 8
jb 0x42ce94
mov ecx, dword [esp + 0x24]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x24], ecx
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x42ce87
mov ecx, dword [esp + 0x2c]
mov eax, ecx
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
shl eax, 6
add esi, eax
add dword [edi + reloc.USER32.dll_PeekMessageA], ecx
jmp 0x42cf3e
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push 0x40
lea eax, [esi - 0x40]
push eax
lea eax, reloc.USER32.dll_PeekMessageA
push eax
call fcn.0043ea90
add esp, 0xc
mov eax, dword [esp + 0x4c]
sub eax, esi
push eax
mov dword [esp + 0x50], eax
lea eax, reloc.USER32.dll_PeekMessageA
push esi
push eax
call fcn.0043ea90
mov eax, dword [esp + 0x58]
mov dword [edi + reloc.USER32.dll_PeekMessageA], eax
lea eax, [esp + 0x64]
push 0x40
push eax
push edi
call fcn.0043ea90
add esp, 0x18
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0043c755
mov esp, ebp
pop ebp
ret